conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "UCLALIB-198: Use prod for stage_file_proxy_origin on local dev.\n" }, { "from": "human", "value": "<?php\n\n// Setup DB\n$databases = array (\n 'default' =>\n array (\n 'default' =>\n array (\n 'database' => 'uclalib',\n 'username' => 'uclalib',\n ...
php
chosen
[ { "from": "system", "value": "Add simple transformer to fluent interface.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php namespace Orchestra\\Model\\Value;\n\nuse Illuminate\\Support\\Arr;\nuse Illuminate\\Support\\Fluent...
php
chosen
[ { "from": "system", "value": "Fix tests, got broken with modernizr update\n" }, { "from": "human", "value": "<?php\nclass Kwf_Assets_Modernizr_DependencyTest extends Kwf_Test_TestCase\n{\n public function test1()\n {\n $dep = new Kwf_Assets_Modernizr_Dependency();\n $dep->add...
php
chosen
[ { "from": "system", "value": "Return the media path VO when getting the path attribute\n" }, { "from": "human", "value": "<?php namespace Modules\\Media\\Entities;\n\nuse Dimsav\\Translatable\\Translatable;\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass File extends Model\n{\n use Trans...
php
chosen
[ { "from": "system", "value": "Remove harmful disabling of scaling by user\n" }, { "from": "human", "value": "<head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-s...
php
chosen
[ { "from": "system", "value": "Add a protected $finfo variable for testing.\n" }, { "from": "human", "value": "<?php\n\nnamespace Estey\\EvernoteOCR;\n\nuse Finfo;\n\n/**\n * File\n *\n * A simple local file class.\n */\nclass File\n{\n /** \n * File path.\n * @var string\n */\n ...
php
chosen
[ { "from": "system", "value": "Update test cases for DbHelper\n" }, { "from": "human", "value": "<?php\n\nnamespace tests\\unit\\rest;\n\nuse Yii;\nuse yii\\codeception\\TestCase;\nuse fproject\\components\\DbHelper;\n\nclass DbHelperTest extends TestCase\n{\n\tuse \\Codeception\\Specify;\n\n ...
php
chosen
[ { "from": "system", "value": "Add explanation why we need to cast float to string in decimal type only starting from PHP 8.1\n" }, { "from": "human", "value": "<?php\n\nnamespace Doctrine\\DBAL\\Types;\n\nuse Doctrine\\DBAL\\Platforms\\AbstractPlatform;\n\nuse function is_float;\n\nuse const PHP...
php
chosen
[ { "from": "system", "value": "Remove grant types form field\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Form\\OAuth;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolverInterfa...
php
chosen
[ { "from": "system", "value": "Fix http keep-alive connection timeout event error\n" }, { "from": "human", "value": "<?php\n/**\n * Aurora - A HTTP Application Server of PHP Script\n *\n * @author panlatent@gmail.com\n * @link https://github.com/panlatent/aurora\n * @license https://opensourc...
php
chosen
[ { "from": "system", "value": "Add list of files that should be compiled\n" }, { "from": "human", "value": "<?php\n\nnamespace KodiComponents\\Navigation;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse KodiComponents\\Navigation\\Contracts\\PageInterface;\nuse KodiComponents\\Navigation\\Contr...
php
chosen
[ { "from": "system", "value": "Return early when catching CiviCRM API call exception in local connector.\n\n" }, { "from": "human", "value": "<?php\n\n/**\n * TODO\n *\n * @author Björn Endres, SYSTOPIA (endres@systopia.de)\n */\n\nnamespace CMRF\\Connection;\n\nuse CMRF\\Core\\Call as Call;\nuse...
php
chosen
[ { "from": "system", "value": "Fix hydrators for CarbonDateTime by using full namespace in closureToPHP\n" }, { "from": "human", "value": "<?php\n\n\nnamespace CImrie\\Slick\\Types;\n\n\nuse Carbon\\Carbon;\nuse Doctrine\\ODM\\MongoDB\\Types\\Type;\n\nclass CarbonDatetime extends Type\n{\n pub...
php
chosen
[ { "from": "system", "value": "Fix reference in Base Test\n" }, { "from": "human", "value": "<?php\n\tclass NachoTest extends PHPUnit_Framework_TestCase\n\t{\n\t\tpublic function testFirstOne()\n\t\t{\n\t\t\t$base = new Bolt\\Stubs\\Base();\n\t\t\t$this->assertInstanceOf(\"Bolt\\Base\", $base);\n...
php
chosen
[ { "from": "system", "value": "Add some methods to the base test class\n\nAllow creating users, moderators, and admins quickly and easily\n" }, { "from": "human", "value": "<?php namespace Tests;\n\nuse App\\Exceptions\\Handler;\nuse Illuminate\\Contracts\\Debug\\ExceptionHandler;\nuse Illuminate...
php
chosen
[ { "from": "system", "value": "Make the method abstract on the Bridhe pattern\n" }, { "from": "human", "value": "<?php\n\nnamespace DesignPatterns\\Structural\\Bridge;\n\n/**\n * Abstraction.\n */\nabstract class Vehicle\n{\n protected $workShop1;\n protected $workShop2;\n\n protected fu...
php
chosen
[ { "from": "system", "value": "Remove unused script inclusion in footer\n" }, { "from": "human", "value": " </div><!--/container-->\n <!-- script references -->\n <script src=\"//ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js\"></script>\n <script src=\"js/bo...
php
chosen
[ { "from": "system", "value": "Clean up $pre parameter description\n" }, { "from": "human", "value": "<?php\n\n/*\n * Layout functions\n */\n\n// `is_currentfile`\n//\n// Checks for current file. Returns boolean.\nfunction is_currentfile($file) {\n if (preg_match(\"/$file$/\", $_SERVER['PHP_SELF...
php
chosen
[ { "from": "system", "value": "Return default URI for the time being\n" }, { "from": "human", "value": "<?php\nnamespace Gt\\WebEngine\\Route;\n\nclass Router {\n}" }, { "from": "gpt", "value": "<?php\nnamespace Gt\\WebEngine\\Route;\n\nuse Gt\\Http\\Uri;\nuse Psr\\Http\\Message\\UriI...
php
chosen
[ { "from": "system", "value": "Allow registering additional extensions for container\n" }, { "from": "human", "value": "<?php\n\nnamespace Yolo;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Yolo\\DependencyInjection\\YoloExtension;\nuse Yolo\\Compiler\\EventSubscriberPas...
php
chosen
[ { "from": "system", "value": "Comment out filter that forbids development access\n" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Debug\\Debug;\n\n// If you don't want to setup permissions the proper way, just uncomment the fol...
php
chosen
[ { "from": "system", "value": "Fix issue when running migrations in console\n" }, { "from": "human", "value": "<?php\n\nnamespace HechoEnMx\\Providers;\n\nuse HechoEnMx\\Permission;\nuse Illuminate\\Contracts\\Auth\\Access\\Gate as GateContract;\nuse Illuminate\\Foundation\\Support\\Providers\\Au...
php
chosen
[ { "from": "system", "value": "Fix checking for posting providers." }, { "from": "human", "value": "<?php\n\nnamespace Borfast\\Socializr;\n\nclass Socializr\n{\n protected $config = array();\n protected $login_providers = array('Google', 'Facebook');\n protected $posting_providers = arr...
php
chosen
[ { "from": "system", "value": "Fix [] on Travis Building\n" }, { "from": "human", "value": "<?php\n/**\n * This file ensure\n * a maximum compatibility\n * for user that do not\n * make use of composer\n */\nuse Phpfastcache\\core\\InstanceManager;\n\nif(!defined('PHPFASTCACHE_LOADED_VIA_COMPOSER...
php
chosen
[ { "from": "system", "value": "Update and fix some issues\n\nupdated" }, { "from": "human", "value": "<?php\r\n\r\nnamespace phplusir\\smsir\\Controllers;\r\n\r\nuse App\\Http\\Controllers\\Controller;\r\nuse phplusir\\smsir\\Smsir;\r\n\r\nclass SmsirController extends Controller\r\n{\r\n\tpublic...
php
chosen
[ { "from": "system", "value": "Make wording on login options page match home page.\n" }, { "from": "human", "value": "<?php\r\n/* @var $this AuthController */\r\n/* @var $loginOptions array */\r\n\r\n// Set the page title.\r\n$this->pageTitle = 'Login Options';\r\n\r\necho '<h2>' . \\CHtml::encod...
php
chosen
[ { "from": "system", "value": "fix(core): Use gmdate to ensure we are using UTC time\n" }, { "from": "human", "value": "<?php\n\n/**\n * Copyright 2016 Seller Labs LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance wi...
php
chosen
[ { "from": "system", "value": "Use the right version in update command\n" }, { "from": "human", "value": "<?php\n\nnamespace Ketmo\\Command;\n\nuse Herrera\\Phar\\Update\\Manager;\nuse Herrera\\Phar\\Update\\Manifest;\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Co...
php
chosen
[ { "from": "system", "value": "Add an alert and close popup function\n" }, { "from": "human", "value": "<?php\n\nfunction alert_and_redirect($msg = '', $url = '') {\n if (empty($msg)) {\n $msg = '올바른 방법으로 이용해 주십시오.';\n }\n\n echo \"<meta http-equiv=\\\"content-type\\\" content=\\\...
php
chosen
[ { "from": "system", "value": "Fix in admin meta tags\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html lang=\"{{ app()->getLocale() }}\">\n <head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"viewport\" cont...
php
chosen
[ { "from": "system", "value": "Fix for EntityManager is closed\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Repository;\n\nuse App\\Entity\\FeedItem;\nuse Doctrine\\Bundle\\DoctrineBundle\\Repository\\ServiceEntityRepository;\nuse Symfony\\Bridge\\Doctrine\\RegistryInterface;\n\n/**...
php
chosen
[ { "from": "system", "value": "Fix a bug with Expires header\n" }, { "from": "human", "value": "<?php\n/**\n * Created by IntelliJ IDEA.\n * User: Kevin\n * Date: 16.06.2015\n * Time: 19:10\n */\n\nnamespace Kevinrob\\GuzzleCache;\n\n\nuse Psr\\Http\\Message\\ResponseInterface;\n\nabstract class ...
php
chosen
[ { "from": "system", "value": "Add dependency for the Search controller on the Listings component.\n" }, { "from": "human", "value": "<?php\nApp::uses('AppController', 'Controller');\n\n/**\n * Search controller\n *\n * Handles site-wide search.\n */\nclass SearchController extends AppController\...
php
chosen
[ { "from": "system", "value": "Set default values for request object since nulls weren't parsing well with external api\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: ProductMgr_170\n * Date: 9/23/2017\n * Time: 9:04 PM\n */\n\nnamespace Jowusu837\\HubtelMerchant...
php
chosen
[ { "from": "system", "value": "Add optional argument to the helper function" }, { "from": "human", "value": "<?php\n/******************************************************************************\n * Copyright (c) 2010 Jevon Wright and others.\n * All rights reserved. This program and the accompa...
php
chosen
[ { "from": "system", "value": "Remove deprecated ContainerAware class and make use of the trait in another class\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 lice...
php
chosen
[ { "from": "system", "value": "Add link to Github commit page\n" }, { "from": "human", "value": "<?php\n\n$html->addBodyContent('<div class=\"footer\">');\n$html->addBodyContent('<p>Commit: '. shell_exec('cd '. realpath(dirname(__FILE__)). '/../../ && git log --pretty=\"%h\" -n1 HEAD'). '</p>');\...
php
chosen
[ { "from": "system", "value": "Clean up ACL code for axo 20483\n" }, { "from": "human", "value": "<?php\n\nnamespace Rcm\\Api\\Acl;\n\nuse Psr\\Container\\ContainerInterface;\nuse Psr\\Http\\Message\\ServerRequestInterface;\nuse Rcm\\Acl\\AclActions;\nuse Rcm\\Acl\\AssertIsAllowed;\nuse Rcm\\Acl\...
php
chosen
[ { "from": "system", "value": "Update tests following Composer BC break\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the PlemiBoomgoBundle.\n *\n * (c) Plemi <dev@plemi.org>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that wa...
php
chosen
[ { "from": "system", "value": "Make Go button a primary button.\n" }, { "from": "human", "value": "<?php\n\n/**\n * @file\n * template.php\n */\n\n/**\n * Implements hook_preprocess_HOOK().\n */\nfunction bootstrap_serchilo_preprocess_block(&$vars) {\n \n switch ($vars['block_html_id']) {\n ca...
php
chosen
[ { "from": "system", "value": "Set default parser value in constructor.\n" }, { "from": "human", "value": "<?php\n/**\n * PHP version 5.6\n *\n * This source file is subject to the license that is bundled with this package in the file LICENSE.\n */\nnamespace ComPHPPuebla\\DBAL\\Fixture\\Loader;\...
php
chosen
[ { "from": "system", "value": "Make surveyId a number input type field (HTML5)\n" }, { "from": "human", "value": "<!-- resources/views/surveys/surveys_addReport.blade.php -->\n\n@extends('layouts.app')\n\n@section('content')\n<h2>Add survey report</h2>\n\n<form class=\"form-inline\" action=\"/sur...
php
chosen
[ { "from": "system", "value": "Tag : case à cocher\n" }, { "from": "human", "value": "<?php\n\nnamespace Sdz\\BlogBundle\\Form;\n\nuse Sdz\\BlogBundle\\Form\\TagType;\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilder;\n\nclass ArticleType extends AbstractType...
php
chosen
[ { "from": "system", "value": "Add missing param and add visibility on contruct\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is a part of the ChZ-PHP package.\n *\n * (c) François LASSERRE <choiz@me.com>\n *\n * For the full copyright and license information, please view the LICEN...
php
chosen
[ { "from": "system", "value": "Add space before closing bracket\n" }, { "from": "human", "value": "<?php\n/**\n * Default hero template file.\n *\n * This is the default hero image for page templates, called\n * 'slide'. Strictly air specific.\n *\n * @package air\n */\n\n?>\n\n<div class=\"slide...
php
chosen
[ { "from": "system", "value": "Fix broken unit test under PHP 8\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Phpcq\\Runner\\Test\\Config\\Builder;\n\nuse Phpcq\\Runner\\Config\\Builder\\AbstractOptionBuilder;\nuse Phpcq\\Runner\\Config\\Builder\\ConfigOptionBu...
php
chosen
[ { "from": "system", "value": "Fix namespace and class name\n" }, { "from": "human", "value": "<?php\n\nnamespace Symfony\\Bundle\\ChainRoutingBundle\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\Config\\FileLocator;\nuse Symfony\...
php
chosen
[ { "from": "system", "value": "Set $this->app to a variable so we can get the constants out\n" }, { "from": "human", "value": "<?php\n\nnamespace Encore\\Kernel;\n\nclass Timezone\n{\n public function __construct(Application $app, array $winTimezones)\n {\n $this->app = $app;\n ...
php
chosen
[ { "from": "system", "value": "Add a security mesure for required options\n" }, { "from": "human", "value": "<?php namespace Modules\\Media\\Image\\Intervention\\Manipulations;\n\nuse Modules\\Media\\Image\\ImageHandlerInterface;\n\nclass Crop implements ImageHandlerInterface\n{\n /**\n * ...
php
chosen
[ { "from": "system", "value": "Fix the handling of the counter\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: sgueye\n * Date: 12/12/2016\n * Time: 2:42 PM\n */\n\nnamespace Mms\\Organizations\\Tree\\NestedSet;\n\n\nclass ModifiedPreOrderTraversal\n{\n public ...
php
chosen
[ { "from": "system", "value": "Disable Afrotropical connector. Because it doesn't have a regular harvest, just one-time and maybe upon request of content partner.\n\ngit-svn-id: d46fe582d22b46b457d3ac1c55a88da2fbe913a1@1382 baf6b65b-9124-4dc3-b1c0-01155b4af546\n" }, { "from": "human", "value": "<...
php
chosen
[ { "from": "system", "value": "Fix issue with null timestamps on campaign object.\n\nThese are sometimes null, causing an issue calling the date formatting\nmethod. Why? :(\n" }, { "from": "human", "value": "<?php\n\nnamespace Northstar\\Http\\Transformers;\n\nuse Northstar\\Models\\Campaign;\nus...
php
chosen
[ { "from": "system", "value": "Fix type hint for Artisan\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests;\n\nuse App\\Models\\User;\nuse Illuminate\\Contracts\\Console\\Kernel as Artisan;\nuse Illuminate\\Foundation\\Application;\n\ntrait CreatesApplication\n{\n protected $coverPat...
php
chosen
[ { "from": "system", "value": "Opcodes: Add tests for final two functions in ArrayAccess (only throw exceptions)\n" }, { "from": "human", "value": "<?php\n\nnamespace BitWasp\\Bitcoin\\Tests\\Script;\n\nuse BitWasp\\Bitcoin\\Script\\Opcodes;\n\nclass OpcodesTest extends \\PHPUnit_Framework_TestCa...
php
chosen
[ { "from": "system", "value": "Add confirmation to user password validation.\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Models;\n\nuse Illuminate\\Foundation\\Auth\\User as Authenticatable;\nuse Hash;\n\nclass User extends Authenticatable\n{\n\tstatic $rules = [\n\t\t'name' => 're...
php
chosen
[ { "from": "system", "value": "Move json string into function.\n" }, { "from": "human", "value": "<?php\nuse LinusShops\\Prophet\\Commands\\Scry;\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Tester\\CommandTester;\n\n/**\n * \n *\n * @author Sam Schmidt\n * @da...
php
chosen
[ { "from": "system", "value": "Move database related functions to the database helper\n" }, { "from": "human", "value": "<?php\n\n\nnamespace ContentTranslator\\Helper;\n\nclass Database\n{\n protected $db;\n\n public function __construct()\n {\n global $wpdb;\n $this->db =...
php
chosen
[ { "from": "system", "value": "Update docblock to prevent warning when running phpstan.\n" }, { "from": "human", "value": "<?php\nnamespace CrudView\\Action;\n\nuse CrudView\\Dashboard\\Dashboard;\nuse Crud\\Action\\BaseAction;\nuse Crud\\Traits\\ViewTrait;\n\nclass DashboardAction extends BaseAc...
php
chosen
[ { "from": "system", "value": "Fix service provider for Laravel 5.4\n\nCloses #17\n" }, { "from": "human", "value": "<?php\n\nnamespace Sven\\FlexEnv;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass FlexEnvServiceProvider extends ServiceProvider\n{\n /**\n * Bootstrap the application...
php
chosen
[ { "from": "system", "value": "Fix for notification not notifying message creator\nAlso more specific with relation in table\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Models;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Post extends Model\n{\n // The table associated...
php
chosen
[ { "from": "system", "value": "Update config to read locale from .env, add descriptions\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of the GeocoderLaravel library.\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed w...
php
chosen
[ { "from": "system", "value": "Patch up earnings' index view to align columns properly and add contrast to records\n" }, { "from": "human", "value": "@extends('layout')\n\n@section('title', __('general.earnings'))\n\n@section('body')\n <div class=\"wrapper my-3\">\n <h2>{{ __('general.e...
php
chosen
[ { "from": "system", "value": "Test fix due to interface change\n" }, { "from": "human", "value": "<?php\nnamespace mxdiModuleTest\\Annotation;\n\nuse mxdiModule\\Annotation\\Exception\\CannotGetValue;\nuse mxdiModule\\Annotation\\Inject;\nuse mxdiModuleTest\\TestCase;\nuse Zend\\ServiceManager\\...
php
chosen
[ { "from": "system", "value": "Update for Interac Online Payment success" }, { "from": "human", "value": "<?php\n\nnamespace Omnipay\\Moneris\\Message;\n\n/**\n * Moneris Complete Purchase Response\n */\nclass CompletePurchaseResponse extends AbstractResponse\n{\n\n public function isSuccessfu...
php
chosen
[ { "from": "system", "value": "Stop hacking hash salt, we haz Lando now!\n" }, { "from": "human", "value": "<?php\n\n/**\n * Load services definition file.\n */\n$settings['container_yamls'][] = __DIR__ . '/services.yml';\n\n/**\n * Include the Pantheon-specific settings file.\n *\n * n.b. The se...
php
chosen
[ { "from": "system", "value": "Fix form_name in formable trait\n" }, { "from": "human", "value": "<?php\n\nnamespace Kregel\\FormModel\\Traits;\n\ntrait Formable\n{\n /**\n * @return mixed\n */\n public function getFormName()\n {\n if (property_exists($this, 'form_model'))...
php
chosen
[ { "from": "system", "value": "Use config schema singleton instance if none was provided\n" }, { "from": "human", "value": "<?php\n\nclass HTMLPurifier_HTML5Config\n{\n /**\n * @param string|array|HTMLPurifier_Config $config\n * @param HTMLPurifier_ConfigSchema $schema\n * @retur...
php
chosen
[ { "from": "system", "value": "Handle objects without an ID yet\n\nThis is used when we build log data and in some cases the thing being\nlogged hasn't been created yet when we run this method so we need to\naccount for the id not yet being set.\n" }, { "from": "human", "value": "<?php\n\ndeclare...
php
chosen
[ { "from": "system", "value": "Fix Order filter to work with sorting by keys again\n\n" }, { "from": "human", "value": "<?php\n\nnamespace allejo\\stakx\\Twig;\n\nuse allejo\\stakx\\Object\\ContentItem;\n\nclass OrderFilter\n{\n public function __invoke ($array, $key, $order = \"ASC\")\n {\...
php
chosen
[ { "from": "system", "value": "CC-3751: Remove db.php requirement in the upgrade script\n\n- added require_once of Propel\n" }, { "from": "human", "value": "<?php\n/**\n * @package Airtime\n * @subpackage StorageServer\n * @copyright 2010 Sourcefabric O.P.S.\n * @license http://www.gnu.org/licens...
php
chosen
[ { "from": "system", "value": "Fix split case conversion to treat sequences of numbers as words\ne.g. test123Case => test_123_case\n" }, { "from": "human", "value": "<?php\n\nnamespace Downsider\\Clay\\Model;\n\ntrait NameConverterTrait \n{\n private function toStudlyCaps($string)\n {\n ...
php
chosen
[ { "from": "system", "value": "Check if FFMPEG exists using the path provided\n" }, { "from": "human", "value": "<?php namespace Rafasamp\\Sonus;\n\nuse Config;\n\n/**\n * Laravel Audio Conversion Package\n *\n * This package is created to handle server-side conversion tasks using FFMPEG (http://...
php
chosen
[ { "from": "system", "value": "Test if an error is thrown when connection can't be established.\n" }, { "from": "human", "value": "<?php\n\nnamespace Rvdv\\Nntp\\Tests\\Connection;\n\nuse Rvdv\\Nntp\\Connection\\Connection;\n\n/**\n * ConnectionTest\n *\n * @author Robin van der Vleuten <robinvdv...
php
chosen
[ { "from": "system", "value": "Replace calls to deprecated Symfony2 functions, fix phpdoc" }, { "from": "human", "value": "<?php\n\nnamespace Ddeboer\\VatinBundle\\Validator\\Constraints;\n\nuse Symfony\\Component\\Validator\\ConstraintValidator;\nuse Symfony\\Component\\Validator\\Constraint;\nu...
php
chosen
[ { "from": "system", "value": "Append menu to main menu if extensions doesn't exist.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php namespace Orchestra\\Control;\n\nuse Orchestra\\Contracts\\Foundation\\Foundation;\n\nclas...
php
chosen
[ { "from": "system", "value": "Change the default nest password to null\n" }, { "from": "human", "value": "<?php\n\nclass UserTableSeeder extends Seeder\n{\n\n\tpublic function run()\n\t{\n\t\tDB::table('users')->delete();\n\t\tApp\\Models\\User::create(array(\n\t\t\t'email' => 'chawkinsuf@gma...
php
chosen
[ { "from": "system", "value": "Change JS field references on suggest field\n" }, { "from": "human", "value": "<?php\n\nnamespace Hubertusanton\\SilverStripeSeo;\n\nuse SilverStripe\\View\\Requirements;\nuse SilverStripe\\Forms\\FormField;\n\nclass GoogleSuggestField extends FormField {\n\n pub...
php
chosen
[ { "from": "system", "value": "Return types in routing and news bundle\n" }, { "from": "human", "value": "<?php\n/*\n * WellCommerce Open-Source E-Commerce Platform\n *\n * This file is part of the WellCommerce package.\n *\n * (c) Adam Piotrowski <adam@wellcommerce.org>\n *\n * For the full copy...
php
chosen
[ { "from": "system", "value": "Update redirectTo return type PHPDoc" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Middleware;\n\nuse Illuminate\\Auth\\Middleware\\Authenticate as Middleware;\n\nclass Authenticate extends Middleware\n{\n /**\n * Get the path the user should...
php
chosen
[ { "from": "system", "value": "Enable DebugBar service when using local env\n" }, { "from": "human", "value": "<?php namespace Strimoid\\Providers;\n\nuse GuzzleHttp\\Client;\nuse Illuminate\\Support\\ServiceProvider;\nuse Pdp\\Parser;\nuse Pdp\\PublicSuffixListManager;\nuse Strimoid\\Helpers\\OE...
php
chosen
[ { "from": "system", "value": "Add additional validation to request parameters\n\nH1 59701\n\n\nFormer-commit-id: 07d778157b1e49e8177d18733293bc48caf94968\nFormer-commit-id: 1943dca20dd598f0a882a6b8652985518ab88b8f" }, { "from": "human", "value": "<?\ndefined('C5_EXECUTE') or die(\"Access Denied....
php
chosen
[ { "from": "system", "value": "Stop advising users to pipe a curl download directly into php.\n" }, { "from": "human", "value": "<?php\n\nheader('Content-Type: text/html; charset=UTF-8');\n\nif ((!$loader = @include __DIR__.'/../../../autoload.php')\n && (!$loader = @include __DIR__.'/../v...
php
chosen
[ { "from": "system", "value": "Mark migration 20180328215345 as repeatable\n" }, { "from": "human", "value": "<?php\n\nnamespace Concrete\\Core\\Updater\\Migrations\\Migrations;\n\nuse Concrete\\Core\\Page\\Page;\nuse Concrete\\Core\\Updater\\Migrations\\AbstractMigration;\nuse Doctrine\\DBAL\\Sc...
php
chosen
[ { "from": "system", "value": "Change container visibility in controller\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Controllers;\n\nuse Psr\\Http\\Message\\ResponseInterface;\nuse Slim\\Container;\n\nclass Controller\n{\n /**\n * @var Container\n */\n private $contai...
php
chosen
[ { "from": "system", "value": "Fix issue with php version 5.3.3" }, { "from": "human", "value": "<?php\n\nif (version_compare(PHP_VERSION, '5.4.0', '<')) {\n\n\t/**\n\t * An abstract source to bulk load records from.\n\t * Provides an iterator for retrieving records from.\n\t *\n\t * Useful for h...
php
chosen
[ { "from": "system", "value": "Document a void return type for decorate()\n\nWe need no fluent interface here, and we were already using it in different ways\nin the two drivers.\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace Moka\\Strategy;\n\nuse Moka\\Exception...
php
chosen
[ { "from": "system", "value": "Insert dummy data for intercepts." }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace mcordingley\\Regression\\RegressionAlgorithm;\n\nuse InvalidArgumentException;\nuse mcordingley\\LinearAlgebra\\Matrix;\nuse mcordingley\\Regression\\Co...
php
chosen
[ { "from": "system", "value": "Delete sessions for user on password update\n" }, { "from": "human", "value": "<?php\nnamespace Laranix\\Auth\\Password\\Listeners;\n\nuse Laranix\\Auth\\Password\\Events\\Settings;\nuse Laranix\\Auth\\Password\\Events\\Updated as UpdatedEvent;\nuse Laranix\\Support...
php
chosen
[ { "from": "system", "value": "FIX forgot debug dump (!)\n" }, { "from": "human", "value": "<?php\r\n\r\nclass Default_Model_MovieMapper extends Default_Model_AbstractMapper\r\n{\r\n public function find($id)\r\n {\r\n\t\t\r\n $result = $this->getDbTable()->find($id);\r\n\t\t\r\n ...
php
chosen
[ { "from": "system", "value": "Support querying Herald rules by monogram in typeahead datsources\n\nSummary:\nDepends on D19556. See PHI765. Ref T13164. Currently, if you type `H1` in this datasource, it isn't smart enough to pull up the right object.\n\nAdd support for querying by monogram. This is similar ...
php
chosen
[ { "from": "system", "value": "Add test route, poking at API stuff\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|--------------------------------------------------------------------------\n|\n| H...
php
chosen
[ { "from": "system", "value": "Allow to render layout resources as smarty templates\n" }, { "from": "human", "value": "<?php\n\nclass CM_Response_Resource_Layout extends CM_Response_Resource_Abstract {\n\n protected function _process() {\n $file = null;\n if ($path = $this->getRe...
php
chosen
[ { "from": "system", "value": "Set release version to 0.8.3\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 * @author Ma...
php
chosen
[ { "from": "system", "value": "Fix to show 404 for deleted user\n" }, { "from": "human", "value": "<?php\nnamespace Concrete\\Controller\\SinglePage\\Members;\n\nuse Concrete\\Core\\Page\\Controller\\PublicProfilePageController;\nuse Loader;\nuse User;\nuse UserInfo;\nuse Exception;\n\nclass Prof...
php
chosen
[ { "from": "system", "value": "Add timezone parameter to fromString" }, { "from": "human", "value": "<?php\n\nnamespace JWX\\JWT\\Claim\\Feature;\n\n\n/**\n * Trait for claims having NumericDate value.\n */\ntrait NumericDateClaim\n{\n\t/**\n\t * Initialize instance from date/time string\n\t *\n\...
php
chosen
[ { "from": "system", "value": "Delete obsolete line of code.\n" }, { "from": "human", "value": "<?php snippet_detect('html_head', array(\n\t'criticalcss' => false,\n\t'prev_next' => false,\n\t'prerender' => false\n)); ?>\n\n\t<?php snippet('banner'); ?>\n\n\t<main role=\"main\" class=\"ContainPad...
php
chosen
[ { "from": "system", "value": "Remove default label from AttachmentValue" }, { "from": "human", "value": "<?php\n\nnamespace Opifer\\CmsBundle\\ValueProvider;\n\nuse Opifer\\EavBundle\\ValueProvider\\AbstractValueProvider;\nuse Opifer\\EavBundle\\ValueProvider\\ValueProviderInterface;\nuse Symfon...
php
chosen
[ { "from": "system", "value": "Fix `import:daily` to run `import:web-full` not partial\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Console\\Commands\\Import;\n\nuse Aic\\Hub\\Foundation\\AbstractCommand as BaseCommand;\n\nclass ImportScheduleDaily extends BaseCommand\n{\n\n prot...
php
chosen
[ { "from": "system", "value": "Fix bug in daenerys module:register command\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace LotGD\\Core\\Console\\Command;\n\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInte...
php
chosen
[ { "from": "system", "value": "Disable import:terms-legacy call in ImportAll\n\nWe are now importing terms from the CollectionsDS. Admittedly,\nit's a bit broken, but we'll fix it shortly.\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse Aic\\Hub\\Foundation\\A...
php
chosen