conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Index page now displays error w/ reason\n" }, { "from": "human", "value": "<?php\n\n/* :: Nightboard ::\n * \n * FILENAME: index.php\n * AUTHOR(S): Joey Miller (\"Zarpho\")\n * DESCRIPTION: The index page of the board, which displays all forums.\n */\n\n/* Welc...
php
chosen
[ { "from": "system", "value": "Add search form and increase the number of visible pagination numbers\n" }, { "from": "human", "value": "<?php get_header(); ?>\n\n<div class=\"container\">\n\n\t<?php if (!is_front_page()) : ?>\n\t\t<div id=\"primary\" class=\"content-area\">\n\t\t\t<?php get_templ...
php
chosen
[ { "from": "system", "value": "Add a basic SocialFeeds unit test\n" }, { "from": "human", "value": "<?php\n\nrequire_once('tests/php/base.php');\nrequire_once('framework/php/classes/elements/TourDates.php');\n\nclass ElementTests extends UnitTestCase {\n\tfunction testTourDates(){\n\t\t$e = new T...
php
chosen
[ { "from": "system", "value": "Support event dispatcher's contract from Laravel\n" }, { "from": "human", "value": "<?php\n\nnamespace Carbon\\Laravel;\n\nuse Carbon\\Carbon;\nuse Illuminate\\Events\\Dispatcher;\nuse Illuminate\\Events\\EventDispatcher;\nuse Illuminate\\Translation\\Translator as ...
php
chosen
[ { "from": "system", "value": "Support for new sf api" }, { "from": "human", "value": "<?php\n\nnamespace Dami\\Cli\\Command;\n\nuse Symfony\\Component\\Console\\Input\\InputArgument,\n Symfony\\Component\\Console\\Input\\InputOption,\n Symfony\\Component\\Console,\n Symfony\\Component\\...
php
chosen
[ { "from": "system", "value": "Add getAllValues method to carrier interface.\n" }, { "from": "human", "value": "<?php\n\nnamespace Enzyme\\Axiom\\Carriers;\n\n/**\n * Holds a collection of read-only data for instance creation/modification.\n */\ninterface CarrierInterface\n{\n /**\n * Get ...
php
chosen
[ { "from": "system", "value": "Add getter and setter for update object in command interface.\n" }, { "from": "human", "value": "<?php\n\nnamespace Telegram\\Bot\\Commands;\n\nuse Telegram\\Bot\\Bot;\nuse Throwable;\n\n/**\n * Interface CommandInterface.\n */\ninterface CommandInterface\n{\n pu...
php
chosen
[ { "from": "system", "value": "Fix creating of new lines\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types = 1);\n\nnamespace Vita\\ExportFormatter\\Converter;\n\nuse Vita\\ExportFormatter\\Archive;\nuse Vita\\ExportFormatter\\Group;\n\n/**\n * Class StringConverter\n * @package Vita...
php
chosen
[ { "from": "system", "value": "Add session hack for behat\n" }, { "from": "human", "value": "<?php\n/**\n * URL rules for the CMS module\n * \n * @package newsletter\n */\nif(!(defined('NEWSLETTER_DIR'))){\n\tdefine('NEWSLETTER_DIR', basename(dirname(__FILE__)));\n}\n\nConfig::inst()->update('Dir...
php
chosen
[ { "from": "system", "value": "Change designer index page title.\n" }, { "from": "human", "value": "@extends('layout.app', [\n 'title' => 'Designers',\n 'body_id' => 'designer-index-page',\n 'body_class' => 'designer-index index',\n])\n\n@section('main')\n<div class=\"container\">\n <...
php
chosen
[ { "from": "system", "value": "Add host and version as parameters in client constructor\n" }, { "from": "human", "value": "<?php\nnamespace WoowUp;\n\nuse WoowUp\\Endpoints\\Purchases;\nuse WoowUp\\Endpoints\\Users;\nuse WoowUp\\Endpoints\\Products;\n\nclass Client\n{\n const HOST = 'https:...
php
chosen
[ { "from": "system", "value": "Load ForumAppController when Exceptions are thrown\n" }, { "from": "human", "value": "<?php\n\nApp::uses('ExceptionRenderer', 'Error');\n\nclass ForumExceptionRenderer extends ExceptionRenderer {\n\n\t/**\n\t * Get the controller instance to handle the exception.\n\...
php
chosen
[ { "from": "system", "value": "Change default port for influxdb to 8186\n" }, { "from": "human", "value": "<?php \n\nnamespace Vorbind\\InfluxAnalytics;\n\n use InfluxDB\\Client;\n use InfluxDB\\Database;\n\n/**\n* Analytics\n*\n* Use this section to define what this class is doing, the PHPDocu...
php
chosen
[ { "from": "system", "value": "Make sure we don't break backward compatibility\n" }, { "from": "human", "value": "<?php\n/**\n * Starlit Db.\n *\n * @copyright Copyright (c) 2019 Starweb AB\n * @license BSD 3-Clause\n */\n\nnamespace Starlit\\Db;\n\nuse PDO;\n\nclass PdoFactory implements PdoFa...
php
chosen
[ { "from": "system", "value": "Fix margins on index titles\n" }, { "from": "human", "value": "@if (!$hideTitle && !empty($post_title))\n @typography(['element' => 'h2'])\n {!! apply_filters('the_title', $post_title) !!}\n @endtypography\n@endif\n\n<div class=\"o-grid\">\n @foreach...
php
chosen
[ { "from": "system", "value": "Use renamed driver and added if statement to check if directories are set\n" }, { "from": "human", "value": "<?php\n\n/*\n* This file is part of the Integrated package.\n*\n* (c) e-Active B.V. <integrated@e-active.nl>\n*\n* For the full copyright and license informa...
php
chosen
[ { "from": "system", "value": "Add fillable options to milestone\n" }, { "from": "human", "value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Milestone extends Model\n{\n public function tickets()\n {\n return $this->hasMany('App\\Ticket');\n }\n}\n" ...
php
chosen
[ { "from": "system", "value": "Remove unneeded user and group settings from Swoole app\n" }, { "from": "human", "value": "<?php\n\n$http = new swoole_http_server(\"0.0.0.0\", 9501);\n\n$http->addlistener(\"/run/php/swoole.sock\", 0, SWOOLE_UNIX_STREAM);\n$http->set([\n 'user' => 'www-data',\n ...
php
chosen
[ { "from": "system", "value": "Add close() method to HttpOutput\n" }, { "from": "human", "value": "<?php\n\nnamespace Nerd\\Framework\\Http\\IO;\n\nuse Nerd\\Framework\\Http\\Response\\CookieContract;\n\ninterface OutputContract\n{\n /**\n * Send cookie to client\n *\n * @param Coo...
php
chosen
[ { "from": "system", "value": "Add contact info to the footer\n\nAdd the grants@apogaea email to the footer, so that it is on every page.\nf someone has a problem the may not look on the home or about pages.\n\nSigned-off-by: Marc Jones <bb1304e98184a66f7e15848bfbd0ff1c09583089@gmail.com>\n" }, { "fr...
php
chosen
[ { "from": "system", "value": "Complete the information for the help-plugin\n" }, { "from": "human", "value": "<?php\nrequire_once __DIR__ . '/vendor/autoload.php';\n\nuse Stichoza\\GoogleTranslate\\TranslateClient;\n\nclass translate extends Script\n{\n\tpublic function run()\n\t{\n\t\t$tr = new...
php
chosen
[ { "from": "system", "value": "Fix down() in db users update pour plugin profile\n\n" }, { "from": "human", "value": "<?php namespace Grcote7\\Profile\\Updates;\n\nuse Schema;\nuse October\\Rain\\Database\\Updates\\Migration;\n\nclass AddNewFields extends Migration {\n\n public function up() {\n...
php
chosen
[ { "from": "system", "value": "Add handler for front end routing to server side router.\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Web Routes\n|---------------------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Add error message\nTicket:\nPurpose of Change:\nDescription of Change:\nTags:\n\nConflicts Resolved:\n" }, { "from": "human", "value": "<?php\n/**\n * Database controller. Search and select database connections\n */\n\nnamespace Dboss\\Controller;\n\nclass DatabaseC...
php
chosen
[ { "from": "system", "value": "[Form] Replace methods in ChoiceView by public properties (PHP +100ms, Twig +400ms)\n\n" }, { "from": "human", "value": "<?php foreach ($options as $index => $choice): ?>\n <?php if ($view['form']->isChoiceGroup($choice)): ?>\n <optgroup label=\"<?php echo...
php
chosen
[ { "from": "system", "value": "Update ping command test case\n" }, { "from": "human", "value": "<?php\nnamespace Loct\\Pinger\\Command;\n\nuse \\Symfony\\Component\\Console\\Application;\nuse \\Symfony\\Component\\Console\\Tester\\CommandTester;\nuse \\PHPUnit_Framework_TestCase;\n\nclass PingCom...
php
chosen
[ { "from": "system", "value": "Make helper independent from Facade\n" }, { "from": "human", "value": "<?php\n\nif (!function_exists('cfg')) {\n /**\n * EasyCfg Helper.\n *\n * @param mixed $key\n * @param mixed $configurable\n * @param mixed $configurable_id\n * @...
php
chosen
[ { "from": "system", "value": "Fix float problem on episode page\n" }, { "from": "human", "value": "<div class=\"torrent_file\">\n <!-- <?php echo $torrent->getFile(), '(', $torrent->getMimeType(), ') ', pretty_size($torrent->getSize()) ?> -->\n \n <?php echo $torrent->getFeed()->getT...
php
chosen
[ { "from": "system", "value": "Disable the APC cache for Ubuntu 14.04. APC is deprecated now so we need a better solution anyways.\n" }, { "from": "human", "value": "<?php\n\nclass Cache\n{\n\t\n\tprivate function createCacheKey($key, $isUserValue, $userId = null) {\n\t\t\n\t\t$CC_CONFIG = Config...
php
chosen
[ { "from": "system", "value": "Use the cache item on the memory cache\n" }, { "from": "human", "value": "<?php\n/**\n * @copyright ©2014 Quicken Loans Inc. All rights reserved. Trade Secret,\n * Confidential and Proprietary. Any dissemination outside of Quicken Loans\n * is strictly prohibi...
php
chosen
[ { "from": "system", "value": "Revert \"turn cookies on by default\"\n\nThis reverts commit 65ac6a3d516d79b2fe157cd96a65c27205fa80be.\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n /*\n * Use this setting to enable the cookie consent dialog.\n */\n 'enabled' => env('COOKIE...
php
chosen
[ { "from": "system", "value": "Make home controller loading future grid window(s)\n" }, { "from": "human", "value": "<?php\n\n/**\n * Scheduler Home controller\n */\nclass SchedulerHomeManagerController extends SchedulerManagerController {\n /**\n * The pagetitle to put in the <title> attr...
php
chosen
[ { "from": "system", "value": "Add destroy method -> role\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\nuse App\\Http\\Requests;\n\nuse App\\Roles;\n\nclass RolesController extends Controller\n{\n /**\n * Get the role overv...
php
chosen
[ { "from": "system", "value": "Make pythonauto use the paged grader\n" }, { "from": "human", "value": "<?php\nrequire_once \"../../config.php\";\nrequire_once $CFG->dirroot.\"/pdo.php\";\nrequire_once $CFG->dirroot.\"/lib/lms_lib.php\";\nrequire_once \"lib.php\";\n\nsession_start();\n\n// Sanity ...
php
chosen
[ { "from": "system", "value": "Remove broken search POST route\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Web Routes\n|--------------------------------------------------------------------------\n|\n| Here is where...
php
chosen
[ { "from": "system", "value": "Replace \"type\" form option with \"entry_type\".\n" }, { "from": "human", "value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full copyr...
php
chosen
[ { "from": "system", "value": "Drop intended support for \"--anonymous\" from Arcanist Toolsets\n\nSummary:\nCurrently, modern \"arc\" workflows accept and parse \"--anonymous\" but don't do anything with it.\n\nI intend to move away from anonymous workflows, which only really supported a tiny subset of unus...
php
chosen
[ { "from": "system", "value": "Make more use-friendly constants for sort ascending, descending.\n" }, { "from": "human", "value": "<?php\n\nnamespace UWDOEM\\Framework\\FilterStatement;\n\nuse Propel\\Runtime\\ActiveQuery\\ModelCriteria;\n\n\ninterface FilterStatementInterface {\n\n const COND...
php
chosen
[ { "from": "system", "value": "Add Imagine filters for output formats.\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2017-2019, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n ...
php
chosen
[ { "from": "system", "value": "Rename to better method names\n" }, { "from": "human", "value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2017-2018, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Public License; Se...
php
chosen
[ { "from": "system", "value": "Use `id` instead of `lake_guid` for asset import [WEB-1870]\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Transformers\\Inbound\\Collections;\n\nuse App\\Transformers\\Datum;\nuse App\\Transformers\\Inbound\\CollectionsTransformer;\n\nclass Asset extend...
php
chosen
[ { "from": "system", "value": "Add class to footer widget headings.\n" }, { "from": "human", "value": "<?php\n/**\n * Register widget areas\n *\n * @package FoundationPress\n * @since FoundationPress 1.0.0\n */\n\nif ( ! function_exists( 'foundationpress_sidebar_widgets' ) ) :\nfunction foundatio...
php
chosen
[ { "from": "system", "value": "Change check wait to 2 seconds" }, { "from": "human", "value": "<?php\n\n$games = new SQLite3('games.sqlite') or die('Unable to open database');\n\nwhile(1) {\n // Every 10 seconds delete any game that hasn't been updated in 30 seconds\n \n $result = $games...
php
chosen
[ { "from": "system", "value": "Add a author eloquent relation (to the users table).\n" }, { "from": "human", "value": "<?php\n\nnamespace Test\\Models;\n\nclass Post\n{\n public $fillable = [\n 'title', 'body', 'author_id'\n ];\n}" }, { "from": "gpt", "value": "<?php\n\nn...
php
chosen
[ { "from": "system", "value": "Fix l4 change addFilter to filter\n" }, { "from": "human", "value": "<?php namespace Tappleby\\AuthToken;\r\n\r\nuse Illuminate\\Support\\ServiceProvider;\r\n\r\nclass AuthTokenServiceProvider extends ServiceProvider {\r\n\r\n\t/**\r\n\t * Indicates if loading of th...
php
chosen
[ { "from": "system", "value": "Add dedicated method to send request\n" }, { "from": "human", "value": "<?php\n\nnamespace Powermash\\ComicVine;\n\nuse Buzz\\Browser;\nuse Buzz\\Exception\\RequestException;\n\n/**\n* \n*/\nclass Client\n{\n\tprotected $apiKey;\n\tprotected $browser;\n\n\tpublic fu...
php
chosen
[ { "from": "system", "value": "Rename command queue:worker -> queue:work\n" }, { "from": "human", "value": "<?php\n\nnamespace Spark\\Core\\Command;\n\nuse Silex\\Application;\n\nuse Spark\\Core\\ApplicationAware;\n\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\...
php
chosen
[ { "from": "system", "value": "Include new class in docs\n" }, { "from": "human", "value": "<?php\n\n$root = realpath(__DIR__.'/../');\nrequire_once $root.'/src/autoloader.php'; // Grafika\nrequire_once $root.'/doc-src/classes/DocBlock.php';\nrequire_once $root.'/doc-src/classes/Documentation.php...
php
chosen
[ { "from": "system", "value": "Revert \"DataRepo -> dataSetList -> order by d.id asc\"\n\nThis reverts commit 2df17fba0f81de280de74d5854f01f52ade73cf3." }, { "from": "human", "value": "<?php\n\nnamespace GenyBundle\\Repository;\n\nuse Doctrine\\ORM\\Query;\n\n/**\n * DataRepository\n */\nclass Da...
php
chosen
[ { "from": "system", "value": "Update 'last_accessed_at' fallback to be clearer.\n" }, { "from": "human", "value": "<table id=\"user-table\" class=\"table\">\n <thead>\n <tr class=\"row table-header\">\n <th class=\"table-cell\">Name</th>\n <th class=\"table-cell\"...
php
chosen
[ { "from": "system", "value": "Add footer text, link back to repo\n" }, { "from": "human", "value": "<footer class=\"footer\">\n <div class=\"container\">\n <span class=\"text-muted\">Place sticky footer content here.</span>\n </div>\n</footer>" }, { "from": "gpt", "value...
php
chosen
[ { "from": "system", "value": "Update local copy of notification when marking as read\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of Flarum.\n *\n * (c) Toby Zerner <toby.zerner@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * f...
php
chosen
[ { "from": "system", "value": "Use FQCN for InvalidArgumentException in doc block\n" }, { "from": "human", "value": "<?php\n\nnamespace Jmikola\\WildcardEventDispatcher;\n\nclass LazyListenerPattern extends ListenerPattern\n{\n protected $listenerProvider;\n\n /**\n * Constructor.\n ...
php
chosen
[ { "from": "system", "value": "[2.0] Fix bug in detection of global Doctrine Cli Configuration finding the empty replacement configuration before the correct one.\n\ngit-svn-id: c8c49e1140e1cd2a8fb163f3c2b0f6eec231a71d@7322 625475ce-881a-0410-a577-b389adb331d8\n" }, { "from": "human", "value": "<...
php
chosen
[ { "from": "system", "value": "Return filled model after saving\n" }, { "from": "human", "value": "<?php namespace Picqer\\Financials\\Exact\\Persistance;\n\ntrait Storable\n{\n public function save()\n {\n if ($this->exists())\n $this->fill($this->update());\n\n $t...
php
chosen
[ { "from": "system", "value": "Update footer version with env\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenDominion\\Providers;\n\nuse Illuminate\\Contracts\\View\\View;\nuse Illuminate\\Support\\ServiceProvider;\nuse OpenDominion\\Calculators\\NetworthCalculator;\nuse OpenDominion\\...
php
chosen
[ { "from": "system", "value": "Update select field to allow additional classes.\n" }, { "from": "human", "value": "<div class=\"form-group\">\n {!! Form::label($elementName, $options['label']) !!}\n {!! Form::select($elementName, [null => 'Select '.$options['label']] + $record->{$options['s...
php
chosen
[ { "from": "system", "value": "Test that the action is required\n" }, { "from": "human", "value": "<?php\n\nnamespace Backend\\Modules\\Blog\\Tests\\Action;\n\nuse Backend\\Modules\\Tags\\DataFixtures\\LoadTagsModulesTags;\nuse Backend\\Modules\\Tags\\DataFixtures\\LoadTagsTags;\nuse Common\\WebT...
php
chosen
[ { "from": "system", "value": "Make sure `WP_CLI_VENDOR_DIR` is always defined.\n\nAs a last resort, the folder is guessed.\n" }, { "from": "human", "value": "<?php\n\n// Can be used by plugins/themes to check if WP-CLI is running or not\ndefine( 'WP_CLI', true );\ndefine( 'WP_CLI_VERSION', trim(...
php
chosen
[ { "from": "system", "value": "Replace dependency to PSR container.\n" }, { "from": "human", "value": "<?php namespace Limoncello\\Application\\Contracts;\n\n/**\n * Copyright 2015-2017 info@neomerx.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use ...
php
chosen
[ { "from": "system", "value": "Test the find by tag name method\n" }, { "from": "human", "value": "<?php namespace Modules\\Blog\\Tests;\n\nclass EloquentTagRepositoryTest extends BaseBlogTestCase\n{\n\n}\n" }, { "from": "gpt", "value": "<?php namespace Modules\\Blog\\Tests;\n\nclass ...
php
chosen
[ { "from": "system", "value": "Fix unit test config path\n" }, { "from": "human", "value": "<?php\n\nrequire_once(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'utils.php');\nrequire_once(ROOT.DS.'config'.DS.'config.php');\nrequire_...
php
chosen
[ { "from": "system", "value": "Add package path to correctly resolve the config\n" }, { "from": "human", "value": "<?php namespace StudioIgnis\\Evt\\Laravel; \n\nuse Illuminate\\Support\\ServiceProvider as IlluminateServiceProvider;\n\nclass ServiceProvider extends IlluminateServiceProvider\n{\n ...
php
chosen
[ { "from": "system", "value": "Fix laravel 4 service provider config issues\n" }, { "from": "human", "value": "<?php\n\nnamespace Michaeljennings\\Snapshot;\n\nclass Laravel4ServiceProvider extends SnapshotServiceProvider\n{\n /**\n * {@inheritdoc}\n */\n public function boot()\n ...
php
chosen
[ { "from": "system", "value": "Change header content type to json specific one\n" }, { "from": "human", "value": "<?php\nheader('Content-type: text/plain');\nheader(\"Cache-Control: no-cache, must-revalidate\"); // HTTP/1.1\nheader(\"Expires: Mon, 26 Jul 1997 05:00:00 GMT\"); // Date in the past\...
php
chosen
[ { "from": "system", "value": "Add image relation to tag table.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateTagTable extends Migration\n{\n /**\n * Run the migrations.\n *\n ...
php
chosen
[ { "from": "system", "value": "Make generic (can now be applied to pages and dataobjects)" }, { "from": "human", "value": "<?php\n\n\nclass FaqSegment extends DataObject\n{\n\n private static $db = [\n 'Title' => 'Varchar(255)',\n 'Answer' => 'HTMLText',\n 'SortOrder...
php
chosen
[ { "from": "system", "value": "Add lib folder to autoloader path\n" }, { "from": "human", "value": "<?php\n/*\n\tFlorrie core - autoload and bootstrap\n\tCopyright © 2021 Jacob Hume\n\n\tThis file is part of Florrie.\n\n\tFlorrie is free software: you can redistribute it and/or modify it\n\tunder...
php
chosen
[ { "from": "system", "value": "Fix error reported in comment\n" }, { "from": "human", "value": " </div>\n <?php if (ENVIRONMENT == 'demo') : ?>\n <p class=\"ribbon\">\n <a title=\"The Organization Finder on Github\" href=\"https://github.com/flipside-org/\">View on GitHub</a>\n </p>\n <...
php
chosen
[ { "from": "system", "value": "Fix missing images boolean setting in spec\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace spec\\SitemapPlugin\\Renderer;\n\nuse PhpSpec\\ObjectBehavior;\nuse SitemapPlugin\\Model\\SitemapInterface;\nuse SitemapPlugin\\Model\\Sitema...
php
chosen
[ { "from": "system", "value": "iii-78: Return false if event really does not exist\n" }, { "from": "human", "value": "<?php\n/**\n * @file\n */\n\nnamespace CultuurNet\\UDB3\\Event\\ReadModel;\n\nuse Doctrine\\Common\\Cache\\Cache;\n\nclass DoctrineCacheRepository implements DocumentRepositoryInt...
php
chosen
[ { "from": "system", "value": "Reduce number of DB calls in NowPlayingController\n" }, { "from": "human", "value": "<?php\r\nuse \\Entity\\Station;\r\nuse \\Entity\\Song;\r\nuse \\Entity\\Schedule;\r\n\r\nclass Api_NowplayingController extends \\PVL\\Controller\\Action\\Api\r\n{\r\n public fun...
php
chosen
[ { "from": "system", "value": "Add csrf check to resetting the analytics\n" }, { "from": "human", "value": "<?php\n\nnamespace Backend\\Modules\\Analytics\\Actions;\n\nuse Backend\\Core\\Engine\\Base\\ActionDelete;\nuse Backend\\Core\\Engine\\Model;\n\n/**\n * This is the reset-action. It will re...
php
chosen
[ { "from": "system", "value": "Update file extension to use public dir instead of web dir\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of SolidInvoice project.\n *\n * (c) 2013-2017 Pierre du Plessis <info@customscripts.co.za>\n *\n * This sourc...
php
chosen
[ { "from": "system", "value": "Add theme support for Responsive Videos.\n" }, { "from": "human", "value": "<?php\n/**\n * Jetpack Compatibility File.\n *\n * @link https://jetpack.me/\n *\n * @package _s\n */\n\n/**\n * Add theme support for Infinite Scroll.\n * See: https://jetpack.me/support/in...
php
chosen
[ { "from": "system", "value": "Add username and password for Bitly accounts\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Petty Domain\n |---------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Add errors property and method\n" }, { "from": "human", "value": "<?php\n\nnamespace Phphilosophy\\Security;\n\n/**\n * Phphilosophy Input Validation\n *\n * @author Lisa Saalfrank <lisa.saalfrank@web.de>\n * @copyright 2015-2016 Lisa Saalfrank\n * @license\t...
php
chosen
[ { "from": "system", "value": "Test JSON mime type correctly\n" }, { "from": "human", "value": "<?php\n/**\n * Get information about QGIS Server.\n *\n * @author 3liz\n * @copyright 2012 3liz\n *\n * @see http://3liz.com\n *\n * @license Mozilla Public License : http://www.mozilla.org/MPL...
php
chosen
[ { "from": "system", "value": "Update entry footer structure for pages\n" }, { "from": "human", "value": "<?php\n/**\n * The template used for displaying page content in page.php\n *\n * @package Flacso\n */\n?>\n\n<article id=\"post-<?php the_ID(); ?>\" <?php post_class(); ?>>\n\t<header class=\...
php
chosen
[ { "from": "system", "value": "Migrate lesson getter to cloud datastore\n" }, { "from": "human", "value": "<?php\n include 'checklogged.php';\n $code = $_GET['code'];\n \n //make code uppercase cause the user probably screwed up\n $code = strtoupper($code);\n \n //connect...
php
chosen
[ { "from": "system", "value": "Remove page title from header\n" }, { "from": "human", "value": "<?php use Roots\\Sage\\Titles; ?>\n\n<div class=\"page-header\">\n <h1><?= Titles\\title(); ?></h1>\n</div>\n" }, { "from": "gpt", "value": "<?php use Roots\\Sage\\Titles; ?>\n" } ]
php
chosen
[ { "from": "system", "value": "[console] Set text format to welcome message\n" }, { "from": "human", "value": "<?php\n\n/**\n * @file\n * Contains \\Drupal\\Console\\EventSubscriber\\ShowWelcomeMessageListener.\n */\n\nnamespace Drupal\\Console\\EventSubscriber;\n\nuse Symfony\\Component\\Console...
php
chosen
[ { "from": "system", "value": "Fix id validation for Figures\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nclass FiguresController extends ApiController\n{\n\n protected $model = \\App\\Models\\Dsc\\Figure::class;\n\n protected $transformer = \\App\\Http\\...
php
chosen
[ { "from": "system", "value": "Move domain stuff to configuration.\n" }, { "from": "human", "value": "<?php\n/**\n * Domain.php\n * Copyright (C) 2016 Sander Dorigo\n *\n * This software may be modified and distributed under the terms\n * of the MIT license. See the LICENSE file for details.\n *...
php
chosen
[ { "from": "system", "value": "Return \"unknown\" for the empty string key\n" }, { "from": "human", "value": "<?php\n\nnamespace Ojs\\ImportBundle\\Helper;\n\nclass FileHelper {\n public static $mimeToExtMap = [\n 'application/pdf' => 'pdf',\n 'image/jpeg' => 'jpg',\n ...
php
chosen
[ { "from": "system", "value": "Fix Dooh userType migration, ensure the userTypeId is correctly set\n" }, { "from": "human", "value": "<?php\n/**\n * Copyright (C) 2019 Xibo Signage Ltd\n *\n * Xibo - Digital Signage - http://www.xibo.org.uk\n *\n * This file is part of Xibo.\n *\n * Xibo is free ...
php
chosen
[ { "from": "system", "value": "Remove obsolete and failing test testCreateIteratorFromArrayIteratorGiven\n\nBecause of the change from @white_gecko, that\nStatementIteratorFactory(Impl) only has the method\ncreateIteratorFromArray which only accepts an array for\n$statements.\n" }, { "from": "human",...
php
chosen
[ { "from": "system", "value": "Update push() to addd() in test app.\n" }, { "from": "human", "value": "<?php\n/**\n * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)\n * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)\n *\n * Licensed under The MIT License\...
php
chosen
[ { "from": "system", "value": "Add owner support to admin middleware\n" }, { "from": "human", "value": "<?php namespace JamylBot\\Http\\Middleware;\n\nuse Closure;\nuse Illuminate\\Contracts\\Auth\\Guard;\n\nclass MustBeAdmin {\n\n /**\n * The Guard implementation.\n *\n * @var Gua...
php
chosen
[ { "from": "system", "value": "Fix redirect after logging in FB\n" }, { "from": "human", "value": "<?php\n\nclass YiidisController extends CController {\n\n public $requireLogin = true;\n public $user;\n \n public function beforeAction() {\n if (isset($_GET['state']) && strstr(Yii::app()->...
php
chosen
[ { "from": "system", "value": "TASK: Fix return typehint for getBuiltinType\n" }, { "from": "human", "value": "<?php\nnamespace Neos\\Flow\\Reflection;\n\n/*\n * This file is part of the Neos.Flow package.\n *\n * (c) Contributors of the Neos Project - www.neos.io\n *\n * This package is Open Sou...
php
chosen
[ { "from": "system", "value": "Update and try fix bug with migration\n" }, { "from": "human", "value": "<?php\n\nuse yii\\db\\Migration;\n\nclass m160219_091156_createUser extends Migration\n{\n public function up()\n {\n $userName = 'webmaster';\n\n $tableName = \\dektrium\\u...
php
chosen
[ { "from": "system", "value": "Fix array addressing in nowplaying API again. :P\n" }, { "from": "human", "value": "<?php\r\nuse \\Entity\\Station;\r\nuse \\Entity\\Song;\r\nuse \\Entity\\Schedule;\r\n\r\nclass Api_NowplayingController extends \\PVL\\Controller\\Action\\Api\r\n{\r\n public func...
php
chosen
[ { "from": "system", "value": "Fix psr naming convention for variables.\n" }, { "from": "human", "value": "<?php\n\nclass UsersPosts extends Seeder\n{\n public function init()\n {\n $faker = $this->faker;\n\n $this->define('users', function () use ($faker) {\n retur...
php
chosen
[ { "from": "system", "value": "Revert \"extra dev error logging\"\n\nThis reverts commit 57072be8905a19a8f7ea486006380134585d88ff.\n" }, { "from": "human", "value": "<?php\n/* Development */\ndefine('DB_NAME', getenv('DB_NAME'));\ndefine('DB_USER', getenv('DB_USER'));\ndefine('DB_PASSWORD', geten...
php
chosen
[ { "from": "system", "value": "Fix docblock @covers class path\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Http\\Response;\nuse Illuminate\\Support\\Facades\\Session;\n\nclass LanguageSwitchTest extends TestCase\n{\n /**\n * Test switch language to English\n * @covers A...
php
chosen
[ { "from": "system", "value": "Remove dependency of Str class\n" }, { "from": "human", "value": "<?php namespace Algorit\\Synchronizer\\Request;\n\nuse Str, Exception;\n\ntrait EntityTrait {\n\n\tprotected $entity;\n\n\tpublic function setEntity($entity)\n\t{\n\t\t$this->entity = $entity;\n\n\t\t...
php
chosen
[ { "from": "system", "value": "Fix possible undefined methods in inherited classes\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 Copy...
php
chosen
[ { "from": "system", "value": "Implement city model behavior in existing city model\n" }, { "from": "human", "value": "<?php namespace Octommerce\\Octommerce\\Models;\n\nuse Model;\n\n/**\n * City Model\n */\nclass City extends Model\n{\n\n /**\n * @var string The database table used by th...
php
chosen
[ { "from": "system", "value": "Return types in manager tests\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 copyright an...
php
chosen