conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Make the failing test pass\n" }, { "from": "human", "value": "<?php\n\nnamespace fennecweb;\n\nclass ProjectsTest extends \\PHPUnit_Framework_TestCase\n{\n const NICKNAME = 'listingProjectsTestUser';\n const USERID = 'listingProjectsTestUser';\n const PROVI...
php
chosen
[ { "from": "system", "value": "Make extension work on both 2.2 and 2.3\n" }, { "from": "human", "value": "<?php\n\nnamespace Bolt\\Extension\\BobdenOtter\\Seo;\n\nuse Bolt\\Application;\nuse Bolt\\BaseExtension;\n\nrequire_once('Seo.php');\nrequire_once('src/SEO.php');\n\nclass Extension extends ...
php
chosen
[ { "from": "system", "value": "Replace tenant name by tenant title in page headers\n" }, { "from": "human", "value": "<header class=\"main-header fh-fixedHeader\">\n <!-- Logo -->\n <a href=\"#\" class=\"logo\" data-toggle=\"push-menu\" role=\"button\">\n <!-- mini logo for sidebar m...
php
chosen
[ { "from": "system", "value": "Add vote.php to be included\n" }, { "from": "human", "value": "<?php\nrequire_once 'config.php';\nrequire_once 'feature.php';\n" }, { "from": "gpt", "value": "<?php\nrequire_once 'config.php';\nrequire_once 'feature.php';\nrequire_once 'vote.php';\n" }...
php
chosen
[ { "from": "system", "value": "Add support for configurable image width\n" }, { "from": "human", "value": "@if ($item->$field_name != null && $item->$field_name != '')\n\t<img src=\"{!! Croppa::url_resize('uploads/' . $route_prefix . '/' . $item->$field_name, 180) !!}\" />\n@endif\n" }, { ...
php
chosen
[ { "from": "system", "value": "Add Twig Extensions on boot\n" }, { "from": "human", "value": "<?php\n\nnamespace Pipe\\Silex;\n\nuse Silex\\Application;\nuse Silex\\ServiceProviderInterface;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nclass PipeServiceProvider implements ServiceProvid...
php
chosen
[ { "from": "system", "value": "Test placeholder in preparation for implementing setting global settings.\n" }, { "from": "human", "value": "<?php\n\nnamespace Troupe\\Tests\\Functional;\n\nrequire_once realpath(__DIR__ . '/../../../bootstrap.php');\n\nclass StandardUseCaseTest extends \\PHPUnit_F...
php
chosen
[ { "from": "system", "value": "Fix spiral/framework dependency in tests\n" }, { "from": "human", "value": "<?php\n\n/**\n * Spiral Framework. Scaffolder\n *\n * @license MIT\n * @author Valentin V (vvval)\n */\n\ndeclare(strict_types=1);\n\nnamespace Spiral\\Tests\\Scaffolder;\n\nuse PHPUnit\\Fr...
php
chosen
[ { "from": "system", "value": "Fix event_dispatcher replacement in DependencyInjection\n" }, { "from": "human", "value": "<?php\n/**\n * @LICENSE_TEXT\n */\n\nnamespace EventBand\\Bundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterfac...
php
chosen
[ { "from": "system", "value": "iii-97: Print request and response to entry API\n" }, { "from": "human", "value": "<?php\n/**\n * @file\n */\n\nnamespace CultuurNet\\UDB3\\UDB2;\n\n\nuse CultuurNet\\Auth\\TokenCredentials;\n\nfinal class EntryAPIImprovedFactory\n{\n /**\n * @var Consumer\n ...
php
chosen
[ { "from": "system", "value": "FIX: Remove obsolete method that was for DataObjectManager\n" }, { "from": "human", "value": "<?php\n\nclass MapLayer extends DataObject {\n\n\tstatic $db = array(\n\t\t'Title' => 'Varchar(255)'\n\t);\n\n\n\tstatic $has_one = array(\n\t\t'KmlFile' => 'File'\n\t);\n\...
php
chosen
[ { "from": "system", "value": "Stop advising users to pipe a curl download directly into php.\n" }, { "from": "human", "value": "<?php\n\nif ((!$loader = @include __DIR__.'/../../../autoload.php')\n && (!$loader = @include __DIR__.'/../vendor/autoload.php')\n) {\n die('You must set up t...
php
chosen
[ { "from": "system", "value": "Include Control.php for non-autoloaded installs\n" }, { "from": "human", "value": "<?php\n/**\nPlugin Name: Scrivener\nPlugin URI: http://10up.com\nDescription: A WordPress plugin to enhance the post editor preview, mainly through proof of concept.\nVersion: 0.1.0\n...
php
chosen
[ { "from": "system", "value": "Add the new login / projects link.\n" }, { "from": "human", "value": "<?php\n\nnamespace CommerceGuys\\Platform\\Cli\\Command;\n\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\NullOutput;\nuse Symfony\\Component\\C...
php
chosen
[ { "from": "system", "value": "Implement group form type extension.\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2019, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For th...
php
chosen
[ { "from": "system", "value": "Change code to use array_helper\n" }, { "from": "human", "value": "<?php namespace Laravel\\Socialite\\Two;\n\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\n\nclass GithubProvider extends AbstractProvider implements ProviderInterface\n{\n\n /**\n ...
php
chosen
[ { "from": "system", "value": "Add more detail to test failure message\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Tests\\Feature;\n\nuse Tests\\TestCase;\n\nclass SimpleRequestsTest extends TestCase\n{\n /**\n * Test simple, non-CAS requests load with...
php
chosen
[ { "from": "system", "value": "Add addition functional test. It fails.\n" }, { "from": "human", "value": "<?php\n\nclass AdditionTest extends \\PHPUnit_Framework_TestCase\n{\n public function testAddition()\n {\n $this->assertTrue(true);\n }\n}\n" }, { "from": "gpt", "...
php
chosen
[ { "from": "system", "value": "Add fake folder path generator to base unit test\n" }, { "from": "human", "value": "<?php\n\nuse Codeception\\TestCase\\Test;\nuse Faker\\Factory;\nuse Illuminate\\Contracts\\Logging\\Log;\nuse Mockery as m;\n\n/**\n * Base UnitTest\n *\n * The core test-class for a...
php
chosen
[ { "from": "system", "value": "Add comment to test message\n" }, { "from": "human", "value": "<?php\n\nuse Common\\Exception\\LoginException;\n\nclass LoginExceptionTest extends \\Codeception\\TestCase\\Test\n{\n use Codeception\\Specify;\n\n public function testLoginExceptionIsThrown()\n ...
php
chosen
[ { "from": "system", "value": "Use success button for saving\n" }, { "from": "human", "value": "@extends('layout.dashboard')\n\n@section('content')\n <div class=\"header\">\n <span class='uppercase'>\n <i class=\"fa fa-user\"></i> {{ Lang::get('cachet.dashboard.user') }}\n ...
php
chosen
[ { "from": "system", "value": "Check empty session about user\n" }, { "from": "human", "value": "<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\nclass Login extends CI_Controller\n{\n public function __construct()\n {\n parent::__construct();\n $this->l...
php
chosen
[ { "from": "system", "value": "Make API even more extendable\n" }, { "from": "human", "value": "<?php\n/*\n\tPufferPanel - A Minecraft Server Management Panel\n\tCopyright (c) 2013 Dane Everitt\n\n\tThis program is free software: you can redistribute it and/or modify\n\tit under the terms of the ...
php
chosen
[ { "from": "system", "value": "Fix tests on PHP 5.6\n" }, { "from": "human", "value": "<?php\n\nnamespace LaravelProfaneTests;\n\nuse LaravelProfane\\ProfaneValidator;\n\nclass ProfaneValidatorBuilder\n{\n /**\n * [$profaneValidator description]\n * @var [type]\n */\n protected ...
php
chosen
[ { "from": "system", "value": "Remove APC loader because Pair is a pooper\n" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\ClassLoader\\ApcClassLoader;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n$loader = require_once __DIR__.'/../app/bootstrap.php.cache';\n\n// Use A...
php
chosen
[ { "from": "system", "value": "Reorder AJAX response class constructor arguments.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full copy...
php
chosen
[ { "from": "system", "value": "Remove deprecated calls (Loader --> View)\n\n\nFormer-commit-id: baab1b8c1ded29c92f52cd29097a7118382a21f9\nFormer-commit-id: 08c6d71dfeb06190f7a54d38ebe3fdfbf2f66768" }, { "from": "human", "value": "<?\ndefined('C5_EXECUTE') or die(\"Access Denied.\");\n\n$c = Page:...
php
chosen
[ { "from": "system", "value": "Add PHP memory_limit to WDT\n\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that...
php
chosen
[ { "from": "system", "value": "Add current page accessor method to controllers\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Active Collab Bootstrap project.\n *\n * (c) A51 doo <info@activecollab.com>. All rights reserved.\n */\n\ndeclare(strict_types=1);\n\nnamespa...
php
chosen
[ { "from": "system", "value": "Use view() instead of $view\n\nFixes \"Method [share] does not exist on view.\" exception." }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\ViewComposers;\n\nuse Creativeorange\\Gravatar\\Facades\\Gravatar;\nuse Illuminate\\View\\View;\n\nclass AuthCom...
php
chosen
[ { "from": "system", "value": "Remove cache for time being\n" }, { "from": "human", "value": "<?php\n\nrequire_once __DIR__.'/../app/bootstrap.php.cache';\nrequire_once __DIR__.'/../app/AppKernel.php';\nrequire_once __DIR__.'/../app/AppCache.php';\n\nuse Symfony\\Component\\HttpFoundation\\Reques...
php
chosen
[ { "from": "system", "value": "Rename type of simpleCache to simple\n\nall other types also don't contain the word Cache, so why should this one\n" }, { "from": "human", "value": "<?php\nclass Kwf_Util_ClearCache_Types_SimpleCache extends Kwf_Util_ClearCache_Types_Abstract\n{\n protected funct...
php
chosen
[ { "from": "system", "value": "Replace usage of Linker with LinkRenderer service\n\nBug: T279373\nChange-Id: Iaeea79133391a3a13cdc58f8a3cde34eb9425234\n" }, { "from": "human", "value": "<?php\n\nuse MediaWiki\\MediaWikiServices;\n\n/**\n * A single 'item' in the Spelling Dictionary Admin Links pa...
php
chosen
[ { "from": "system", "value": "Change required privilege of DeleteJobAction (SERVER_OPERATION -> PROCESS_MANAGE)\n" }, { "from": "human", "value": "<?php\r\n\r\nclass DeleteJobAction extends ApiActionBase\r\n{\r\n\tprotected static $required_privileges = array(Auth::SERVER_SETTINGS);\r\n\r\n\tpro...
php
chosen
[ { "from": "system", "value": "Add persist method to the Interface\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the CalendArt package\n *\n * For the full copyright and license information, please view the LICENSE file\n * that was distributed with this source code.\n *\...
php
chosen
[ { "from": "system", "value": "Use better suited parent exception\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Doctrine\\ORM\\Repository;\n\nuse Doctrine\\ORM\\RepositoryException;\n\nfinal class InvalidMagicMethodCall extends \\InvalidArgumentException implem...
php
chosen
[ { "from": "system", "value": "Make bot functionality publicly available\n" }, { "from": "human", "value": "<?php\n\nnamespace eHOSP\\Http\\Controllers\\API\\v1;\n\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Http\\Response;\n\nuse eHOSP\\Http\\Requests;\nuse eHOSP\\Http\\Controllers\\Control...
php
chosen
[ { "from": "system", "value": "Fix for assertion in test\n" }, { "from": "human", "value": "<?php\n\nnamespace Generics\\Tests;\n\nuse Generics\\Socket\\Endpoint;\nuse Generics\\Socket\\ServerSocket;\n\nclass ServerSocketTest extends \\PHPUnit\\Framework\\TestCase\n{\n\n public function testSe...
php
chosen
[ { "from": "system", "value": "UPGRADE: Use upload field for image which is compatible with ss3\n" }, { "from": "human", "value": "<?php\n \nclass FacebookMetadataSiteConfig extends DataExtension {\n\n static $db = array(\n 'SkipToMainContentAccessKey' => 'VarChar(1)'\n );\n\n st...
php
chosen
[ { "from": "system", "value": "Write SELECT and FROM in two _addSql()-calls for consistency\n" }, { "from": "human", "value": "<?php\n\nclass CM_Db_Query_Count extends CM_Db_Query_Abstract {\n\n\t/**\n\t * @param string $table\n\t * @param string|array|null $where Associative array fi...
php
chosen
[ { "from": "system", "value": "Add browse sections to front page\n\nBy correspondent, location, decade\n" }, { "from": "human", "value": "<?php\n\nget_header(); ?>\n\t<div id=\"splash\" class=\"hero-area\">\n\t\t<div class=\"site-hero-title\">\n\t\t\t<h1 class=\"site-main-title\"><span>Katherine<...
php
chosen
[ { "from": "system", "value": "Remove button column from table display\n" }, { "from": "human", "value": "<?php\n$this->breadcrumbs = array(\n\tHistory::label(2),\n\t'Index',\n);\n?>\n\n<h1><?php echo GxHtml::encode(History::label(2)); ?></h1>\n\n<?php $this->widget('zii.widgets.grid.CGridView', ...
php
chosen
[ { "from": "system", "value": "[Readability] Rename method name (avoid abbreviation)\n\nAND:\n* Remove redundant comment + update doc block comment.\n* Change \"isAlreadyExecuted\" method visibility to private (don't need to be public!).\n" }, { "from": "human", "value": "<?php\n/**\n * @author ...
php
chosen
[ { "from": "system", "value": "Refactor homepage to something simple\n" }, { "from": "human", "value": "<!doctype html>\n<html lang=\"{{ app()->getLocale() }}\">\n <head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"...
php
chosen
[ { "from": "system", "value": "Use Composer autoload for unit tests." }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Mustache.php.\n *\n * (c) 2010-2014 Justin Hileman\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distribut...
php
chosen
[ { "from": "system", "value": "Tidy up info a little for the PluginModule popup edit form\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@40384 b456876b-0849-0410-b77d-98878d47e9d5\n" }, { "from": "human", "value": "<?php\n// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupwa...
php
chosen
[ { "from": "system", "value": "TASK: Adjust test assertions to PHPUnit 8\n" }, { "from": "human", "value": "<?php\nnamespace Neos\\Flow\\Tests\\Unit\\Http\\Helper;\n\nuse GuzzleHttp\\Psr7\\ServerRequest;\nuse Neos\\Flow\\Http\\Helper\\RequestInformationHelper;\nuse Neos\\Flow\\Tests\\UnitTestCase...
php
chosen
[ { "from": "system", "value": "Fix getting stuck on login page if user logedin already\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|--------------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Fix error when rendering a multiple select with no values assigned.\n" }, { "from": "human", "value": "<?php\n/**\n * PHP version 5.5\n *\n * This source file is subject to the license that is bundled with this package in the file LICENSE.\n *\n * @copyright Comunid...
php
chosen
[ { "from": "system", "value": "Fix fatal error when using Logger::devLog\n\n- Error message is \"Call to a member function log() on null in src/Core/Logger.php:304\"\n" }, { "from": "human", "value": "<?php\n\nnamespace Friendica\\Factory;\n\nuse Friendica\\App;\nuse Friendica\\Core\\Config\\Cach...
php
chosen
[ { "from": "system", "value": "Fix wrong privacy for attributes\n" }, { "from": "human", "value": "<?php\n\nnamespace HiPay\\Fullservice\\Gateway\\Model;\n\nuse HiPay\\Fullservice\\Gateway\\Model\\AbstractTransaction;\n\n/**\n *\n * @package HiPay\\Fullservice\n * @author Kassim Belghait <kassim@...
php
chosen
[ { "from": "system", "value": "ENH: Send contact emails to morten@divito.dk\n" }, { "from": "human", "value": "<?php\n// Check for empty fields\nif(empty($_POST['name']) ||\n empty($_POST['email']) ||\n empty($_POST['phone']) ||\n empty($_POST['message']) ||\n !filter_var($...
php
chosen
[ { "from": "system", "value": "Simplify Twig function and filter names.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full copyright and ...
php
chosen
[ { "from": "system", "value": "Include ability to remember me" }, { "from": "human", "value": "<?php namespace FWM\\LaravelAVP;\n\nuse Illuminate\\Http\\Request;\n\nclass RequestHandler {\n\n protected $request;\n\n function __construct(Request $request)\n {\n $this->request = $re...
php
chosen
[ { "from": "system", "value": "Add permission checkers to the users model\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Auth\\UserInterface;\nuse Illuminate\\Auth\\Reminders\\RemindableInterface;\n\nclass User extends Eloquent implements UserInterface, RemindableInterface {\n\n\t/**...
php
chosen
[ { "from": "system", "value": "[Registry] Initialize shared registry with empty array\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Panda Registry Package.\n *\n * (c) Ioannis Papikas <papikas.ioan@gmail.com>\n *\n * For the full copyright and license information, pl...
php
chosen
[ { "from": "system", "value": "Add source to the construction table.\n" }, { "from": "human", "value": "@section('title')\nConstruction categories - Cataclysm: Dark Days Ahead\n@endsection\n<h1>Construction categories</h1>\n\n<div class=\"row\">\n <div class=\"col-md-3\">\n<ul class=\"nav nav-pi...
php
chosen
[ { "from": "system", "value": "Revert \"* change to outputing a cleaned version of the default content variable\"\n\nThis reverts commit 4cfb6ed615a999398c4ab6dd8f1189c7e2a110c0.\n" }, { "from": "human", "value": "<?php\n/**\n * @package vsc_domain\n * @subpackage models\n * @author marius orcsik...
php
chosen
[ { "from": "system", "value": "Use mysqli as defautl test driver.\n" }, { "from": "human", "value": "<?php\n#setup metrodb\ninclude_once('dataitem.php');\ninclude_once('connector.php');\n\nMetrodb_Connector::setDsn('default', 'mysql://root:mysql@localhost/metrodb_test');\n" }, { "from": "...
php
chosen
[ { "from": "system", "value": "Add dashboard route and require auth to access.\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routers\n|---------------------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Use 'include' to check for file existance.\n\nAs it uses the include path.\n" }, { "from": "human", "value": "<?php\n\n// Load console class for autoloader?\n\n$use_console = true;\n\n\n// Optional mapping of Namespace to directories.\n$namespace_mapping = array(\n ...
php
chosen
[ { "from": "system", "value": "Add columns \"editable\" to role tables.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateRolesTable extends Migration\n{\n\n /**\n * Run the migrations....
php
chosen
[ { "from": "system", "value": "Fix copy-pasta error on Toolkit constants\n" }, { "from": "human", "value": "<?php\n/**\n * This file contains class name definitions for bricks in the GenesisThemeToolkit\n *\n * @package Gamajo\\GenesisThemeTookit\n * @author Gary Jones\n * @copyright Gamajo\...
php
chosen
[ { "from": "system", "value": "Replace slashes with backslash in namespace\n\nFixes #70.\n" }, { "from": "human", "value": "<?php\n\nnamespace Studio\\Parts\\Composer;\n\nuse Studio\\Filesystem\\Directory;\nuse Studio\\Parts\\AbstractPart;\n\nclass Part extends AbstractPart\n{\n public functio...
php
chosen
[ { "from": "system", "value": "Fix default post deletion policy method\n" }, { "from": "human", "value": "<?php namespace Riari\\Forum\\Policies;\n\nuse Illuminate\\Support\\Facades\\Gate;\nuse Riari\\Forum\\Models\\Post;\n\nclass PostPolicy\n{\n /**\n * Permission: Edit post.\n *\n ...
php
chosen
[ { "from": "system", "value": "Fix statistics link visible, in Controller all action has permission `manage` but link visible was `support`\n" }, { "from": "human", "value": "<?php\n/**\n * HiPanel tickets module\n *\n * @link https://github.com/hiqdev/hipanel-module-ticket\n * @package hi...
php
chosen
[ { "from": "system", "value": "Support different wraps, fixed return of function" }, { "from": "human", "value": "<?php\n\n\nnamespace MarketFlow\\Yii2\\Validators;\n\n\nuse \\yii\\validators\\Validator;\n\nclass RegexValidator extends Validator\n{\n public $wrap = false;\n\n protected func...
php
chosen
[ { "from": "system", "value": "Remove _getRequestSID function and simplified the if statement in _checkAuthentication()\n" }, { "from": "human", "value": "<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\n\nclass MY_Controller extends CI_Controller\n{\n public function __...
php
chosen
[ { "from": "system", "value": "Use a callable instead of an annonymous function\n" }, { "from": "human", "value": "<?php\n\nnamespace Backend\\Doctrine\\Entity;\n\nuse Doctrine\\DBAL\\Exception\\TableExistsException;\nuse Doctrine\\ORM\\EntityManager;\nuse Doctrine\\ORM\\Tools\\SchemaTool;\n\ncla...
php
chosen
[ { "from": "system", "value": "Correct last-modified if equals to 1970-01-01\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n/*\n * This file is part of the feed-io package.\n *\n * (c) Alexandre Debril <alex.debril@gmail.com>\n *\n * For the full copyright and license informat...
php
chosen
[ { "from": "system", "value": "Remove redundant use statements from laravel4 paginator\n" }, { "from": "human", "value": "<?php\n\nnamespace Michaeljennings\\Carpenter\\Pagination\\Laravel4;\n\nuse Illuminate\\Pagination\\Paginator;\nuse Illuminate\\Pagination\\LengthAwarePaginator;\nuse Illumina...
php
chosen
[ { "from": "system", "value": "Make tests pass on all supported PHP versions\n" }, { "from": "human", "value": "<?php\n\n/**\n * @copyright Frederic G. Østby\n * @license http://www.makoframework.com/license\n */\n\nnamespace mako\\tests\\integration;\n\nuse mako\\database\\ConnectionManager;\n...
php
chosen
[ { "from": "system", "value": "Move composer autoloading to en\n" }, { "from": "human", "value": "<?php\n/**\n * Load the system Composer Autoloader.\n */\nrequire_once \"../vendor/autoload.php\";\n\n/**\n * Set up some global constants\n */\n// Application directory\n$appDir = \"app\";\n// Publi...
php
chosen
[ { "from": "system", "value": "Update glob() for autoload config files\n\nPer a discussion on IRC with @weierophinney:\n\n- requiring \".config\" in the filenames is redundant as they live under the\nconfig/ tree\n- \"local\" and \"global\" should be optional\n\nThis leaves us with simply config/autoload/*.p...
php
chosen
[ { "from": "system", "value": "Update root location config and autoloader\n" }, { "from": "human", "value": "<?php\n\trequire(\"vendor/autoload.php\");\n\n\tdefine(\"ROOT_SERVER\", __DIR__ . \"/\");\n\n\trequire_once(ROOT_SERVER . \"library/config.php\");\n\n\tset_error_handler(array(\"Bolt\\\\Ha...
php
chosen
[ { "from": "system", "value": "Set to work with all users, not testing user\n" }, { "from": "human", "value": "<?php umask (0027);\n/*The user's umask is ignored for the user running php, so we need\nto set it from inside of php to make sure the group read & execute\npermissions aren't lost for n...
php
chosen
[ { "from": "system", "value": "Fix generateRelations field in model generator.\n" }, { "from": "human", "value": "<?php\n/* @var $this yii\\web\\View */\n/* @var $form yii\\widgets\\ActiveForm */\n/* @var $generator yii\\gii\\generators\\form\\Generator */\n\necho $form->field($generator, 'tableN...
php
chosen
[ { "from": "system", "value": "Remove multilanguage picture titles since they pollute all other picture entities\n" }, { "from": "human", "value": "<?php\n\nnamespace MssPhp\\Schema\\Response;\n\nuse JMS\\Serializer\\Annotation\\AccessType;\nuse JMS\\Serializer\\Annotation\\Type;\n\nclass Picture...
php
chosen
[ { "from": "system", "value": "Update email address to ph7builder.com domain\n" }, { "from": "human", "value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2021-2022, Pierre-Henry Soria. All Rights Reserved.\n * @license MIT License; S...
php
chosen
[ { "from": "system", "value": "Add alert for posted comment\n" }, { "from": "human", "value": "<?php\n\nuse Laracasts\\Commander\\CommanderTrait;\nuse Nook\\Statuses\\LeaveCommentOnStatusCommand;\nuse Nook\\Forms\\LeaveCommentForm;\n\n/**\n * Class CommentsController\n */\nclass CommentsControlle...
php
chosen
[ { "from": "system", "value": "Correct usage of PHP shorttag.\n\ngit-svn-id: d0e296eae3c99886147898d36662a67893ae90b2@3651 653ae4dd-d31e-0410-96ef-6bf7bf53c507\n" }, { "from": "human", "value": "<div<?php echo isset( $class ) ? \" class=\\\"$class\\\"\" : ''; ?><? echo isset( $id ) ? \" id=\\\"$i...
php
chosen
[ { "from": "system", "value": "Use a recurrence's label as it's unique id.\n" }, { "from": "human", "value": "<?php\n\nnamespace Plummer\\Calendar;\n\nclass Calendar\n{\n\tprotected $events;\n\n\tprotected $recurrenceTypes;\n\n\tprotected function __construct(\\Iterator $events, $recurrenceTypes)...
php
chosen
[ { "from": "system", "value": "Remove docblock for casting \\DBAL\\Result->getIterator\n" }, { "from": "human", "value": "<?php\nnamespace XLSXExporter\\DBAL;\n\nuse EngineWorks\\DBAL\\Result;\nuse XLSXExporter\\ProviderInterface;\nuse XLSXExporter\\Providers\\ProviderIterator;\n\n/**\n * The Res...
php
chosen
[ { "from": "system", "value": "Fix bug with URL encoded wildcards\n" }, { "from": "human", "value": "<?php\nnamespace MicroAPI;\n\nclass Route\n{\n private $require = null;\n private $wildcards = null;\n\n /**\n * Set the wildcards in the route\n *\n * @param $wildcards - The...
php
chosen
[ { "from": "system", "value": "Fix session driver in cached config.\n" }, { "from": "human", "value": "<?php namespace Illuminate\\Foundation\\Console;\n\nuse Illuminate\\Console\\Command;\nuse Illuminate\\Filesystem\\Filesystem;\n\nclass ConfigCacheCommand extends Command {\n\n\t/**\n\t * The co...
php
chosen
[ { "from": "system", "value": "Tweak and simplify FormRequest validations\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Rinvex\\Support\\Traits;\n\ntrait Escaper\n{\n /**\n * Escape all values.\n *\n * @param array $data\n *\n * @return a...
php
chosen
[ { "from": "system", "value": "Return migrations helper by reference\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Active Collab DatabaseMigrations project.\n *\n * (c) A51 doo <info@activecollab.com>. All rights reserved.\n */\n\nnamespace ActiveCollab\\DatabaseMigr...
php
chosen
[ { "from": "system", "value": "Remove the devboard link as it 404's" }, { "from": "human", "value": "<?php\nif (!$mobileLayout) echo '<a href=\"#\" onclick=\"enableMobileLayout(1); return false;\" rel=\"nofollow\">Mobile view</a>';\nelse echo '<a href=\"#\" onclick=\"enableMobileLayout(-1); retur...
php
chosen
[ { "from": "system", "value": "Add translation messages to generated command\n" }, { "from": "human", "value": "<?php\n/**\n *@file\n * Contains \\Drupal\\AppConsole\\Generator\\CommandGenerator.\n */\n\nnamespace Drupal\\AppConsole\\Generator;\n\nclass CommandGenerator extends Generator\n{\n /*...
php
chosen
[ { "from": "system", "value": "Remove form_name property because it broke FormModel\n" }, { "from": "human", "value": "<?php\n\nnamespace Kregel\\FormModel\\Traits;\n\ntrait Formable\n{\n protected $form_name;\n\n /**\n * @return mixed\n */\n public function getFormName()\n {\...
php
chosen
[ { "from": "system", "value": "Fix conflict with class names\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of the Sonata Project package.\n *\n * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>\n *\n * For the full copyright and license info...
php
chosen
[ { "from": "system", "value": "Remove option to rename standard components\n" }, { "from": "human", "value": "<?php\n\ninclude_once('plugin/comments.php');\ninclude_once('plugin/comment.php');\ninclude_once('plugin/comments-email.php');\ninclude_once('plugin/comments-status.php');\n\n/**\n * The ...
php
chosen
[ { "from": "system", "value": "TASK: Send redirect after the resource was read and this imported from proxy\n" }, { "from": "human", "value": "<?php\nnamespace Sitegeist\\MagicWand\\Controller;\n\nuse Neos\\Flow\\Annotations as Flow;\nuse Neos\\Flow\\Mvc\\Controller\\ActionController;\nuse Neos\\...
php
chosen
[ { "from": "system", "value": "Change path to pending music slightly\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\t\"api\" => [\n\t\t\"limit\" => 25,\n\t],\n\t\"paths\" => [\n\t\t\"pending\" => \"/radio/music/pend\",\n\t\t\"music\" => \"/radio/music\",\n\t\t\"dj-images\" => \"/radio/dj-...
php
chosen
[ { "from": "system", "value": "Remove useless directory in autoloader.\n" }, { "from": "human", "value": "<?php\n\nnamespace mageekguy\\atoum\\tests\\units;\n\nrequire_once __DIR__ . '/../../scripts/runner.php';\n\n\\mageekguy\\atoum\\autoloader::get()\n\t->addDirectory(__NAMESPACE__, __DIR__ . '...
php
chosen
[ { "from": "system", "value": "Remove unnecessary constants from tests bootstrap\n" }, { "from": "human", "value": "<?php\r\n/**\r\n * Desire2Learn Web Serivces for Zend Framework\r\n *\r\n * LICENSE\r\n *\r\n * This source file is subject to the new BSD license that is bundled\r\n * with this pa...
php
chosen
[ { "from": "system", "value": "Add test with usleep() function\n" }, { "from": "human", "value": "<?php\n\nnamespace Isswp101\\Timer\\Test;\n\nuse Isswp101\\Timer\\Timer;\n\nclass TimerTest extends \\PHPUnit_Framework_TestCase\n{\n public function testDefaultTimerFormat()\n {\n $time...
php
chosen
[ { "from": "system", "value": "Use PHP_SAPI instead of php_sapi_name() per phpcs" }, { "from": "human", "value": "<?php\n\n/**\n * PHPUnit bootstrap file for the Diff library.\n * @licence GNU GPL v2+\n * @author Jeroen De Dauw < jeroendedauw@gmail.com >\n */\n\nif ( php_sapi_name() !== 'cli' ) {...
php
chosen
[ { "from": "system", "value": "Add callback tests from reactphp/react" }, { "from": "human", "value": "<?php\n\n(include_once __DIR__ . '/../vendor/autoload.php') OR die(PHP_EOL . 'ERROR: composer autoloader not found, run \"composer install\" or see README for instructions' . PHP_EOL);\n\nclass ...
php
chosen
[ { "from": "system", "value": "Load database config depend on application name.\n\n" }, { "from": "human", "value": "<?php defined('SYSPATH') or die('No direct script access.');\n/**\n * Arag\n *\n * @package Arag\n * @author Armen Baghumian\n * @since Version 0.3\n * @filesourc...
php
chosen