conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add logic to detect usage of Google Fonts\n" }, { "from": "human", "value": "<?php\n\nnamespace AmpProject\\Optimizer\\Transformer;\n\nuse AmpProject\\Dom\\Document;\nuse AmpProject\\Optimizer\\ErrorCollection;\nuse AmpProject\\Optimizer\\Transformer;\n\nfinal class...
php
chosen
[ { "from": "system", "value": "Correct variables, and have it add to number given in get request." }, { "from": "human", "value": "<html>\n<head>\n<title>Number Counter</title>\n</head>\n<body>\n<?php\n\n $date = $_GET['date'];\n \n\tif (!isset($date)) die(\"Give me a number boo\");\n\tif ($dat...
php
chosen
[ { "from": "system", "value": "Add a \"secure\" query to the ssl redirect to possibly avoid being caught in the cache layer\n" }, { "from": "human", "value": "<?php\n// We always use SSL\nif ($_SERVER['HTTP_X_FORWARDED_PROTO'] != 'https')\n{\n\theader('Location: https://tribunal.phpfogapp.com/');...
php
chosen
[ { "from": "system", "value": "Add basic homepage for unauthenticated users\n" }, { "from": "human", "value": "<?php\nrequire_once __DIR__.\"/header.php\";\nrequire_once(__DIR__.\"/views/views.php\");\n?>\n\n<!DOCTYPE html>\n<html>\n\t<?php if(isset($_SESSION[\"loggedIn\"]) && $_SESSION[\"loggedI...
php
chosen
[ { "from": "system", "value": "Remove mail settings backwards compatibility layer\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Flarum.\n *\n * For detailed copyright and license information, please view the\n * LICENSE file that was distributed with this source code.\n ...
php
chosen
[ { "from": "system", "value": "Remove php7.1 iterable type hint from test\n" }, { "from": "human", "value": "<?php\nuse PHPUnit\\Framework\\TestCase;\nuse Garp\\Functional as f;\n\n/**\n * @package Garp\\Functional\n * @author Harmen Janssen <harmen@grrr.nl>\n * @license https://github.com/gr...
php
chosen
[ { "from": "system", "value": "Fix Git Show path call\n" }, { "from": "human", "value": "<?php\n\nnamespace Github\\Api\\GitData;\n\nuse Github\\Api\\AbstractApi;\nuse Github\\Exception\\MissingArgumentException;\n\n/**\n * @link http://developer.github.com/v3/git/commits/\n * @author Joseph Bi...
php
chosen
[ { "from": "system", "value": "Return the thumbnail for vimeo video's\n" }, { "from": "human", "value": "<?php\n\nnamespace Backend\\Modules\\MediaLibrary\\Component\\StorageProvider;\n\nuse Backend\\Modules\\MediaLibrary\\Domain\\MediaItem\\MediaItem;\n\nclass VimeoStorageProvider extends MovieS...
php
chosen
[ { "from": "system", "value": "Allow more zvals to be passed as ref\n" }, { "from": "human", "value": "<?php\n\nnamespace PHPPHP\\Engine\\OpLines;\n\nuse PHPPHP\\Engine\\Zval;\n\nclass Send extends \\PHPPHP\\Engine\\OpLine {\n\n public function execute(\\PHPPHP\\Engine\\ExecuteData $data) {\n ...
php
chosen
[ { "from": "system", "value": "Use Amp\\call to run tasks\n\nHandles generator to coroutine convertion and React promises automatically.\n" }, { "from": "human", "value": "<?php\n\nnamespace Amp\\Parallel\\Worker\\Internal;\n\nuse Amp\\Coroutine;\nuse Amp\\Failure;\nuse Amp\\Parallel\\Sync\\Chann...
php
chosen
[ { "from": "system", "value": "Add another test for \\Missing\\Arr::sort_by\n" }, { "from": "human", "value": "<?php\n\nclass ArrTest extends PHPUnit_Framework_TestCase {\n function testFlatten() {\n $this->assertEquals(\n array('a', 'b', 'c', 'd'),\n Missing\\Arr::flatten(array(\n ...
php
chosen
[ { "from": "system", "value": "Fix example-17, was using subscription where a subscription id was expected.\n" }, { "from": "human", "value": "<?php\n/*\n * Example 17 - How to cancel a subscription.\n */\n\ntry\n{\n\t/*\n\t * Initialize the Mollie API library with your API key or OAuth access to...
php
chosen
[ { "from": "system", "value": "Modify splitter logic to include additional psr-4 namespace.\n" }, { "from": "human", "value": "<?php\n\nnamespace WP_CLI;\n\n/**\n * Class AutoloadSplitter.\n *\n * This class is used to provide the splitting logic to the\n * `wp-cli/autoload-splitter` Composer plu...
php
chosen
[ { "from": "system", "value": "Use new menu ordener in api controller\n" }, { "from": "human", "value": "<?php namespace Modules\\Menu\\Http\\Controllers\\Api;\n\nuse Illuminate\\Contracts\\Cache\\Repository;\nuse Illuminate\\Http\\Request;\nuse Modules\\Menu\\Services\\MenuService;\n\nclass Menu...
php
chosen
[ { "from": "system", "value": "Fix failing test - Photo ID Guide to Larvae at Hydrothermal Vents.\n" }, { "from": "human", "value": "<?php\r\nnamespace php_active_record;\r\n\r\nrequire_library('connectors/HydrothermalVentLarvaeAPI');\r\n\r\nclass test_connector_vent_larvae_api extends Simpletest...
php
chosen
[ { "from": "system", "value": "Change page size of discuss page from 3 to 6.\n\ngit-svn-id: e1a96f6b7015dfe5b5e86c875acd3ba0869cf04b@103 afa44554-0db9-64d6-dc80-ec3199b23f77\n" }, { "from": "human", "value": "<?php\n\n# Directory where the Sprinkles code, and the caches, reside.\n$sprinkles_dir =...
php
chosen
[ { "from": "system", "value": "Return the thumbnail for youtube videos\n" }, { "from": "human", "value": "<?php\n\nnamespace Backend\\Modules\\MediaLibrary\\Component\\StorageProvider;\n\nuse Backend\\Modules\\MediaLibrary\\Domain\\MediaItem\\MediaItem;\n\nclass YoutubeStorageProvider extends Mov...
php
chosen
[ { "from": "system", "value": "Remove references to VERBOSE constant\n" }, { "from": "human", "value": "<?php\r\n\r\nnamespace DataStream\\Configuration;\r\n\r\n/**\r\n* Contains functions to be executed when a property is set\r\n*/\r\nclass Configuration extends DefaultConfiguration\r\n{\r\n /*...
php
chosen
[ { "from": "system", "value": "Fix to the mapper related entities when null\n" }, { "from": "human", "value": "<?php\nnamespace FS\\SolrBundle\\Doctrine\\Mapper\\Mapping;\n\nuse FS\\SolrBundle\\Doctrine\\Annotation\\Field;\nuse FS\\SolrBundle\\Doctrine\\Mapper\\MetaInformationInterface;\nuse Doct...
php
chosen
[ { "from": "system", "value": "Put php docblock for the class\n" }, { "from": "human", "value": "<?php\r\n/**\r\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\r\n * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\r\n * LIMITED TO, THE IMPLIED WARRANTIE...
php
chosen
[ { "from": "system", "value": "Update notification model to spit out id\n" }, { "from": "human", "value": "<?php\r\nnamespace Kregel\\Radio\\Models;\r\n\r\nuse Illuminate\\Database\\Eloquent\\Model;\r\nuse Illuminate\\Support\\Facades\\Redis;\r\nuse Kregel\\FormModel\\Traits\\Formable;\r\nuse Kre...
php
chosen
[ { "from": "system", "value": "Remove references to customer.io service class\n" }, { "from": "human", "value": "<?php\n\nnamespace Northstar\\Console\\Commands;\n\nuse Northstar\\Models\\User;\nuse Illuminate\\Console\\Command;\nuse Northstar\\Services\\CustomerIo;\nuse Illuminate\\Support\\Coll...
php
chosen
[ { "from": "system", "value": "Add getter for all api token names\n" }, { "from": "human", "value": "<?php\n\n/**\n * Class representing an API token for the Nosto API's.\n */\nclass NostoApiToken\n{\n\t/**\n\t * @var string the token name, must be one of the defined tokens from self::$tokenNames...
php
chosen
[ { "from": "system", "value": "Check methods for keys and values added.\n" }, { "from": "human", "value": "<?php\n\nnamespace WBoyz\\LaravelEnum;\n\nuse ReflectionClass;\n\nabstract class BaseEnum\n{\n const DEFAULT_VALUE = 0;\n\n /**\n * Returns an enum value by its key.\n *\n ...
php
chosen
[ { "from": "system", "value": "Fix: Use instanceof instead of is_a()\n" }, { "from": "human", "value": "<?php\n\nnamespace TomPHP\\ContainerConfigurator;\n\nuse TomPHP\\ContainerConfigurator\\Exception\\UnknownContainerException;\n\nfinal class ContainerAdapterFactory\n{\n /**\n * @var arr...
php
chosen
[ { "from": "system", "value": "Fix template file not found\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of eelly package.\n *\n * (c) eelly.com\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was dis...
php
chosen
[ { "from": "system", "value": "Correct syntax for passing parameters to scheduler tasks\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Console;\n\nuse Illuminate\\Console\\Scheduling\\Schedule;\nuse Illuminate\\Foundation\\Console\\Kernel as ConsoleKernel;\n\nclass Kernel extends Cons...
php
chosen
[ { "from": "system", "value": "Support laravel view style path seperator\n" }, { "from": "human", "value": "<?php\n\nnamespace REBELinBLUE\\Deployer\\Scripts;\n\n/**\n * Class which loads a shell script template and parses any variables.\n */\nclass Parser\n{\n /**\n * Parse a string to re...
php
chosen
[ { "from": "system", "value": "Fix output error in make migration command.\n" }, { "from": "human", "value": "<?php\n\nnamespace Yarak\\Commands;\n\nuse Yarak\\Config\\Config;\nuse Yarak\\Migrations\\MigrationCreator;\nuse Symfony\\Component\\Console\\Input\\InputOption;\nuse Symfony\\Component\\...
php
chosen
[ { "from": "system", "value": "Remove override for 'swiftmailer.transport' service\n" }, { "from": "human", "value": "<?php\n\nnamespace Bolt\\Provider;\n\nuse Bolt\\Helpers\\Deprecated;\nuse Pimple\\Container;\nuse Pimple\\ServiceProviderInterface;\nuse Silex\\Provider\\SwiftmailerServiceProvide...
php
chosen
[ { "from": "system", "value": "Add mobile capable meta tags\n\nThis will enable an experience on \"save to homescreen\" which is close to an app, because it will for example hide the browser chrome. This leaves the whole screen for content." }, { "from": "human", "value": "<head>\n <meta chars...
php
chosen
[ { "from": "system", "value": "kwf/check: Remove check for db connection\n\nThis url is used to check if the webserver is up and running (and can be used by load balancer).\nWhen the database is down that's a different issue the webserver is not responsible for, and\ncan not be solved by restarting the webse...
php
chosen
[ { "from": "system", "value": "Fix for HTTP method exception.\n" }, { "from": "human", "value": "@extends('caravel::master')\n\n@inject('form', 'adamwathan.form')\n@inject('bootForm', 'bootform')\n\n@section('container')\n\n <div class=\"row\">\n <div class=\"col-md-12\">\n\n ...
php
chosen
[ { "from": "system", "value": "Add more shards to test speed\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n 'index' => 'sites',\n 'body' => [\n 'settings' => [\n 'number_of_shards' => 10,\n 'number_of_replicas' => 0,\n ],\n 'mapping' ...
php
chosen
[ { "from": "system", "value": "Support all Apollo's subscriptions transport sub-protocol" }, { "from": "human", "value": "<?php\n\nnamespace Siler\\Graphql;\n\nuse Ratchet\\ConnectionInterface;\nuse Ratchet\\MessageComponentInterface;\nuse Ratchet\\WebSocket\\WsServerInterface;\nuse Siler\\Graphq...
php
chosen
[ { "from": "system", "value": "Set defaults from class constants.\n" }, { "from": "human", "value": "<?php\nnamespace Gt\\Database\\Connection;\n\nclass DefaultSettings {\n\npublic function getDataSource():string {\n\treturn \"\";\n}\n\npublic function getDatabase():string {\n\treturn \"\";\n}\n\...
php
chosen
[ { "from": "system", "value": "Add method for api interface\n" }, { "from": "human", "value": "<?php\n\nnamespace Aalmond\\Sdsrs\\Api;\n\ninterface ApiControllerInterface\n{\n}\n" }, { "from": "gpt", "value": "<?php\n\nnamespace Aalmond\\Sdsrs\\Api;\n\ninterface ApiControllerInterface...
php
chosen
[ { "from": "system", "value": "Test of a vendor repository checkin." }, { "from": "human", "value": "<?php\n\nnamespace Cerad\\Module\\AuthModule\\Tests;\n\nrequire __DIR__ . '/../../../vendor/autoload.php';\n\nuse Cerad\\Module\\KernelModule\\KernelContainer;\n\nuse Cerad\\Module\\AuthModule\\A...
php
chosen
[ { "from": "system", "value": "Change bindShared to singleton due to deprecation since Laravel 5.1\n" }, { "from": "human", "value": "<?php namespace Barryvdh\\TranslationManager;\n\nuse Illuminate\\Translation\\TranslationServiceProvider as BaseTranslationServiceProvider;\n\nclass TranslationSer...
php
chosen
[ { "from": "system", "value": "Reset Pager index when searching\n\nSigned-off-by: Gerco van Heerdt <43740ea33a86c60a8dadd26e55cb69b32c6ef141@gmail.com>\n" }, { "from": "human", "value": "<?php\n\nimport_lib('interactive/Form');\n\nclass Search {\n private $index;\n private $form;\n priva...
php
chosen
[ { "from": "system", "value": "Improve error message for malformed dependencies\n" }, { "from": "human", "value": "<?php\n\nnamespace Phactory;\n\nclass Dependency\n{\n\tprivate $dependency;\n\tprivate $property;\n\n\tpublic function __construct($dependency)\n\t{\n\t\t$this->dependency = $depende...
php
chosen
[ { "from": "system", "value": "Set return types for reference methods in Merchant interface\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Active Collab Payments project.\n *\n * (c) A51 doo <info@activecollab.com>. All rights reserved.\n */\n\ndeclare(strict_types=1)...
php
chosen
[ { "from": "system", "value": "Test if the toList() method is returning the correct array values\n" }, { "from": "human", "value": "<?php\nuse Galahad\\LaravelAddressing\\Country;\nuse Galahad\\LaravelAddressing\\CountryCollection;\n\n/**\n * Class CountryCollectionTest\n *\n * @author Junior Gro...
php
chosen
[ { "from": "system", "value": "Add branch to github-updater configuration\n\nWe'll probably need to create a branch call releases and tag off that for all future releases to avoid github updater taking them to master." }, { "from": "human", "value": "<?php\n/**\n * Plugin Name: Culture Object\n *...
php
chosen
[ { "from": "system", "value": "BAP-3246: Store chart options in report entity\n-add field and migration\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\ReportBundle\\Migrations\\Schema\\v1_1;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Oro\\Bundle\\MigrationBundle\\Migration\\M...
php
chosen
[ { "from": "system", "value": "Add restriction to allowed types in base type extension\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the BootstrapBundle project.\n *\n * (c) 2013 Philipp Boes <mostgreedy@gmail.com>\n *\n * For the full copyright and license information, p...
php
chosen
[ { "from": "system", "value": "Fix typo in session item controller\n" }, { "from": "human", "value": "<?php\n\t//used to control access to item stored in the session\n\t//used when trying to save and item with errors and need to preload form\n\t//or when saving and adding another\n\n/**\n* \n*/\n...
php
chosen
[ { "from": "system", "value": "FIX Add namespace import for stub modifier\n" }, { "from": "human", "value": "<?php\n\nnamespace SilverStripe\\Forms\\Tests;\n\nclass SegmentFieldTestModifier extends AbstractSegmentFieldModifier\n{\n /**\n * @inheritdoc\n *\n * @param string $value\n...
php
chosen
[ { "from": "system", "value": "Fix the warning for strict mode (PHP 5.4)\n" }, { "from": "human", "value": "<?php\n\n/**\n * Renders a tag cloud, with more frequently used tags appearing larger.\n */\n\nif (! $this->internal) {\n\t$page->layout = $appconf['Blog']['layout'];\n\t$page->title = i18n...
php
chosen
[ { "from": "system", "value": "Use Carbon instead of default PHP Date\n" }, { "from": "human", "value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Experience extends Model\n{\n //\n\n public $table ='experiences';\n protected $fillable = ['id','user_id','...
php
chosen
[ { "from": "system", "value": "Increase code coverage on FrequencyTransformer\n" }, { "from": "human", "value": "<?php\n\nnamespace Recurrence\\tests\\units\\RruleTransformer;\n\nrequire_once __DIR__.'/../../../../src/Recurrence/RruleTransformer/FreqTransformer.php';\n\nuse atoum;\n\n/**\n * Clas...
php
chosen
[ { "from": "system", "value": "Use normalizer to override unset 'class' attr on html step type\n" }, { "from": "human", "value": "<?php\n\n/**\n * @author: Gabriel BONDAZ <gabriel.bondaz@idci-consulting.fr>\n * @license: MIT\n */\n\nnamespace IDCI\\Bundle\\StepBundle\\Step\\Type\\Form;\n\nuse Sy...
php
chosen
[ { "from": "system", "value": "Use relative href on 503 font path" }, { "from": "human", "value": "<html>\n\t<head>\n\t\t<link href='http://fonts.googleapis.com/css?family=Lato:100' rel='stylesheet' type='text/css'>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\tmargin: 0;\n\t\t\t\tpadding: 0;\n\t\t\t\twi...
php
chosen
[ { "from": "system", "value": "Fix validation errors not being passed on correctly.\n" }, { "from": "human", "value": "<?php\n\nnamespace FluxBB\\Server\\Exception;\n\nuse Illuminate\\Support\\MessageBag;\n\nclass ValidationFailed extends \\Exception\n{\n protected $errors;\n\n\n public fun...
php
chosen
[ { "from": "system", "value": "Update reference to resource renamed in 04ae000d7\n" }, { "from": "human", "value": "<?php namespace Zeropingheroes\\Lanager\\Seeds;\n\nuse\tZeropingheroes\\Lanager\\Events\\Types\\Type;\nuse Illuminate\\Database\\Seeder,\n\tIlluminate\\Support\\Facades\\DB;\n\nclas...
php
chosen
[ { "from": "system", "value": "Convert from jquery to vanilla JS\n" }, { "from": "human", "value": "@extends('components.content-area')\n\n@section('content')\n @include('components.page-title', ['title' => $page['title']])\n\n <div class=\"content\">\n {!! $page['content']['main'] !...
php
chosen
[ { "from": "system", "value": "Fix category dropdown not showing correct state.\n" }, { "from": "human", "value": "{{ Form::label('name', 'Candidate Name') }}\n{{ Form::text('name') }}\n{{ $errors->first('name', '<span class=\"message error\">:message</span>') }}\n\n{{ Form::label('category_id', ...
php
chosen
[ { "from": "system", "value": "Check for the actual warning description\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Composer.\n *\n * (c) Nils Adermann <naderman@naderman.de>\n * Jordi Boggiano <j.boggiano@seld.be>\n *\n * For the full copyright and license informa...
php
chosen
[ { "from": "system", "value": "Add a feature to detected use of the Dingo API package and assign its router for ease-of-use\n" }, { "from": "human", "value": "<?php\n\nnamespace SebastiaanLuca\\Router\\Routers;\n\nuse Illuminate\\Contracts\\Routing\\Registrar as RegistrarContract;\n\n/**\n * Clas...
php
chosen
[ { "from": "system", "value": "Update the image helper to use drupal_get_path instead of path_to_theme().\n" }, { "from": "human", "value": "<?php\n\nnamespace AbleCore;\n\nclass HTML {\n\n\tpublic static function image($source, $alt = '', $title = '', array $attributes = array(), array $options ...
php
chosen
[ { "from": "system", "value": "Update interface to include fetchColumn\n" }, { "from": "human", "value": "<?php\nnamespace DBAL;\n\ninterface DBInterface{\n public function query($sql);\n public function select($table);\n public function selectAll($table);\n public function insert($ta...
php
chosen
[ { "from": "system", "value": "Add improvements discussed on the PR\n" }, { "from": "human", "value": "<td>\n @if( !empty($entry->{$column['src']}) )\n <a\n href=\"{{ $entry->{$column['src']} }}\"\n target=\"_blank\"\n >\n <img\n src=\"{{ $entry->{$column['src']} }}\"...
php
chosen
[ { "from": "system", "value": "Remove docker, use good old PHP\n" }, { "from": "human", "value": "<?php\n\n define('DB_HOST', '172.17.0.2');\n define('DB_USER', 'root');\n define('DB_PASSWORD', 'docker');\n define('DB_NAME', 'blog');\n" }, { "from": "gpt", "value": "<?php\n\n def...
php
chosen
[ { "from": "system", "value": "Remove all tasks before testing report completion all\n" }, { "from": "human", "value": "<?php\n\nnamespace SimplyTestable\\WorkerBundle\\Tests\\Command\\Task;\n\nuse SimplyTestable\\WorkerBundle\\Tests\\Command\\ConsoleCommandBaseTestCase;\nuse SimplyTestable\\Work...
php
chosen
[ { "from": "system", "value": "Remove file level docblock for json modifier\n" }, { "from": "human", "value": "<?php\n\n/**\n * @author Ben Rowe <ben.rowe.83@gmail.com>\n * @license http://www.opensource.org/licenses/mit-license.html MIT License\n */\n\nnamespace Benrowe\\Laravel\\Config\\Modi...
php
chosen
[ { "from": "system", "value": "Move Blink call into post-update event, not pre-update.\n" }, { "from": "human", "value": "<?php\n\nnamespace Northstar\\Providers;\n\nuse Northstar\\Models\\User;\nuse DoSomething\\Gateway\\Blink;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass AppServiceProvid...
php
chosen
[ { "from": "system", "value": "Deal with the command bus in the app service provider" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Cachet.\n *\n * (c) Cachet HQ <support@cachethq.io>\n *\n * For the full copyright and license information, please view the LICENSE\n * file t...
php
chosen
[ { "from": "system", "value": "Add $guarded to allow mass assignment\n" }, { "from": "human", "value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Notifications\\Notifiable;\nuse Illuminate\\Database\\Eloquent\\SoftDeletes;\n\nclass RecruitingCampaignRe...
php
chosen
[ { "from": "system", "value": "Add home icon to the nav bar\n" }, { "from": "human", "value": "<nav class=\"navbar navbar-inverse navbar-fixed-top\">\n <div class=\"container\">\n \n <!--Bouton home (efface les headers GET)-->\n <div class=\"navbar-header\">\n <...
php
chosen
[ { "from": "system", "value": "Use class constant for class names in annotation\n" }, { "from": "human", "value": "<?php\n\nnamespace Doctrine\\Bundle\\MongoDBBundle\\Tests\\Fixtures\\Cache;\n\nuse Doctrine\\Common\\Collections\\ArrayCollection;\nuse Doctrine\\ODM\\MongoDB\\Mapping\\Annotations a...
php
chosen
[ { "from": "system", "value": "[Inventory] Remove dependency on Resource component by removing usage of TimestampableInterface\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 info...
php
chosen
[ { "from": "system", "value": "Remove unnessesairy check in if statement\n" }, { "from": "human", "value": "<?php\n/**\n * Particle.\n *\n * @link http://github.com/particle-php for the canonical source repository\n * @copyright Copyright (c) 2005-2015 Particle (http://particle-php.com)\n * ...
php
chosen
[ { "from": "system", "value": "Fix error response not returning errors.\n" }, { "from": "human", "value": "<?php\n\nnamespace FluxBB\\Server\\Response;\n\nuse FluxBB\\Server\\Request;\nuse Illuminate\\Support\\Contracts\\MessageProviderInterface;\nuse Illuminate\\Support\\MessageBag;\n\nclass Err...
php
chosen
[ { "from": "system", "value": "Change the title of the past speakers page for tracking purposes.\n" }, { "from": "human", "value": "@extends('layouts.default')\n\n@section('content')\n @foreach ($speakers as $index => $speaker)\n\n <div class=\"content-block\">\n <div class=\"title\">{{ ...
php
chosen
[ { "from": "system", "value": "Clear comments when changing the entity status\n" }, { "from": "human", "value": "<?php\n\n/**\n * Copyright 2017 SURFnet B.V.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Licen...
php
chosen
[ { "from": "system", "value": "Remove input POST encoding loop\n\nIt caused a warning that read directly into JSON.parse(data) and\nappeared to be unnecessary.\n" }, { "from": "human", "value": "<?php\n\n$url = 'http://bidfta.bidqt.com/BidFTA/services/invoices/queryExecutor/queries/FTALocations?s...
php
chosen
[ { "from": "system", "value": "Add new Method to procces new data and save it to database\n" }, { "from": "human", "value": "<?php\nclass DeviceController extends \\BaseController {\n\n\t/**\n\t * Връща JSON със данните от API-то\n\t *\n\t * @return Response\n\t */\n\tpublic function index()\n\t{...
php
chosen
[ { "from": "system", "value": "Support multiple @var tags and also no @var tags at all\n" }, { "from": "human", "value": "<?php\n\nnamespace BetterReflection\\TypesFinder;\n\nuse PhpParser\\Node\\Stmt\\Property as PropertyNode;\nuse phpDocumentor\\Reflection\\DocBlock;\nuse phpDocumentor\\Reflect...
php
chosen
[ { "from": "system", "value": "Include exportSoftwareInformation() method in the contract\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Contracts;\n\nuse Illuminate\\Support\\Collection;\n\ninterface CollectsScanOutput\n{\n /**\n * Get the Asset related data as a Collection\n ...
php
chosen
[ { "from": "system", "value": "Fix for Table field in Matrix\n" }, { "from": "human", "value": "<?php\nnamespace Craft;\n\nuse Cake\\Utility\\Hash as Hash;\n\nclass TableFeedMeFieldType extends BaseFeedMeFieldType\n{\n // Templates\n // ======================================================...
php
chosen
[ { "from": "system", "value": "Adjust to scalar types introduced in Locale component & bundle\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\...
php
chosen
[ { "from": "system", "value": "Add initial test of TransactionBuilderInputState\n" }, { "from": "human", "value": "<?php\n\n\nnamespace BitWasp\\Bitcoin\\Tests\\Transaction;\n\n\nclass TransactionInputStateTest {\n\n}" }, { "from": "gpt", "value": "<?php\n\n\nnamespace BitWasp\\Bitcoi...
php
chosen
[ { "from": "system", "value": "Fix username validation alphanumeric only\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: rahman\n * Date: 11/4/14\n * Time: 5:09 AM\n */\n\nValidator::extend('must_alpha_num', function($attribute, $value, $parameters)\n{\n return...
php
chosen
[ { "from": "system", "value": "Add debug flag to config file\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\t'database' => [\n\t\t'driver' => 'mysql',\n\t\t'host' => 'localhost',\n\t\t'database' => 'flarum',\n\t\t'username' => 'root',\n\t\t'password' => 'root',\n\t\t'charset' ...
php
chosen
[ { "from": "system", "value": "Fix typo (OCA => OCP)\n" }, { "from": "human", "value": "<?php\n\n/**\n * ownCloud - ImgCrawl\n *\n * @author Ackinty Strappa <ackinty@gmail.com>\n * @copyright 2014 Ackinty\n * @license This file is licensed under the Affero General Public License version 3 or late...
php
chosen
[ { "from": "system", "value": "Remove extra quote from template in BreadcrumbsHelper.\n" }, { "from": "human", "value": "<?php\n/**\n *\n * Licensed under The MIT License\n * For full copyright and license information, please see the LICENSE file\n * Redistributions of files must retain the above...
php
chosen
[ { "from": "system", "value": "Remove old test code, test non API paginated request early return\n" }, { "from": "human", "value": "<?php\nnamespace BryanCrowe\\ApiPagination\\Test;\n\nuse BryanCrowe\\ApiPagination\\Controller\\Component\\ApiPaginationComponent;\nuse Cake\\Controller\\ComponentRe...
php
chosen
[ { "from": "system", "value": "Add filters to the report request\n" }, { "from": "human", "value": "<?php\n\nnamespace ApiBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse FOS\\RestBundle\\Controller\\Annotations\\View;\nuse Sensio\\Bundle\\FrameworkExtraBu...
php
chosen
[ { "from": "system", "value": "Update the column type of the value field\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nclass CreateTranslationTranslationTranslationsTable extends Migration\n{\n /**\...
php
chosen
[ { "from": "system", "value": "Allow username, password and scheme for solr\n" }, { "from": "human", "value": "<?php\n\n/*\n* This file is part of the Integrated package.\n*\n* (c) e-Active B.V. <integrated@e-active.nl>\n*\n* For the full copyright and license information, please view the LICENSE...
php
chosen
[ { "from": "system", "value": "Allow executing tests without composer\n\n...quite dirty but handy while developing ;)\n" }, { "from": "human", "value": "<?php\nerror_reporting(E_ALL);\n\nrequire_once dirname(__DIR__) . '/vendor/autoload.php';\n\nPHPUnit_Framework_Error_Notice::$enabled = true;\n\...
php
chosen
[ { "from": "system", "value": "Add parser tests to suite\n" }, { "from": "human", "value": "<?php\n\nrequire_once(dirname(__FILE__).'/../vendor/simpletest/autorun.php');\nrequire_once(dirname(__FILE__).'/../Mustache.php');\n\nclass MustacheTestSuite extends TestSuite {\n function MustacheTestSui...
php
chosen
[ { "from": "system", "value": "Make require more robust for loads in complex contexts\n" }, { "from": "human", "value": "<?php\n\nrequire 'vendor/autoload.php'; # Generated by composer\nrequire __DIR__.'/src/Lce/Bootstrap.php';\n\\Lce\\Bootstrap::init();\n" }, { "from": "gpt", "value"...
php
chosen
[ { "from": "system", "value": "Fix clearing temporary files in tests\n" }, { "from": "human", "value": "<?php\n/**\n * @link https://github.com/zendframework/zend-modulemanager for the canonical source repository\n * @copyright Copyright (c) 2005-2019 Zend Technologies USA Inc. (https://www....
php
chosen
[ { "from": "system", "value": "Resolve cache key from config.\n" }, { "from": "human", "value": "<?php\n\nnamespace Yajra\\Acl\\Models;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Yajra\\Acl\\Traits\\HasPermission;\n\n/**\n * @property \\Yajra\\Acl\\Models\\Permission permissions\n * @prop...
php
chosen
[ { "from": "system", "value": "Fix bad merge & bugs\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 was distributed with this so...
php
chosen
[ { "from": "system", "value": "Make validation errors fit standard error formatting.\n" }, { "from": "human", "value": "<?php\n\nnamespace Northstar\\Http\\Controllers;\n\nuse Illuminate\\Routing\\Controller as BaseController;\nuse Illuminate\\Foundation\\Bus\\DispatchesJobs;\nuse Illuminate\\Fou...
php
chosen
[ { "from": "system", "value": "Use model injection for Pitch model\n" }, { "from": "human", "value": "<?php\n\nclass PitchController extends BaseController {\n\n\t/**\n\t * Validator for pitches\n\t */\n\tprotected $rules = [\n\t\t'email' => 'required|email',\n\t\t'name' => 'required',\n\t\t'blur...
php
chosen
[ { "from": "system", "value": "Add branch as an option to recentcommitsbypath API\n\nSummary: We need to be able to request history for more than the master branch (the default). This adds branch as an option to the API.\n\nTest Plan: Test by sending recentcommitsbypath a non-master branch along with callsig...
php
chosen
[ { "from": "system", "value": "Stop using the SimpleSAML_Utilities class.\n" }, { "from": "human", "value": "#!/usr/bin/env php\n<?php\n\nrequire_once(dirname(dirname(dirname(dirname(__FILE__)))) . '/lib/_autoload.php');\n\nif ($argc < 2) {\n fwrite(STDERR, \"Missing aggregator id.\\n\");\n ...
php
chosen