conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "[Sitemap] Increase max_per_sitemap default configuration value.\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Silvestra package.\n *\n * (c) Silvestra <tadcka89@gmail.com>\n *\n * For the full copyright and license information, please v...
php
chosen
[ { "from": "system", "value": "tests: Add missing tests for PlaygroundController.\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types = 1);\n/**\n * /tests/AppBundle/functional/Controller/PlaygroundControllerTest.php\n *\n * @author TLe, Tarmo Leppänen <tarmo.leppanen@protacon.com>\n ...
php
chosen
[ { "from": "system", "value": "Fix commenting for AutoComplete to work properly\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * @author Sergiu Cazac <kilobyte2007@gmail.com>\n * Created at 5/06/19 2:06 AM UTC+03:00\n *\n * @see https://help.shopify.com/api/reference/dis...
php
chosen
[ { "from": "system", "value": "Use ::class for class name resolution\n\nChange-Id: I9e7d92d92901ecf1195bce652e77741e1c592d59\n" }, { "from": "human", "value": "<?php\n\n// Keep in sync with same script in Flow.\n\nrequire_once getenv( 'MW_INSTALL_PATH' ) !== false\n\t? getenv( 'MW_INSTALL_PATH' )...
php
chosen
[ { "from": "system", "value": "Convert pointcut to interface that will be implemented later\n" }, { "from": "human", "value": "<?php\n/**\n * Go! OOP&AOP PHP framework\n *\n * @copyright Copyright 2011, Lissachenko Alexander <lisachenko.it@gmail.com>\n * @license http://www.opensource.o...
php
chosen
[ { "from": "system", "value": "Order comments by created time\n\nFix the ordering of comments to be sorted by created times to make replies easier to follow." }, { "from": "human", "value": "<?php\n\nclass commentGlobalComponent extends sfComponent\n{\n /**\n * @param sfWebRequest $request\n ...
php
chosen
[ { "from": "system", "value": "Update setzt nun per Default keine Länder mehr auf die Blacklist/Whitelist\n" }, { "from": "human", "value": "<?php \n// Require config and init-script\nrequire_once \"cms-config.php\";\nrequire_once \"init.php\";\nsetconfig(\"spamfilter_enabled\", \"yes\");\nsetcon...
php
chosen
[ { "from": "system", "value": "Move login page checkbox below buttons\n" }, { "from": "human", "value": "@extends('layouts.master')\n\n@section('title', 'Login')\n\n@section('content')\n <div class=\"container-sm jumbotron\">\n <form method=\"POST\" action=\"{{ route('login') }}\">\n ...
php
chosen
[ { "from": "system", "value": "Fix compatibility issue with PHP 5.3\n" }, { "from": "human", "value": "<?php\n\nnamespace Kanboard\\Core\\Cache;\n\n/**\n * Base class for cache drivers\n *\n * @package cache\n * @author Frederic Guillot\n */\nabstract class Base\n{\n /**\n * Fetch value...
php
chosen
[ { "from": "system", "value": "Remove boot() from service provider\n" }, { "from": "human", "value": "<?php namespace BigName\\EventDispatcher\\Integrations\\Laravel;\n\nuse Illuminate\\Support\\ServiceProvider as LaravelServiceProvider;\n\nclass ServiceProvider extends LaravelServiceProvider\n{\...
php
chosen
[ { "from": "system", "value": "Rename \"method parameters\" to \"method arguments\" to avoid confusion with ParameterDefinition\n" }, { "from": "human", "value": "<?php\n\nnamespace Interop\\Container\\Definition;\n\n/**\n * Represents an instance declared using the \"new\" keyword followed by an...
php
chosen
[ { "from": "system", "value": "Add factory for Earning model\n" }, { "from": "human", "value": "<?php\n\nuse Faker\\Generator;\nuse App\\User;\nuse App\\Spending;\n\n$factory->define(User::class, function (Generator $faker) {\n return [\n 'name' => $faker->name,\n 'email' => $fak...
php
chosen
[ { "from": "system", "value": "Add shops selection to event form.\n" }, { "from": "human", "value": "<?php\n\nnamespace DTR\\DTRBundle\\Form;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsResolv...
php
chosen
[ { "from": "system", "value": "Remove use of 'share()' in provider to be laravel 5.4 compatible\n" }, { "from": "human", "value": "<?php\n\nnamespace Chalcedonyt\\Specification\\Providers;\nuse Chalcedonyt\\Specification\\Commands\\SpecificationGeneratorCommand;\nuse Illuminate\\Support\\ServiceP...
php
chosen
[ { "from": "system", "value": "Fix default colors to now explicitly have `-default` instead of the base color itself\n\nex: `border-grey` -> `border-grey-default`\n" }, { "from": "human", "value": "<div class=\"wsufooter\">\n <div class=\"wsuwrap\">\n <div class=\"privacy\">\n ...
php
chosen
[ { "from": "system", "value": "Clean up dead code for depth first search\n" }, { "from": "human", "value": "<?php\n\nnamespace Graphp\\Algorithms\\Search;\n\nuse Fhaculty\\Graph\\Vertex;\nuse Fhaculty\\Graph\\Set\\Vertices;\n\nclass DepthFirst extends Base\n{\n /**\n *\n * calculates t...
php
chosen
[ { "from": "system", "value": "Update the phpdoc of the id method to accept uuid\n\nWhen using Uuid as primary key, the PHPStorm and static analysis tools like PHPStan catch the advertise that auth()->id() is not an string, but it is when using Uuid." }, { "from": "human", "value": "<?php\n\nname...
php
chosen
[ { "from": "system", "value": "Remove the default tab if there aren't any fields in it\n" }, { "from": "human", "value": "<?php defined('BASEPATH') or exit('No direct script access allowed');\n/**\n * @package PyroCMS\n * @subpackage Streams Tabs Helper\n * @author Chris Harvey <chris@chrisnharv...
php
chosen
[ { "from": "system", "value": "Implement the ability to define constants.\n" }, { "from": "human", "value": "<?php\nnamespace Phortress;\n\ntrait EnvironmentHasConstantsTrait {\n\tpublic function resolveConstant(Name $constantName) {\n\t\tif (self::isAbsolutelyQualified($constantName)) {\n\t\t\tr...
php
chosen
[ { "from": "system", "value": "Update CreateDir operation with logAction method.\n" }, { "from": "human", "value": "<?php\nnamespace GenPHP\\Operation;\nuse GenPHP\\Operation\\Helper;\n\nclass CreateDirOperation extends Operation\n{\n\n function run($dir)\n {\n $this->getLogger()->in...
php
chosen
[ { "from": "system", "value": "Fix redirecting with mod_rewrite disabled" }, { "from": "human", "value": "<?php\n\nif(!empty($_GET[\"set\"]) && file_exists(\"include/languages/\" . $_GET[\"set\"] . \".json\")) {\n\tsetcookie(\"advancedban-panel_language\", $_GET[\"set\"], time( ) + (30 * 60 * 60 ...
php
chosen
[ { "from": "system", "value": "Change names for CNR,SNR fields\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateMamsurveydataTable extends Migration\...
php
chosen
[ { "from": "system", "value": "Fix blog - Part 2" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n <head>\n <title>OpenSprites Blog</title>\n <link href='../navbar.css' type=\"text/css\" rel=stylesheet>\n <link href='../main-style.css' type=\"text/css\" rel=styles...
php
chosen
[ { "from": "system", "value": "Remove extra space at EOL\n" }, { "from": "human", "value": "<?php\n\nnamespace Test\\View;\n\nuse Slim\\Slim;\nuse Twig\\Test\\IntegrationTestCase;\nuse View\\FiltersExtension;\nuse View\\FunctionsExtension;\n\nclass TwigExtensionIntegrationTest extends Integration...
php
chosen
[ { "from": "system", "value": "Remove function from alias file to avoid redclare errors on multiple alias file loading.\n" }, { "from": "human", "value": "<?php\n/**\n * Drush Aliases\n *\n * This file provides for the automatic generation of site aliases based\n * on the file layout and configur...
php
chosen
[ { "from": "system", "value": "Set default mustValidateSecret to true\n" }, { "from": "human", "value": "<?php\n/**\n * @author Alex Bilbie <hello@alexbilbie.com>\n * @copyright Copyright (c) Alex Bilbie\n * @license http://mit-license.org/\n *\n * @link https://github.com/theph...
php
chosen
[ { "from": "system", "value": "Add fa to available locales\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Supported Languages\n |-------------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Fix swapped test group names\n" }, { "from": "human", "value": "<?php\n/**\n * @category Mad\n * @package Mad_Task\n * @copyright (c) 2007-2009 Maintainable Software, LLC\n * @license http://opensource.org/licenses/bsd-license.php BSD\n */\n\n/**\n * Built-...
php
chosen
[ { "from": "system", "value": "Fix link to Slowvote user guide\n\nSummary: This URI is incorrect.\n\nTest Plan: Clicked \"Help\" tab.\n\nReviewers: cpiro\n\nReviewed By: cpiro\n\nCC: aran, cpiro\n\nDifferential Revision: 1026\n" }, { "from": "human", "value": "<?php\n\n/*\n * Copyright 2011 Faceb...
php
chosen
[ { "from": "system", "value": "Update example with working relay\n" }, { "from": "human", "value": "<?php\r\n\r\nrequire_once 'common.php';\r\n\r\nuse Dapphp\\TorUtils\\DirectoryClient;\r\n\r\n$client = new DirectoryClient();\r\n//$client->setPreferredServer('1.2.3.4:80'); // Optional server to a...
php
chosen
[ { "from": "system", "value": "Trim NID and make it uppercase & combine dummy email inline\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Services;\n\nuse App\\Student;\nuse App\\User;\nuse Carbon\\Carbon;\n\nclass UserService\n{\n /**\n * 尋找使用者,若找不到,則建立使用者並綁定\n *\n * @...
php
chosen
[ { "from": "system", "value": "Fix checking using in_array instead\n" }, { "from": "human", "value": "<?php\n\nnamespace Endroid\\PredictionIO\\Model;\n\n/**\n * Class EntityEvent\n *\n * @package Endroid\\PredictionIO\\Model\n */\nclass EntityEvent extends AbstractEvent\n{\n static $AVAILABLE...
php
chosen
[ { "from": "system", "value": "Make sure we are compatible with common 0.3\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of php-cache\\memcache-adapter package.\n *\n * (c) 2015-2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>\n *\n * This sou...
php
chosen
[ { "from": "system", "value": "Add contact page to nav\n" }, { "from": "human", "value": "<?php\nerror_reporting(E_ALL);\n\n// WH Test database settings\ndefine('DB_NAME', 'test');\ndefine('DB_USER', 'root');\ndefine('DB_PASS', '');\ndefine('DB_HOST', '127.0.0.1');\n\ndefine('DIR_BASE', dirname(d...
php
chosen
[ { "from": "system", "value": "Use facade since it cache the singleton and set the interface for return type\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php\n\nuse Orchestra\\Messages\\MessageBag;\n\nif (! \\functi...
php
chosen
[ { "from": "system", "value": "Revert \"ImmutableObject now uses Immutable trait\"\n\nThis reverts commit 49118d2de90644369d8882b17f0a4f3e89d357c4.\n" }, { "from": "human", "value": "<?php\n\n/**\n Copyright 2012 Brainsware\n\n Licensed under the Apache License, Version 2.0 (the \"License\");...
php
chosen
[ { "from": "system", "value": "Fix missing numbers when pass/fail count is zero.\n\nSigned-off-by: Edward Z. Yang <71e3051a204377f8d7e885f17897f01c539d4005@thewritingpot.com>\n" }, { "from": "human", "value": "<?php\n\nclass HTMLPurifier_SimpleTest_TextReporter extends TextReporter {\n protect...
php
chosen
[ { "from": "system", "value": "Fix admin show map tool.\n" }, { "from": "human", "value": "<?\n\n$db2 = new SmrMySqlDatabase();\n$account_id = $_REQUEST['account_id'];\nif (!empty($account_id))\n{\n\trequire_once(get_file_loc('SmrPort.class.inc'));\n\t$game_id = $var['game_id'];\n\n\t// delete al...
php
chosen
[ { "from": "system", "value": "Remove obsolete code which stopped non-admins from editing.\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Providers;\n\nuse App\\Models\\Site;\nuse App\\Models\\Page;\nuse App\\Models\\Media;\nuse App\\Policies\\PagePolicy;\nuse App\\Policies\\SitePolic...
php
chosen
[ { "from": "system", "value": "FIx function definition for getSubscribedEvents()\n" }, { "from": "human", "value": "<?php\n\nnamespace Factorial\\Fabalicious;\n\nuse Composer\\Composer;\nuse Composer\\EventDispatcher\\EventSubscriberInterface;\nuse Composer\\IO\\IOInterface;\nuse Composer\\Plugin...
php
chosen
[ { "from": "system", "value": "FIX Ensure an image object is present before referencing it\n" }, { "from": "human", "value": "<?php\n\n/**\n * @author marcus\n */\nclass HtmlEditorExtension extends Extension {\n public function processImage($image, $img) {\n if ($image->CanViewType && $...
php
chosen
[ { "from": "system", "value": "Enforce minimum XF & php version\n" }, { "from": "human", "value": "<?php\n\nclass SV_ProxyLinkForum_Installer\n{\n public static function install($existingAddOn, $addOnData)\n {\n $version = isset($existingAddOn['version_id']) ? $existingAddOn['version...
php
chosen
[ { "from": "system", "value": "Rename cache clear menu item.\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n/**\n * @author Alexander Volodin <mr-stanlik@yandex.ru>\n * @copyright Copyright (c) 2020, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the ...
php
chosen
[ { "from": "system", "value": "Remove depency to removed database.php\n" }, { "from": "human", "value": "<?php\n$config = require 'app/config.php';\nrequire 'app/models/database.php';\nrequire 'app/services/net-usage-monitor.php';\n\n$pdo = new PDO('mysql:host=' . $config['db']['host'] . ';dbname...
php
chosen
[ { "from": "system", "value": "Add doc link to local footer\n" }, { "from": "human", "value": "<div class=\"wdn-grid-set wdn-footer-links-local\">\n <div class=\"bp960-wdn-col-two-thirds\">\n <div class=\"wdn-footer-module\">\n <span role=\"heading\" class=\"wdn-footer-headin...
php
chosen
[ { "from": "system", "value": "Change groupname from 64 char to 256\n" }, { "from": "human", "value": "<?php\n\nnamespace modl;\n\nclass RosterLink extends Model\n{\n public $session;\n public $jid;\n public $rosterask;\n public $rostersubscription;\n public $publickey;\n public...
php
chosen
[ { "from": "system", "value": "Update docblocks in Service Provider\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;\n\nuse Illum...
php
chosen
[ { "from": "system", "value": "Move `aria-current=\"page\"` to anchor instead of list item.\n" }, { "from": "human", "value": "<?php ///////////////////////////////////////////////////////\n// ----------------------------------------------------------\n// SNIPPET\n// -----------------------------...
php
chosen
[ { "from": "system", "value": "Check so idx_add_action exists before using it\n" }, { "from": "human", "value": "<?php\n\n/**\n * Plugin Name: Digster\n * Description: Twig templates for WordPress\n * Author: Fredrik Forsmo\n * Author URI: https://frozzare.com\n * Plugin URI: https://github.com/f...
php
chosen
[ { "from": "system", "value": "Add method to remove all access tokens from a user.\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: daedeloth\n * Date: 25/12/14\n * Time: 15:55\n */\n\nnamespace CatLab\\OAuth2\\Mappers;\n\nuse CatLab\\Accounts\\Models\\User;\nuse N...
php
chosen
[ { "from": "system", "value": "Test auto update to packagist\n\nSigned-off-by: ShaneStevenLei <d08720d67a6f151c69423335bab4d91bf169ca89@outlook.com>\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of the php-file-uploader package.\n *\n * (c) ShaneStevenLei <shanestevenlei@outl...
php
chosen
[ { "from": "system", "value": "Check if App is running in console :bug:" }, { "from": "human", "value": "<?php namespace JarydKrish\\ErrorLogger;\n\nuse App;\nuse Backend;\nuse BackendAuth;\nuse Illuminate\\Foundation\\AliasLoader;\nuse System\\Classes\\PluginBase;\n\n/**\n * ErrorLogger Plugin I...
php
chosen
[ { "from": "system", "value": "Check result of symlink function\n" }, { "from": "human", "value": "<?php\n\nnamespace Gitonomy\\Git;\n\n/**\n * Hooks handler.\n *\n * @author Alexandre Salomé <alexandre.salome@gmail.com>\n */\nclass Hooks\n{\n /**\n * @var Gitonomy\\Git\\Repository\n *...
php
chosen
[ { "from": "system", "value": "Fix APC handling of Helloworld app.\n" }, { "from": "human", "value": "<?php\n/**\n * Sandbox\n *\n * @package App.Sandbox\n */\n\nuse Helloworld\\Module\\AppModule;\nuse Ray\\Di\\Injector;\n\nrequire_once __DIR__ . '/load.php';\n\n$hasApc = function_exists('apc_fet...
php
chosen
[ { "from": "system", "value": "Add return types preparing for upgrade of parent." }, { "from": "human", "value": "<?php\n\nnamespace Silly\\Input;\n\n/**\n * Extending InputOption because...\n *\n * @author Matthieu Napoli <matthieu@mnapoli.fr>\n */\nclass InputOption extends \\Symfony\\Component...
php
chosen
[ { "from": "system", "value": "Add ability to render custom scripts in header\n" }, { "from": "human", "value": "<?php\n\nfinal class InternalPage implements Page, Linkable {\n private $_header;\n private $_title;\n private $_filename;\n private $_content;\n private $_strapline;\n\...
php
chosen
[ { "from": "system", "value": "Set umask to 0002 when asserting chmod of mkdir'ed dir equals 0770\n" }, { "from": "human", "value": "<?php\n\nnamespace Gaufrette\\Functional\\FileStream;\n\nuse Gaufrette\\Filesystem;\nuse Gaufrette\\Adapter\\Local as LocalAdapter;\nuse Gaufrette\\Functional\\Loca...
php
chosen
[ { "from": "system", "value": "Stop hiding the server ip/host from sentry (debug is disabled)\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|-------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Remove nbsp distorting the layout.\n" }, { "from": "human", "value": "@foreach($user->roles()->pluck('name')->all() as $role)\n<span class=\"badge badge-info\">{!! $role !!}</span>&nbsp;\n@endforeach\n" }, { "from": "gpt", "value": "@foreach($user->roles...
php
chosen
[ { "from": "system", "value": "Make sure extended pages can be added in structure add page feature\n" }, { "from": "human", "value": "<ul class=\"toolbar toolbar-right\">\n\t<?= $this->partial('tools-top') ?>\n\t<?php if (false && !$content->isNewMaster()) { ?>\n\t\t<li><a href=\"#\" class=\"btn ...
php
chosen
[ { "from": "system", "value": "Throw exception if procedure is empty.\n" }, { "from": "human", "value": "<?php\n\n\nnamespace Retrinko\\CottonTail\\Message\\Payloads;\n\nclass RpcRequestPayload extends DefaultPayload\n{\n const KEY_PARAMS = 'params';\n const KEY_PROCEDURE = 'procedure';\...
php
chosen
[ { "from": "system", "value": "Fix coverage validation for phpunit 7 (backguards compatibility.\n" }, { "from": "human", "value": "<?php\n\nnamespace PhpGitHooks\\Module\\PhpUnit\\Infrastructure\\Tool;\n\nuse PhpGitHooks\\Infrastructure\\Tool\\ToolPathFinder;\nuse PhpGitHooks\\Module\\PhpUnit\\Mo...
php
chosen
[ { "from": "system", "value": "Use config method from plugin class\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of Herbie.\n *\n * (c) Thomas Breuss <www.tebe.ch>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed...
php
chosen
[ { "from": "system", "value": "Use a random queue name\n" }, { "from": "human", "value": "<?php\n\nuse PMG\\Queue;\n\nrequire __DIR__.'/../vendor/autoload.php';\nrequire __DIR__.'/StreamLogger.php';\n\n$serializer = new Queue\\Serializer\\SigningSerializer(\n new Queue\\Serializer\\NativeSeria...
php
chosen
[ { "from": "system", "value": "Change file existing test for listing\n" }, { "from": "human", "value": "@if (file_exists($file_url.'/'.$name.'/admin_'.$item->$name))\n\t{{ HTML::image($file_url.'/'.$name.'/admin_'.$item->$name) }}\n@else\n\t{{ HTML::image(admin_asset('img/admin.jpg')) }}\n@endif"...
php
chosen
[ { "from": "system", "value": "Use RFC test vectors in Base64 encoder test.\n" }, { "from": "human", "value": "<?php\n\nnamespace Rych\\Random\\Encoder;\n\nuse PHPUnit_Framework_TestCase as TestCase;\n\nclass Base64EncoderTest extends TestCase\n{\n\n public function testEncodeMethodPrducesExpe...
php
chosen
[ { "from": "system", "value": "Return for get field, rather than echo\n" }, { "from": "human", "value": "<?php\n\t\n/* This file exists so we can handle versions of PHP which do not support namespaced classes without throwing a generic unexpected string fatal. */\n\t\nrequire_once('CultureObject/...
php
chosen
[ { "from": "system", "value": "Use a different default website prefix\n" }, { "from": "human", "value": "<?php\n\n/**\n * Configuration file\n *\n * Settings to configure the functionality of Saberva\n * \n * PHP version 5\n *\n * @author\t\tWaldo Jaquith <waldo at jaquith.org>\n * @copyright\t20...
php
chosen
[ { "from": "system", "value": "Remove the field from the tab if the field does not exist\n" }, { "from": "human", "value": "<?php defined('BASEPATH') or exit('No direct script access allowed');\n/**\n * @package PyroCMS\n * @subpackage Streams Tabs Helper\n * @author Chris Harvey <chris@chrisnha...
php
chosen
[ { "from": "system", "value": "Remove calls to SSP in the SAML2 container\n\nEngineBlock already implements its own redirect and POST mechanisms,\nso instead of proxying the methods to SSP, we now throw an exception\nto make sure EB will never try to use SSP.\n\nThe 'generateId()' method is now implemented i...
php
chosen
[ { "from": "system", "value": "Remove comment bloat from Route\\Loader class." }, { "from": "human", "value": "<?php namespace System\\Route;\n\nclass Loader {\n\n\t/**\n\t * Load the route file based on the first segment of the URI.\n\t *\n\t * @param string $uri\n\t * @return void\n\t */\n\tp...
php
chosen
[ { "from": "system", "value": "FIX Ensure required HTTPRequest arguments are provided\n" }, { "from": "human", "value": "<?php\n/**\n * Composer update checker job. Runs the check as a queuedjob.\n *\n * @author Peter Thaleikis\n * @license MIT\n */\nclass CheckComposerUpdatesJob extends Abstract...
php
chosen
[ { "from": "system", "value": "Add support for higher order collection messages from 5.4\n" }, { "from": "human", "value": "<?php namespace TightenCo\\Jigsaw;\n\nuse ArrayAccess;\nuse Exception;\nuse Illuminate\\Support\\Collection as BaseCollection;\n\nclass IterableObject extends BaseCollection...
php
chosen
[ { "from": "system", "value": "Revert \"Fix relative links for new website structure\"\n\nThis reverts commit 4c26fcf2c6908f44ba45fe15266536d767dd4c1e.\n" }, { "from": "human", "value": "<?php echo \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\"; ?>\n\n<!DOCTYPE html PUBLIC \"-//W3C//DTD X...
php
chosen
[ { "from": "system", "value": "Add Link in PDF-Export in Download-Component\n" }, { "from": "human", "value": "<?php\nclass Kwc_Basic_Download_Pdf extends Kwc_Abstract_Pdf\n{\n public function writeContent()\n {\n $fileSizeHelper = new Kwf_View_Helper_FileSize();\n $encodeText...
php
chosen
[ { "from": "system", "value": "Update database adapter to use Airlock\n" }, { "from": "human", "value": "<?php namespace Divsmith\\IlluminateDecouplr\\Redis;\r\n\r\nuse Divsmith\\Decouplr\\Decouplr;\r\nuse Illuminate\\Redis\\Database as IlluminateDatabase;\r\n\r\nabstract class Database extends D...
php
chosen
[ { "from": "system", "value": "Make accessKey a zoneData param.\n" }, { "from": "human", "value": "<?php\n\nclass CM_AdproviderAdapter_Epom extends CM_AdproviderAdapter_Abstract {\n\n /**\n * @return string\n */\n private function _getAccessKey() {\n return self::_getConfig()...
php
chosen
[ { "from": "system", "value": "Load committees and social media\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: kmcgrogan\n * Date: 3/26/17\n * Time: 3:27 PM\n */\n\nnamespace App\\Http\\Controllers;\n\nuse App\\Models\\Organization;\nuse App\\Services\\AddressTra...
php
chosen
[ { "from": "system", "value": "Change Google Analytics to a Basic version\n" }, { "from": "human", "value": "<!-- Google Analytics -->\n<script>\nwindow.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;\nga('create', 'UA-44617461-1', 'auto');\nga('send', 'pageview');\n</sc...
php
chosen
[ { "from": "system", "value": "Fix mconsole options for php 7.2\n" }, { "from": "human", "value": "<?php\n\nnamespace Milax\\Mconsole\\Models;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass MconsoleOption extends Model\n{\n use \\Cacheable;\n \n protected $fillable = ['group', 'l...
php
chosen
[ { "from": "system", "value": "Set alias of controller plugins to camelCase" }, { "from": "human", "value": "<?php\nreturn array(\n 'controller_plugins' => array(\n 'invokables' => array(\n 'ZnZendMvcParams' => 'ZnZend\\Mvc\\Controller\\Plugin\\ZnZendMvcParams',\n ...
php
chosen
[ { "from": "system", "value": "Update to the latest issue (39)\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Default Issue number\n |--------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Fix a bad call when prefilling ApplicationSearch from `?projects=some_slug`\n\nSummary: Fixes T10299.\n\nTest Plan:\n - Visited `/maniphest/?projects=x` locally, where `x` is some valid project slug.\n - Before patch: Fatal on `requireViewer()` call.\n - After patch: Works c...
php
chosen
[ { "from": "system", "value": "Define colors in a shared getter and add ability to get these specific color values\n" }, { "from": "human", "value": "<?php\n\nfunction prettyNumber($Number)\n{\n return number_format(floor($Number), 0, ',', '.');\n}\n\nfunction colorNumber($Number, $ZeroToOrang...
php
chosen
[ { "from": "system", "value": "Update docblock for repository interface getById method.\n" }, { "from": "human", "value": "<?php\n\nnamespace Enzyme\\Axiom\\Repositories;\n\nuse Enzyme\\Axiom\\Instances\\InstanceInterface;\nuse Enzyme\\Axiom\\Atoms\\AtomInterface;\n\n/**\n * Manages a collection ...
php
chosen
[ { "from": "system", "value": "Update test case for TargetType enum\n" }, { "from": "human", "value": "<?php\n\nnamespace Zimbra\\Enum\\Tests;\n\nuse \\PHPUnit_Framework_TestCase;\nuse Zimbra\\Enum\\TargetType;\n\n/**\n * Testcase class for TargetType.\n */\nclass TargetTypeTest extends PHPUnit_F...
php
chosen
[ { "from": "system", "value": "Implement spy ratio and wizard ratio (spa/wpa)\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenDominion\\Calculators\\Dominion;\n\nclass MilitaryCalculator extends AbstractDominionCalculator\n{\n /**\n * {@inheritDoc}\n */\n public function i...
php
chosen
[ { "from": "system", "value": "Add download URL for touch\n" }, { "from": "human", "value": "<?php\n\nnamespace Jarvus\\Sencha\\Framework;\n\nclass Touch extends \\Jarvus\\Sencha\\Framework\n{\n\t\n}" }, { "from": "gpt", "value": "<?php\n\nnamespace Jarvus\\Sencha\\Framework;\n\nclass...
php
chosen
[ { "from": "system", "value": "Fix Class 'Arr' not found\n" }, { "from": "human", "value": "---\n{!! $frontmatter !!}\n---\n<!-- START_INFO -->\n{!! $infoText !!}\n<!-- END_INFO -->\n{!! $prependMd !!}\n@foreach($parsedRoutes as $groupName => $routes)\n#{!! $groupName !!}\n{{-- We pick the first ...
php
chosen
[ { "from": "system", "value": "Add PERSISTENT option to MySQL connection." }, { "from": "human", "value": "<?php\r\n\r\nnamespace Jafaripur\\DAL;\r\n\r\n/**\r\n * Abstract Class MySQLOwnClient for using MySQL\r\n * \r\n * Each of model want to use MySQL should extend from this class\r\n * \r\n * ...
php
chosen
[ { "from": "system", "value": "Add a forgotten return annotation" }, { "from": "human", "value": "<?php\r\n\r\nnamespace PHPImageWorkshop;\r\n\r\n/**\r\n * ImageWorkshopException\r\n * \r\n * Manage ImageWorkshop exceptions\r\n */\r\nclass ImageWorkshopException extends \\Exception\r\n{\r\n /*...
php
chosen
[ { "from": "system", "value": "Disable session for api modules" }, { "from": "human", "value": "<?php\n\nnamespace app\\modules\\api;\n\nuse yii\\base\\BootstrapInterface;\n\nclass Api extends \\yii\\base\\Module implements BootstrapInterface\n{\n\n public $controllerNamespace = 'app\\modules\...
php
chosen
[ { "from": "system", "value": "Reformat \"Command not found\" error output.\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the TelegramBot package.\n *\n * (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>\n *\n * For the full copyright and license information, ple...
php
chosen
[ { "from": "system", "value": "Use a different way to trigger the BC layer\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Paraunit\\Process;\n\nuse Paraunit\\Configuration\\EnvVariables;\nuse Paraunit\\Configuration\\PHPUnitConfig;\nuse Paraunit\\Configuration\\...
php
chosen
[ { "from": "system", "value": "Check for phantom and selenium-server.\n" }, { "from": "human", "value": "<?php\n/**\n *\n *\n * @author Sam Schmidt <samuel@dersam.net>\n * @date 2015-10-15\n * @company Linus Shops\n */\n\nnamespace LinusShops\\Prophet\\Commands\\Scry;\n\n\nuse Behat\\Behat\\Appli...
php
chosen
[ { "from": "system", "value": "Fix horrible broken mess in 304 handling\n\nSummary:\nSending a response body in a 304 triggers some crazy broken behavior in Safari +\nApache that I never hit during testing. Be spec-compliant.\n\nTest Plan:\nMashed reload a bunch on a .php page with Safari + Apache against lo...
php
chosen
[ { "from": "system", "value": "Change the call from BooleanStr::toStr to BooleanStr::toString\n" }, { "from": "human", "value": "<?php\n\nnamespace Bruno\\AdobeConnectClient\\Traits;\n\nuse \\Bruno\\AdobeConnectClient\\Helper\\CamelCase as CC;\nuse \\Bruno\\AdobeConnectClient\\Helper\\BooleanStr ...
php
chosen
[ { "from": "system", "value": "Refactor code to improve readability\n" }, { "from": "human", "value": "<?php\n function mergeKeys( $config, $configLocal ) {\n if ( !is_array( $config ) ) {\n return $configLocal;\n }\n foreach ( $config as $key => $value ) {\n ...
php
chosen
[ { "from": "system", "value": "Allow running bower install as root" }, { "from": "human", "value": "<?php\n\nnamespace Opifer\\CmsBundle\\Composer;\n\nuse Composer\\Script\\Event;\n\nclass ScriptHandler\n{\n public static function installAssets(Event $event)\n {\n $event->getIO()->wr...
php
chosen
[ { "from": "system", "value": "Use a better fitting nonce action for the Redirect site setting.\n" }, { "from": "human", "value": "<?php\n/**\n * Site specific settings.\n *\n * @version 2014.04.28\n * @author Inpsyde GmbH, toscho\n * @license GPL\n * @package MultilingualPress\n * @subpackag...
php
chosen