conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "BAP-10654: Prepare existing code for new Localization Entity\n- reverted back parentLocalization and childLocalization names" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\LocaleBundle\\Tests\\Functional\\DataFixtures;\n\nuse Doctrine\\Common\\Data...
php
chosen
[ { "from": "system", "value": "Update class docs and renamed dump() to dumpFiles()\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nuse Illuminate\\Support\\Facades\\DB;\nuse Illuminate\\Support\\Facades\\File;\nuse Moharrum\\LaravelGeoIPWorldCities\\Helpers\\Config;...
php
chosen
[ { "from": "system", "value": "Replace google tts with voice rss.\n" }, { "from": "human", "value": "<?php\n\nnamespace Mo\\FlashCardsApiBundle\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Nelmio\\ApiDocBundle\\Annotation\\ApiDoc;\n\n/**\n * Actions serving different res...
php
chosen
[ { "from": "system", "value": "CRM-325: Create collections for phone and emails\n- change variable name\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\AddressBundle\\Form\\Handler;\n\nuse Doctrine\\Common\\Persistence\\ObjectManager;\n\nuse Symfony\\Component\\Form\\FormInterf...
php
chosen
[ { "from": "system", "value": "Use normal without extra libs\n" }, { "from": "human", "value": "<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\n?>\n<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"UTF-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <...
php
chosen
[ { "from": "system", "value": "Add status column to Screen table migration\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateScreensTable extends Migr...
php
chosen
[ { "from": "system", "value": "Initialize $_SERVER['SERVER_NAME'] with null when PHP_SAPI is cli\n" }, { "from": "human", "value": "<?php\n\nEvent::add_before('system.ready', current(Event::get('system.ready')), 'multisite_fetch_appname');\n\nfunction multisite_fetch_appname()\n{\n // Fetch ap...
php
chosen
[ { "from": "system", "value": "Use and , and add body class functionality\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<!--[if IE 8 ]><html class=\"ie ie8\" lang=\"en\"> <![endif]-->\n<!--[if (gte IE 9)|!(IE)]><!--><html lang=\"en\"> <!--<![endif]-->\n <head>\n <?php\n\n ...
php
chosen
[ { "from": "system", "value": "Fix for the case that no WMS are registered\n" }, { "from": "human", "value": "<?php\n\nnamespace Mapbender\\MonitoringBundle\\EventListener;\nuse Symfony\\Component\\EventDispatcher\\Event;\n\nclass WmsListListener {\n\n protected $doctrine;\n\n public functi...
php
chosen
[ { "from": "system", "value": "Add number() and update the link() method to use it.\n" }, { "from": "human", "value": "<?php\n\nnamespace AbleCore\\Fields\\FieldValueTypes;\n\nuse AbleCore\\Fields\\FieldValue;\n\nclass PhoneNumberFieldValue extends FieldValue {\n\n\tpublic function link()\n\t{\n\...
php
chosen
[ { "from": "system", "value": "Reduce the size of the material history graphs.\n" }, { "from": "human", "value": "@extends('layouts.master')\n\n@section('title', 'Material Value History')\n\n@section('content')\n\n <div class=\"row\">\n\n <div class=\"col-12\">\n\n @foreach (...
php
chosen
[ { "from": "system", "value": "Revert explicit type in unrelated test class\n" }, { "from": "human", "value": "<?php\n\nnamespace Doctrine\\Tests\\Common\\Proxy;\n\nuse BadMethodCallException;\n\n/**\n * Test asset class\n */\nclass MagicSetClassWithScalarTypeAndRenamedParameters\n{\n /** @var...
php
chosen
[ { "from": "system", "value": "Modify name field to unique on photos table\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreatePhotosTable extends Migra...
php
chosen
[ { "from": "system", "value": "Update columns of Images migration\n\n- Add new original_filename to store original file name as local run of\nRika's custom locale results the image store into garbled names\n- Rename few column names for better readability and self-explanatory\n" }, { "from": "human",...
php
chosen
[ { "from": "system", "value": "Use correct context when previewing widget\n" }, { "from": "human", "value": "<?php\n/**\n * @package OnlinePublisher\n * @subpackage Services.Parts\n */\nrequire_once '../../Include/Private.php';\n\n$type = Request::getString('type');\n$id = Request::getInt('id');\...
php
chosen
[ { "from": "system", "value": "Fix order sorting to prevent incorrect order number generation.\n\nSee https://github.com/Sylius/Sylius/pull/631\n" }, { "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...
php
chosen
[ { "from": "system", "value": "Fix url issue in reservation mail template.\n\nSigned-off-by: Sam Poyigi <ccc2dd82f84c4106203d3b58d5938b70cab9f94a@users.noreply.github.com>\n" }, { "from": "human", "value": "subject = \"Your Reservation Update - {{ $reservation_number }}\"\n==\nReservation Update!...
php
chosen
[ { "from": "system", "value": "Throw an exception when try to mutate data on ImmutableDataObjectInterface instance. Access data from DataObjectInterface instance and ImmutableDataObjectInterface instance.\n" }, { "from": "human", "value": "<?php\n/**\n *\n * (c) Marco Bunge <marco_bunge@web.de>\n...
php
chosen
[ { "from": "system", "value": "Make treebuilder configuration backwards compatible with older Symfony versions\n" }, { "from": "human", "value": "<?php\n\nnamespace AshleyDawson\\GlideBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\nuse Symfony\...
php
chosen
[ { "from": "system", "value": "Update view after updating template\n" }, { "from": "human", "value": "<?php\n$log = EngineBlock_ApplicationSingleton::getInstance()->getLog();\n$log->log('Showing feedback page with message: ' . $layout->title, EngineBlock_Log::INFO);\n$log->getQueueWriter()->flush...
php
chosen
[ { "from": "system", "value": "Create PHP wrapper for assertArrayHasKey\n" }, { "from": "human", "value": "//Re-implement PHPUnit's TestCase\nclass PHPUnit_Framework_TestCase\n{\n\t//Setup a static constructor so that our Test Cases can inherit\n\tstatic function __construct() {\n\t}\n\n\t//Overr...
php
chosen
[ { "from": "system", "value": "Remove the encode password. Cannot find a way to get this to work properly unfortunately.\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the LdapTools package.\n *\n * (c) Chad Sikorra <Chad.Sikorra@gmail.com>\n *\n * For the full copyright a...
php
chosen
[ { "from": "system", "value": "Fix missing space between base icon classes and extra icon classes.\n" }, { "from": "human", "value": "<?php\n/**\n * FontAwesome Helper\n *\n * PHP 5\n *\n * @copyright Copyright (c) Sylvain Lévesque (http://www.gezere.com)\n * @link http://www.gezere.com\n * @pack...
php
chosen
[ { "from": "system", "value": "Fix error in secondary structures.\n" }, { "from": "human", "value": "<?php\n$structure\t= $this->em('Chalk\\Core\\Structure')->id($req->structure);\n$content\t= $node->content;\n$info\t = \\Chalk\\Chalk::info($content->getObject());\n?>\n\n<?php $this->parent('/...
php
chosen
[ { "from": "system", "value": "Mark internal methods as internal\n\nWe've missed those ones on previous versions...\n\nSigned-off-by: Luís Cobucci <7945d1712249176a02d684a84999e19c759a1347@gmail.com>\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace Lcobucci\\JWT\\Si...
php
chosen
[ { "from": "system", "value": "Use proper tag for icon.\n" }, { "from": "human", "value": "<?php\n/***********************************************************\n Add icon from standard icon set of Agile Toolkit\n\n Reference:\n http://agiletoolkit.org/doc/ref\n\n==ATK4==========================...
php
chosen
[ { "from": "system", "value": "Enable SSL in (staging) config file.\n" }, { "from": "human", "value": "<?php\n\n/* -----------------------------------------------------------------------------\nDirect access protection\n-----------------------------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Remove flush() call, its done in the remover itself\n" }, { "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 th...
php
chosen
[ { "from": "system", "value": "Change to use new PSR-4 loaded libraries in development.\n" }, { "from": "human", "value": "<?php\nrequire 'vendor/autoload.php';\n\nrequire_once 'config.php';\n\n$sendgrid = new SendGrid($sendgrid_api_key, [\"turn_off_ssl_verification\" => TRUE]);\n$email = new Sen...
php
chosen
[ { "from": "system", "value": "Use KCommandContext::getSubject() instead of $command->caller\n" }, { "from": "human", "value": "<?php\r\n/**\r\n * @version $Id$\r\n * @package Nooku_Components\r\n * @subpackage Files\r\n * @copyright Copyright (C) 2011 - 2012 Timble CVBA and Contributo...
php
chosen
[ { "from": "system", "value": "Add indexes to CT daily QC migration\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateCtdailyqcTable extends Migration...
php
chosen
[ { "from": "system", "value": "Fix logging for non named messages\n" }, { "from": "human", "value": "<?php\n\ndeclare (strict_types = 1);\n\nnamespace HMLB\\DDDBundle\\MessageBus\\Middleware;\n\nuse Doctrine\\Common\\Persistence\\ObjectManager;\nuse HMLB\\DDD\\Message\\Message;\nuse Psr\\Log\\Log...
php
chosen
[ { "from": "system", "value": "Allow debug report for a specific question ID\n" }, { "from": "human", "value": "<?php\n\n/* displays data for a source in UI */\n$app->route('GET', '/backlog/$src', 'CvRing\\Backlog\\Controller\\BacklogController::indexAction');\n$app->route('GET', '/backlog', 'CvR...
php
chosen
[ { "from": "system", "value": "Add better indentation (shorter line)\n" }, { "from": "human", "value": "<?php\n/**\n * @author Pierre-Henry Soria <ph7software@gmail.com>\n * @copyright (c) 2012-2018, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Public Lice...
php
chosen
[ { "from": "system", "value": "Add the missing return statement\n\nSimply return the 'X-RateLimit-Remaining' as expected." }, { "from": "human", "value": "<?php\n\nnamespace Github\\HttpClient\\Message;\n\nuse Guzzle\\Http\\Message\\Response;\nuse Github\\Exception\\ApiLimitExceedException;\n\ncl...
php
chosen
[ { "from": "system", "value": "Fix a small bug - %d => %s\n\nSummary: easy peasy. noticed it trying to fix an image.\n\nTest Plan: can fix image by phid once more!\n\nReviewers: epriestley\n\nReviewed By: epriestley\n\nCC: aran, Korvin\n\nDifferential Revision: https://secure.phabricator.com/D6659\n" }, ...
php
chosen
[ { "from": "system", "value": "Add 'cache' & ''thumbs' file system management\n" }, { "from": "human", "value": "<?php\n\nnamespace Bolt\\Provider;\n\nuse Bolt\\Filesystem\\Adapter\\Local;\nuse Bolt\\Filesystem\\Filesystem;\nuse Bolt\\Filesystem\\Manager;\nuse Bolt\\Filesystem\\Plugin;\nuse Silex...
php
chosen
[ { "from": "system", "value": "Fix issue with displaying the correct options on array fields\n" }, { "from": "human", "value": "<?php /** @var \\Dms\\Core\\Form\\IFieldOption[] $options */ ?>\n<?php /** @var array $value */ ?>\n@if (count($value) === 0)\n @include('dms::components.field.null.v...
php
chosen
[ { "from": "system", "value": "CRM-1480: Create jobs to load files to database\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\TrackingBundle\\Tests\\Unit\\DependencyInjection;\n\nuse Oro\\Bundle\\TrackingBundle\\DependencyInjection\\OroTrackingExtension;\nuse Symfony\\Componen...
php
chosen
[ { "from": "system", "value": "Declare $method as public in HTTPErrorController.\n" }, { "from": "human", "value": "<?php\r\n class HTTPErrorController extends ControllerBase {\r\n protected $method = 'create';\r\n\r\n public function createView( $error, $reason, $header ) {\r\n ...
php
chosen
[ { "from": "system", "value": "Fix currency format string in config\n\nSigned-off-by: JWhy <6a9f7c06e789f829524fd1a3a38b8c7d794c3a1f@jwhy.de>\n" }, { "from": "human", "value": "<?php\n\n$config['iconomy'] = array(\n\t'currency' => '$'\n);\n\n$config['jsonapi'] = array(\n \n // JSONAPI conne...
php
chosen
[ { "from": "system", "value": "Move configuration of the module locator to the pages component\n" }, { "from": "human", "value": "<?php\n/**\n * Nooku Framework - http://www.nooku.org\n *\n * @copyright\tCopyright (C) 2011 - 2013 Johan Janssens and Timble CVBA. (http://www.timble.net)\n * @licens...
php
chosen
[ { "from": "system", "value": "Fix name for md5 test\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the Imbo package\n *\n * (c) Christer Edvartsen <cogo@starzinger.net>\n *\n * For the full copyright and license information, please view the LICENSE file that was\n * distr...
php
chosen
[ { "from": "system", "value": "Rename the login arguments to correspong ProcessWire api.\n" }, { "from": "human", "value": "<?php\n\nnamespace ProcessWire\\GraphQL\\Field\\Auth;\n\nuse Youshido\\GraphQL\\Field\\AbstractField;\nuse Youshido\\GraphQL\\Config\\Field\\FieldConfig;\nuse Youshido\\Grap...
php
chosen
[ { "from": "system", "value": "Convert bin/storage workflow to presume utf8mb4 as the default encoding\n\nSummary: see comments on rP68904d941c54\n\nTest Plan: run ,/bin/storage upgrade\n\nReviewers: epriestley, #blessed_reviewers\n\nReviewed By: epriestley, #blessed_reviewers\n\nSubscribers: Korvin\n\nDiffe...
php
chosen
[ { "from": "system", "value": "FIX Remove some js references\n" }, { "from": "human", "value": "<?php\n\n/**\n * @author marcus@silverstripe.com.au\n * @license BSD License http://silverstripe.org/bsd-license/\n */\nclass SiteDashboardPage extends Page\n{\n}\n\nclass SiteDashboardPage_Controller ...
php
chosen
[ { "from": "system", "value": "Exclude \\ from company name\n\nChange-Id: Ife5a34a09f476e196aae6178886109750bcbe934\n" }, { "from": "human", "value": "<?php\nnamespace Directorzone\\Service;\n\nuse Netsensia\\Service\\NetsensiaService;\n\nclass CompanyService extends NetsensiaService\n{\n publ...
php
chosen
[ { "from": "system", "value": "Use hash_equals for constant-time string comparison\n" }, { "from": "human", "value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/zf2 for the canonical source repository\n * @copyright Copyright (c) ...
php
chosen
[ { "from": "system", "value": "ADD allowed_special_characters field, addAllowedSpecialCharacters and addAllowedSpecialCharacter methods\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: ahmetturk\n * Date: 30/06/2017\n * Time: 12:19\n */\n\nnamespace Fabs\\CouchDB2\...
php
chosen
[ { "from": "system", "value": "Use step conditions as index\n" }, { "from": "human", "value": "<?php\n\nnamespace Listabierta\\Bundle\\MunicipalesBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\nclass Default...
php
chosen
[ { "from": "system", "value": "Add cache expiration on class metadata\n" }, { "from": "human", "value": "<?php\n\nnamespace JPC\\Test\\MongoDB\\ODM\\Factory;\n\nuse JPC\\MongoDB\\ODM\\Factory\\ClassMetadataFactory;\nuse JPC\\Test\\MongoDB\\ODM\\Framework\\TestCase;\n\nclass ClassMetadataFactoryTe...
php
chosen
[ { "from": "system", "value": "Verify job config is not deleted when scheduled job is deleted\n" }, { "from": "human", "value": "<?php\n\nnamespace SimplyTestable\\ApiBundle\\Tests\\Services\\ScheduledJob\\Delete;\n\nuse SimplyTestable\\ApiBundle\\Entity\\ScheduledJob;\n\nclass SingleUserTest ext...
php
chosen
[ { "from": "system", "value": "BAP-9376: Create unit tests for ApiBundle. Remove EntityClassTransformer\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\ApiBundle\\Processor\\NormalizeValue;\n\nuse Oro\\Bundle\\EntityBundle\\ORM\\EntityAliasResolver;\n\n/**\n * Converts entity t...
php
chosen
[ { "from": "system", "value": "Fix last migration for MySQL\n" }, { "from": "human", "value": "<?php\n\nuse Movim\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nclass ChangeMessagesPrimaryKey extends Migration\n{\n public function up()\n {\n $this->schema->table('messag...
php
chosen
[ { "from": "system", "value": ":memo: Add all endpoints to the home api endpoint\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers\\Api;\n\nuse App\\Http\\Controllers\\Controller;\nuse App\\Org;\nuse App\\User;\n\nclass HomeController extends Controller\n{\n public f...
php
chosen
[ { "from": "system", "value": "Add a helper method to get a query instance\n" }, { "from": "human", "value": "<?php\n\n/**\n * Solr data helper\n *\n * @category Asm\n * @package Asm_Solr\n * @author Ingo Renner <ingo@infielddesign.com>\n */\nclass Asm_Solr_Helper_Data extends Mage_Core_Helper_Ab...
php
chosen
[ { "from": "system", "value": "Fix: Add missing inline comments and doc-block\n" }, { "from": "human", "value": "<?php\n\nnamespace Application\\Controller;\n\nuse Application\\Service\\RepositoryRetriever;\nuse Zend\\ServiceManager\\FactoryInterface;\nuse Zend\\ServiceManager\\ServiceLocatorInte...
php
chosen
[ { "from": "system", "value": "Enable model guarding after doing seeds\n\nLeaving models unguarded can cause all kinds of havoc if someone uses seeds in their tests.\r\nBest to default to reguard after doing the seeds." }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nu...
php
chosen
[ { "from": "system", "value": "Set default timezone based on config." }, { "from": "human", "value": "<?php\n/**\n * Bitcoin Status Page\n *\n * @category File\n * @package BitcoinStatus\n * @author Craig Watson <craig@cwatson.org>\n * @license https://www.apache.org/licenses/LICENSE-2.0 Apac...
php
chosen
[ { "from": "system", "value": "Clean up a text string\n\nSummary: Pretty sure this was me derping, not trying to make a joke.\n\nTest Plan: New text makes sense.\n\nReviewers: btrahan, chad\n\nReviewed By: chad\n\nSubscribers: epriestley\n\nDifferential Revision: https://secure.phabricator.com/D11762\n" },...
php
chosen
[ { "from": "system", "value": "Revert \"zmiana pola z data\"\n\nThis reverts commit 5b4dd9eb\n" }, { "from": "human", "value": "<?php\n\nnamespace Coyote\\Services\\Elasticsearch\\Builders\\Forum;\n\nuse Coyote\\Services\\Elasticsearch\\Filters\\Post\\OnlyThoseWithAccess;\nuse Coyote\\Services\\E...
php
chosen
[ { "from": "system", "value": "Fix nullable username in user integrations table\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nuse Phinx\\Migration\\AbstractMigration;\n\nfinal class CreateUsersIntegrationsTable extends AbstractMigration\n{\n public function change(): vo...
php
chosen
[ { "from": "system", "value": "TASK: Add newline at the end of the file" }, { "from": "human", "value": "<?php\nnamespace TYPO3\\Flow\\Tests\\Unit\\Cryptography\\Fixture;\n\n/*\n * This file is part of the TYPO3.Flow package.\n *\n * (c) Contributors of the Neos Project - www.neos.io\n *\n * This...
php
chosen
[ { "from": "system", "value": "Extend the new phpunit class\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Laravel TestBench.\n *\n * (c) Graham Campbell <graham@alt-three.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that w...
php
chosen
[ { "from": "system", "value": "Hide \"Add to Cart\" when customer is not signed in.\n" }, { "from": "human", "value": "<?php\n\nclass Ryaan_MembersOnly_Block_Price_Clone extends Mage_Catalog_Block_Product_View\n{\n use Ryaan_MembersOnly_Block_TOverride;\n\n const NAME_IN_LAYOUT = 'product.c...
php
chosen
[ { "from": "system", "value": "Update factory format for custom fields\n" }, { "from": "human", "value": "<?php\n\n\n$factory->define(App\\Models\\CustomField::class, function (Faker\\Generator $faker) {\n return [\n 'name' => $faker->catchPhrase,\n 'format' => 'IP',\n 'element' => 't...
php
chosen
[ { "from": "system", "value": "Update conversation editor's redactor config to include c5 specific settings\n" }, { "from": "human", "value": "<?php defined('C5_EXECUTE') or die(\"Access Denied.\");\n$form = Loader::helper('form');\nprint $form->textarea($editor->getConversationEditorInputName(),...
php
chosen
[ { "from": "system", "value": "Add indexes to displays migration\n" }, { "from": "human", "value": "<?php\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Capsule\\Manager as Capsule;\n\nclass Displays extends Migration\n{\...
php
chosen
[ { "from": "system", "value": "Reset the request instance after the tests complete\n\n\nFormer-commit-id: c62e9dd007e64fa3070aaee69a15b2ee9efa0f6d\nFormer-commit-id: 152cba49a9c4537146c25be919ed35acd8619871" }, { "from": "human", "value": "<?php\n\nrequire_once __DIR__ . \"/ResolverTestCase.php\"...
php
chosen
[ { "from": "system", "value": "Add missing global varialbes config\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n 'charset' => 'UTF-8',\n\n // Twig specific settings\n 'twig' => [\n\n 'debug' => false,\n\n 'cache' => dirname(__DIR__) .'/../va...
php
chosen
[ { "from": "system", "value": "Revert optimization: it didn't help\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace WoohooLabs\\Zen;\n\nuse Closure;\nuse Psr\\Container\\ContainerInterface;\nuse WoohooLabs\\Zen\\Exception\\NotFoundException;\nuse function array_key_...
php
chosen
[ { "from": "system", "value": "Fix `sfComponents::execute()` method arg hints\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the symfony package.\n * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>\n * \n * For the full copyright and license informat...
php
chosen
[ { "from": "system", "value": "Add single and multiple sentence detection tests\n" }, { "from": "human", "value": "<?php\nnamespace Stichoza\\GoogleTranslate\\Tests;\n\nuse Stichoza\\GoogleTranslate\\TranslateClient;\n\nclass LanguageDetectionTest extends \\PHPUnit_Framework_TestCase\n{\n publ...
php
chosen
[ { "from": "system", "value": "Add needed Bootstrap Plugin Asset to the 'depends' list'.\n" }, { "from": "human", "value": "<?php\n/**\n * @copyright Copyright &copy; A.F.Schuurman, 2015\n * @package yii2-wizardwidget\n * @version 1.0.0\n */\nnamespace drsdre\\wizardwidget;\n\nuse yii\\web\\Asset...
php
chosen
[ { "from": "system", "value": "Add target for edit button\n" }, { "from": "human", "value": "<div class=\"toolbar\">\n <a class=\"toolbar_item\" href=\"{{ request()->url() }}/edit\">Edit on <span>@include('_partials.svg.github')</span></a>\n</div>" }, { "from": "gpt", "value": "<di...
php
chosen
[ { "from": "system", "value": "Use \"standard\" extension instead of \"core\"\n\nSee https://github.com/xp-framework/core/issues/47\n" }, { "from": "human", "value": "<?php namespace net\\xp_framework\\unittest\\tests;\n\nuse unittest\\actions\\ExtensionAvailable;\n\n/**\n * Test test action \"Ex...
php
chosen
[ { "from": "system", "value": "Use 6 decimal spaces for money\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Active Collab DatabaseStructure project.\n *\n * (c) A51 doo <info@activecollab.com>. All rights reserved.\n */\n\nnamespace ActiveCollab\\DatabaseStructure\\F...
php
chosen
[ { "from": "system", "value": "Use class alias instead to avoid BC\n" }, { "from": "human", "value": "<?php\n\nnamespace Paraunit\\Lifecycle;\n\nuse Symfony\\Component\\EventDispatcher\\Event;\nuse Symfony\\Component\\EventDispatcher\\LegacyEventDispatcherProxy;\n\nif (class_exists(Event::class))...
php
chosen
[ { "from": "system", "value": "Add extra checks to avoid empty properties\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Access to Memory (AtoM) software.\n *\n * Access to Memory (AtoM) is free software: you can redistribute it and/or modify\n * it under the terms of...
php
chosen
[ { "from": "system", "value": "Remove an unnecessary echo. The \"the_post_thumbnail_url\" function already returned an echo.\n" }, { "from": "human", "value": "<?php\n// If a featured image is set, insert into layout and use Interchange\n// to select the optimal image size per named media query.\...
php
chosen
[ { "from": "system", "value": "Add tearDown phase to unlink the test file\n" }, { "from": "human", "value": "<?php\nuse Maghead\\Manager\\ConfigManager;\nuse Maghead\\Config;\nuse Maghead\\ConfigLoader;\n\nclass ConfigManagerTest extends PHPUnit_Framework_TestCase\n{\n const TEST_CONFIG = 'tes...
php
chosen
[ { "from": "system", "value": "Fix bug with exists property\n" }, { "from": "human", "value": "<?php namespace ThibaudDauce\\MoloquentInheritance;\n\nuse ReflectionClass;\n\ntrait MoloquentInheritanceTrait {\n\n public $parentClasses;\n\n /**\n * Boot the moloquent inheritance for a mod...
php
chosen
[ { "from": "system", "value": "Fix another doc string mistake.\n" }, { "from": "human", "value": "<?php\n/**\n * MiniAsset\n * Copyright (c) Mark Story (http://mark-story.com)\n *\n * Licensed under The MIT License\n * For full copyright and license information, please see the LICENSE.txt\n * Red...
php
chosen
[ { "from": "system", "value": "BAP-1664: Apply configuration settings to system features\n - fix timezone\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\LocaleBundle\\DoctrineExtensions\\DBAL\\Types;\n\nuse Doctrine\\DBAL\\Platforms\\AbstractPlatform;\nuse Doctrine\\DBAL\\Ty...
php
chosen
[ { "from": "system", "value": "Add posts to main build command\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace MattyG\\BBStatic\\CLI\\Command;\n\nuse MattyG\\BBStatic\\Content\\Page\\NeedsPageBuilderTrait;\nuse MattyG\\BBStatic\\Content\\Page\\NeedsPageGathererTrai...
php
chosen
[ { "from": "system", "value": "Fix the test to expect the new behaviour\n" }, { "from": "human", "value": "<?php\n/**\n * Copyright (c) 2013 Robin Appelman <icewind@owncloud.com>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README f...
php
chosen
[ { "from": "system", "value": "Resolve pins update event data\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is apart of the DiscordPHP project.\n *\n * Copyright (c) 2016-2020 David Cole <david.cole1340@gmail.com>\n *\n * This source file is subject to the MIT license that is bundl...
php
chosen
[ { "from": "system", "value": "Remove out of scope method contract from EventApi\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 sou...
php
chosen
[ { "from": "system", "value": "Use logic path to templates\n" }, { "from": "human", "value": "<?php\n\nnamespace Tienvx\\Bundle\\MbtBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\n\nclass TaskController extends Controller\n{\n public function startAction()...
php
chosen
[ { "from": "system", "value": "Support to deserialize scalar values using ::fromString, ::fromInteger & ::unknown factory methods\n" }, { "from": "human", "value": "<?php\n\nnamespace CQRS\\Serializer;\n\nclass JsonSerializer implements SerializerInterface\n{\n /**\n * @param mixed $data\n...
php
chosen
[ { "from": "system", "value": "Add complete list of payment types\n" }, { "from": "human", "value": "<?php\n\nnamespace Hochstrasser\\Wirecard\\Model\\Common;\n\ninterface PaymentType\n{\n const PayPal = 'PAYPAL';\n const CreditCard = 'CCARD';\n}\n" }, { "from": "gpt", "value": ...
php
chosen
[ { "from": "system", "value": "Revert \"travis? are you here?\"\n\nThis reverts commit a5a924a2df9ba4a47a4b3998a1495f8801668092.\n" }, { "from": "human", "value": "<?php\n\nnamespace Step\\Acceptance;\n\nclass EmailMan extends \\AcceptanceTester\n{\n /**\n * Go to email settings\n */\n...
php
chosen
[ { "from": "system", "value": "Fix conflict when using hyn/multi-tenant package" }, { "from": "human", "value": "<?php namespace GeneaLabs\\LaravelGovernor\\Listeners;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass CreatedListener\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "Add a test for step2 of the installer.\n" }, { "from": "human", "value": "<?php\n\nnamespace ForkCMS\\Bundle\\InstallerBundle\\Tests\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nclass ...
php
chosen
[ { "from": "system", "value": "BB-8120: Test and merge\n - cr fixes\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\ConfigBundle\\Tests\\Behat\\Context;\n\nuse Oro\\Bundle\\ConfigBundle\\Tests\\Behat\\Element\\SidebarConfigMenu;\nuse Oro\\Bundle\\TestFrameworkBundle\\Behat\\Con...
php
chosen
[ { "from": "system", "value": "Allow access to symphony dev front controller from the vagrant host\n" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Debug\\Debug;\n\n// If you don't want to setup permissions the proper way, just ...
php
chosen
[ { "from": "system", "value": "Throw exception for empty data\n" }, { "from": "human", "value": "<?php\n\nnamespace Edge\\Mvc\\Controller\\Plugin;\n\nuse Zend\\Mvc\\Controller\\Plugin\\AbstractPlugin;\n\nclass OutputCsv extends AbstractPlugin\n{\n /**\n * Convert an array to a CSV an outpu...
php
chosen
[ { "from": "system", "value": "Allow null dates to be formatted...\n" }, { "from": "human", "value": "<?php\n\nnamespace Code16\\Sharp\\Form\\Fields\\Formatters;\n\nuse Carbon\\Carbon;\nuse Code16\\Sharp\\Form\\Fields\\SharpFormDateField;\nuse Code16\\Sharp\\Form\\Fields\\SharpFormField;\n\nclass...
php
chosen
[ { "from": "system", "value": "Include more info about project in route /\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n <head>\n <title>Rest Birita</title>\n\n <link href=\"https://fonts.googleapis.com/css?family=Lato:100\" rel=\"stylesheet\" type=\"text/css\">\n\n...
php
chosen
[ { "from": "system", "value": "Change date display in email\n" }, { "from": "human", "value": "<?php\n\nclass EmailSendGradesWorker extends SendGradesWorker\n{\n\n public function fire($job, $data){\n\n $start_time = microtime(true);\n Log::info('Job started_EmailSendGradesWorker...
php
chosen