conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add strict & strict order JSON compare modes\n" }, { "from": "human", "value": "<?php\n\nnamespace WireMock\\Client;\n\nclass JsonValueMatchingStrategy extends ValueMatchingStrategy\n{\n const COMPARE_MODE__NON_EXTENSIBLE = \"NON_EXTENSIBLE\";\n const COMPARE_...
php
chosen
[ { "from": "system", "value": "Remove unnecessary part from attachment example\n" }, { "from": "human", "value": "<?php\nrequire __DIR__.'/../../../vendor/autoload.php';\nrequire __DIR__.'/../../Init/init.php';\n\nuse JiraRestlib\\Api\\Api;\nuse JiraRestlib\\Config\\Config;\nuse JiraRestlib\\Reso...
php
chosen
[ { "from": "system", "value": "Fix tiny typo in comment\n" }, { "from": "human", "value": "<?php\n\nnamespace Nathiss\\Bundle\\QuoteGeneratorBundle\\Repository;\n\n/**\n * QuoteRepository\n */\nclass QuoteRepository extends \\Doctrine\\ORM\\EntityRepository\n{\n /**\n * Selects Query from ...
php
chosen
[ { "from": "system", "value": "Fix bugs -- token is added into response json only when authentication succeeded and invalid username and password always show up even though username and password are correct\n" }, { "from": "human", "value": "<?php\n/**\n * This file is Copyright (c).\n *\n * For ...
php
chosen
[ { "from": "system", "value": "Fix typo in array access" }, { "from": "human", "value": "<?php\nnamespace EventDispatcher\\EventManager;\n\nuse Zend\\EventManager\\EventManagerInterface;\nuse Zend\\ServiceManager\\ServiceLocatorInterface;\nuse Zend\\Mvc\\MvcEvent;\n\nclass Dispatcher\n{\n prot...
php
chosen
[ { "from": "system", "value": "Fix user input handling for confirm()\n" }, { "from": "human", "value": "<?php\nnamespace PharIo\\Phive\\Cli;\n\nclass ConsoleInput implements Input {\n\n /**\n * @var Cli\\Output\n */\n private $output;\n\n /**\n * ConsoleInput constructor.\n ...
php
chosen
[ { "from": "system", "value": "Handle both strings and arrays, as the parent does\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of Ibuildings QA-Tools.\n *\n * (c) Ibuildings\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was ...
php
chosen
[ { "from": "system", "value": "BAP-8152: Make random_id = true by default for all FormTypes\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\FormBundle\\Form\\Extension;\n\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse Symfony\\Component\\Form\\FormInterface;\nuse Sy...
php
chosen
[ { "from": "system", "value": "Update class name for exception handler\n" }, { "from": "human", "value": "<?php\n\nnamespace Elfiggo\\Brobdingnagian\\Report;\n\nuse Elfiggo\\Brobdingnagian\\Exception\\ClassSizeTooLarge;\n\nclass ExceptionHandler implements Handler\n{\n public function act($mes...
php
chosen
[ { "from": "system", "value": "Throw exception if SQLite database doesn't exist.\n" }, { "from": "human", "value": "<?php namespace Illuminate\\Database\\Connectors;\n\nclass SQLiteConnector extends Connector implements ConnectorInterface {\n\n\t/**\n\t * Establish a database connection.\n\t *\n\...
php
chosen
[ { "from": "human", "value": "Bring back the file which PhpStorm ate, see commit 5858e9a\n" }, { "from": "gpt", "value": "<?php\n/**\n * www\n */\nnamespace Ojs\\AnalyticsBundle\\Updater;\nuse Documents\\UserRepository;\nuse Ojs\\JournalBundle\\Entity\\JournalRole;\nclass MemberCountUpdater exten...
php
chosen
[ { "from": "system", "value": "Add sonos soap response debugging\n" }, { "from": "human", "value": "<?php\ninclude_once 'overcast.php';\ninclude_once 'sonos.php';\n\nswitch ($_GET['method']) {\n case 'login':\n echo json_encode(login($_GET['email'], $_GET['password']));\n break;\n case 'f...
php
chosen
[ { "from": "system", "value": "Change to new service name\n" }, { "from": "human", "value": "<?php\nnamespace Aura\\Project_Kernel\\_Config;\n\nuse Aura\\Di\\Config;\nuse Aura\\Di\\Container;\n\nclass Common extends Config\n{\n public function define(Container $di)\n {\n $di->set('lo...
php
chosen
[ { "from": "system", "value": "Update SignedRequest example to handle ValidationExceptions\n\nIf expected values are missing or invalid when calling createFromGlobals() an exception is thrown.\nThe example now demonstrates how an implementation can handle this and respond cleanly.\n" }, { "from": "hu...
php
chosen
[ { "from": "system", "value": "REMOVE DEBUG CODE FROM PRODUCTION *whistles innocently*\n" }, { "from": "human", "value": "<?php\n\nnamespace Korobi\\WebBundle\\Extension;\n\nclass ExtensionTwigFunctions extends \\Twig_Extension {\n\n public function getName() {\n return 'korobi_extensio...
php
chosen
[ { "from": "system", "value": "Remove commented code from exception\n" }, { "from": "human", "value": "<?php\n/**\n * Mailgun plugin for CakePHP 3\n * Copyright (c) Narendra Vaghela (http://www.narendravaghela.com)\n *\n * Licensed under The MIT License\n * For full copyright and license informat...
php
chosen
[ { "from": "system", "value": "BAP-7367: Implement an engine to allow add extensions to the layout engine. Add missed inheritdoc\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Component\\Layout\\Extension\\Core;\n\nuse Oro\\Component\\Layout\\Block\\Type;\nuse Oro\\Component\\Layout\\...
php
chosen
[ { "from": "system", "value": "Fix API Doc json generator\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers\\Api\\Doc;\n\n/**\n * @OA\\Info(title=\"Hammer CRM API\", version=\"1.0\")\n */\nclass DocGeneratorController\n{\n /**\n * @OA\\Get(\n * path=\"/re...
php
chosen
[ { "from": "system", "value": "Fix bad request when retrieving creditnote detail\n\nWhen retrieving a creditnote detail, the Teamleader API threw an error\n400 (bad request) because the required option \"creditnote_id\" was\nmissing.\n\nThe RetrieveCreditnoteRequest class was using the \"credit_id\" option\n...
php
chosen
[ { "from": "system", "value": "Add option to images links to open in parent tab or new tab\n" }, { "from": "human", "value": "<?php\n\nnamespace actsmart\\actsmart\\Actuators\\WebChat;\n\nclass WebChatImageMessage extends WebChatMessage\n{\n private $imgSrc = null;\n\n private $imgLink = nu...
php
chosen
[ { "from": "system", "value": "Add limit and offset options to directory search\n" }, { "from": "human", "value": "<?php\n\nnamespace Ilios\\WebBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\...
php
chosen
[ { "from": "system", "value": "Remove get/setTransactionReference() as they are already defined in AbstractRequest\n" }, { "from": "human", "value": "<?php\n\nnamespace Omnipay\\Mollie\\Message;\n\n/**\n * Mollie Fetch Transaction Request\n *\n * @method \\Omnipay\\Mollie\\Message\\FetchTransacti...
php
chosen
[ { "from": "system", "value": "Add whitespace to make markup clearer (whitespace only)\n" }, { "from": "human", "value": "<p>So OpenAustralia.org.au helped you find the facts - what next?</p>\n<h3>If you have a problem</h3>\n<h4>... with a public body or organisation</h4>\n<p>The Ombudsman Associ...
php
chosen
[ { "from": "system", "value": "Remove incorrect return button, enhance submit " }, { "from": "human", "value": "<table class=\"table table-condensed table-hover\">\n<tr>\n <th>{{ trans('manager.vacancies.table.th.date') }}</th>\n @foreach ($services as $service)\n <th>{{ $service->name }...
php
chosen
[ { "from": "system", "value": "Add the decoratable behavior to the dispatcher and add the document controller as decorator\n" }, { "from": "human", "value": "<?php\n/**\n * Kodekit Platform - http://www.timble.net/kodekit\n *\n * @copyright\tCopyright (C) 2011 - 2016 Johan Janssens and Timble CVB...
php
chosen
[ { "from": "system", "value": "Move empty key detection above starts_with check\n" }, { "from": "human", "value": "<?php\n\nnamespace Illuminate\\Encryption;\n\nuse RuntimeException;\nuse Illuminate\\Support\\Str;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass EncryptionServiceProvider exten...
php
chosen
[ { "from": "system", "value": "Load Segment in register method\n" }, { "from": "human", "value": "<?php\n\nnamespace CachetHQ\\Segment;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Segment;\n\nclass SegmentServiceProvider extends ServiceProvider\n{\n /**\n * Boot the service provider....
php
chosen
[ { "from": "system", "value": "Modify public contribute form definition\n" }, { "from": "human", "value": "<?php\n\n/**\n * ProTalk\n *\n * Copyright (c) 2012-2013, ProTalk\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this sour...
php
chosen
[ { "from": "system", "value": "Set release version to 0.7.4\n" }, { "from": "human", "value": "<?php\n\nrequire_once __DIR__ . '/Zigra/Core.php';\n/**\n * This class only exists for backwards compatability. All code was moved to\n * Zigra_Core and this class extends Zigra_Core\n *\n * @package Zi...
php
chosen
[ { "from": "system", "value": "Add template model to documentLoader\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the PHPOrchestra\\CMSBundle.\n *\n * @author Noël Gilain <noel.gilain@businessdecision.com>\n */\n\nnamespace PHPOrchestra\\CMSBundle\\Classes;\n\nclass Docum...
php
chosen
[ { "from": "system", "value": "Add explicit `void` return type to UserLoginCancelLostPasswordListener::__invoke()" }, { "from": "human", "value": "<?php\n\nnamespace wcf\\system\\event\\listener;\n\nuse wcf\\data\\user\\UserAction;\nuse wcf\\system\\user\\authentication\\event\\UserLoggedIn;\n\n/...
php
chosen
[ { "from": "system", "value": "Fix for fatal error with renamned DispatchesCommands trait\n" }, { "from": "human", "value": "<?php namespace Laravel\\Lumen\\Routing;\n\nuse Illuminate\\Http\\Request;\n\nabstract class Controller\n{\n use DispatchesCommands, ValidatesRequests;\n\n /**\n ...
php
chosen
[ { "from": "system", "value": "Improve performance by prefixing all global functions calls with \\ to\nskip the look up and resolve process and go straight to the global\nfunction\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "v...
php
chosen
[ { "from": "system", "value": "Add docblocks to observer function\n" }, { "from": "human", "value": "<?php\n/**\n * MinTotalQty observer model\n *\n * @category Jvs\n * @package Jvs_MinTotalQty\n * @author Javier Villanueva <javiervd@gmail.com>\n */\nclass Jvs_MinTotalQty_Model_Observer extend...
php
chosen
[ { "from": "system", "value": "Remove fields not in spec from JSON\n" }, { "from": "human", "value": "<?php\n\nnamespace UoMCS\\OpenBadges\\Backend;\n\nclass Earner extends Base\n{\n public $data = array(\n 'id' => null,\n 'identity' => null,\n 'hashed' => null,\n 'type' => null,\n ...
php
chosen
[ { "from": "system", "value": "Add spaces for indent the method declaration\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\AddressBundle\\Model;\n\nclass ExtendCountry \n{\npublic function __construct()\n {\n }\n}\n" }, { "from": "gpt", "value": "<?php\n\nnam...
php
chosen
[ { "from": "system", "value": "Allow the confirm default to be overridden\n" }, { "from": "human", "value": "<?php\n\nnamespace League\\CLImate\\TerminalObject\\Dynamic;\n\nuse function strtolower;\nuse function substr;\n\nclass Confirm extends Input\n{\n /**\n * Let us know if the user co...
php
chosen
[ { "from": "system", "value": "Fix typo in chunk linkset\n" }, { "from": "human", "value": "<?php defined('SYSPATH') OR die('No direct script access.');\n/**\n* @package\tBoomCMS\n* @category\tChunks\n* @author\tRob Taylor\n* @copyright\tHoop Associates\n*\n*/\nclass Boom_Chunk_Linkset extends Ch...
php
chosen
[ { "from": "system", "value": "Fix documentation. PHP does not allow arbitrary class casting.\n\nsvn commit r12147\n" }, { "from": "human", "value": "<?php\n\nrequire_once 'Swat/Swat.php';\nrequire_once 'Swat/SwatError.php';\nrequire_once 'Swat/exceptions/SwatException.php';\n\n/**\n * The base o...
php
chosen
[ { "from": "system", "value": "Move trans() for appointment status from Model to View\n" }, { "from": "human", "value": "<div class=\"panel panel-default\">\n <!-- Default panel contents -->\n <div class=\"panel-heading\">{{ $appointment->statusLabel }}</div>\n <div class=\"panel-body\">\n ...
php
chosen
[ { "from": "system", "value": "Tidy up the PHP version message\n" }, { "from": "human", "value": "<?php\r\n/*\r\nPlugin Name: Comment Timeout\r\nPlugin URI: http://bitbucket.org/jammycakes/comment-timeout/\r\nDescription: Automatically closes comments on blog entries after a user-configurable per...
php
chosen
[ { "from": "system", "value": "Fix multiselect form input name\n" }, { "from": "human", "value": "<div class=\"form-group {{ $errors->has($name) ? 'has-error' : '' }}\">\n\t<label for=\"{{ $name }}\">{{ $label }}</label>\n\t<div>\n\t\t<select id=\"{{ $name }}\" name=\"{{ $name }}[]\" class=\"form...
php
chosen
[ { "from": "system", "value": "Stop encoding of special characters in translations\n" }, { "from": "human", "value": "<?php\n\nreturn [\n 'create' => 'Cre&euml;er',\n 'edit' => 'Bewerk',\n 'save' => 'Opslaan',\n 'delete' => 'Verwijderen',\n\n 'verify' => 'Controleer',\n\n 'yes' ...
php
chosen
[ { "from": "system", "value": "Fix bug in migration to update asset links\n" }, { "from": "human", "value": "<?php\n\nuse BoomCMS\\Database\\Models\\Chunk\\Text;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass UpdateAssetLinks extends Migration\n{\n /**\n * Run the migrations.\n...
php
chosen
[ { "from": "system", "value": "Set logging level to writers before returning them from factory\n" }, { "from": "human", "value": "<?php\n\n\nnamespace Kibo\\Phast\\Factories\\Diagnostics\\LogDrivers;\n\n\nuse Kibo\\Phast\\HTTP\\Request;\n\nclass LogWritersFactory {\n\n public function make(arr...
php
chosen
[ { "from": "system", "value": "Exit if no accounts need to be repaired\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse App\\Entities\\Accounts\\Models\\Account;\nuse App\\Entities\\Groups\\Models\\Group;\nuse Illuminate\\Supp...
php
chosen
[ { "from": "system", "value": "Remove unnecessary references in service provider\n" }, { "from": "human", "value": "<?php namespace GeneaLabs\\LaravelSparkInstaller\\Providers;\n\nuse GeneaLabs\\LaravelSparkInstaller\\Console\\Commands\\SparkDowngrade;\nuse GeneaLabs\\LaravelSparkInstaller\\Conso...
php
chosen
[ { "from": "system", "value": "Add StartSession and ShareErrorsFromSession by default.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php namespace Orchestra\\Testbench\\Http;\n\nuse Exception;\n\nclass Kernel extends \\Illumi...
php
chosen
[ { "from": "system", "value": "Add more user milestones!! :tada:\n" }, { "from": "human", "value": "<?php\n/**\n * @author Pierre-Henry Soria <hi@ph7.me>\n * @copyright (c) 2018, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Public License; See PH7.LICENSE....
php
chosen
[ { "from": "system", "value": "Bugfix: Correct slug input attribute for readonly\n" }, { "from": "human", "value": "\t<div class=\"form-group\">\n\t\t{!! Form::label( trans('manager.businesses.form.name.label') ) !!}\n\t\t{!! Form::text('name', null, \n\t\t\tarray('required', \n\t\t\t\t 'id'=>'n...
php
chosen
[ { "from": "system", "value": "Add charset to HTML5 doc (and make more XHTML friendly)\n\ngit-svn-id: e52e7dec99011c9686d89c3d3c01e7ff0d333eee@2609 eee81c28-f429-11dd-99c0-75d572ba1ddd\n" }, { "from": "human", "value": "<!doctype html>\n<?php\n/*\n * fileopen.php\n * To be used with ext-server_op...
php
chosen
[ { "from": "system", "value": "Update demo for _parent field issue\n" }, { "from": "human", "value": "<?php \n\nrequire_once 'vendor/autoload.php';\nrequire_once 'ElasticSearch.php';\n\n//Get the search manager\n$sm = ElasticSearch::get();\n\n\n\n//Execute a direct Elastica term search\n$query = ...
php
chosen
[ { "from": "system", "value": "Add some fields to the topics model.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateTopicsTable extends Migration {\n\n\t/**\n\t * Run the migrations.\n\t *\n\...
php
chosen
[ { "from": "system", "value": "Add another test method skeleton\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\nuse Illuminate\\Foundation\\Testing\\DatabaseTransactions;\n\n/* \n * Func...
php
chosen
[ { "from": "system", "value": "Remove unnecessary ENT_HTML5 constant, which broke PHP 5.3 compatibility\n" }, { "from": "human", "value": "<?php\n\nnamespace ColinODell\\CommonMark\\Util;\n\nclass UrlEncoder\n{\n protected static $dontEncode = array(\n '%21' => '!',\n '%23' => '#...
php
chosen
[ { "from": "system", "value": "Fix admin error page styles.\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n<head>\n {{Asset::css()}}\n <link rel=\"stylesheet\" href=\"/themes/admin-lte/css/AdminLTE.min.css\">\n <link rel=\"stylesheet\" href=\"/themes/admin-lte/css/skins/skin...
php
chosen
[ { "from": "system", "value": "Fix upgrade fatal error due to PermissionKey defined as abstract class.\n\nThis fix eliminates a fatal error on line 77 of \"concrete/core/models/permission/key.php\" when upgrading from 5.2.x to 5.6.x due to attempt to instantiate an abstract class.\n\n\nFormer-commit-id: bbe7...
php
chosen
[ { "from": "system", "value": "Fix test for PHP 5.3.3\n" }, { "from": "human", "value": "<?php\n/**\n * PHP-DI\n *\n * @link http://php-di.org/\n * @copyright Matthieu Napoli (http://mnapoli.fr/)\n * @license http://www.opensource.org/licenses/mit-license.php MIT (see the LICENSE file)\n *...
php
chosen
[ { "from": "system", "value": "Add types to sales fixtures\n" }, { "from": "human", "value": "<?php\n\nnamespace TddWizard\\Fixtures\\Sales;\n\nuse Magento\\Sales\\Api\\Data\\ShipmentInterface;\n\nclass ShipmentFixture\n{\n /**\n * @var ShipmentInterface\n */\n private $shipment;\n\...
php
chosen
[ { "from": "system", "value": "Clean controller and add JsonResponse for success callback.\n\nOn branch master\n\tmodified: Parsley/ServerBundle/Controller/ValidationController.php\n" }, { "from": "human", "value": "<?php\n\nnamespace Parsley\\ServerBundle\\Controller;\n\nuse Symfony\\Bundle\\F...
php
chosen
[ { "from": "system", "value": "Fix problems with POST and PUT methods having blank body\n" }, { "from": "human", "value": "<?php\n\nnamespace filsh\\yii2\\oauth2server\\filters\\auth;\n\nuse \\Yii;\n\nclass CompositeAuth extends \\yii\\filters\\auth\\CompositeAuth\n{\n /**\n * @inheritdoc\...
php
chosen
[ { "from": "system", "value": "Switch from hstore to jsonb\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateInfoTable extends Migration\n{\n /**\n * Run the migrations.\n *\n * ...
php
chosen
[ { "from": "system", "value": "Add code to handle a file which comes from a temporary directory.\n" }, { "from": "human", "value": "<?php\nClass Violation{\n public $name;\n public $path;\n public $startLine;\n public $startColumn;\n public $endLine;\n public $endColumn;\n public $r...
php
chosen
[ { "from": "system", "value": "Update localization middleware to fix 404 page\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Middleware;\n\nuse Closure;\nuse Illuminate\\Support\\Facades\\Lang;\n\nclass LocalizationMiddleware\n{\n /**\n * Handle an incoming request.\n ...
php
chosen
[ { "from": "system", "value": "Fix typo in licence header.\n\n" }, { "from": "human", "value": "<?php\n\n/*\nPlugin Name: Fortytwo - Two Factor Authentication plugin\nPlugin URI: https://www.fortytwo.com\nDescription: Implement the fortytwo Two Factor Authentication service for login and register...
php
chosen
[ { "from": "system", "value": "Allow limiting of number of query results\n" }, { "from": "human", "value": "<?php\n\n$config = null; // We're doing this here so it can be instantiated once but used everywhere\n\nfinal class Config\n{\n\n const MODE = 'staging'; // options are \"development\", ...
php
chosen
[ { "from": "system", "value": "Change signup page to create an account and fix sign in link\n" }, { "from": "human", "value": "<div class=\"single\">\n <div class=\"panel warp\">\n <?php echo formOpen('user/signup'); ?>\n <h1>Sign Up</h1>\n <div>\n <?php echo in...
php
chosen
[ { "from": "system", "value": "Add a full screen link for the world map.\n" }, { "from": "human", "value": "<div id=\"content\">\n <h2><?= SYSNAME ?>: <? echo $wiredux_world_map ?></h2>\n <div id=\"region_map\">\n <iframe src=\"<?=SYSURL?>/app/map/index.php\" frameborder=\"0\" width=\"10...
php
chosen
[ { "from": "system", "value": "Update getAttributes() override to keep up with the PR for Symfony Routing.\n" }, { "from": "human", "value": "<?php\n\nnamespace Symfony\\Cmf\\Component\\Routing\\NestedMatcher;\n\nuse Symfony\\Component\\Routing\\Route;\nuse Symfony\\Component\\Routing\\RouteColle...
php
chosen
[ { "from": "system", "value": "Allow tests to be run when phpunit is installed as dependency of Stash and stash is root project\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Stash package.\n *\n * (c) Robert Hafner <tedivm@tedivm.com>\n *\n * For the full copyright a...
php
chosen
[ { "from": "system", "value": "Write to temp file then rename\n" }, { "from": "human", "value": "<?php\n\n###############################################################################\n# There are race conditions when using metrics cache with Nagios where\n# you can have multiple check script q...
php
chosen
[ { "from": "system", "value": "Add missing fire command for non-compound generators.\n" }, { "from": "human", "value": "<?php\n\nnamespace R\\Hive\\Commands;\n\nuse Illuminate\\Console\\GeneratorCommand;\n\nclass HiveGeneratorCommand extends GeneratorCommand\n{\n protected $compound = null;\n\...
php
chosen
[ { "from": "system", "value": "Use lower camel case to follow angular style guide\n" }, { "from": "human", "value": "@if(!$options['attribute'])import { Directive } from '{{ '@angular/core' }}';\n\n{{ '@Directive' }}({\n selector: '{{ $name }}',\n template: require('html!./{{ \"$name.$type....
php
chosen
[ { "from": "system", "value": "Change Escape:$sAllowTags to private + add missing phpdoc comment\n" }, { "from": "human", "value": "<?php\n/**\n * @title Escape Exception Trait\n * @desc Escape the exception message.\n *\n * @author Pierre-Henry Soria <ph7software@gmail...
php
chosen
[ { "from": "system", "value": "Define WP_ADMIN before loading WordPress\n\n... where \"loading WordPress\" also includes loading plugins and themes.\n\nAlso, define WP_NETWORK_ADMIN and WP_USER_ADMIN, for completeness.\n\nsee #385\n" }, { "from": "human", "value": "<?php\n\n// Can be used by plug...
php
chosen
[ { "from": "system", "value": "Revert \"ativation by adress mail\"\n\nThis reverts commit 16724a7f849b1110103b05f6d964a79dc2af344d.\n" }, { "from": "human", "value": "<?php\n\trequire_once(__DIR__. '/class/DatabaseManager.php');\n\n $hostname = \"localhost\";\n $database = \...
php
chosen
[ { "from": "system", "value": "Fix gallery image position field\n" }, { "from": "human", "value": "<?php\n\nnamespace Ekyna\\Bundle\\CoreBundle\\Form\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\n\n/**\n * Class GalleryImageType\n * @p...
php
chosen
[ { "from": "system", "value": "Add missing fields key to validation exception\n" }, { "from": "human", "value": "<?php\n\nnamespace Flugg\\Responder\\Exceptions\\Http;\n\nuse Illuminate\\Contracts\\Validation\\Validator;\n\n/**\n * An exception thrown whan validation fails. This exception replace...
php
chosen
[ { "from": "system", "value": "Upgrade dep to 1.3.7 for archive tar\n" }, { "from": "human", "value": "<?php\n/* This is a list of packages and versions\n * that will be used to create the PEAR folder\n * in the windows snapshot.\n * See win32/build/mkdist.php for more details\n * $Id$\n */\n$pac...
php
chosen
[ { "from": "system", "value": "Fix time display in Month view" }, { "from": "human", "value": "<?php \nif (count($context)) {\n ?>\n <a href=\"<?php echo $context->getURL(); ?>\"><?php echo $context->getDateTime()->format('j')?></a>\n <?php\n} else {\n echo $context->getDateTime()->fo...
php
chosen
[ { "from": "system", "value": "Add featured image size notice\n" }, { "from": "human", "value": "<?php\n/* ------------------------------------------------------------------------ *\\\n * Image Sizes\n\\* ------------------------------------------------------------------------ */\n\nadd_image_siz...
php
chosen
[ { "from": "system", "value": "Fix foreach to be architectical correct\n" }, { "from": "human", "value": "<?php\n include_once '../../config/config-local.php';\n include_once '../../models/database.php';\n include_once '../../models/db.php';\n include_once 'countries_array.php';\n ...
php
chosen
[ { "from": "system", "value": "Add native type to boolean fields\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...
php
chosen
[ { "from": "system", "value": "Add blacklist check for chat when a user sends a message\n" }, { "from": "human", "value": "<?php\n# Copyright (c) 2015 Jordan Turley, CSGO Win Big. All Rights Reserved.\n\nsession_start();\ninclude 'default.php';\ninclude 'SteamAuthentication/steamauth/userInfo.php...
php
chosen
[ { "from": "system", "value": "Put $this->lang and $this->db in the entity translate\n" }, { "from": "human", "value": "<?php\n\nnamespace ContentTranslator\\Entity;\n\nclass Translate\n{\n /**\n * Creates a language specific meta/options key\n * @param string $key The meta/option key...
php
chosen
[ { "from": "system", "value": "Order lessons inside course by position\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Beloop package.\n *\n * Copyright (c) 2016 AHDO Studio B.V.\n *\n * For the full copyright and license information, please view the LICENSE\n * file t...
php
chosen
[ { "from": "system", "value": "Fix wrong namespace in new test\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Client\\Predis\\Connection;\n\nuse PHPUnit\\Framework\\MockObject\\MockObject;\nuse PHPUnit\\Framework\\TestCase;\nuse Predis\\Command\\KeyScan;\nuse Pr...
php
chosen
[ { "from": "system", "value": "Remove local vars path & path_form\n" }, { "from": "human", "value": "<?php\n/**\n * @file\n * Containt Drupal\\AppConsole\\Generator\\FormGenerator.\n */\nnamespace Drupal\\AppConsole\\Generator;\n\nuse Drupal\\AppConsole\\Utils\\Utils;\n\nclass FormGenerator exten...
php
chosen
[ { "from": "system", "value": "III-168: Document the columns attribute and argument\n" }, { "from": "human", "value": "<?php\n\nnamespace CultuurNet\\UDB3\\EventExport\\FileWriter;\n\nclass TabularDataEventFormatter\n{\n /**\n * @var string[]\n */\n protected $includedProperties;\n\...
php
chosen
[ { "from": "system", "value": "Update container to use mock array rather than wrappers\n" }, { "from": "human", "value": "<?php\n\nnamespace Michaeljennings\\Carpenter\\Nexus;\n\nuse ArrayAccess;\nuse ArrayIterator;\nuse IteratorAggregate;\n\nclass Container implements ArrayAccess, IteratorAggreg...
php
chosen
[ { "from": "system", "value": "[AllBundles] Fix phpstan level 1 issues\n" }, { "from": "human", "value": "<?php\n\nnamespace Kunstmaan\\AdminListBundle\\AdminList;\n\n/**\n * FieldAlias\n */\nclass FieldAlias\n{\n /**\n * FieldAlias constructor.\n *\n * @param $abbr string\n * ...
php
chosen
[ { "from": "system", "value": "Fix issue with styling on error pages\n\nUsing the correct path_to_root now in ErrorCreator.\n" }, { "from": "human", "value": "<?php\n\n/**\n * Met deze PHP class kunnen pagina's voor de custom error pages gemaakt worden.\n */\nclass ErrorCreator {\n\n /**\n * D...
php
chosen
[ { "from": "system", "value": "Add comments on main file\n" }, { "from": "human", "value": "<?php\n\nrequire_once( '../../vendor/autoload.php' );\n\n( new \\Staq\\Server )\n\t->getCurrentApplication( )\n\t->addController( '/(:path)', function($path='World') {\n\t\treturn 'Hello '.$path;\n\t})\n\t...
php
chosen
[ { "from": "system", "value": "Rewrite spec test for SolrQueryBuilder so that a SearchTerm is passed.\n" }, { "from": "human", "value": "<?php\n\nnamespace spec\\SearchApi\\Builders;\n\nuse SearchApi;\nuse SearchApi\\Models;\nuse SearchApi\\Builders\\SolrQueryBuilder;\n\nuse PhpSpec\\ObjectBehavi...
php
chosen
[ { "from": "system", "value": "Add ability to change the response status code on ErrorsException\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: Alex\n * Date: 14/04/2019\n * Time: 12:48\n */\n\nnamespace vr\\api\\components;\n\nuse Error;\nuse Exception;\nuse vr\...
php
chosen
[ { "from": "system", "value": "Convert last long notation array to short notation\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html lang=\"en-US\">\n\t<head>\n\t\t<meta charset=\"utf-8\">\n\t</head>\n\t<body>\n\t\t<h2>Password Reset</h2>\n\n\t\t<div>\n\t\t\tTo reset your password, complet...
php
chosen
[ { "from": "system", "value": "Fix alias in update query\n" }, { "from": "human", "value": "<?php\n\nnamespace Lensky\\PerformanceBundle\\Entity;\n\nuse Doctrine\\ORM\\EntityRepository;\n\n/**\n * PostRepository\n *\n * This class was generated by the Doctrine ORM. Add your own custom\n * reposit...
php
chosen
[ { "from": "system", "value": "Use the same colour for all activities\n" }, { "from": "human", "value": "<?php\n\nnamespace AppBundle\\Services;\n\nuse Symfony\\Bridge\\Doctrine\\Form\\Type\\EntityType;\nuse Symfony\\Component\\Form\\Extension\\Core\\Type\\CheckboxType;\nuse CMEN\\GoogleChartsBun...
php
chosen
[ { "from": "system", "value": "Change use statement to ASFEntityManager\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of the Artscore Studio Framework package.\n *\n * (c) Nicolas Claverie <info@artscore-studio.fr>\n *\n * For the full copyright and license information, pleas...
php
chosen
[ { "from": "system", "value": "Fix the Json Response tester (was returning false on empty json array)\n" }, { "from": "human", "value": "<?php\n/**\n * sfTesterJsonResponse implements tests for the symfony response object.\n */\nclass sfTesterJsonResponse extends sfTester\n{\n /**\n * Prepares...
php
chosen