conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add the id to the pivot\n" }, { "from": "human", "value": "<?php namespace Modules\\Media\\Support\\Traits;\n\ntrait MediaRelation\n{\n /**\n * Make the Many To Many Morph To Relation\n * @return object\n */\n public function files()\n {\n ...
php
chosen
[ { "from": "system", "value": "Remove dependency on KnowledgeGraph object.\n" }, { "from": "human", "value": "<?php\nnamespace actsmart\\actsmart\\Interpreters\\KnowledgeGraph\\DGraph;\n\nuse actsmart\\actsmart\\Interpreters\\KnowledgeGraph\\KnowledgeGraphInterpreter;\nuse actsmart\\actsmart\\Int...
php
chosen
[ { "from": "system", "value": "Use built-in _format to enable xml output\n" }, { "from": "human", "value": "<?php\n\nnamespace Kunstmaan\\SitemapBundle\\Controller;\n\nuse Kunstmaan\\AdminBundle\\Helper\\Security\\Acl\\Permission\\PermissionMap;\nuse Kunstmaan\\NodeBundle\\Helper\\NodeMenu;\nuse ...
php
chosen
[ { "from": "system", "value": "Fix single page keywords definition in migration 20181019010145\n" }, { "from": "human", "value": "<?php\n\nnamespace Concrete\\Core\\Updater\\Migrations\\Migrations;\n\nuse Concrete\\Core\\Page\\Page;\nuse Concrete\\Core\\Updater\\Migrations\\AbstractMigration;\nus...
php
chosen
[ { "from": "system", "value": "Change Class Name for importer" }, { "from": "human", "value": "<?php\r\n\r\nnamespace Concrete\\Core\\Updater\\Migrations\\Migrations;\r\n\r\nuse Concrete\\Core\\Backup\\ContentImporter;\r\nuse Concrete\\Core\\Updater\\Migrations\\AbstractMigration;\r\nuse Concrete...
php
chosen
[ { "from": "system", "value": "Update to work with new composer version\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of rg\\broker.\n *\n * (c) ResearchGate GmbH <bastian.hofmann@researchgate.net>\n *\n * For the full copyright and license information, please view the LICENS...
php
chosen
[ { "from": "system", "value": "Fix custom router incompatibility, code style" }, { "from": "human", "value": "<?php\n\nnamespace Kunstmaan\\DashboardBundle\\Helper\\Google;\nuse Google_Client;\nuse Symfony\\Cmf\\Component\\Routing\\ChainRouter;\nuse Symfony\\Component\\Routing\\Generator\\UrlGene...
php
chosen
[ { "from": "system", "value": "Correct property and parameter name\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenConext\\EngineBlock\\Driver\\File;\n\nuse OpenConext\\EngineBlock\\Assert\\Assertion;\nuse OpenConext\\EngineBlock\\Driver\\StorageDriver;\n\nfinal class FileStorageDriver ...
php
chosen
[ { "from": "system", "value": "Add hint about actual type\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Doctrine\\Migrations\\Provider;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Doctrine\\Migrations\\Provider\\Exception\\NoMappingFound;\nuse Doctrine\\ORM\\En...
php
chosen
[ { "from": "system", "value": "Update test to ignore refund-payments for admins\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Tests\\Feature;\n\nuse Spatie\\Permission\\Models\\Permission;\nuse Spatie\\Permission\\Models\\Role;\nuse Tests\\TestCase;\n\nclass Pe...
php
chosen
[ { "from": "system", "value": "Fix style for expected autoloader class\n" }, { "from": "human", "value": "<?php\n/**\n * Generated autoloader for Zend\\Di\n */\n\nnamespace ZendTest\\Di\\Generated;\n\nuse function spl_autoload_register;\nuse function spl_autoload_unregister;\n\nclass Autoloader\n...
php
chosen
[ { "from": "system", "value": "Fix for POP3 by disabling TLS explicitly.\n\nbased on this: http://moodle.org/mod/forum/discuss.php?d=1884\n" }, { "from": "human", "value": "<?PHP // $Id$\n // Authentication by looking up a POP3 server\n\nfunction auth_user_login ($username, $password) {\n/...
php
chosen
[ { "from": "system", "value": "[MOD] Add additional context infrmation for different styling of trackers fields in search content\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@36281 b456876b-0849-0410-b77d-98878d47e9d5\n" }, { "from": "human", "value": "<?php\n// (c) Copyright 2002-2011...
php
chosen
[ { "from": "system", "value": "Fix content localizator for php7.2\n" }, { "from": "human", "value": "<?php\n\nnamespace Milax\\Mconsole\\Processors;\n\nuse Milax\\Mconsole\\Contracts\\ContentLocalizator as Repository;\nuse Milax\\Mconsole\\Models\\Compiled;\n\nclass ContentLocalizator implements ...
php
chosen
[ { "from": "system", "value": "Add constants for theme root and public directories\n" }, { "from": "human", "value": "<?php\n\n/*\n* Theme options\n* -------------\n* Here we decide what features fo WordPress we want to enable,\n* as well as deciding some custom function support stuff too.\n*/\n\...
php
chosen
[ { "from": "system", "value": "Use `HHVM_VERSION` instead of `HPHP_VERSION`.\n\nSeems there's a chance that `HPHP_VERSION` may be removed one day (see: facebook/hhvm@1632ca1).\n" }, { "from": "human", "value": "<?php\nrequire __DIR__ . '/../vendor/autoload.php';\nrequire __DIR__ . '/../src/Framew...
php
chosen
[ { "from": "system", "value": "Disable security configuration service IDs sorting.\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 cop...
php
chosen
[ { "from": "system", "value": "Use core object type when checking instanceof\n" }, { "from": "human", "value": "<?php\n\n\n/**\n * Skeleton subclass for representing a row from the 'vendor_catalog_item' table.\n *\n * \n *\n * You should add additional methods to this class to meet the\n * applic...
php
chosen
[ { "from": "system", "value": "Work on user specific issues\n" }, { "from": "human", "value": "@layout('layouts/front-end')\n\n@section('content')\n <div class=\"row\">\n <div class=\"col-sm-offset-1 col-sm-10\">\n <div class=\"panel panel-default\">\n <div cla...
php
chosen
[ { "from": "system", "value": "[AllBundles] Fix incorrect namespaces in test classes\n" }, { "from": "human", "value": "<?php\n\nnamespace Kunstmaan\\PagePartBundle\\Tests\\PagePartConfigurationReader;\n\nuse Kunstmaan\\PagePartBundle\\PageTemplate\\PageTemplate;\nuse Kunstmaan\\PagePartBundle\\P...
php
chosen
[ { "from": "system", "value": "Update Uri::build_get_query to utilize http_build_query()\n" }, { "from": "human", "value": "<?php\n\n/**\n * Fuel is a fast, lightweight, community driven PHP5 framework.\n *\n * @package Fuel\n * @version 1.0\n * @author Fuel Development Team\n * @licens...
php
chosen
[ { "from": "system", "value": "Update Anime to Use New Communicator\n\nChange the Anime details controller to use the renamed communicator\nservice.\n" }, { "from": "human", "value": "<?php\nnamespace Atarashii\\APIBundle\\Controller;\n\nuse FOS\\RestBundle\\Controller\\FOSRestController;\nuse FO...
php
chosen
[ { "from": "system", "value": "Allow suppression of the file extension option.\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of the Witti Project Utils package.\n *\n * (c) Greg Payne\n *\n * For the full copyright and license information, please view the LICENSE\n * file tha...
php
chosen
[ { "from": "system", "value": "Make credentials required when handling exceptions\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Active Collab Authentication project.\n *\n * (c) A51 doo <info@activecollab.com>. All rights reserved.\n */\n\nnamespace ActiveCollab\\Aut...
php
chosen
[ { "from": "system", "value": "Add a change to test\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\Feature;\n\nuse App\\User;\nuse Illuminate\\Support\\Facades\\DB;\nuse Tests\\TestCase;\nuse Illuminate\\Foundation\\Testing\\DatabaseTransactions;\n\nclass CategoryTest extends TestCa...
php
chosen
[ { "from": "system", "value": "Add the original body field to the replies table.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateRepliesTable extends Migration {\n\n\t/**\n\t * Run the migrat...
php
chosen
[ { "from": "system", "value": "Fix the exception message when the valitor has a network range\n" }, { "from": "human", "value": "<?php\n\nnamespace Respect\\Validation\\Exceptions;\n\nclass IpException extends ValidationException\n{\n\n public static $defaultTemplates = array(\n self::M...
php
chosen
[ { "from": "system", "value": "Contacts: Add id to vars with id in them\n" }, { "from": "human", "value": "<?php\n/**\n * Copyright (c) 2011-2012 Thomas Tanghus <thomas@tanghus.net>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-READM...
php
chosen
[ { "from": "system", "value": "Change to use default include_path as fallback.\n" }, { "from": "human", "value": "<?php\nset_include_path('phar://' . __DIR__ . '/p2pear.phar');\nerror_reporting(E_ALL & ~(E_NOTICE | E_STRICT | E_DEPRECATED));\nrequire __DIR__ . '/vendor/.composer/autoload.php';\nr...
php
chosen
[ { "from": "system", "value": "[Readability] Store username referer into a variable\n" }, { "from": "human", "value": "<?php\n/**\n * @author Pierre-Henry Soria <ph7software@gmail.com>\n * @copyright (c) 2012-2019, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU Gene...
php
chosen
[ { "from": "system", "value": "Fix PHPDoc wrong type annotation\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the PhpTabs package.\n *\n * Copyright (c) landrok at github.com/landrok\n *\n * For the full copyright and license information, please see\n * <https://github.c...
php
chosen
[ { "from": "system", "value": "Fix call for status\nThis might fix the UI call, but probably not\n" }, { "from": "human", "value": "<?php\n\n/*\n PufferPanel - A Minecraft Server Management Panel\n Copyright (c) 2013 Dane Everitt\n\n This program is free software: you can redistribute it and/o...
php
chosen
[ { "from": "system", "value": "Add test case for new home page style\n" }, { "from": "human", "value": "<?php\n\n/** @var \\Codeception\\Scenario $scenario */\n\n$scenario->incomplete('not yet implemented');\n\n/*\n$I = new AcceptanceTester($scenario);\n$I->populateDBData1();\n\n- Activate the lo...
php
chosen
[ { "from": "system", "value": "Correct config for console environment\n" }, { "from": "human", "value": "<?php\n$params = array_merge(\n require(__DIR__ . '/../../common/config/params.php'),\n require(__DIR__ . '/../../common/config/params-local.php'),\n require(__DIR__ . '/params.php'),...
php
chosen
[ { "from": "system", "value": "Clean up lookupdomain int test\n" }, { "from": "human", "value": "<?php\n\nuse OpenSRS\\domains\\lookup\\LookupDomain;\n\nclass LookupDomainIntegrationTest extends PHPUnit_Framework_TestCase\n{\n\n /**\n * Should be able to do a lookup on google.com \n * ...
php
chosen
[ { "from": "system", "value": "Remove the french home page data. Only seed an English page.\n" }, { "from": "human", "value": "<?php namespace Modules\\Page\\Database\\Seeders;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Database\\Seeder;\nuse Modules\\Page\\Repositories\\PageR...
php
chosen
[ { "from": "system", "value": "Put classes into config file\n" }, { "from": "human", "value": "<?php\n\n/**\n * Config for the connections for the test\n */\nreturn [\n 'mysql' => [\n 'type' => 'mysql',\n 'host' => 'localhost',\n 'database' => 'sample_database',\n ...
php
chosen
[ { "from": "system", "value": "Support CDATA with leading spaces" }, { "from": "human", "value": "<?php declare(strict_types=1);\n/**\n * Created by PhpStorm.\n * User: alex\n * Date: 26/10/14\n * Time: 00:26\n */\nnamespace FeedIo\\Rule;\n\nuse FeedIo\\Feed\\NodeInterface;\nuse FeedIo\\RuleAbstr...
php
chosen
[ { "from": "system", "value": "Remove cache dependency from codebase\n" }, { "from": "human", "value": "<?php\nnamespace Janitor\\Models;\n\nuse Illuminate\\Cache\\Repository;\nuse Symfony\\Component\\Finder\\Finder;\n\n/**\n * The user's codebase\n *\n * @author Maxime Fabre <ehtnam6@gmail.com>\...
php
chosen
[ { "from": "system", "value": "Add test for inexistent key on Arr\\set\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n\nnamespace Siler\\Test\\Unit\\Prelude;\n\nuse PHPUnit\\Framework\\TestCase;\nuse function Siler\\Arr\\set;\n\nclass ArrTest extends TestCase\n{\n public fu...
php
chosen
[ { "from": "system", "value": "Disable bulk upload by not advertising it\n\nIt has been reported broken on many instances.\nDisable it for now until it can be fixed.\n\nSigned-off-by: Vincent Petry <87e1f221a672a14a323e57bb65eaea19d3ed3804@nextcloud.com>\n" }, { "from": "human", "value": "<?php\n...
php
chosen
[ { "from": "system", "value": "Patch that installs epesi store\n" }, { "from": "human", "value": "<?php\n\n//ModuleManager::uninstall($module_to_uninstall);\nif (ModuleManager::is_installed('Base_EpesiStore') === -1)\n return;\n\nPatchDBAlterColumn('epesi_store_modules', 'version', 'C(10)');\n...
php
chosen
[ { "from": "system", "value": "Handle backslashes when filter is Equal or In\n" }, { "from": "human", "value": "<?php\n/**\n * @package plugins.sphinxSearch\n * @subpackage lib\n */\nclass SphinxUtils\n{\n\tpublic static function escapeString($str, $escapeType = SearchIndexFieldEscapeType::DEFAUL...
php
chosen
[ { "from": "system", "value": "Fix error when replacing forum button\n" }, { "from": "human", "value": "{{--\n Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.\n See the LICENCE file in the repository root for full licence text.\n--}}\n@...
php
chosen
[ { "from": "system", "value": "Add a missing DaemonLogEvent key for garbage collection\n\nSummary: See PHI176. This is issued periodically by the garbage collector. Normally this table is relatively small-ish so this missing key isn't hugely noticeable.\n\nTest Plan:\nRan `./bin/garbage collect --collector d...
php
chosen
[ { "from": "system", "value": "Fix Team tests with table id\n" }, { "from": "human", "value": "<?php\n\nnamespace Neblion\\ScrumBundle\\Tests\\Controller;\n\nuse Neblion\\ScrumBundle\\Tests\\WebTestCase;\n\nclass TeamControllerTest extends WebTestCase\n{\n public function testShow()\n {\n ...
php
chosen
[ { "from": "system", "value": "Add new route for Dashboard\n" }, { "from": "human", "value": "<?php\n\nnamespace Feedme\\AppBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\n\nclass DefaultController extends Controller\n{\n}\n" }, { "from": "gpt", "...
php
chosen
[ { "from": "system", "value": "Use `$translator->trans()` instead of `$translator->get()`\n" }, { "from": "human", "value": "<?php namespace Felixkiss\\UniqueWithValidator;\n\nuse Illuminate\\Support\\ServiceProvider as BaseServiceProvider;\n\nclass ServiceProvider extends BaseServiceProvider\n{\...
php
chosen
[ { "from": "system", "value": "Allow filtering for Icebrood Saga mastery points\n" }, { "from": "human", "value": "<?php\n\nclass AchievementMasteryQueryFilter extends EnumSearchQueryFilter {\n protected static $REGIONS = [\n 'Tyria' => 'Tyria',\n 'Maguuma' => 'Maguuma (Path of F...
php
chosen
[ { "from": "system", "value": "[VarDumper] Fix dumping of non-nested stubs\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...
php
chosen
[ { "from": "system", "value": "Make STORAGE_KEY work when using CookieStorage\n\nUnfortunately PHP will convert **dot**s into underscore when parsing cookie names! So we have to remove dots in our `STORAKE_KEY`s so that is possible to use a CookieStorage.\r\n\r\n[The full list of field-name characters that P...
php
chosen
[ { "from": "system", "value": "Make the CASHSettings test actually assert that we get the correct object type\n" }, { "from": "human", "value": "<?php\n\nrequire_once('tests/lib/simpletest/autorun.php');\nrequire_once('framework/php/cashmusic.php');\n\nclass CashDataTests extends UnitTestCase {\n...
php
chosen
[ { "from": "system", "value": "Enable querying even if a xmlns attribute is present\n" }, { "from": "human", "value": "<?php\n\n // Trim is important here to avoid some empty lines at the beginning of the copy/paste.\n $xpathExpression = trim($_POST['xpath_expression']);\n $xmlInput = tr...
php
chosen
[ { "from": "system", "value": "Add filters to topics controller\n" }, { "from": "human", "value": "<?php namespace App\\Http\\Controllers;\n\nuse Topic;\nuse Discussion;\nuse Illuminate\\Http\\Request;\n\nclass TopicsController extends Controller\n{\n\tpublic function __construct()\n\t{\n\t\tpare...
php
chosen
[ { "from": "system", "value": "Change access denied http code to 401" }, { "from": "human", "value": "<?php\n\nnamespace OpenOrchestra\\BaseApi\\Exceptions\\HttpException;\n\n/**\n * Class ClientAccessDeniedHttpException\n */\nclass ClientAccessDeniedHttpException extends ApiException\n{\n con...
php
chosen
[ { "from": "system", "value": "Add test for Ops is associative\n" }, { "from": "human", "value": "<?php\n\nrequire_once(__DIR__ . '/../../opensrs/openSRS_loader.php');\n\nclass openSRS_OpsTest extends PHPUnit_Framework_TestCase\n{\n /**\n * Should convert specials chars, & encode in utf8\n...
php
chosen
[ { "from": "system", "value": "Fix bug in AES_SHA1 test\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\CryptoSystem;\n\nuse Rosio\\EncryptedCookie\\CryptoSystem\\AES_SHA1;\n\nclass AES_SHA1Test extends \\PHPUnit_Framework_TestCase\n{\n\tprotected $cryptoSystem;\n\n\tfunction setUp (...
php
chosen
[ { "from": "system", "value": "Add devel TLD to permitted origins on private middleware\n\n" }, { "from": "human", "value": "<?php\nnamespace App\\Http\\Middleware;\nuse Closure;\nclass PrivateCORS\n{\n /**\n * Handle an incoming request.\n *\n * @param \\Illuminate\\Http\\Request...
php
chosen
[ { "from": "system", "value": "Remove a foreign key constraint from a migration\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateApiLogTable extends Migration\n{\n /**\n * Run the migra...
php
chosen
[ { "from": "system", "value": "Add realpath calculation to daemon pid detection command\n" }, { "from": "human", "value": "<?php\n\nnamespace HotfixBundle\\Job;\n\n/**\n * This hotfix allows to see the daemon status with the overriden job queue command.\n */\nclass Daemon extends \\Oro\\Bundle\\C...
php
chosen
[ { "from": "system", "value": "Fix require once issue in faq taxonomy type\n" }, { "from": "human", "value": "<?php\n\nif ( ! class_exists( 'FAQ_Taxonomy_Type' ) ) {\n\trequire_once __DIR__ . '/faq-Taxonomy-type.php';\n}\n\nclass FAQ_Extra_Taxonomy_Type extends FAQ_Taxonomy_Type {\n\n\t/**\n\t * ...
php
chosen
[ { "from": "system", "value": "Switch icalendar event listing frontend to use event instances instead of events.\n\n" }, { "from": "human", "value": "<?php\n/**\n * This is the output for an event listing in icalendar format.\n * @package UNL_UCBCN_Frontend\n */\nforeach ($this->events as $e) {\n...
php
chosen
[ { "from": "system", "value": "Add move test that in english Y is an vocal to english abstract test\n" }, { "from": "human", "value": "<?php\n/**\n * \n * @author newloki\n */\nnamespace Tests\\Language\\Languages\\Indo\\German;\nuse Language\\Languages\\Indo\\English\\EnglishAbstract,\n Langu...
php
chosen
[ { "from": "system", "value": "BB-1505: Check performance\n- run if sequences supported\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\DashboardBundle\\Migrations\\Schema\\v1_7;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\n\nuse Oro\\Bundle\\MigrationBundle\\Migration\\Migration;\n...
php
chosen
[ { "from": "system", "value": "[Debug] Fix deprecated use of DebugClassLoader\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 LI...
php
chosen
[ { "from": "system", "value": "[Validator] Allow DateTime objects as valid DateTimes\n\n" }, { "from": "human", "value": "<?php\n\nnamespace Symfony\\Component\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\Constraint;\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse ...
php
chosen
[ { "from": "system", "value": "Create like and like_count tables.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateLikeTable extends Migration\n{\n /**\n * Run the migrations.\n *\n...
php
chosen
[ { "from": "system", "value": "Tag for migrations publish array.\n" }, { "from": "human", "value": "<?php\n\nnamespace Milax\\Mconsole\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass MconsoleServiceProvider extends ServiceProvider\n{\n\tpublic function register()\n\t{\n\t\t$this...
php
chosen
[ { "from": "system", "value": "Fix loop in QueryIterator when row count is an exact multiple of page size\n\nSummary: Ref T13152. The pager does a bit of magic here and doesn't populate `nextPageID` when it knows it got an exact final page. The logic misfired in this case and sent us back to the start.\n\nTe...
php
chosen
[ { "from": "system", "value": "Fix expectation for number of traits\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\AppBundle\\API\\Listing;\n\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\nuse Tests\\AppBundle\\API\\WebserviceTestCase;\n\nclass TraitsTest extends Webservice...
php
chosen
[ { "from": "system", "value": "Add SSL option to work with modified Gaufrette that use SSL/TSL FTP" }, { "from": "human", "value": "<?php\n\nnamespace Knp\\Bundle\\GaufretteBundle\\DependencyInjection\\Factory;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition;\nuse Symfony\\...
php
chosen
[ { "from": "system", "value": "Move size parameter back to query string\n" }, { "from": "human", "value": "<?php\n\n/*\n * (c) Jeroen van den Enden <info@endroid.nl>\n *\n * This source file is subject to the MIT license that is bundled\n * with this source code in the file LICENSE.\n */\n\nnames...
php
chosen
[ { "from": "system", "value": "Improve checking for empty title attributes\n" }, { "from": "human", "value": "function remove_empty_title_attributes($attr) {\n if($attr['title'] == '') {\n unset($attr['title']);\n }\n return $attr;\n}\nadd_filter('wp_get_attachment_image_attributes', 'remov...
php
chosen
[ { "from": "system", "value": "Add newline at end of file.\n" }, { "from": "human", "value": "<?php\n/**\n * Tlumx Framework (https://framework.tlumx.xyz/)\n *\n * @author Yaroslav Kharitonchuk <yarik.proger@gmail.com>\n * @link https://github.com/tlumx/framework\n * @copyright Copyright ...
php
chosen
[ { "from": "system", "value": "Add auto-detection of composer loader from spl stack\n" }, { "from": "human", "value": "<?php\n\nnamespace ParserReflection\\Locator;\n\n\nuse Composer\\Autoload\\ClassLoader;\nuse ParserReflection\\LocatorInterface;\n\nclass ComposerLocator implements LocatorInterf...
php
chosen
[ { "from": "system", "value": "Fix for windows boottime to convert returned string format to a timestamp\n" }, { "from": "human", "value": "<?php\n\nnamespace Uptime\\Runtime\\Windows;\n\nuse Uptime\\Runtime\\RuntimeInterface;\n\nclass Boottime implements RuntimeInterface\n{\n\n public functio...
php
chosen
[ { "from": "system", "value": "Add information about invalid filesystem" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace League\\Flysystem;\n\nuse LogicException;\n\nclass UnableToMountFilesystem extends LogicException implements FilesystemException\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "Fix out of memory error caused when generating timeslot\n\n" }, { "from": "human", "value": "<?php\n\nnamespace Igniter\\Flame\\Location;\n\nuse DateInterval;\nuse DatePeriod;\nuse DateTimeInterface;\nuse Illuminate\\Support\\Collection;\n\nclass WorkingTimeslot ext...
php
chosen
[ { "from": "system", "value": "Make sure we're working with a page internface.\n" }, { "from": "human", "value": "<?php namespace Anomaly\\PagesModule\\Page\\Command;\n\nuse Anomaly\\PagesModule\\Page\\Contract\\PageInterface;\nuse Anomaly\\PagesModule\\Page\\Contract\\PageRepositoryInterface;\nu...
php
chosen
[ { "from": "system", "value": "Rewrite EvangengelistStatus.php for better performance\n" }, { "from": "human", "value": "<?php\n\n/**\n * This package fetches the data of requested individual using the Github API and ranks the Individual into\n * categories based on the number of public repositor...
php
chosen
[ { "from": "system", "value": "Fix case mismatch bug on AeriaMetabox" }, { "from": "human", "value": "<?php\n\nif(!function_exists('array_merge_replace')) {\n\tfunction array_merge_replace () {\n\t\t$arrays = func_get_args();\n\t\t$base = array_shift($arrays);\n\t\tif(!is_array($base)) $base = em...
php
chosen
[ { "from": "system", "value": "Allow more dummy calls to ID Broker.\n" }, { "from": "human", "value": "<?php\nnamespace Sil\\SilAuth\\tests\\fakes;\n\nuse GuzzleHttp\\Handler\\MockHandler;\nuse GuzzleHttp\\HandlerStack;\nuse Psr\\Log\\LoggerInterface;\nuse Sil\\Idp\\IdBroker\\Client\\IdBrokerClie...
php
chosen
[ { "from": "system", "value": "BAP-3749: Disable screen for maintenance mode - show popup dialog with overlay instead of red message Maintanance Mode is ON\n\n-fix unit tests\n" }, { "from": "human", "value": "<?php\nnamespace Oro\\Bundle\\SyncBundle\\Tests\\Unit\\EventListener;\n\nuse Oro\\Bundl...
php
chosen
[ { "from": "system", "value": "Replace locale parameter by default_locale\n" }, { "from": "human", "value": "<?php\n\nnamespace Alpixel\\Bundle\\CMSBundle\\Twig\\Extension;\n\nuse Alpixel\\Bundle\\CMSBundle\\Entity\\NodeInterface;\nuse Alpixel\\Bundle\\CMSBundle\\Helper\\CMSHelper;\n\nclass CMSEx...
php
chosen
[ { "from": "system", "value": "Add class comment and multiline comments to regex\n" }, { "from": "human", "value": "<?php\n\nnamespace CoenJacobs\\Mozart\\Replace;\n\nclass ClassmapReplacer extends BaseReplacer\n{\n /** @var array */\n public $replacedClasses = [];\n\n /** @var string */...
php
chosen
[ { "from": "system", "value": "Revert back Admin controller user ACL to ON\n" }, { "from": "human", "value": "<?php\n\nnamespace Devlabs\\SportifyBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\n...
php
chosen
[ { "from": "system", "value": "Reformat code and added @todo\n" }, { "from": "human", "value": "<?php\n\nApp::uses('AppController', 'Controller');\n\n/**\n * Description of PluginsController\n *\n * @author mohammad\n */\nclass PluginsController extends AppController {\n\n public $uses = array...
php
chosen
[ { "from": "system", "value": "Change test because Question::isType() does not have to return\nthe expected question type as first choice, but it has to be in\nthe array of valid question types\n" }, { "from": "human", "value": "<?php\nclass Webenq_Test_Model_Question_Closed_Scale_FourTest extend...
php
chosen
[ { "from": "system", "value": "Update administration tool copyright year\n" }, { "from": "human", "value": "<?php\n/*\n $Id$\n\n osCommerce, Open Source E-Commerce Solutions\n http://www.oscommerce.com\n\n Copyright (c) 2008 osCommerce\n\n Released under the GNU General Public License\n*/\n?...
php
chosen
[ { "from": "system", "value": "BAP-10771: Migrate data audit command to be executed in new message queue\n\n- fix tests\n" }, { "from": "human", "value": "<?php\nnamespace Oro\\Bundle\\DataAuditBundle\\Service;\n\nuse Doctrine\\Common\\Util\\ClassUtils;\nuse Metadata\\ClassMetadata;\nuse Metadata...
php
chosen
[ { "from": "system", "value": "Make products\\' `active` flag nullable so unit tests pass\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddActiveFieldTo...
php
chosen
[ { "from": "system", "value": "Add return type to be compatible with latest Recras/symfony1 version\n" }, { "from": "human", "value": "<?php\n/**\n * sfTesterJsonResponse implements tests for the symfony response object.\n */\nclass sfTesterJsonResponse extends sfTester\n{\n /**\n * Prepares t...
php
chosen
[ { "from": "system", "value": "Refresh the topics cache when something is restored\n" }, { "from": "human", "value": "<?php namespace App\\Observers;\n\nuse Cache;\nuse App\\Data\\Topic;\n\nclass TopicObserver extends Observer\n{\n\tpublic function deleted(Topic $topic)\n\t{\n\t\t$this->refreshCa...
php
chosen
[ { "from": "system", "value": "Create error and exception language strings.\n" }, { "from": "human", "value": "<?php\n\n/**\n * Store Key extension English language strings.\n *\n * @author Stephen Lewis (http://github.com/experience/)\n * @copyright Experience Internet\n * @packag...
php
chosen
[ { "from": "system", "value": "Delete all private files associated with user\n" }, { "from": "human", "value": "<?php\n\ninclude('requireSuperuser.php');\ninclude('dbconnect.php');\n\n$id = $_REQUEST['id'];\n\n$queryDelete = \"DELETE FROM users WHERE user_id='$id'\";\nmysqli_query($conn, $queryDe...
php
chosen
[ { "from": "system", "value": "Stop \"Header\" fields (labels for form sections) from trying to generate Conduit edits\n\nSummary: Fixes T12236. Headers are currently trying to generate an edit transaction for `maniphest.edit` and similar, but should not, since you can't edit them.\n\nTest Plan:\n - Configu...
php
chosen
[ { "from": "system", "value": "Fix destroy if there is no id\n" }, { "from": "human", "value": "<?php\n\nclass Userbin_Resource\n{\n protected $parent = null;\n\n protected $items = null;\n\n public function __construct($model, $items=null)\n {\n $this->model = $model;\n if (is_array($...
php
chosen
[ { "from": "system", "value": "Remove atFile entries when we remove files\n" }, { "from": "human", "value": "<?php\nnamespace Concrete\\Core\\Entity\\Attribute\\Value\\Value;\n\nuse Concrete\\Core\\File\\FileProviderInterface;\nuse Doctrine\\ORM\\Mapping as ORM;\n\n/**\n * @ORM\\Entity\n * @ORM\\...
php
chosen
[ { "from": "system", "value": "CRM-323: Make Address entity plain\n- fixed dependencny on AbstractAddress\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\AddressBundle\\Form\\Handler;\n\nuse Doctrine\\Common\\Persistence\\ObjectManager;\n\nuse Symfony\\Component\\Form\\FormInte...
php
chosen
[ { "from": "system", "value": "Add new line at the end\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of lcms.\n * \n * Plugins Manager.\n * \n * @author Mikołaj Pich <m.pich@outlook.com>\n * @package lcms\\Plugins\n * @version 0.1\n */\n\nnamespace lcms\\Plugins;\n\nclass ...
php
chosen