conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix for test to pass build\n" }, { "from": "human", "value": "<?php\n\ndefine('REQUEST_MICROTIME', microtime(true));\n$basePath = dirname(__DIR__);\ndefined('BASE_PATH') || define('BASE_PATH', $basePath);\nchdir($basePath);\n\n// Composer autoloading\nif (file_exist...
php
chosen
[ { "from": "system", "value": "Remove fallback part from error messages\n" }, { "from": "human", "value": "<?php\n\nnamespace Amp\\Loop;\n\n// @codeCoverageIgnoreStart\nclass DriverFactory {\n /**\n * Creates a new loop instance and chooses the best available driver.\n *\n * @retur...
php
chosen
[ { "from": "system", "value": "Revert \"FIX Assert not empty on something that actually is in every composer.json\"\n\nThis reverts commit f8cf837f6b953713c86747803808e228c648a8a4.\n" }, { "from": "human", "value": "<?php\n\nnamespace BringYourOwnIdeas\\Maintenance\\Tests\\Util;\n\nuse BringYourO...
php
chosen
[ { "from": "system", "value": "Fix the invalid characters shown in search form of K2 for mulit-byte characters.\n\n\ngit-svn-id: d0e296eae3c99886147898d36662a67893ae90b2@923 653ae4dd-d31e-0410-96ef-6bf7bf53c507\n" }, { "from": "human", "value": "<!-- searchform -->\n<?php Plugins::act( 'theme_sea...
php
chosen
[ { "from": "system", "value": "Revert \"[*] Fix predis example\"\n\nThis reverts commit bd8eec1b176e07c19427b09f6c8b65f4527fd71c.\n" }, { "from": "human", "value": "<?php\n\nrequire 'predis-0.8.3/Autoloader.php';\nPredis\\Autoloader::register();\n\n$redis_profile = Predis\\Profile\\ServerProfile:...
php
chosen
[ { "from": "system", "value": "Revert \"Removing a few lines that had to do with a different project\"\n\nThis reverts commit 27252a00156f27a96df7acd8ae5f7450d84c7cc0.\n" }, { "from": "human", "value": "<?php\ninclude_once('phpviddler.php');\n\nclass Php5viddler extends Phpviddler { \n function...
php
chosen
[ { "from": "system", "value": "Update Google Analystics Key path\n" }, { "from": "human", "value": "<?php \n\ninclude '../analytics-key.inc.php';\n\n// Override any of the default settings below:\n\n$config['site_title'] = 'schmitt.co'; // Site title\n$config['theme'] = 'default';...
php
chosen
[ { "from": "system", "value": "Remove useless function and move static methods on top\n" }, { "from": "human", "value": "<?php\n class Country extends ActiveRecordBase {\n public $name;\n public $id;\n public $shortname;\n\n public static function findByName( $name ...
php
chosen
[ { "from": "system", "value": "Add a little bit more details\n" }, { "from": "human", "value": "<h2><?= $this->get('game')->name; ?></h2>\n<a href=\"<?= $this->get('edit-link'); ?>\">Edit</a>\n" }, { "from": "gpt", "value": "<h2><?= $this->get('game')->name; ?>\n<a href=\"<?= $this->g...
php
chosen
[ { "from": "system", "value": "Improve config validation exception message\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Active Collab Utils project.\n *\n * (c) A51 doo <info@activecollab.com>. All rights reserved.\n */\n\nnamespace ActiveCollab\\ConfigLoader\\Excep...
php
chosen
[ { "from": "system", "value": "Add feature to change increments length\n" }, { "from": "human", "value": "<?php namespace SchemaExtended;\n\nuse Illuminate\\Database\\Schema\\Blueprint as IlluminateBlueprint;\nuse Illuminate\\Support\\Fluent;\n\n/**\n * Extended version of Blueprint with\n * supp...
php
chosen
[ { "from": "system", "value": "Bugifx: Use all pages strategy, if no max is defined.\n" }, { "from": "human", "value": "<?php\n\nnamespace JGM\\TableBundle\\Table\\Pagination\\Strategy;\n\n/**\n * The StrategyFactory will choose the right pagination\n * strategy in dependency of total pages and m...
php
chosen
[ { "from": "system", "value": "Allow any address line to be null\n" }, { "from": "human", "value": "<?php\n\nnamespace Z38\\SwissPayment;\n\n/**\n * This class holds a unstructured representation of a postal address\n */\nclass UnstructuredPostalAddress implements PostalAddressInterface\n{\n /...
php
chosen
[ { "from": "system", "value": "Change return type of ID to integer\n" }, { "from": "human", "value": "<?php\n\nnamespace MovingImage\\Client\\VMPro\\Entity;\n\nuse JMS\\Serializer\\Annotation\\Type;\nuse MovingImage\\Meta\\Interfaces\\VideoManagerInterface;\n\n/**\n * Class VideoManager.\n */\ncl...
php
chosen
[ { "from": "system", "value": "Fix reorder call in controller\n" }, { "from": "human", "value": "<?php\n\nnamespace Code16\\Sharp\\Http\\Api;\n\nclass EntityListController extends ApiController\n{\n\n /**\n * @param string $entityKey\n * @return \\Illuminate\\Http\\JsonResponse\n *...
php
chosen
[ { "from": "system", "value": "Clean the variable space by unsetting $data and $shared\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of endobox.\n *\n * (c) 2015-2016 YouniS Bensalah <younis.bensalah@gmail.com>\n *\n * For the full copyright and license information, please...
php
chosen
[ { "from": "system", "value": "Test coverage for unknown options\n" }, { "from": "human", "value": "<?php namespace Archon\\Tests\\DataFrame\\CSV;\n\nuse Archon\\DataFrame;\n\nclass CSVDataFrameExceptionsTest extends \\PHPUnit_Framework_TestCase {\n\n public function testOverwriteFailCSV() {\n...
php
chosen
[ { "from": "system", "value": "Improve Couchbase health check in tests\n" }, { "from": "human", "value": "<?php\n\nnamespace MatthiasMullie\\Scrapbook\\Tests\\Providers;\n\nuse MatthiasMullie\\Scrapbook\\Exception\\Exception;\nuse MatthiasMullie\\Scrapbook\\Tests\\AdapterProvider;\n\nclass Couchb...
php
chosen
[ { "from": "system", "value": "Add test for asserting method arguments\n" }, { "from": "human", "value": "<?php\n\nnamespace MockaTests;\n\nuse Mocka\\MethodMock;\n\nclass MethodMockTest extends \\PHPUnit_Framework_TestCase {\n\n public function testIntegrated() {\n $method = new Method...
php
chosen
[ { "from": "system", "value": "Fix priority handling that prevents it to work\n" }, { "from": "human", "value": "<?php\n\nnamespace Knp\\JsonSchemaBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\Depen...
php
chosen
[ { "from": "system", "value": "[TASK] Fix mail namespace + usage\n" }, { "from": "human", "value": "<?php\nnamespace DreadLabs\\Vantomas\\Mailer;\n\nuse DreadLabs\\VantomasWebsite\\Mail\\ComposerInterface;\nuse DreadLabs\\VantomasWebsite\\Mail\\ConveyableInterface;\nuse DreadLabs\\VantomasWebsite...
php
chosen
[ { "from": "system", "value": "Remove name from shows because we don't use it any more\n" }, { "from": "human", "value": "<?php\ninclude( '../config.php' );\n\n$url = 'http://www.myepisodes.com/rss.php?feed=mylist&uid=mirrorer&pwdmd5=' . $myEpisodes;\n\n$data = file_get_contents( $url );\n\n$show...
php
chosen
[ { "from": "system", "value": "Change the wording and link directly to packagist.org.\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Composer.\n *\n * (c) Nils Adermann <naderman@naderman.de>\n * Jordi Boggiano <j.boggiano@seld.be>\n *\n * For the full copyright and l...
php
chosen
[ { "from": "system", "value": "Add a query helper to add subQuery to Eloquent queries\n" }, { "from": "human", "value": "<?php namespace Exolnet\\Database;\n\nuse Illuminate\\Database\\Query\\Builder;\n\nclass QueryHelper\n{\n\tpublic static function toSql(Builder $query)\n\t{\n\t\t$sql = $query-...
php
chosen
[ { "from": "system", "value": "Create dir if it doesn't exist yet\n" }, { "from": "human", "value": "<?php\n\nnamespace Driebit\\Prepper\\Cache\\Store;\n\nclass FileStore implements StoreInterface\n{\n private $path;\n \n public function __construct($path)\n {\n $this->path = $...
php
chosen
[ { "from": "system", "value": "Fix parameters to instantiate Unofficial classes.\n" }, { "from": "human", "value": "<?php\n\nnamespace GrowthBeatUnOfficial\\GrowthPush;\n\nclass GrowthPush\n{\n /** @var \\GrowthPush $_growthPush */\n private $_growthPush = null;\n\n public function __con...
php
chosen
[ { "from": "system", "value": "Update for new extension API\n" }, { "from": "human", "value": "<?php namespace Flarum\\Sticky;\n\nuse Flarum\\Support\\ServiceProvider;\nuse Illuminate\\Contracts\\Events\\Dispatcher;\n\nclass StickyServiceProvider extends ServiceProvider\n{\n /**\n * Bootst...
php
chosen
[ { "from": "system", "value": "Change the due datetime field for calculating late\n" }, { "from": "human", "value": " <thead>\n <tr>\n <th>Item Name</th>\n <th>Borrower Name</th>\n <th>Borrower NetID</th>\n <th>Pickup Time</th>\n <th>Due Time</th>\n </tr>\n </thea...
php
chosen
[ { "from": "system", "value": "Store + Shipping + Menus\n\n* Using new Store feature from Elcodi\n* Added Store management in Admin\n* Changed all definitions that was depending on such implementation\n* Removed under construction logic and tests\n\n* Removed menu fixtures\n* Defined them as dynamic content....
php
chosen
[ { "from": "system", "value": "Remove arrows from the tl string itself\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Pagination Language Lines\n |-------------------------------------------...
php
chosen
[ { "from": "system", "value": "Remove platform/login from web command\n" }, { "from": "human", "value": "<?php\n\nnamespace Platformsh\\Cli\\Command;\n\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\nclass WebCommand extends U...
php
chosen
[ { "from": "system", "value": "Add cli commands to wp cli\n" }, { "from": "human", "value": "<?php\n\n/**\n * Manage Papi from CLI.\n */\nclass Papi_CLI extends WP_CLI_Command {\n}\n" }, { "from": "gpt", "value": "<?php\n\n/**\n * Manage Papi from CLI.\n */\nclass Papi_CLI extends WP_...
php
chosen
[ { "from": "system", "value": "Comment updates and SPDX identfier" }, { "from": "human", "value": "<?php\n\n/*\nCopyright 2016 Brian Warner\n\nThis file is part of Facade, and is made available under the terms of the GNU General Public License version 2.\n*/\n\n?>\n\n</div> <!-- #content -->\n\n<...
php
chosen
[ { "from": "system", "value": "Check if has session with its own method\n" }, { "from": "human", "value": "<?php\n\nnamespace Cart;\n\nuse Cart\\Contracts\\SessionContract;\n\n/**\n * Class Session\n * @package Cart\n */\nclass Session implements SessionContract\n{\n /**\n * @var string\n ...
php
chosen
[ { "from": "system", "value": "Update to load the .env file using existing technologies.\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n /*\n * Database connections\n * Currently only SQLite & mySQL are set up\n * others to come soon\n */\n \n 'connections' => [\n ...
php
chosen
[ { "from": "system", "value": "Update loading of core application to allow existing entity to take param change\n" }, { "from": "human", "value": "<?php\n\nnamespace SimplyTestable\\WorkerBundle\\DataFixtures\\ORM;\n\nuse Doctrine\\Common\\DataFixtures\\AbstractFixture;\nuse Doctrine\\Common\\Dat...
php
chosen
[ { "from": "system", "value": "Add FontAwesome icons to the tool registration.\n" }, { "from": "human", "value": "<?php\n\n$REGISTER_LTI2 = array(\n\"name\" => \"External Grades Tool\",\n\"short_name\" => \"External Grades\",\n\"description\" => \"This tool allows both the students and instructor...
php
chosen
[ { "from": "system", "value": "Move ob_get_level() script initialization check to libphutil from arcanist\n\nSummary: See D1950, D1951. We should always normalize any output buffering initialized in the environmen when running scripts.\n\nTest Plan: Ran \"arc\".\n\nReviewers: btrahan, killermonk\n\nReviewed ...
php
chosen
[ { "from": "system", "value": "Fix home link when home is in other category\n" }, { "from": "human", "value": "<?php\nclass Kwc_Box_HomeLink_Component extends Kwc_Abstract_Composite_Component\n{\n public static function getSettings()\n {\n $ret = parent::getSettings();\n $ret[...
php
chosen
[ { "from": "system", "value": "Enable strict types in importable interface.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2018-2019, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full copyr...
php
chosen
[ { "from": "system", "value": "Change auth on team invite request to check if the user is team admin rather that system admin\n" }, { "from": "human", "value": "<?php\n\nnamespace {{App\\}}Http\\Requests;\n\nuse Auth;\nuse Illuminate\\Foundation\\Http\\FormRequest;\n\nclass UserInviteRequest exte...
php
chosen
[ { "from": "system", "value": "Throw more applicable exception, and spell it right this time.\n" }, { "from": "human", "value": "<?php\nnamespace ComplexPie;\n\nclass Data extends Extension\n{\n protected static $static_ext = array();\n \n public static function add_static_extension($ext...
php
chosen
[ { "from": "system", "value": "Fix Result status in Security Checker" }, { "from": "human", "value": "<?php\n\nnamespace PragmaRX\\Health\\Checkers;\n\nuse PragmaRX\\Health\\Support\\Result;\nuse SensioLabs\\Security\\SecurityChecker as SensioLabsSecurityChecker;\n\nclass SecurityChecker extends ...
php
chosen
[ { "from": "system", "value": "Fix duplicate call to licenses seeder\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass DatabaseSeeder extends Seeder\n{\n /**\n * Run the database seeds.\n *\n * @return...
php
chosen
[ { "from": "system", "value": "Fix when depth becomes zero.\n" }, { "from": "human", "value": "<?php\n\nnamespace Yajra\\CMS\\Presenters;\n\nuse Laracasts\\Presenter\\Presenter;\nuse Yajra\\CMS\\Contracts\\UrlGenerator;\n\nclass MenuPresenter extends Presenter\n{\n /**\n * Link href target...
php
chosen
[ { "from": "system", "value": "Add language href to link\n" }, { "from": "human", "value": "<?php\n/**\n * Class LanguageLink | LanguageLink.php\n * @package Faulancer\\View\\Helper\n * @author Florian Knapp <office@florianknapp.de>\n */\nnamespace Faulancer\\View\\Helper;\n\nuse Faulancer\\Serv...
php
chosen
[ { "from": "system", "value": "Use url when presenting the menu url.\n" }, { "from": "human", "value": "<?php\n\nnamespace Yajra\\CMS\\Presenters;\n\nuse Laracasts\\Presenter\\Presenter;\nuse Yajra\\CMS\\Contracts\\UrlGenerator;\n\nclass MenuPresenter extends Presenter\n{\n /**\n * Link hr...
php
chosen
[ { "from": "system", "value": "Allow passing of constructor arguments on make method helper.\n" }, { "from": "human", "value": "<?php\n\nnamespace Yajra\\DataTables\\Html;\n\nuse BadMethodCallException;\nuse Yajra\\DataTables\\Contracts\\DataTableHtmlBuilder;\n\n/**\n * @mixin Builder\n */\nabstr...
php
chosen
[ { "from": "system", "value": "Use class_exists as an annotation loader\n" }, { "from": "human", "value": "<?php\n\n$file = __DIR__.'/../vendor/autoload.php';\nif (!file_exists($file)) {\n throw new RuntimeException('Install dependencies to run test suite.');\n}\n\nrequire_once $file;\n\nuse D...
php
chosen
[ { "from": "system", "value": "Fix bug causing header not to be regenerated\n" }, { "from": "human", "value": "<?php\n\nnamespace ZeroRPC;\n\nclass ChannelException extends \\RuntimeException {}\n\nclass Channel {\n const PROTOCOL_VERSION = 3;\n\n private static $channels = array();\n\n protec...
php
chosen
[ { "from": "system", "value": "Fix helper function having public\n" }, { "from": "human", "value": "<?php\n\nif ( ! function_exists('moneyFormat'))\n{\n\tpublic function moneyFormat($amount, $currency)\n\t{\n\t\t$money = Gerardojbaez\\Money\\Money($amount, $currency);\n\n\t\treturn $money->format...
php
chosen
[ { "from": "system", "value": "Add Google map API key\n" }, { "from": "human", "value": "\t</div><!-- .row -->\n</div><!-- .container -->\n<div class=\"hidden-script\">\n\t{{ HTML::script('https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js') }}\n\t{{ HTML::script('https://maps.googl...
php
chosen
[ { "from": "system", "value": "Improve benchmark by reporting stream position once stream closes" }, { "from": "human", "value": "<?php\n\nrequire __DIR__ . '/../vendor/autoload.php';\n\n$args = getopt('i:o:t:');\n$if = isset($args['i']) ? $args['i'] : '/dev/zero';\n$of = isset($args['o']) ? $arg...
php
chosen
[ { "from": "system", "value": "Make CurrentRequest be a proxy for the request instance.\n" }, { "from": "human", "value": "<?php\n\nnamespace Electro\\Interfaces\\Http\\Shared;\n\nuse Psr\\Http\\Message\\ServerRequestInterface;\n\n/**\n * A service that allows access to the ServerRequestInterface...
php
chosen
[ { "from": "system", "value": "Fix rendering of non-link current items\n" }, { "from": "human", "value": "<?php if($item->shouldBeRendered()): ?>\n <li <?php echo $view['menu']->attributes($view['menu']->getItemAttributes($item)) ?>>\n <a href=\"<?php echo $item->getUri() ?>\"><?php ech...
php
chosen
[ { "from": "system", "value": "Add error field when creating comment\n" }, { "from": "human", "value": "@extends('layouts.application')\n\n@section('main')\n\n<h1>{{{ $post->title }}}</h1>\n<p>{{{ $post->body }}}</p>\n\n<hr>\n\n<h2>Comment</h2>\n\n<table class=\"table\">\n @foreach ($comments ...
php
chosen
[ { "from": "system", "value": "Use the FQCN as name for Editor Blocks\n" }, { "from": "human", "value": "<?php\n\nnamespace Common\\BlockEditor\\Blocks;\n\nuse JsonSerializable;\n\nabstract class EditorBlock implements JsonSerializable\n{\n /** @var array */\n protected $data;\n\n public...
php
chosen
[ { "from": "system", "value": "Fix ROOT_DIR already defined error" }, { "from": "human", "value": "<?php\ndefine('ROOT_DIR', dirname(__FILE__));\ndefine('ROOT_URL', substr($_SERVER['PHP_SELF'], 0, - (strlen($_SERVER['SCRIPT_FILENAME']) - strlen(ROOT_DIR))));\n?>" }, { "from": "gpt", "...
php
chosen
[ { "from": "system", "value": "Complete the information for the help-plugin\n" }, { "from": "human", "value": "<?php\nrequire_once __DIR__ . '/vendor/autoload.php';\n\nuse jlawrence\\eos\\Parser;\nuse jlawrence\\eos\\Graph;\n\nclass math extends Script\n{\n\tpublic function run()\n\t{\n\t\tif(str...
php
chosen
[ { "from": "system", "value": "Fix pb in base test class\n" }, { "from": "human", "value": "<?php\n\nnamespace Neblion\\ScrumBundle\\Tests;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase as BaseWebTestCase;\n\nabstract class WebTestCase extends BaseWebTestCase\n{\n protected functi...
php
chosen
[ { "from": "system", "value": "Fix for typing mistake of requireds which should be required in create user form\n" }, { "from": "human", "value": "@extends(Config::get('cpanel::views.layout'))\n\n@section('header')\n <h3>\n <i class=\"icon-user\"></i>\n Users\n </h3>\n@stop\n@...
php
chosen
[ { "from": "system", "value": "Use traits instead of inheritance for model helper\n" }, { "from": "human", "value": "<?php\n\nnamespace MicroAPI;\n\nuse MicroAPI\\Injector;\n\nclass Model\n{\n /**\n * Access a service from the injector\n *\n * @param $serviceName - The name of the ...
php
chosen
[ { "from": "system", "value": "Allow partial definition of the configuration\n" }, { "from": "human", "value": "<?php\n\nnamespace photon\\auth;\nuse \\photon\\config\\Container as Conf;\n\nclass MongoDBBackend\n{\n private static $defaultConfig = array(\n 'user_class' => '\\photon\\...
php
chosen
[ { "from": "system", "value": "Handle setting subjects in MUC\n" }, { "from": "human", "value": "<?php\n\nnamespace Moxl\\Xec\\Action\\Muc;\n\nuse Moxl\\Xec\\Action;\nuse Moxl\\Stanza\\Muc;\n\nclass SetSubject extends Action\n{\n private $_to;\n private $_subject;\n \n public function...
php
chosen
[ { "from": "system", "value": "Add default emtpy array value.\n" }, { "from": "human", "value": "<?php\n\nnamespace Yajra\\CMS\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Roumen\\Asset\\Asset;\n\nclass AssetServiceProvider extends ServiceProvider\n{\n /**\n * Bootstrap th...
php
chosen
[ { "from": "system", "value": "Attach common strategies via factory\n\nNo need for a special listener to attach the common strategies if\nthe factory can simply add them as well.\n" }, { "from": "human", "value": "<?php\nnamespace SlmQueue\\Factory;\n\nuse SlmQueue\\Listener\\WorkerInitializerLis...
php
chosen
[ { "from": "system", "value": "Improve safe mode notification using the new Orchestra\\Messages::extend() API\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\App;\nuse Illuminate\\Suppor...
php
chosen
[ { "from": "system", "value": "Add empty return to Telegram webhook.\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException;\nuse TelegramBot\\Api\\BotAp...
php
chosen
[ { "from": "system", "value": "Add part message to event\n" }, { "from": "human", "value": "<?php namespace Dan\\Irc\\Packets; \n\n\nuse Dan\\Contracts\\PacketContract;\nuse Dan\\Irc\\Connection;\n\nclass PacketPart implements PacketContract {\n\n\n public function handle(Connection $connectio...
php
chosen
[ { "from": "system", "value": "Add more databases for transaction thingy\n" }, { "from": "human", "value": "<?php\n\n/**\n * Copyright 2015-2017 ppy Pty. Ltd.\n *\n * This file is part of osu!web. osu!web is distributed with the hope of\n * attracting more community contributions to the ...
php
chosen
[ { "from": "system", "value": "Change default value for root_dir\n" }, { "from": "human", "value": "<?php\n\nnamespace Ftrrtf\\RollbarBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterfa...
php
chosen
[ { "from": "system", "value": "Set locale for unit tests." }, { "from": "human", "value": "<?php\n\nrequire_once( dirname( __FILE__ ).\"/../lib/FormalTheory/Autoload.php\" );\n\nFormalTheory_Autoload::register();\n\n?>" }, { "from": "gpt", "value": "<?php\n\nsetlocale( LC_ALL, 'en_US....
php
chosen
[ { "from": "system", "value": "Remove green background from featured promo title\n" }, { "from": "human", "value": "{{--\n $featured_promo => array // ['link', 'title', 'relative_url', 'excerpt']\n--}}\n\n@if(!empty($featured_promo['link']))<a href=\"{{ $featured_promo['link'] }}\">@endif\n ...
php
chosen
[ { "from": "system", "value": "Declare that our SQL functions just read data\n" }, { "from": "human", "value": "<?php\n\nuse Phinx\\Migration\\AbstractMigration;\nuse Phinx\\Db\\Adapter\\MysqlAdapter;\n\nclass InitialFunctions extends AbstractMigration\n{\n public function up() {\n $query...
php
chosen
[ { "from": "system", "value": "Fix incompatible override of Exception's built-in message member\n" }, { "from": "human", "value": "<?php\n\nnamespace Emergence\\Connectors\\Exceptions;\n\nclass SyncException extends \\Exception\n{\n private $message;\n private $context;\n\n public functi...
php
chosen
[ { "from": "system", "value": "Fix issue with phpunit and sessions\n" }, { "from": "human", "value": "<?php\n\nnamespace Michaeljennings\\Carpenter\\Tests;\n\nuse Michaeljennings\\Carpenter\\Carpenter;\nuse PHPUnit_Framework_TestCase;\n\nclass TestCase extends PHPUnit_Framework_TestCase\n{\n\tpub...
php
chosen
[ { "from": "system", "value": "Move footer into container in guest-layout\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html lang=\"en\">\n <head>\n @include('partials/header-sidewide-meta')\n\n <!-- [[ HTML::style('css/bootstrap.min.css') ]] -->\n <!-- [[ HTML::style('css/bootst...
php
chosen
[ { "from": "system", "value": "Update the URI for linking the events on google maps to the new URI scheme from google maps.\n" }, { "from": "human", "value": "\n@if (!$event->isIREX())\n<tr class=\"informational-meeting\">\n@elseif ($event->isCanceled())\n<tr class=\"canceled-meeting\">\n@else\n<...
php
chosen
[ { "from": "system", "value": "Remove references to \"multiple addressbooks\" :-(\n" }, { "from": "human", "value": "<?php // Include Style and Script\nOC_Util::addScript('contacts','interface');\nOC_Util::addStyle('contacts','styles');\n?>\n\n<?php\n/*<div class=\"contacts_addressbooks\">\n\t<di...
php
chosen
[ { "from": "system", "value": "Fix a typo in the script name\n" }, { "from": "human", "value": "<?php\n\nnamespace kop\\y2sp\\assets;\n\nuse yii\\web\\AssetBundle;\n\n/**\n * This is \"InfiniteAjaxScrollAsset\" class.\n *\n * This class is an asset bundle for {@link https://github.com/webcreate/i...
php
chosen
[ { "from": "system", "value": "Update test to use the Header constructor\n\n" }, { "from": "human", "value": "<?php\n\nuse TZK\\Taiga\\Header;\n\ndescribe('Header', function () {\n it('sanitizes header name to a valid one', function () {\n $tests = [\n 'accept-language' => 'a...
php
chosen
[ { "from": "system", "value": "Use relative path when including Composer autoloader." }, { "from": "human", "value": "<?php\n/**\n * @package Wsdl2PhpGenerator\n */\nuse Wsdl2PhpGenerator\\Console\\Application;\nuse Wsdl2PhpGenerator\\Console\\GenerateCommand;\nuse Wsdl2PhpGenerator\\Generator;\n...
php
chosen
[ { "from": "system", "value": "Add json flag to config spec\n" }, { "from": "human", "value": "<?php\n\nreturn array(\n\n 'interactive' => array(\n 'runtime' => '',\n 'file' => '<bool>',\n 'default' => false,\n 'desc' => 'Gather input interactively',\n ),\n\n 'verbose' => array(\n ...
php
chosen
[ { "from": "system", "value": "Fix documentation for OrderItem getter/setter" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was d...
php
chosen
[ { "from": "system", "value": "Include user agent in logged CSP reports" }, { "from": "human", "value": "<?php\n\nnamespace Nelmio\\SecurityBundle\\ContentSecurityPolicy\\Violation\\Log;\n\nuse Nelmio\\SecurityBundle\\ContentSecurityPolicy\\Violation\\Report;\nuse Psr\\Log\\LoggerInterface;\n\ncl...
php
chosen
[ { "from": "system", "value": "Add more tests for the Feature factory\n" }, { "from": "human", "value": "<?php\nnamespace App\\Test\\TestCase\\Feature;\n\nuse App\\Feature\\Factory;\nuse App\\Feature\\FeatureInterface;\nuse App\\Feature\\Type\\BaseFeature;\nuse Cake\\TestSuite\\TestCase;\n\n/**\n...
php
chosen
[ { "from": "system", "value": "Remove debugging from GET method.\n" }, { "from": "human", "value": "<?php\n\n/**\n * @file\n * GET Apple News Article.\n */\n\nnamespace ChapterThree\\AppleNews;\n\n/**\n * Document me.\n */\nclass PushAPI_Get extends PushAPI_Base {\n\n protected function Debug($r...
php
chosen
[ { "from": "system", "value": "Use self instead of class name\n" }, { "from": "human", "value": "<?php\nnamespace MicroFW\\Templates;\n\nuse MicroFW\\Core\\TemplateDoesNotExistException;\n\nclass Template\n{\n /** @var string */\n private $templatePath;\n\n /** @var array */\n private...
php
chosen
[ { "from": "system", "value": "FIX public attribute issue while creating defect\n" }, { "from": "human", "value": "<?php\n\nnamespace Solidifier\\Visitors\\Property;\n\nuse Solidifier\\Visitors\\AbstractClassVisitor;\nuse PhpParser\\Node;\nuse PhpParser\\Node\\Stmt\\Property;\n\nclass PublicAttri...
php
chosen
[ { "from": "system", "value": "Delete old teams before seeding\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nuse Illuminate\\Support\\Facades\\File;\nuse Illuminate\\Support\\Facades\\DB;\n\nclass TeamTableSeeder extends Seeder\n{\n /**\n * Run the database...
php
chosen
[ { "from": "system", "value": "Fix single user model and blog example.\n" }, { "from": "human", "value": "<?php\n// Jivoo\n// Copyright (c) 2015 Niels Sonnich Poulsen (http://nielssp.dk)\n// Licensed under the MIT license.\n// See the LICENSE file or http://opensource.org/licenses/MIT for more in...
php
chosen
[ { "from": "system", "value": "Add JWT content type constant" }, { "from": "human", "value": "<?php\n\nnamespace JWX\\JWT\\Parameter;\n\n\n/**\n * Implements 'Content Type' parameter.\n *\n * @link https://tools.ietf.org/html/rfc7515#section-4.1.10\n */\nclass ContentTypeParameter extends Registe...
php
chosen
[ { "from": "system", "value": "Fix not found autoload on local install\n" }, { "from": "human", "value": "<?php\n\nrequire_once __DIR__.'/vendor/autoload.php';\n\ndefine('MANALIZE_DIR', __DIR__);\ndefine('MANALIZE_TMP_ROOT_DIR', sys_get_temp_dir().'/Manala');\ndefine('UPDATE_FIXTURES', filter_var...
php
chosen
[ { "from": "system", "value": "Fix problem in database seeds\n" }, { "from": "human", "value": "<?php\n\n\nnamespace Stock\\Database\\Seeds;\n\n\nclass AddUserTypeDatas extends \\CodeIgniter\\Database\\Seeder\n{\n public function run()\n {\n $data=[\n ['name'=>'Utilisateu...
php
chosen
[ { "from": "system", "value": "Fix GH-3 - Fallback to relative finding (just a guess) instead of dying.\n" }, { "from": "human", "value": "<?php\r\n\r\n// Try to find the application root directory.\r\n// Env Variable 'ApplicationPath' is set by the add_environment_variables.ps1\r\n// script. The...
php
chosen
[ { "from": "system", "value": "Remove code form json response\n" }, { "from": "human", "value": "<?php\nnamespace intpp\\yii\\actions;\n\n/**\n * Class JsonResponse\n *\n * @package intpp\\yii\\actions\n */\nclass JsonResponse extends Response\n{\n\n public function prepare($data = [])\n {\...
php
chosen
[ { "from": "system", "value": "Add constructor to value encoders\n\nWe are adding this so we can extend constructors in subclasses, where needed\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Active Collab Controller project.\n *\n * (c) A51 doo <info@activecollab.com...
php
chosen
[ { "from": "system", "value": "Return all don't executed commands\n" }, { "from": "human", "value": "<?php\n\nnamespace Command;\n\nuse Database\\Connect;\nuse Config\\Config;\n\nclass getData\n{\n /**\n * setData constructor.\n *\n * @param \\Aura\\Web\\Request $request\n * @p...
php
chosen
[ { "from": "system", "value": "Add options to select field.\n" }, { "from": "human", "value": "<?php\n\nnamespace Webup\\LaravelForm\\Elements;\n\nclass Select extends Base\n{\n protected $type;\n protected $options = [];\n\n public function __construct($type)\n {\n parent::__c...
php
chosen
[ { "from": "system", "value": "Remove the DoctrineBundle from the testing embeded kernel.\n" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\n\nclass AppKernel extends Kernel\n{\n public function reg...
php
chosen