conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Exclude auth from Csrf checks\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Middleware;\n\nuse Illuminate\\Foundation\\Http\\Middleware\\VerifyCsrfToken as BaseVerifier;\n\nclass VerifyCsrfToken extends BaseVerifier\n{\n\n /**\n * The URIs ...
php
chosen
[ { "from": "system", "value": "Edit Profile feature is removed in demo status.\n" }, { "from": "human", "value": "\n@extends('panelViews::mainTemplate')\n@section('page-wrapper')\n\n@if (!empty($message))\n <div class=\"alert-box success\">\n <h2>{{ $message }}</h2>\n </div>\n@endif\...
php
chosen
[ { "from": "system", "value": "Use the plugin path already defined by Kirki\n" }, { "from": "human", "value": "<?php\n\n\n/**\n * The configuration options for the Maera Customizer\n */\nfunction maera_customizer_config() {\n\n\t$args = array(\n\n\t\t// 'logo_image' => get_template_directory_u...
php
chosen
[ { "from": "system", "value": "Make sure future iOS versions are handled correctly on the server component\n\nWe ignore the fact that there may be iOS 2.x devices out there trying to access the pages and thus be handled incorrectly\n" }, { "from": "human", "value": "<?php\n\nclass DeviceDetector\...
php
chosen
[ { "from": "system", "value": "Refactor function to serve public data from storage directory\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Support\\Facades\\File;\nuse Illuminate\\Support\\Facades\\Response;\n\nclass DataController extends Contro...
php
chosen
[ { "from": "system", "value": "Replace call to get method with findOrFail method\n" }, { "from": "human", "value": "<?php namespace Pingpong\\Modules\\Process;\n\nclass Updater extends Runner {\n\n /**\n * Update the dependencies for the specified module by given the module name.\n *\n...
php
chosen
[ { "from": "system", "value": "Update test case for new version of IUCN\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\AppBundle\\API\\Listing;\n\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\nuse Tests\\AppBundle\\API\\WebserviceTestCase;\n\nclass TraitsTest extends Webser...
php
chosen
[ { "from": "system", "value": "Include more information in file replicator exception." }, { "from": "human", "value": "<?php\n\nnamespace Orbt\\ResourceMirror\\Resource;\nuse Orbt\\ResourceMirror\\Exception\\ReplicatorException;\n\n/**\n * Basic replicator implementation using file operations to ...
php
chosen
[ { "from": "system", "value": "Add default value to status enum\n\nFix https://github.com/junaidnasir/larainvite/issues/6" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateInvitationUserTable ext...
php
chosen
[ { "from": "system", "value": "Add missing doc-blocks to keep consistent\n" }, { "from": "human", "value": "<?php\n\nnamespace MetricsMonitor\\Service\\Storage;\n\nuse Doctrine\\DBAL\\Connection;\n\nabstract class AbstractStorage\n{\n /**\n * @var Connection\n */\n protected $connec...
php
chosen
[ { "from": "system", "value": "Move Timber class check to the top of the file\n\nThe check is supossed to happen before the attempt to use. Also this\nway the error message displays as it should.\n" }, { "from": "human", "value": "<?php\nuse Roots\\Sage\\Setup;\n\n/**\n * Timber\n */\n\nclass Twi...
php
chosen
[ { "from": "system", "value": "Reorder register and boot methods\n" }, { "from": "human", "value": "<?php\n\nnamespace Laravel\\Lumen\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass EventServiceProvider extends ServiceProvider\n{\n /**\n * The event handler mappings for t...
php
chosen
[ { "from": "system", "value": "Remove previous Playlists pages from test suite.\n\n" }, { "from": "human", "value": "<?php\nclass C03_Station_PlaylistsCest extends CestAbstract\n{\n /**\n * @before setupComplete\n * @before login\n */\n public function editPlaylists(FunctionalTe...
php
chosen
[ { "from": "system", "value": "Use relative paths for includes.\n" }, { "from": "human", "value": "<?php if ( ! defined('BASEPATH')) exit('Invalid file request.');\n\n/**\n * OmniLog module tests.\n *\n * @author Stephen Lewis <stephen@experienceinternet.co.uk>\n * @copyright Exper...
php
chosen
[ { "from": "system", "value": "Handle people without points yet\n" }, { "from": "human", "value": "<?\ninclude '../scat.php';\ninclude '../lib/person.php';\n\nif (!defined('LOYALTY')) exit;\n\n$person_id= (int)$_REQUEST['person'];\n\n$person= person_load($db, $person_id);\nif (!$person) {\n die_...
php
chosen
[ { "from": "system", "value": "Use Pattern::template() instead of string concatenation\n" }, { "from": "human", "value": "<?php\n\nnamespace Coyote\\Services\\Parser\\Parsers;\n\nuse Coyote\\Repositories\\Contracts\\WordRepositoryInterface as WordRepository;\nuse TRegx\\SafeRegex\\Exception\\Preg...
php
chosen
[ { "from": "system", "value": "Add dock block and todo task\n" }, { "from": "human", "value": "<?php\n/*\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHA...
php
chosen
[ { "from": "system", "value": "Use an indexation method that works even for Magento <= 1.7\n" }, { "from": "human", "value": "<?php\r\n\r\nclass SPM_ShopyMind_Test_Observer\r\n{\r\n public function beforeTestStart()\r\n {\r\n if (Mage::app()->getStore()->isAdmin()) {\r\n $...
php
chosen
[ { "from": "system", "value": "Enhance error messaging on exception\n" }, { "from": "human", "value": "<?php\n\nnamespace Hub\\Client\\Common;\n\nuse Hub\\Client\\Exception\\BadRequestException;\nuse Hub\\Client\\Exception\\NotFoundException;\nuse Hub\\Client\\Exception\\NotAuthorizedException;\n...
php
chosen
[ { "from": "system", "value": "Set default isConfidential to false for client entity\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://g...
php
chosen
[ { "from": "system", "value": "Make api_key of ApiKey required\n" }, { "from": "human", "value": "@extends('layouts.app')\n\n@section('title', '新增ApiKey')\n\n@section('content')\n <div class=\"mt-3 pb-3\">\n <div class=\"col-md-8 offset-md-2\">\n <h1>新增ApiKey</h1>\n ...
php
chosen
[ { "from": "system", "value": "Use a theme instead of vanilla twbs. Add padding.\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <title>\n @section('title')\n {{ Lang::get('messages.page-title') }}\n ...
php
chosen
[ { "from": "system", "value": "Make 'UserRegistrationRequest' order by 'created_at'\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse App\\UserRegistrationRequest;\n\nclass UserRegistrationRequestController extends Controller\n{\n...
php
chosen
[ { "from": "system", "value": "Add PHP that queries the Database for a user based on ID and return JSON\n" }, { "from": "human", "value": "<?php\n\necho 'Hello from PHP '.$_GET['customerID'];" }, { "from": "gpt", "value": "<?php\n\n// Connect to the database\n$dbc = new mysqli('localh...
php
chosen
[ { "from": "system", "value": "Handle Errors by default by checking error handlers\n" }, { "from": "human", "value": "<?php\nnamespace Flubber;\n\ndefine('FLIB', dirname(__FILE__).'/');\ndefine('FLVERSION', 2.0);\n\n// Load the core functions\nrequire_once 'Functions.php';\n\nuse Flubber\\Datasto...
php
chosen
[ { "from": "system", "value": "@noref: Fix email obfuscate when they contain a subject\n" }, { "from": "human", "value": "<?php namespace Exolnet\\Html;\n/**\n * Copyright © 2014 eXolnet Inc. All rights reserved. (http://www.exolnet.com)\n *\n * This file contains copyrighted code that is the sol...
php
chosen
[ { "from": "system", "value": "Fix fucking creazy bug :((((\n" }, { "from": "human", "value": "<?php\nnamespace Morilog\\Acl\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Illuminate\\Contracts\\Config\\Repository;\nuse Morilog\\Acl\\Managers\\Interfaces\\RoleManagerInterface;\n\nc...
php
chosen
[ { "from": "system", "value": "Add decorator support to schema creation\n" }, { "from": "human", "value": "<?php namespace Way\\Generators\\Syntax;\n\nclass AddToTable extends Table {\n\n /**\n * Add syntax for table addition\n *\n * @param $migrationData\n * @param array $fiel...
php
chosen
[ { "from": "system", "value": "Use the correct method name when saving a tag\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Seeder;\n\nclass BookmarksTableSeeder extends Seeder\n{\n /**\n * Run the database seeds.\n *\n * @return void\n */\n public fun...
php
chosen
[ { "from": "system", "value": "Change the default value for the number of arguments used to populate KEYS.\n" }, { "from": "human", "value": "<?php\n\nnamespace Predis\\Commands;\n\nabstract class ScriptedCommand extends ServerEval {\n public abstract function getScript();\n\n protected fun...
php
chosen
[ { "from": "system", "value": "Add space before each elseif opening parenthesis.\n" }, { "from": "human", "value": "<?php\nnamespace Sil\\PhpEnv;\n\nclass Env\n{\n /**\n * Retrieve the value of the specified environment variable, translating\n * values of 'true', 'false', and 'null' to...
php
chosen
[ { "from": "system", "value": "Add missing FR keys in locales\n" }, { "from": "human", "value": "<?php\n\nreturn [\n '401.title' => 'Non identifié',\n '403.title' => 'Non autorisé',\n 'command.confirm.title' => 'Confirmer',\n 'command.info.title' => 'Information',\n 'state.422.titl...
php
chosen
[ { "from": "system", "value": "Create seperate cache store for types and fields.\n" }, { "from": "human", "value": "<?php\n\nnamespace ProcessWire\\GraphQL;\n\nclass Cache\n{\n private static $store = [];\n\n public static function &type(string $name, $build = null)\n {\n if (isset(self::$s...
php
chosen
[ { "from": "system", "value": "Add HTTP/feature test for updating tags\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\Feature;\n\nuse App\\User;\nuse App\\Space;\nuse App\\Tag;\nuse Tests\\TestCase;\nuse Illuminate\\Foundation\\Testing\\WithFaker;\nuse Illuminate\\Foundation\\Testin...
php
chosen
[ { "from": "system", "value": "Fix Env command for switching php\n" }, { "from": "human", "value": "<?php\nnamespace PhpBrew\\Command;\nuse PhpBrew\\Config;\n\nclass EnvCommand extends \\CLIFramework\\Command\n{\n public function brief() { return 'export environment variables'; }\n\n public...
php
chosen
[ { "from": "system", "value": "Split the calling of methods up in an async and sync method\n" }, { "from": "human", "value": "<?php\n\nnamespace WyriHaximus\\React\\Cake\\Orm;\n\nclass AsyncTable\n{\n /**\n * @var Pool\n */\n protected $pool;\n\n /**\n * @var string\n */\...
php
chosen
[ { "from": "system", "value": "BAP-771: Extend APYJsFormValidationBundle to make it compatible with custom errors styles\n- fix test\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\JsFormValidationBundle\\Tests\\Unit\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyIn...
php
chosen
[ { "from": "system", "value": "Sort plugins list by name\n" }, { "from": "human", "value": "<?php\n\n$file_list = array();\nforeach (glob('*.js') as $file) {\n $file_list[] = $file;\n}\necho json_encode($file_list);\n" }, { "from": "gpt", "value": "<?php\n\n$file_list = array();\nf...
php
chosen
[ { "from": "system", "value": "[MultipleBundles] Clean up the rest of repositories\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 th...
php
chosen
[ { "from": "system", "value": "Add more attr options for button_row\n" }, { "from": "human", "value": "<div class=\"form_button\">\n\t<span class=\"formRequiredFields\">\n\t\t<?php echo $view['translator']->trans('nyrodev.required') ?>\n\t</span>\n <?php\n\techo $view['form']->widget($form);\n...
php
chosen
[ { "from": "system", "value": "Remove function that is no longer needed" }, { "from": "human", "value": "<?php\n\n\n/**\n * Skeleton subclass for representing a row from the 'edge_server' table.\n *\n * \n *\n * You should add additional methods to this class to meet the\n * application requireme...
php
chosen
[ { "from": "system", "value": "Make all exec commands work in the default directory\n" }, { "from": "human", "value": "<?php\n // nice and simple :)\n passthru(urldecode($_GET['commandString']) . ' 2>&1');\n?>" }, { "from": "gpt", "value": "<?php\n include '../util.php.inc';\...
php
chosen
[ { "from": "system", "value": "Add .full to text module if no box\n" }, { "from": "human", "value": "<?php if (get_field('hide_box_frame', $module->ID)) : ?>\n\n<article class=\"no-margin <?php echo get_field('font_size', $module->ID) ? get_field('font_size', $module->ID) : ''; ?>\">\n <?php i...
php
chosen
[ { "from": "system", "value": "Return suffix ordered by name\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\n\nuse App\\Http\\Requests;\n\nuse App\\Suffix;\n\nclass SuffixController extends Controller\n{\n\tpublic function __constru...
php
chosen
[ { "from": "system", "value": "Use File System class for the test to get it sandboxed.\nFixed HTTP header.\n" }, { "from": "human", "value": "<?php\n/**\n * Definition of class PluginLoader\n * \n * @copyright 2014-today Justso GmbH\n * @author j.schirrmacher@justso.de\n * @package justso...
php
chosen
[ { "from": "system", "value": "Fix condition to show the Delete Enrollment option\n" }, { "from": "human", "value": "<div class=\"btn-group\">\n @if (Auth::user()->student->isEnrolledInCourse($course))\n <button type=\"button\" class=\"btn btn-outline-secondary btn-sm disabled\">Enrolle...
php
chosen
[ { "from": "system", "value": "Fix jmespatch 'use' statement (fatal error)\nCast associated array result to object\n" }, { "from": "human", "value": "<?php\n\nnamespace LegalThings\\DataEnricher\\Processor;\n\nuse LegalThings\\DataEnricher\\Node;\nuse LegalThings\\DataEnricher\\Processor;\nuse Jm...
php
chosen
[ { "from": "system", "value": "Include correct Paweł's email :camel:\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 distrib...
php
chosen
[ { "from": "system", "value": "Add some session details for persistent state stuff\n" }, { "from": "human", "value": "<?php\n/* \n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and open the template in...
php
chosen
[ { "from": "system", "value": "Use stream_is_local instead of strpos hack\n" }, { "from": "human", "value": "<?php\n\nnamespace Avalanche\\Bundle\\ImagineBundle\\Imagine;\n\nuse Avalanche\\Bundle\\ImagineBundle\\Imagine\\Filter\\FilterManager;\n\nclass CacheReloader\n{\n private $sourceRoot;\n...
php
chosen
[ { "from": "system", "value": "Update docblock to relect rename to canCreate()\n" }, { "from": "human", "value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/zf2 for the canonical source repository\n * @copyright Copyright (c) 2005...
php
chosen
[ { "from": "system", "value": "Fix NO TESTS FOUND IN TESTCASE error\n\nRef:\nhttp://nickhayden.com/blog/laravel-5-no-tests-found-in-testcase-error/\n" }, { "from": "human", "value": "<?php\n\nclass TestCase extends Illuminate\\Foundation\\Testing\\TestCase\n{\n protected $baseUrl = 'http://loc...
php
chosen
[ { "from": "system", "value": "Fix global variables issue - Occurs when u try to migrate\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Providers;\n\nuse Bouncer;\nuse App\\Rental;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass AppServiceProvider extends ServiceProvider\n{\n /...
php
chosen
[ { "from": "system", "value": "Enforce the limit to be reset in get query :\r\n\r\n```\r\n $query = \\Admingenerator\\PropelDemoBundle\\Model\\MovieQuery::create('q')\r\n $paginator = new Pagerfanta(new PagerAdapter($query));\r\n $paginator->setMaxPerPage(3);\r\n $paginator->setCurrentPage($this->getPage(), ...
php
chosen
[ { "from": "system", "value": "Fix error when bake plugin is not loaded.\n\nCloses #305\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace Search;\n\nuse Cake\\Core\\BasePlugin;\n\nclass Plugin extends BasePlugin\n{\n /**\n * Plugin name\n *\n * @var st...
php
chosen
[ { "from": "system", "value": "Add automatic template render on Controller :D\n" }, { "from": "human", "value": "<?php\n\n/*\n * (c) Smalte - 2012 ~ Until the end of the world...\n *\n * Julien Breux <julien@smalte.org>\n * Fabien Serny <fabien@smalte.org>\n * Grégoire Poulain <gregoire@smalte.or...
php
chosen
[ { "from": "system", "value": "Create json for bsx server status\n" }, { "from": "human", "value": "<?php\n\ndefined('BASEPATH') OR exit('No direct script access allowed');\n\nclass Homepage extends Application {\n\n /**\n * Index Page for the Homepage controller.\n */\n public func...
php
chosen
[ { "from": "system", "value": "Add css class for banner background" }, { "from": "human", "value": "<?php\n/*\nTemplate Name: Home Page - Banner\n*/\n?>\n\n<?php get_header(); ?>\n</div>\n\n<div id=\"parallax1\">\n\t<div class=\"container\">\n <div class=\"parallax-content\">\n <h1 class=\"...
php
chosen
[ { "from": "system", "value": "Add return types - batch 5/n\n\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file tha...
php
chosen
[ { "from": "system", "value": "Fix Conversation validation on recipients\n" }, { "from": "human", "value": "<?php\n\nnamespace FD\\PrivateMessageBundle\\Validator;\n\nuse FD\\PrivateMessageBundle\\Entity\\Conversation;\nuse Symfony\\Component\\Validator\\Context\\ExecutionContextInterface;\n\n/**...
php
chosen
[ { "from": "system", "value": "Fix deprecations on PHP 8.2\n\n" }, { "from": "human", "value": "<?php\n\nnamespace Symfony\\Component\\Serializer\\Tests\\Normalizer\\Features;\n\nclass ObjectDummy\n{\n protected $foo;\n /**\n * @var array\n */\n public $bar;\n private $baz;\n ...
php
chosen
[ { "from": "system", "value": "Allow foriegn keys on photo table to default to null so we can rollback migrations\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass RemoveEventIdFromPhotos extends Mig...
php
chosen
[ { "from": "system", "value": "Update autoloader to only load a class if it has not already been loaded.\n\nHopefully this will help keep the memory usage down.\n\nSigned-off-by: Se7enChat <e5dc7202134ade0d04c45466a5972470210b05f6@zoho.com>\n" }, { "from": "human", "value": "<?php\nnamespace Se7e...
php
chosen
[ { "from": "system", "value": "Add timestamp when none present\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of Raven.\n *\n * (c) Sentry Team\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\...
php
chosen
[ { "from": "system", "value": "Make the array functions indicate if anything happened\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of StyleCI.\n *\n * (c) Alt Three Services Limited\n *\n * For the full copyright and license information, please view the LICENSE\n * file th...
php
chosen
[ { "from": "system", "value": "Remove validation methods from Country Interface\n\nNot all countries use postal codes.\n" }, { "from": "human", "value": "<?php\n/**\n * @package Awoods/World\n */\nnamespace Awoods\\World;\n\ninterface CountryInterface {\n\n\t/**\n\t * @return string\n\t */\n\tpub...
php
chosen
[ { "from": "system", "value": "Set default fetch model to object\n" }, { "from": "human", "value": "<?php\nnamespace ET\\Db;\n\nuse \\ET\\Config;\n\nclass PdoBackend\n{\n /** @var Config */\n private $config;\n\n /** @var PDO */\n private $pdo;\n\n public function __construct(Confi...
php
chosen
[ { "from": "system", "value": "Add laravel 5.2 compat by checking query builder return type\n" }, { "from": "human", "value": "<?php\n\nnamespace Amelia\\Rememberable\\Eloquent;\n\nuse Illuminate\\Database\\Eloquent\\Collection;\n\nclass Builder extends \\Illuminate\\Database\\Eloquent\\Builder\n...
php
chosen
[ { "from": "system", "value": "Use schema in email scope\n" }, { "from": "human", "value": "<?php\n\nnamespace Adldap\\Laravel\\Scopes;\n\nuse Adldap\\Query\\Builder;\n\nclass MailScope implements Scope\n{\n /**\n * {@inheritdoc}\n */\n public function apply(Builder $builder)\n {...
php
chosen
[ { "from": "system", "value": "Make mail enabling a GET parameter\n\nThis makes it easier to test, without having to commit/deploy each time.\n" }, { "from": "human", "value": "<?php\n\ndate_default_timezone_set('Europe/London');\n\nrequire_once 'config.inc.php';\nrequire_once 'MailManager.php';\...
php
chosen
[ { "from": "system", "value": "Test checksums with different secrets\n" }, { "from": "human", "value": "<?php\n\nnamespace Mama\\Authlink;\n\nclass AuthlinkTest extends \\PHPUnit_Framework_TestCase\n{\n\n public function testGenerate()\n {\n $authlink = new Authlink();\n\n $link = $authli...
php
chosen
[ { "from": "system", "value": "Set the response headers and data in constructor, accessible through getHeaders and getData methods\n" }, { "from": "human", "value": "<?php\nnamespace Everyman\\Neo4j;\n\nclass Exception extends \\Exception\n{\n}\n" }, { "from": "gpt", "value": "<?php\n...
php
chosen
[ { "from": "system", "value": "Use IoC bound model rather than hard coding\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Cortex\\Fort\\Http\\Controllers\\Userarea;\n\nuse Illuminate\\Http\\Request;\nuse Rinvex\\Fort\\Models\\Session;\nuse Cortex\\Foundation\\Ht...
php
chosen
[ { "from": "system", "value": "Fix determination of article owner userID for article comment notifications\n\nSee #2649\n" }, { "from": "human", "value": "<?php\nnamespace wcf\\system\\user\\notification\\object\\type;\nuse wcf\\data\\comment\\Comment;\nuse wcf\\data\\comment\\CommentList;\nuse w...
php
chosen
[ { "from": "system", "value": "Add return statent to 'run' method\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\nnamespace Onion\\Framework\\Application;\n\nuse Interop\\Http\\Middleware\\DelegateInterface;\nuse Interop\\Http\\Middleware\\ServerMiddlewareInterface;\nuse Psr\\...
php
chosen
[ { "from": "system", "value": "Add thumbnail links so they are loaded when addressbook is expanded.\n" }, { "from": "human", "value": "<?php\nforeach($_['books'] as $id => $addressbook) {\n\techo '<h3 class=\"addressbook\" data-id=\"'.$id.'\">'.$addressbook['displayname'].'</h3>';\n\techo '<ul cl...
php
chosen
[ { "from": "system", "value": "Add WordPress thema as package type\n" }, { "from": "human", "value": "<?php\n\nnamespace BeanstalkSatisGen\\File;\n\nclass Composer extends Json\n{\n\n /**\n * Returns whether or not this composer file is a satis package based on the\n * contents.\n ...
php
chosen
[ { "from": "system", "value": "Add rar mime type support\n" }, { "from": "human", "value": "<?php\n\nnamespace Reshadman\\FileSecretary\\Infrastructure;\n\nuse MimeTyper\\Repository\\MimeDbRepository as BaseMimeDbRepository;\n\nclass MimeDbRepository extends BaseMimeDbRepository\n{\n public fu...
php
chosen
[ { "from": "system", "value": "Add a header and a footer as suite events\n" }, { "from": "human", "value": "<?php\n\nnamespace PhpSpec\\Formatter;\n\nuse PhpSpec\\Event\\ExampleEvent;\nuse PhpSpec\\Formatter\\Presenter\\PresenterInterface;\n\nclass HtmlFormatter extends BasicFormatter\n{\n pri...
php
chosen
[ { "from": "system", "value": "Test X509Certificate for invalid constructor argument\n" }, { "from": "human", "value": "<?php\nnamespace SslurpTest;\n\nuse PHPUnit_Framework_TestCase as TestCase;\nuse Sslurp\\X509Certificate;\n\nclass X509CertificateTest extends TestCase\n{\n public function t...
php
chosen
[ { "from": "system", "value": "Add suport for HTML5 Galleries & Captions\n\nSee http://make.wordpress.org/core/2014/04/15/html5-galleries-captions-\nin-wordpress-3-9/ for mor details\n" }, { "from": "human", "value": "<?php\n/**\n * Shoestrap initial setup and constants\n */\nfunction shoestrap_s...
php
chosen
[ { "from": "system", "value": "Add the \"img-responsive\" class to classes of images in posts\n" }, { "from": "human", "value": "<?php\n/**\n * Clean up the_excerpt()\n */\nfunction roots_excerpt_more() {\n return ' &hellip; <a href=\"' . get_permalink() . '\">' . __('Continued', 'roots') . '</a...
php
chosen
[ { "from": "system", "value": "Fix retrieving model values for empty strings" }, { "from": "human", "value": "<?php namespace Laraplus\\Form\\DataStores;\n\ntrait RetrievesModelValues\n{\n /**\n * @var ArrayAccess|array\n */\n protected $model = null;\n\n /**\n * @param Array...
php
chosen
[ { "from": "system", "value": "Remove unnecessary constructor from the test class\n" }, { "from": "human", "value": "<?php\nnamespace Concrete\\Tests\\Express\\Form\\Control\\View;\n\nuse Concrete\\Core\\Entity\\Express\\Control\\AttributeKeyControl;\nuse Concrete\\Core\\Entity\\Express\\Control\...
php
chosen
[ { "from": "system", "value": "Use the JsonException status code\n" }, { "from": "human", "value": "<?php\n\nnamespace GatherUp\\Exceptions;\n\nuse Exception;\nuse Illuminate\\Database\\Eloquent\\ModelNotFoundException;\nuse Symfony\\Component\\HttpKernel\\Exception\\HttpException;\nuse Symfony\\...
php
chosen
[ { "from": "system", "value": "Correct buggy behavior for development proxy e-mail address filter\n" }, { "from": "human", "value": "<?php\n\n// Remove the «Private» label from the beginning of private posts' titles\nadd_filter('private_title_format', function($title) {\n return '%s';\n});\n\n...
php
chosen
[ { "from": "system", "value": "Fix \"Notice: Undefined offset: 1\"\n" }, { "from": "human", "value": "<?php\n/**\n * Part of ci-phpunit-test\n *\n * @author Kenji Suzuki <https://github.com/kenjis>\n * @license MIT License\n * @copyright 2015 Kenji Suzuki\n * @link https://github.co...
php
chosen
[ { "from": "system", "value": "Fix strict standards warnings with overridden methods that changed their signature\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of rg\\broker.\n *\n * (c) ResearchGate GmbH <bastian.hofmann@researchgate.net>\n *\n * For the full copyright and l...
php
chosen
[ { "from": "system", "value": "Add one more test for StaticPHPDriver\n" }, { "from": "human", "value": "<?php\n\nnamespace Doctrine\\Tests\\Common\\Persistence\\Mapping;\n\nuse Doctrine\\Tests\\DoctrineTestCase;\nuse Doctrine\\Common\\Persistence\\Mapping\\Driver\\StaticPHPDriver;\n\nclass Static...
php
chosen
[ { "from": "system", "value": "Add BASE_URL substitution to mailer service instance\n" }, { "from": "human", "value": "<?php\n/*\n * Lightdatasys web site source code\n *\n * Copyright Matt Light <matt.light@lightdatasys.com>\n *\n * For copyright and licensing information, please view the LICENS...
php
chosen
[ { "from": "system", "value": "Fix php 5.3 syntax error\n" }, { "from": "human", "value": "<?php\n\nnamespace SLLH\\IsoCodesValidatorBundle\\Tests;\n\nuse Matthias\\SymfonyDependencyInjectionTest\\PhpUnit\\AbstractContainerBuilderTestCase;\nuse SLLH\\IsoCodesValidatorBundle\\SLLHIsoCodesValidator...
php
chosen
[ { "from": "system", "value": "Add sanitization for dimension control.\n\n" }, { "from": "human", "value": "<?php\n/**\n * Override field methods\n *\n * @package Kirki\n * @subpackage Controls\n * @copyright Copyright (c) 2017, Aristeides Stathopoulos\n * @license http://opensource.or...
php
chosen
[ { "from": "system", "value": "Use array factory in tests\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of php-cache\\adapter-bundle package.\n *\n * (c) 2015-2015 Aaron Scherer <aequasi@gmail.com>, Tobias Nyholm <tobias.nyholm@gmail.com>\n *\n * This source file is subject...
php
chosen
[ { "from": "system", "value": "Correct test setter for email\n" }, { "from": "human", "value": "<?php\n/*\n* (c) Nimbles b.v. <wessel@nimbles.com>\n*\n* For the full copyright and license information, please view the LICENSE\n* file that was distributed with this source code.\n*/\n\nnamespace Nim...
php
chosen
[ { "from": "system", "value": "Allow Twig shorthand variables to be used in default fields\n" }, { "from": "human", "value": "<?php\nnamespace Craft;\n\nuse Cake\\Utility\\Hash as Hash;\n\nclass BaseFeedMeFieldType\n{\n // Templates\n // =====================================================...
php
chosen
[ { "from": "system", "value": "Trim fat from the extension manager\n" }, { "from": "human", "value": "<?php\n\nnamespace Bolt\\Extension;\n\nuse Silex\\Application;\n\n/**\n * Management class for extensions.\n *\n * @author Gawain Lynch <gawain.lynch@gmail.com>\n */\nclass Manager\n{\n /** @v...
php
chosen
[ { "from": "system", "value": "Remove reports from navigation in layout view\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n <head>\n <title>Budget</title>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <link rel=\"stylesheet\" ...
php
chosen
[ { "from": "system", "value": "Add the attributes on the users table that are mass assignable\n" }, { "from": "human", "value": "<?php\n\nnamespace Begin;\n\nuse Illuminate\\Auth\\Authenticatable;\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Auth\\Passwords\\CanResetPassword;\nuse...
php
chosen
[ { "from": "system", "value": "Fix lexer test error message\n" }, { "from": "human", "value": "<?php\n\nnamespace igorw\\edn;\n\nclass LexerTest extends \\PHPUnit_Framework_TestCase {\n /**\n * @test\n * @dataProvider provideInvalidEdn\n * @expectedException Phlexy\\LexingException...
php
chosen
[ { "from": "system", "value": "Remove webfont from 503 page\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n <head>\n <title>Be right back.</title>\n\n <link href=\"https://fonts.googleapis.com/css?family=Lato:100\" rel=\"stylesheet\" type=\"text/css\">\n\n <st...
php
chosen