conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add some more placeholder text.\n" }, { "from": "human", "value": "@extends('layouts.default')\n\n@section('title')\nContact &middot; Indiana Real Estate Exchangors, Inc.\n@stop\n\n@section('content')\n <div class=\"content-block\">\n {{ Form::open(array('url' =...
php
chosen
[ { "from": "system", "value": "Allow no. to be searched as well\n\n" }, { "from": "human", "value": "<?php\n\nnamespace eien\\Helpers;\n\nuse wataridori\\SFS\\SimpleFuzzySearch;\n\nclass BusSearch\n{\n public function searchServices($query, Cached $cached)\n {\n $serviceObject = $cac...
php
chosen
[ { "from": "system", "value": "Fix tab instead of spaces indent\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Laravit;\n\ninterface SortableInterface\n{\n\tpublic function scopeSort($query, $type);\n\n public function scopeHot($query);\n\n public function scopeNew($query);\n\n ...
php
chosen
[ { "from": "system", "value": "Add more data to api login response\n" }, { "from": "human", "value": "<?php\n\nclass AuthController extends BaseController {\n\n public function login()\n {\n $remember = Input::get('remember') == 'true' ? true : false;\n\n if (Auth::attempt(['s...
php
chosen
[ { "from": "system", "value": "Add comment to indexAction in Home controller\n" }, { "from": "human", "value": "<?php\nnamespace App\\Controllers;\n\nuse App\\Framework\\Mvc\\Controller\\BasicController;\nuse App\\Services\\Instagram\\InstagramService;\n\n\nclass HomeController extends BasicContr...
php
chosen
[ { "from": "system", "value": "Add missing timestamps database table fields\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass Cr...
php
chosen
[ { "from": "system", "value": "Update ad_append_domain setting for backwards-compatibility with v4 and earlier\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nc...
php
chosen
[ { "from": "system", "value": "Update meta values and remove author link.\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n<head>\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"viewport\" content=\"width=device-width, in...
php
chosen
[ { "from": "system", "value": "Fix DataFixtures EPSG's import and implement EPSG's update\n" }, { "from": "human", "value": "<?php\nnamespace Mapbender\\CoreBundle\\DataFixtures\\ORM;\n\nuse Doctrine\\Common\\Persistence\\ObjectManager;\nuse Doctrine\\Common\\DataFixtures\\FixtureInterface;\nuse ...
php
chosen
[ { "from": "system", "value": "Add tests for Algorithm\\Directed (100% coverage)" }, { "from": "human", "value": "<?php\n\nuse Fhaculty\\Graph\\Algorithm\\Directed as AlgorithmDirected;\nuse Fhaculty\\Graph\\Graph;\n\nclass DirectedTest extends TestCase\n{\n public function testGraphEmpty()\n ...
php
chosen
[ { "from": "system", "value": "TASK: Change typo3.org reference to neos.io\n\nThis change uses www.neos.io instead of typo3.org for testing the CurlEngine.\n" }, { "from": "human", "value": "<?php\nnamespace TYPO3\\Flow\\Tests\\Functional\\Http\\Client;\n\n/*\n * This file is part of the TYPO3.Fl...
php
chosen
[ { "from": "system", "value": "[ENHANCE] Add precision in generate-db-schema's messages.\n" }, { "from": "human", "value": "<?php\nnamespace Change\\Commands;\n\nuse Change\\Commands\\Events\\Event;\n\n/**\n * @name \\Change\\Commands\\GenerateDbSchema\n */\nclass GenerateDbSchema\n{\n\t/**\n\t *...
php
chosen
[ { "from": "system", "value": "Add some comments to Aurora_Profiler class\n" }, { "from": "human", "value": "<?php\n\ndefined('SYSPATH') or die('No direct script access.');\n\n/**\n * Helper class to work with Kohana Profiler\n *\n * @package Aurora\n * @author Samuel Demirdjian\n * @copyright (c...
php
chosen
[ { "from": "system", "value": "Use singleton instead of bindShared\n\nbindShared is deprecated (https://github.com/laravel/framework/blob/5.1/src/Illuminate/Container/Container.php#L289) and was removed in Laravel 5.2" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of cocur/sl...
php
chosen
[ { "from": "system", "value": "Use proper argument in DateModifierTemplatePlugin\n\nCloses #1108" }, { "from": "human", "value": "<?php\nnamespace wcf\\system\\template\\plugin;\nuse wcf\\system\\template\\TemplateEngine;\nuse wcf\\util\\DateUtil;\n\n/**\n * Template modifier plugin which formats...
php
chosen
[ { "from": "system", "value": "Add build history seeder to initial seed\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Seeder;\n\nclass DatabaseSeeder extends Seeder\n{\n /**\n * Run the database seeds.\n *\n * @return void\n */\n public function run()...
php
chosen
[ { "from": "system", "value": "Add functions to construct endpoint urls for REST API\n" }, { "from": "human", "value": "<?php\n\nclass phpBrowserStack extends BrowserStack\n{\n function __construct($username, $accessKey, $apiVersion = '3')\n {\n parent::__construct($username, $access...
php
chosen
[ { "from": "system", "value": "Improve forum route registration API\n" }, { "from": "human", "value": "<?php namespace Flarum\\Events;\n\nuse Flarum\\Http\\RouteCollection;\n\nclass RegisterForumRoutes\n{\n /**\n * @var RouteCollection\n */\n public $routes;\n\n /**\n * @para...
php
chosen
[ { "from": "system", "value": "Fix column name in query\n" }, { "from": "human", "value": "<?\nrequire 'scat.php';\n\nhead(\"transactions\");\n\n$type= $_REQUEST['type'];\nif ($type) {\n $criteria= \"type = '\".$db->real_escape_string($type).\"'\";\n} else {\n $criteria= '1=1';\n}\n\n/*\n$q= $_...
php
chosen
[ { "from": "system", "value": "Fix unit test messing up the transaction on Oracle\n\nSince the unit test is skipped anyway for Oracle, the dropTable() call\nshould be skipped as well to avoid having a leftover transaction and\ncause further transactions to be nested and break the next test suites\nrequiring ...
php
chosen
[ { "from": "system", "value": "Create tests for cipher creation, retrieval.\n" }, { "from": "human", "value": "<?php\n\nuse UWDOEM\\Encryption\\Cipher;\n\nclass CipherTest extends PHPUnit_Framework_TestCase {\n\n static function setUpBeforeClass() {\n Cipher::createInstance(\"blaksjdfoi...
php
chosen
[ { "from": "system", "value": "Replace title with alt attribute in stapler_image list template\n" }, { "from": "human", "value": "\n<img class=\"stapler-thumbnail\" src=\"{{ $urlThumb }}\" title=\"{{ $filename }}\" width=\"{{ $width }}\" height=\"{{ $height }}\">\n\n" }, { "from": "gpt", ...
php
chosen
[ { "from": "system", "value": "Remove test that fails because of qualified function call\n" }, { "from": "human", "value": "<?php\n\nnamespace Ramsey\\Uuid\\Test\\Generator;\n\nuse phpmock\\phpunit\\PHPMock;\nuse Ramsey\\Uuid\\Test\\TestCase;\nuse Ramsey\\Uuid\\Generator\\SodiumRandomGenerator;\n...
php
chosen
[ { "from": "system", "value": "FIX Capitalisation of trait usage\n" }, { "from": "human", "value": "<?php\n\nnamespace SilverStripe\\VersionFeed\\Filters;\n\nuse SilverStripe\\VersionFeed\\VersionFeedController;\nuse SilverStripe\\Core\\Config\\Configurable;\nuse Psr\\SimpleCache\\CacheInterface;...
php
chosen
[ { "from": "system", "value": "Add LM User role create data\n" }, { "from": "human", "value": "<?php\n\nnamespace Ilios\\CoreBundle\\Tests\\DataLoader;\n\nclass LearningMaterialUserRoleData extends AbstractDataLoader\n{\n protected function getData()\n {\n $arr = array();\n\n ...
php
chosen
[ { "from": "system", "value": "Refactor the script file url\n" }, { "from": "human", "value": "<?php\n\n/**\n * Application component for registering with the Grunt's live reload plugin.\n */\nclass LiveReload extends CApplicationComponent\n{\n /**\n * @var string the host name of the serv...
php
chosen
[ { "from": "system", "value": "Add user friendly 404 page\n" }, { "from": "human", "value": "Not found. :(" }, { "from": "gpt", "value": "@extends('clearboard.main.template')\n\n@section('title', '404 Not Found')\n\n@section('content')\n <h1>404 Not Found</h1>\n <p>The page you ...
php
chosen
[ { "from": "system", "value": "[Serializer] Add a docblock to help type hinting" }, { "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 LICE...
php
chosen
[ { "from": "system", "value": "Stop / Restart Samba Grundgerüst hinzugefügt\n" }, { "from": "human", "value": "<?php\n\nif(isset($_POST['stop']))\n{\n\t// Stop\n}\nif(isset($_POST['restart']))\n{\n\t// neustarten\n}\n\n\n\n\n\n\n?>\n\n<h3>Samba Übersicht</h3>\n<fieldset>\n<p>Pfad zur Datei mit In...
php
chosen
[ { "from": "system", "value": "Replace array access to slims's container with a call to 'get'.\n" }, { "from": "human", "value": "<?php\n/**\n * PHP version 7.0\n *\n * This source file is subject to the license that is bundled with this package in the file LICENSE.\n */\nnamespace Ewallet\\Slim\...
php
chosen
[ { "from": "system", "value": "Add `list` test for OffsetAccessWithoutDimForReadingRule\n" }, { "from": "human", "value": "<?php\n\n$array = [];\n\n$array[] = 10;\n$array[][] = 10;\n$array[];\nvar_dump($array[]);\nwhile ($foo = $array[]) {}\n\n$array['foo']['bar'];\n$array['foo'][];\n$array[]['ba...
php
chosen
[ { "from": "system", "value": "Revert \"[5.1] Add new middleware\"\n" }, { "from": "human", "value": "<?php namespace App\\Http;\n\nuse Illuminate\\Foundation\\Http\\Kernel as HttpKernel;\n\nclass Kernel extends HttpKernel\n{\n /**\n * The application's global HTTP middleware stack.\n ...
php
chosen
[ { "from": "system", "value": "Fix object class assertion bug\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the Axstrad library.\n *\n * (c) Dan Kempster <dev@dankempster.co.uk>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that ...
php
chosen
[ { "from": "system", "value": "Replace phpdoc blocks by language type hints\n" }, { "from": "human", "value": "<?php\n\nnamespace PhpGitHooks\\Module\\Configuration\\Infrastructure\\Hook;\n\nuse Symfony\\Component\\Process\\Process;\n\nclass HookCopier\n{\n private $hookDir = '.git/hooks/';\n\...
php
chosen
[ { "from": "system", "value": "Fix hardwired redirect to analytics options page\n" }, { "from": "human", "value": "<?php\n\nclass Analytics_Options_Serializer {\n\n\tpublic function init() {\n\t\tadd_action( 'admin_post_analytics_options', array( $this, 'save' ) );\n\t}\n\t\n\tpublic static funct...
php
chosen
[ { "from": "system", "value": "Make access parameters a singleton.\n" }, { "from": "human", "value": "<?php\ninclude_once(\"app/models/Utils.php\");\n\nclass Dbc\n{\n protected static $instance = null;\n protected function __construct()\n {\n // Thou shalt not construct that which is uncons...
php
chosen
[ { "from": "system", "value": "Add cookie warning in compliance to eu cookie laws\n" }, { "from": "human", "value": "<?php\n\nuse Roots\\Sage\\Config;\nuse Roots\\Sage\\Wrapper;\n\n?>\n\n<?php get_template_part('templates/head'); ?>\n <body <?php body_class(); ?>>\n <!--[if lt IE 9]>\n <...
php
chosen
[ { "from": "system", "value": "Revert the mess WordPress makes\n" }, { "from": "human", "value": "<?php\n\n$m = new Mustache_Engine([\n 'loader' => new Mustache_Loader_FilesystemLoader(__DIR__.'/build/govuk_template/views/layouts', [\n 'extension' => '.html',\n ]),\n]);\n\n$template = $m->lo...
php
chosen
[ { "from": "system", "value": "Move notifications above the controls\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html lang=\"en-GB\">\n\n@include('partials.header')\n\n<body>\n @include('partials.navigation')\n\n <div class=\"container\">\n @include('partials.title')\n ...
php
chosen
[ { "from": "system", "value": "Make the username field unique\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateUsersTable extends Migration\n{\n /**\n * Run the migrations.\n *\n ...
php
chosen
[ { "from": "system", "value": "Change session cookie ttl to 1 month\n" }, { "from": "human", "value": "<?php\n\nnamespace BNETDocs\\Libraries;\n\nuse CarlBennett\\MVC\\Libraries\\Router;\nuse CarlBennett\\MVC\\Libraries\\Session as BaseSession;\n\nclass Session extends BaseSession {\n\n const C...
php
chosen
[ { "from": "system", "value": "[Security] Add more tests for StringUtils::equals\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 L...
php
chosen
[ { "from": "system", "value": "Fix an issue with AuthProviderConfig handles\n\nSummary: Fixes T11156. These were never correct, but also never actually used until I made timelines load object handles unconditionally in D16111.\n\nTest Plan: Viewed an auth provider with transactions, no more fatal.\n\nReviewe...
php
chosen
[ { "from": "system", "value": "Update for compatibility with Vagrant 1.2\n\n1.2 changed how the box UUID was written to the filesystem. Instead of\nJSON it's now written as a single file .vagrant/machines/default/virtualbox/id\n" }, { "from": "human", "value": "<?php\n/**\n * Checks current direc...
php
chosen
[ { "from": "system", "value": "Fix mistake in table name\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateMentionsPostsTable extends Migration\n{\n /**\n * Run the migrations.\n *\n...
php
chosen
[ { "from": "system", "value": "Add previous exception to DeleteHandlingException\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 that...
php
chosen
[ { "from": "system", "value": "Return video model ID as model's string representation\n" }, { "from": "human", "value": "<?php\n\nnamespace Craft;\n\n/**\n * YouTube Video Model.\n *\n * Contains video data.\n *\n * @author Bob Olde Hampsink <b.oldehampsink@itmundi.nl>\n * @copyright Copyright...
php
chosen
[ { "from": "system", "value": "Call \"checkAccessible()\" before rendering any page templates\n\nTo prevent that we render for example \"title.tpl\" which might access $viewer, for whose existance we chek in checkAccessible\n" }, { "from": "human", "value": "<?php\n\nclass CM_RenderAdapter_Page e...
php
chosen
[ { "from": "system", "value": "Disable WP debug for dvelopment environment\n" }, { "from": "human", "value": "<?php\n/* Development */\ndefine('SAVEQUERIES', true);\ndefine('WP_DEBUG', true);\ndefine('SCRIPT_DEBUG', true);\n" }, { "from": "gpt", "value": "<?php\n/* Development */\ndef...
php
chosen
[ { "from": "system", "value": "Move app.min.js above closing body tag\n" }, { "from": "human", "value": "</body>\n<script src=\"assets/js/app.min.js\" charset=\"utf-8\"></script>\n</html>\n" }, { "from": "gpt", "value": " <script src=\"assets/js/app.min.js\" charset=\"utf-8\"></scrip...
php
chosen
[ { "from": "human", "value": "Move the default contenttype table definition into a class" }, { "from": "gpt", "value": "<?php\nnamespace Bolt\\Database\\Table;\n\nclass ContentType extends BaseTable\n{\n /**\n * {@inheritdoc}\n */\n protected function addColumns()\n {\n //...
php
chosen
[ { "from": "system", "value": "Revert \"Return timestamp from pre-purchase\"\n\nThis reverts commit 4e279ff4535dfa0636a3d6af5c92b8e9dcc4311a.\n" }, { "from": "human", "value": "<?php\n\nnamespace Omnipay\\WeChat\\Message;\n\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\n\nclass WechatPur...
php
chosen
[ { "from": "system", "value": "Fix when locale is invalid after first guess\n" }, { "from": "human", "value": "<?php\n\nnamespace Kunstmaan\\LanguageChooserBundle\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\n\n...
php
chosen
[ { "from": "system", "value": "Fix % overflow on 32 bit systems\n\nSee http://php.net/manual/en/function.fmod.php\r\nPartially fixes #1" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the Random.php package.\n *\n * Copyright (C) 2013 Shota Nozaki <emonkak@gmail.com>\n *\n * ...
php
chosen
[ { "from": "system", "value": "[Bugfix] Add Apiato facade class to fix Apiato::call\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Containers\\Authentication\\Actions;\n\nuse App\\Containers\\Authorization\\Exceptions\\UserNotAdminException;\nuse App\\Ship\\Parents\\Actions\\Action;\n...
php
chosen
[ { "from": "system", "value": "Fix queries that don't use parameters\n" }, { "from": "human", "value": "<?php\nApp::uses('Model', 'Model');\n/**\n * A standard CakePHP AppModel with the find method overriden.\n * The code from it should be put in app/Model/AppModel.php\n */\nclass AppModel extend...
php
chosen
[ { "from": "system", "value": "Add Spotify in the factory method" }, { "from": "human", "value": "<?php\n/*\n * This file is part of the TubeLink package.\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n *\n * @...
php
chosen
[ { "from": "system", "value": "Fix missing « c » char on LastFmApiException.php" }, { "from": "human", "value": "<?php\n\nnamespace LastFmApi\\Exception;\n/**\n * CacheException\n *\n * @author Marcos Peña\n */\nclass ApiFailedException extends LastFmApiExeption\n{\n}\n" }, { "from": "gpt...
php
chosen
[ { "from": "system", "value": "Add settings table to get new nb\n" }, { "from": "human", "value": "<?php require(\"_header.php\"); ?>\n\n <div class=\"row\">\n <!--left-->\n <div class=\"col-md-3\" id=\"leftCol\">\n <div class=\"row\">\n...
php
chosen
[ { "from": "system", "value": "Set platform instead of statuses when creating or updating entity type.\n" }, { "from": "human", "value": "<?php\nnamespace Botamp\\Botamp\\ApiResource;\n\nclass EntityType extends AbstractApiResource\n{\n private $magentoOrderStatuses = [];\n private $configH...
php
chosen
[ { "from": "system", "value": "Add support for form data via POST\n" }, { "from": "human", "value": "<?php\n\nuse GuzzleHttp\\Client;\nuse GuzzleHttp\\Psr7\\Request;\n\nrequire __DIR__ . \"/vendor/autoload.php\";\n\n$client = new Client([\n \"http_errors\" => false,\n]);\n\n$url = \"https:/...
php
chosen
[ { "from": "system", "value": "Change object name to more explicit name\n" }, { "from": "human", "value": "<?php\n/**\n * @author Pierre-Henry Soria <ph7software@gmail.com>\n * @copyright (c) 2014-2017, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Public L...
php
chosen
[ { "from": "system", "value": "Fix tabulator at beginning of page when using IRC report\n" }, { "from": "human", "value": "\t<?php\n\t$settings = array(\n\t\t\"host\" => array(\n\t\t\t\"type\" => \"text\",\n\t\t\t\"default\" => \"localhost\",\n\t\t\t\"name\" => \"Destination host\",\n\t\t),\n\t\t...
php
chosen
[ { "from": "system", "value": "Fix render method for sfWidgetFormInputFileMulti\n" }, { "from": "human", "value": "<?php\n\n/**\n * sfWidgetFormInputFileMulti represents an upload HTML input tag with multiple option.\n *\n * @package symfony\n * @subpackage widget\n * @author Vincent Chabo...
php
chosen
[ { "from": "system", "value": "Remove 2FA from login page\n" }, { "from": "human", "value": "@extends('templates.master')\n\n@section('content')\n <form action=\"/login\" method=\"POST\">\n <input type=\"text\" name=\"username\" placeholder=\"Username\"><br />\n <input type=\"pas...
php
chosen
[ { "from": "system", "value": "Create administrator list for admin\n" }, { "from": "human", "value": "<?php\nsession_start();\nif (!isset($_SESSION['id'])) {\n\theader(\"Location: ../\");\n\tdie(\"Redirected\");\n} else if ($_SESSION['roleId'] != 1) {\n\theader(\"Location: ../\");\n\tdie(\"Redire...
php
chosen
[ { "from": "system", "value": "Fix $description to match with $author\n" }, { "from": "human", "value": "<?php\n\n/*\n * Core variables.\n *\n * Set up the site.\n */\n\n//\n// Meta\n//\n\n$encoding = 'utf-8';\n$title = 'Site';\nif (isset($slug)) {\n $title = \"$slug &middot; $title\";\n}\n$desc...
php
chosen
[ { "from": "system", "value": "Add hints about ntp and updates\n" }, { "from": "human", "value": "<?php\n\nnamespace AppBundle\\Form;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolver;\n\nc...
php
chosen
[ { "from": "system", "value": "Fix coding standard [skip fix]\n" }, { "from": "human", "value": "<?php\n\nnamespace Miaoxing\\User\\Controller\\Admin;\n\nuse miaoxing\\plugin\\BaseController;\n\nclass Password extends BaseController\n{\n protected $controllerName = '密码管理';\n\n protected $ac...
php
chosen
[ { "from": "system", "value": "Add magic method docblock to Laravel bridge facade\n" }, { "from": "human", "value": "<?php\n\nnamespace Chief\\Bridge\\Laravel\\Facades;\n\nuse Illuminate\\Support\\Facades\\Facade;\n\nclass Chief extends Facade\n{\n /**\n * Get the registered name of the co...
php
chosen
[ { "from": "system", "value": "Add scalar typehints/return types on final/internal/private code\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, ...
php
chosen
[ { "from": "system", "value": "Add a default install path.\n" }, { "from": "human", "value": "<?php\n\nnamespace rvtraveller\\QuicksilverComposerInstaller;\n\nuse Composer\\Package\\PackageInterface;\nuse Composer\\Installer\\LibraryInstaller;\n\nclass QuicksilverComposerInstaller extends Library...
php
chosen
[ { "from": "system", "value": "Fix script name in instruction comment\n" }, { "from": "human", "value": "<?php\n\n// A very simple helper script used to generate self-signed certificates.\n// Accepts the CN and an optional passphrase to encrypt the private key.\n//\n// $ php 10-generate-self-sign...
php
chosen
[ { "from": "system", "value": "Add the CRUD Of Projects Type & Project Status.\n" }, { "from": "human", "value": "<?php\n\nnamespace AppBundle\\Form;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\Optio...
php
chosen
[ { "from": "system", "value": "Fix array comparison, passing array instead of serialized array\n" }, { "from": "human", "value": "<?php\n\nnamespace PhpAbac\\Comparison;\n\nclass ArrayComparison\n{\n /**\n * @param string $serializedHaystack\n * @param mixed $needle\n *\n * @r...
php
chosen
[ { "from": "system", "value": "Add factory for Spending model\n" }, { "from": "human", "value": "<?php\n\nuse App\\User;\n\n$factory->define(User::class, function (Faker\\Generator $faker) {\n return [\n 'name' => $faker->name,\n 'email' => $faker->unique()->safeEmail,\n '...
php
chosen
[ { "from": "system", "value": "Add ability to change keys on HasContry relation\n" }, { "from": "human", "value": "<?php\n\nnamespace Gerardojbaez\\GeoData\\Traits;\n\nuse Gerardojbaez\\GeoData\\Models\\Country;\n\ntrait HasCountry\n{\n\t/**\n\t * Get parent country.\n\t *\n\t * @return mixed\n\t...
php
chosen
[ { "from": "system", "value": "Use the plain ole edit\n" }, { "from": "human", "value": "<?php namespace Anomaly\\Streams\\Addon\\Module\\Users\\Ui\\Table;\n\nuse Anomaly\\Streams\\Platform\\Ui\\Table\\TableBuilder;\n\n/**\n * Class UserTableBuilder\n *\n * @link http://anomaly.is/stream...
php
chosen
[ { "from": "system", "value": "Change the highlighted color from blue to orange\n" }, { "from": "human", "value": "<?php\n\nnamespace Dock\\Cli\\Docker;\n\nuse Dock\\Installer\\DockerInstaller;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputInter...
php
chosen
[ { "from": "system", "value": "Increase clarity of reasons to not be verbose\n" }, { "from": "human", "value": "<?php\n\nabstract class ApiController\n{\n protected $config;\n\n public function __construct($config = null)\n {\n $this->config = $config;\n }\n\n public functio...
php
chosen
[ { "from": "system", "value": "Revert demo api to show system\n" }, { "from": "human", "value": "<?php\n\nnamespace OParl\\Server\\API\\Controllers;\n\nuse App\\Http\\Controllers\\Controller;\nuse Illuminate\\Routing\\Route;\nuse Illuminate\\Routing\\Router;\n\nclass RootController extends Contro...
php
chosen
[ { "from": "system", "value": "Move module name filtering into own function\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types = 1);\n\nnamespace Raml2Apigility\\Generator;\n\nuse Raml\\ApiDefinition;\nuse Zend\\ModuleManager\\ModuleManager;\nuse ZF\\Apigility\\Admin\\Model\\ModuleMod...
php
chosen
[ { "from": "system", "value": "Remove unneeded get_defined_vars and hard coded facade references.\n" }, { "from": "human", "value": "<?php namespace Msurguy\\Honeypot;\n\nuse Illuminate\\Support\\Facades\\View;\nuse Illuminate\\Support\\Facades\\Crypt;\n\nclass Honeypot{\n\n /**\n * Functi...
php
chosen
[ { "from": "system", "value": "CC-5781: Upgrade script for new storage quota implementation\n" }, { "from": "human", "value": "<?php\n\n// Define path to application directory\ndefined('APPLICATION_PATH')\n || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../../../install_minimal/....
php
chosen
[ { "from": "system", "value": "CC-5781: Upgrade script for new storage quota implementation\n" }, { "from": "human", "value": "<?php\n\n// Define path to application directory\ndefined('APPLICATION_PATH')\n || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../../../install_minimal/....
php
chosen
[ { "from": "system", "value": "Replace call_user_func_array() with unpack syntax\n" }, { "from": "human", "value": "<?php namespace util;\n\nuse lang\\reflect\\InvocationHandler;\nuse lang\\Throwable;\nuse lang\\ClassCastException;\n\n/**\n * Lazy initializable InvokationHandler \n *\n * @test x...
php
chosen
[ { "from": "human", "value": "Create the frameworks custom namespace" }, { "from": "gpt", "value": "<?php\n/**\n * @link https://github.com/nephp/trinity for the canonical source repository\n * @copyright Copyright (c) 2017-2017 nephp. (https://github.com/nephp)\n * @license https://github...
php
chosen
[ { "from": "system", "value": "Remove initial forward slash from url\n" }, { "from": "human", "value": "<?php\n\nrequire 'src/EndpointRouter.php';\nrequire 'src/endpoints/EndpointHandler.php';\nrequire 'src/endpoints/SummaryEndpoint.php';\nrequire 'src/endpoints/IPEndpoint.php';\nrequire 'src/end...
php
chosen
[ { "from": "system", "value": "Add error handling to cache refreshing\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse App\\Classes\\CoinDataService;\nuse Illuminate\\Console\\Command;\n\nclass RefreshCoinMarketCap extends Command\n{\n /**\n * The name a...
php
chosen
[ { "from": "system", "value": "Fix inverted logic on the logging expired details check\n" }, { "from": "human", "value": "<?php\r\n\r\nclass SV_IntegratedReports_XenForo_Model_Warning extends XFCP_SV_IntegratedReports_XenForo_Model_Warning\r\n{\r\n public function processExpiredWarnings()\r\n ...
php
chosen
[ { "from": "system", "value": "Reduce noise in test output\n\nSigned-off-by: Joas Schilling <ab43a7c9cb5b2380afc4ddf8b3e2583169b39a02@schilljs.com>\n" }, { "from": "human", "value": "<?php\n/**\n * @copyright Copyright (c) 2016, ownCloud GmbH.\n *\n * @author Roeland Jago Douma <roeland@famdouma....
php
chosen
[ { "from": "system", "value": "Update home page redirecting (ordered by header menu list)\n" }, { "from": "human", "value": "<?php\n\n/***********************************************************************\nElf Web App\nCopyright (C) 2013-2015 Kazuichi Takashiro\n\nThis program is free software...
php
chosen
[ { "from": "system", "value": "Simplify code pertaining to running all testscases in controller\n" }, { "from": "human", "value": "<?php\n class TestrunController extends ControllerBase {\n public $environment = 'test';\n\n public function create( $name = '' ) {\n $all...
php
chosen
[ { "from": "system", "value": "FIX Values return type comment\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: ahmetturk\n * Date: 19/03/2017\n * Time: 09:04\n */\n\nnamespace Fabs\\CouchDB2\\Response;\n\nuse Fabs\\Serialize\\SerializableObject;\n\nclass ViewRespon...
php
chosen
[ { "from": "system", "value": "Make $page_title empty instead of false by default\n" }, { "from": "human", "value": "<?php\n\n/**\n * Layout helper\n *\n * Crystallized layout generator.\n */\n\n/*\n * Layout generator\n *\n * `$layout` => layout name\n * `$data` => data file name\n *...
php
chosen
[ { "from": "system", "value": "Fix type hinting for topic policy\n" }, { "from": "human", "value": "<?php namespace App\\Policies;\n\nuse App\\Data\\User;\nuse App\\Data\\Discussion;\nuse Illuminate\\Auth\\Access\\HandlesAuthorization;\n\nclass TopicPolicy\n{\n\tuse HandlesAuthorization;\n\n\tpub...
php
chosen
[ { "from": "system", "value": "Remove the debug option, it didn't do anything.\n" }, { "from": "human", "value": "<?php defined('SYSPATH') or die('No direct script access.');\n\nreturn array(\n\t/**\n\t * Gzip can dramatically reduce the size of the sitemap. We recommend you use\n\t * this option...
php
chosen
[ { "from": "system", "value": "Change 1st argument's variable name.\n" }, { "from": "human", "value": "<?php\n\n/**\n * Add here as many arguments as segments you want to be used on your URIs or as arguments to the\n * CLI runner.\n */\n\n\nif(PHP_SAPI == 'cli') {\n\t$arguments_structure = array(...
php
chosen
[ { "from": "system", "value": "Test the type of return value\n" }, { "from": "human", "value": "<?php\n\nrequire '../simplexml2flatarray.class.php';\n\nclass SimpleXML2FlatArray_Test extends PHPUnit_Framework_TestCase\n{\n /**\n * Test SimpleXML2FlatArray::get() output is correct array\n ...
php
chosen
[ { "from": "system", "value": "Fix code standards on callback\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Respect/Validation.\n *\n * (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net>\n *\n * For the full copyright and license information, please view the \"LICENSE...
php
chosen