conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Update clear:archives to clear archives older than a month instead of a week\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse File;\nuse Artisan;\nuse App\\Archive;\nuse Illuminate\\Console\\Command;\n\nclass ClearOldArchives exte...
php
chosen
[ { "from": "system", "value": "Update migration template for phinx\n" }, { "from": "human", "value": "<?php\n\nuse $useClassName;\n\nclass $className extends $baseClassName\n{\n\tpublic function up()\n\t{\n\t\t//\n\t}\n\n\tpublic function dow()\n\t{\n\t\t//\n\t}\n}\n" }, { "from": "gpt", ...
php
chosen
[ { "from": "system", "value": "Add root path to url\n" }, { "from": "human", "value": "<?php\r\nnamespace Simox;\r\n\r\nclass Url extends SimoxServiceBase\r\n{\r\n /**\r\n * Base uri is prepended to all resources (css, images, links..)\r\n */\r\n\tprivate $_base_uri;\r\n\t\r\n\tpublic ...
php
chosen
[ { "from": "system", "value": "Fix mock object to work with PHP 5.3" }, { "from": "human", "value": "<?php\n\nnamespace Lily\\Mock;\n\nuse Lily\\Application\\MiddlewareApplication;\n\nclass MiddlewareApplicationWithMiddleware extends MiddlewareApplication\n{\n public $m;\n\n protected funct...
php
chosen
[ { "from": "system", "value": "Fix realtime notification, the id had been removed.\n" }, { "from": "human", "value": "<script src=\"js/updater.js\"></script>\n<?php\ninclude_once 'core.php';\ninclude_once 'db.php';\n?>\n\n<a href=\"../\"><img class=\"logo\" src=\"files/logo.png\" alt=\"Hallo\"/><...
php
chosen
[ { "from": "system", "value": "Add more tests for persistent caching (deleting, updating)\n" }, { "from": "human", "value": "<?php\n\nclass PersistentTest extends RememberTestCase\n{\n public function testPersistentCaching()\n {\n Group::create(['id' => static::ID, 'name' => 'Test Gr...
php
chosen
[ { "from": "system", "value": "Add 100% coverage for response.php\n\nWhile already at https://github.com/nextcloud/server/pull/2911 I thought I can as well finish that one as well...\n\nSigned-off-by: Lukas Reschke <65adda4326914576405c9e3a62f4904d96573863@statuscode.ch>\n" }, { "from": "human", ...
php
chosen
[ { "from": "system", "value": "Add anchor for linking to flash message.\n" }, { "from": "human", "value": "<nav class=\"primary\">\n <a class=\"navigation__logo\" href=\"{{{ route('home') }}}\"><img src=\"/dist/images/logo.png\" alt=\"Celebs Gone Good\"></a>\n\n @if(Session::has('flash_message'...
php
chosen
[ { "from": "system", "value": "Enable tests for steps run via configuration\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\Feature\\Steps;\n\nuse TheCrypticAce\\Suitey\\Steps;\n\ntrait RunStepTests\n{\n /**\n * @test\n * @dataProvider stepDataProvider\n **/\n publi...
php
chosen
[ { "from": "system", "value": "Fix count() method that might not return a relevant result\n" }, { "from": "human", "value": "<?php\n\nnamespace BenTools\\ETL\\Iterator;\n\nuse FilterIterator;\nuse SplFileObject;\n\nclass CsvFileIterator extends FilterIterator implements \\Countable\n{\n\n priv...
php
chosen
[ { "from": "system", "value": "Bump to Beta 2 level\n" }, { "from": "human", "value": "<?php\n\n// MOODLE VERSION INFORMATION\n\n// This file defines the current version of the core Moodle code being used.\n// This is compared against the values stored in the database to determine\n// whether upg...
php
chosen
[ { "from": "system", "value": "Check for missing code variable.\n" }, { "from": "human", "value": "<?php\nrequire_once \"../../config.php\";\nrequire_once $CFG->dirroot.\"/pdo.php\";\n\n// Sanity checks\n$LTI = requireData(array('user_id', 'link_id', 'role','context_id'));\n$instructor = isInstru...
php
chosen
[ { "from": "system", "value": "Fix 'Cannot redeclare class Sonata\\PageBundle\\Request\\SiteRequestInterface'\n" }, { "from": "human", "value": "<?php\n\nrequire_once __DIR__.'/../app/bootstrap.php.cache';\nrequire_once __DIR__.'/../app/AppKernel.php';\n//require_once __DIR__.'/../app/AppCache.ph...
php
chosen
[ { "from": "system", "value": "Add missing dots at the end of exception messages\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...
php
chosen
[ { "from": "system", "value": "Switch to new Facade implementation\n" }, { "from": "human", "value": "<?php namespace Plugins\\October\\User\\Facades;\n\nuse October\\Rain\\Support\\Facade;\n\nclass Auth extends Facade\n{\n /**\n * Get the class name this facade is acting on behalf of.\n ...
php
chosen
[ { "from": "system", "value": "Remove default value and cast always to array the options\n" }, { "from": "human", "value": "<?php\n\nnamespace Avanzu\\AdminThemeBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Defin...
php
chosen
[ { "from": "system", "value": "Add configuration for victoire menu item\n" }, { "from": "human", "value": "<?php\n\nnamespace Victoire\\Widget\\PollBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\Config...
php
chosen
[ { "from": "system", "value": "Fix the deprecation notice on the TreeBuilder added in Symfony 4.2\n\nSee https://symfony.com/blog/new-in-symfony-4-2-important-deprecations\n" }, { "from": "human", "value": "<?php\n\nnamespace SymfonyBundles\\JsonRequestBundle\\DependencyInjection;\n\nuse Symfony\...
php
chosen
[ { "from": "system", "value": "Add width parameter before height in options array" }, { "from": "human", "value": "<?php\r\n\r\nnamespace Uploadify\\Casts;\r\n\r\nuse Uploadify\\Casts\\Cast as BaseCast;\r\n\r\nclass ImageCast extends BaseCast\r\n{\r\n /**\r\n * Get full url to file\r\n ...
php
chosen
[ { "from": "system", "value": "Prepend width and height to options array in url() method" }, { "from": "human", "value": "<?php\r\n\r\nnamespace Uploadify\\Casts;\r\n\r\nuse Uploadify\\Casts\\Cast as BaseCast;\r\n\r\nclass ImageCast extends BaseCast\r\n{\r\n /**\r\n * Get full url to file\...
php
chosen
[ { "from": "system", "value": "Set connection timouts to 2 seconds to prevent site from hanging\n" }, { "from": "human", "value": "<?php namespace GeneaLabs\\MixPanel;\n\nuse Illuminate\\Support\\Facades\\App;\n\nclass MixPanel extends \\Mixpanel\n{\n /**\n * @param array $options\n */...
php
chosen
[ { "from": "system", "value": "Update injection in nav view to actually grab the files we want\n" }, { "from": "human", "value": "@inject('pages', 'BruceCms\\Pages\\Page')\n\n<nav class=\"nav --main\" role=\"navigation\">\n\t<ul class=\"nav__list\">\n\t\t<li class=\"nav__item\">\n\t\t\t<a class=\...
php
chosen
[ { "from": "system", "value": "Remove use as it's not used.\n" }, { "from": "human", "value": "<?php\nnamespace Avh\\Network;\n\nuse Avh\\Utility\\Common;\n\nfinal class Visitor\n{\n\n /**\n * Get the user's IP\n *\n * @return string\n */\n public static function getUserIp()...
php
chosen
[ { "from": "system", "value": "Fix migrations for CakePHP v3.8\n" }, { "from": "human", "value": "<?php\nuse Migrations\\AbstractMigration;\n\nclass AlterTableNotes extends AbstractMigration\n{\n /**\n * Change Method.\n *\n * More information on this method is available here:\n ...
php
chosen
[ { "from": "system", "value": "refactor(roles): Create relationship for roles table\n\nmodified: app/Role.php\n\nsee #97\n" }, { "from": "human", "value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Role extends Model\n{\n protected $fillable = ['name', 'd...
php
chosen
[ { "from": "system", "value": "Disable all forms by default\n" }, { "from": "human", "value": "<?php\n\ndefined( 'NODEMON_RUNNING') || die( 'Access denied.' );\n\n$nodeconfig = array(\n 'serverurl' => 'http://127.0.0.1:9332/',\n 'username' => 'username',\n 'password' => 'password',\n ...
php
chosen
[ { "from": "system", "value": "Remove mock from WorkerEvent test class\n" }, { "from": "human", "value": "<?php\n \nnamespace SlmQueueTest\\Worker;\n \nuse PHPUnit_Framework_TestCase as TestCase;\nuse SlmQueue\\Worker\\WorkerEvent;\nuse SlmQueue\\Queue\\QueuePluginManager;\nuse SlmQueueTest\\Asse...
php
chosen
[ { "from": "system", "value": "Use conditional validation on contact info only if user has intention\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Requests;\n\nuse Illuminate\\Foundation\\Http\\FormRequest;\n\nclass FeedbackRequest extends FormRequest\n{\n /**\n * Determ...
php
chosen
[ { "from": "system", "value": "Allow nested directory creation with recursive switch addition\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\ntrait Writer\n{\n\tpublic function writeHtmlToDisk($content, $directory) {\n\t\t$date = date('YmdHis');\n\t\t$this->prepar...
php
chosen
[ { "from": "system", "value": "Switch to using cURL to fetch data\n\nToward #72.\n" }, { "from": "human", "value": "<?php\n\n/*\n * If no business ID has been passed in the URL\n */\nif (!isset($_GET['id']))\n{\n header($_SERVER[\"SERVER_PROTOCOL\"].\" 400 Bad Request\", true, 400);\n exit(...
php
chosen
[ { "from": "system", "value": "Test event resource getter method.\n" }, { "from": "human", "value": "<?php\n\nnamespace Orbt\\ResourceMirror\\Tests\\Event;\n\nuse Orbt\\ResourceMirror\\Event\\ResourceEvent;\nuse Orbt\\ResourceMirror\\Resource\\GenericResource;\n\nclass ResourceEventTest extends \...
php
chosen
[ { "from": "system", "value": "Fix HasSlu slug autogeneration issue\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Rinvex\\Support\\Traits;\n\nuse Spatie\\Sluggable\\HasSlug as BaseHasSlug;\n\ntrait HasSlug\n{\n use BaseHasSlug;\n\n /**\n * Boot the tr...
php
chosen
[ { "from": "system", "value": "Modify Model::reload() function behaviour to sync with original attributes when model is not persisted and to always load from the database otherwise.\n" }, { "from": "human", "value": "<?php\nnamespace Baum\\Extensions;\n\ntrait ModelExtensions {\n\n /**\n * Rel...
php
chosen
[ { "from": "system", "value": "Fix fenced code blocks rendering without language\n\n- Closes #19\n" }, { "from": "human", "value": "<?php\n\nnamespace allejo\\stakx\\Engines;\n\nuse Highlight\\Highlighter;\n\nclass MarkdownEngine extends \\Parsedown\n{\n protected $highlighter;\n\n public f...
php
chosen
[ { "from": "system", "value": "Make RST code blocks compliant with hljs\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file exists to overload the default `render()` function which escapes HTML entities and therefore does not allow\n * for properly highlighted code to render.\n */\n\nna...
php
chosen
[ { "from": "system", "value": "Use config setting to set the type/address of socket to use for telegram\n" }, { "from": "human", "value": "<?php namespace Williamson\\Laragram\\Laravel;\n\nuse Config;\nuse Illuminate\\Foundation\\AliasLoader;\nuse Illuminate\\Support\\ServiceProvider;\nuse Log;\n...
php
chosen
[ { "from": "system", "value": "[Admin] Set an Invalid message for ChangePassword confirmation\n" }, { "from": "human", "value": "<?php\n\n// src/Corvus/AdminBundle/Form/Type/ChangePasswordType.php\nnamespace Corvus\\AdminBundle\\Form\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType,\n Symf...
php
chosen
[ { "from": "system", "value": "Replace class with new name.\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 that ...
php
chosen
[ { "from": "system", "value": "Change to form handling now persists realtionship between associations\n" }, { "from": "human", "value": "<?php\n\nnamespace Test\\TestTwoBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\Re...
php
chosen
[ { "from": "system", "value": "Fix problem with path to css files\n\n" }, { "from": "human", "value": "<?php\nclass Dance extends CI_Controller {\n\n public function __construct()\n {\n parent::__construct();\n $this->load->helper('url_helper');\n ...
php
chosen
[ { "from": "system", "value": "Add global class reference in docblock\n" }, { "from": "human", "value": "<?php\n\nclass TestCase extends Illuminate\\Foundation\\Testing\\TestCase {\n\n\t/**\n\t * Creates the application.\n\t *\n\t * @return Symfony\\Component\\HttpKernel\\HttpKernelInterface\n\t ...
php
chosen
[ { "from": "system", "value": "Put Sitemap link in footer\n" }, { "from": "human", "value": "<footer>\n <div id=\"footer-newsletter\">\n <div class=\"container\">\n <p>\n Get our Newsletter:\n <form action=\"\" method=\"post\">\n ...
php
chosen
[ { "from": "system", "value": "Allow daemons to perform writes unconditionally.\n" }, { "from": "human", "value": "<?php\n\n/*\n * Copyright 2011 Facebook, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the Li...
php
chosen
[ { "from": "system", "value": "Clear type function (not neccesairy)\n" }, { "from": "human", "value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Type extends Model\n{\n public function content() {\n return $this->hasMany('content');\n }\n\n // public fun...
php
chosen
[ { "from": "system", "value": "Remove halt_compiler to avoid segfaults on lucid\n" }, { "from": "human", "value": "<?php\n\nrequire_once __DIR__.'/lib/Pheasant/ClassLoader.php';\n\nfunction __pheasant_classloader_register()\n{\n\t$classloader = new \\Pheasant\\ClassLoader();\n\t$classloader->regi...
php
chosen
[ { "from": "system", "value": "Fix bug: Users with group below super administrator are unable to logout.\n" }, { "from": "human", "value": "<?php\n/**\n * @version $Id$\n * @category\tNooku\n * @package Nooku_Server\n * @subpackage Users\n * @copyright Copyright (C) 2011 Timble CVBA an...
php
chosen
[ { "from": "system", "value": "Throw exception on json_decode errors\n" }, { "from": "human", "value": "<?php\n\nnamespace Wizbii\\PipelineBundle\\Consumer;\n\nuse OldSound\\RabbitMqBundle\\RabbitMq\\ConsumerInterface;\nuse PhpAmqpLib\\Message\\AMQPMessage;\nuse Psr\\Log\\LoggerInterface;\nuse Wi...
php
chosen
[ { "from": "system", "value": "Fix php time not equal to nodejs getTime()\n" }, { "from": "human", "value": "<?php\nnamespace Vohinc\\BotanalyticsPhp\\Drivers;\n\n/**\n * Class Facebook\n * @package Vohinc\\BotanalyticsPhp\\Drivers\n */\nclass Facebook extends DriverAbstract\n{\n /**\n * @...
php
chosen
[ { "from": "system", "value": "Use actual byte string instead of hex2bin() on hex string\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of the ramsey/uuid library\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed w...
php
chosen
[ { "from": "system", "value": "Add ending doc block annotation for ignoring coding standards\n" }, { "from": "human", "value": "<?php\n\nnamespace Zend\\I18n\\View;\n\nuse IntlDateFormatter;\n\n// @codingStandardsIgnoreStart\n/**\n * Trait HelperTrait\n *\n * The trait provides convenience method...
php
chosen
[ { "from": "system", "value": "Remove other glug links in footer\n" }, { "from": "human", "value": "<footer>\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"column-1-4\">\n <div class=\"footer-div\">\n <h2 class=\"orange-border\">FOCUS</h2>\n <ul...
php
chosen
[ { "from": "system", "value": "Revert \"more fix are coming\"\n\nThis reverts commit 39e778da34704836de55572f4e08509565a6e613.\n" }, { "from": "human", "value": "<?php\n/**\n *\n * @author Ananaskelly\n */\nnamespace App\\Http\\Controllers;\n\nuse App\\Http\\Requests;\nuse Illuminate\\Http\\Reque...
php
chosen
[ { "from": "system", "value": "Fix confirmation page id again.\n" }, { "from": "human", "value": "@extends('layouts.default')\n\n@section('content')\n\t<h1>Successfully created \"{{ $sprint->title }}\"</h1>\n\n\t<ul>\n\t\t<li>\n\t\t\t{{ link_to(\n\t\t\t\t$_ENV['PHABRICATOR_URL'] . 'project/view/'...
php
chosen
[ { "from": "system", "value": "Modify label with select tag\n" }, { "from": "human", "value": "<div class=\"field\" style=\"text-align: center\">\n @if(Laramin::model('Category')->count() == 0)\n <p class=\"help is-danger\">You Need To Add A Category For Adding a P...
php
chosen
[ { "from": "system", "value": "Set the relationships for the user model.\n" }, { "from": "human", "value": "<?php namespace App;\n\nuse Illuminate\\Auth\\Authenticatable;\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Auth\\Passwords\\CanResetPassword;\nuse Illuminate\\Contracts\\Au...
php
chosen
[ { "from": "system", "value": "Use static notation to call helper class methods in unit tests\n" }, { "from": "human", "value": "<?php\nnamespace Dompdf\\Tests;\n\nuse Dompdf\\Helpers;\nuse PHPUnit\\Framework\\TestCase;\n\nclass HelpersTest extends TestCase\n{\n public function testParseDataUr...
php
chosen
[ { "from": "system", "value": "Add support for title next to logo in navbar\n" }, { "from": "human", "value": "<?php defined('C5_EXECUTE') or die(\"Access Denied.\");\n?>\n\n<?php\n$c = Page::getCurrentPage();\n?>\n\n<?php if (is_object($f)): ?>\n\n <?php\n if ($maxWidth > 0 || $maxHeight >...
php
chosen
[ { "from": "system", "value": "Fix: Use anonymous class as test double\n\nCo-authored-by: Andreas Möller <96e8155732e8324ae26f64d4516eb6fe696ac84f@localheinz.com>\nCo-authored-by: Arne Blankerts <2d7739f42ebd62662a710577d3d9078342a69dee@Blankerts.de>\n" }, { "from": "human", "value": "<?php decla...
php
chosen
[ { "from": "system", "value": "Add markup to table to make AJAX update it.\n" }, { "from": "human", "value": "<?php\nif(isset($CreateGameMessage))\n{\n\techo $CreateGameMessage;\n} ?>\n<table class=\"standard\">\n\t<tr>\n\t\t<th>Players</th>\n\t\t<th>Current Turn</th>\n\t\t<th></th>\n\t</tr><?php...
php
chosen
[ { "from": "system", "value": "Add additional logging to display progression\n" }, { "from": "human", "value": "<?php\nrequire __DIR__ . '/../vendor/autoload.php';\n\nuse Curl\\MultiCurl;\n\n$multi_curl = new MultiCurl();\n\n// Count the number of completed requests.\n$request_count = 0;\n$multi_...
php
chosen
[ { "from": "system", "value": "QuizBundle: Implement admin quiz edit form\n" }, { "from": "human", "value": "<?php\n\nnamespace QuizBundle\\Form\\Admin\\Quiz;\n\nuse CommonBundle\\Component\\Form\\Admin\\Element\\Text,\n Doctrine\\ORM\\EntityManager,\n QuizBundle\\Entity\\Quiz,\n Zend\\F...
php
chosen
[ { "from": "system", "value": "Use of @component for buttons in form\n" }, { "from": "human", "value": "@include('core::admin._buttons-form')\n\n{!! BootForm::hidden('id') !!}\n\n<div class=\"row\">\n <div class=\"col-md-6\">\n {!! BootForm::text(__('Tag'), 'tag') !!}\n </div>\n <...
php
chosen
[ { "from": "system", "value": "Revert \"Testing a change for FTPloy syncing with the production server.\"\n\nThis reverts commit ef47343a460b69e538b7a0bddc9a86e8a2ed2f5a.\n" }, { "from": "human", "value": "<?php\n/*\nPlugin Name: JW Filter\nPluring URI: net.tutsplus.com\nDescription: Just for dem...
php
chosen
[ { "from": "system", "value": "Use the proper Email validation message\n" }, { "from": "human", "value": "<?php\n\nnamespace Frontend\\Modules\\Mailmotor\\Domain\\Subscription\\Command;\n\nuse Frontend\\Core\\Language\\Locale;\nuse Symfony\\Component\\Validator\\Constraints as Assert;\nuse Fronte...
php
chosen
[ { "from": "system", "value": "Fix Google Authenticator unit test\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Sonata package.\n *\n * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>\n *\n * For the full copyright and license information, please view the LICENS...
php
chosen
[ { "from": "system", "value": "BAP-4107: Change UX\n- remove mock\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\EntityBundle\\Provider;\n\nuse Doctrine\\Common\\Collections\\ArrayCollection;\n\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\n\nclass ProviderManager\n{\...
php
chosen
[ { "from": "system", "value": "Add '--force' option to env:delete command\n" }, { "from": "human", "value": "<?php\n\nnamespace Sven\\FlexEnv\\Commands;\n\nuse Symfony\\Component\\Console\\Input\\InputArgument;\n\nclass EnvDeleteCommand extends EnvCommand\n{\n /** @var string */\n protected...
php
chosen
[ { "from": "system", "value": "Fix debug panel for Asset Bundles\n\ncloses #448\n" }, { "from": "human", "value": "<?php\n/**\n * @copyright Copyright (C) 2016 AIZAWA Hina\n * @license https://github.com/fetus-hina/stat.ink/blob/master/LICENSE MIT\n * @author AIZAWA Hina <hina@bouhime.com>\n */\n...
php
chosen
[ { "from": "system", "value": "Update docblocks, remove close php tag, add getUserId() method\n" }, { "from": "human", "value": "<?php\n\nclass Auth {\n\n\tpublic static function login($id) {\n\n \t\t$_SESSION['user_id'] = $id;\n \t\treturn true;\n\n\t}\n\n\tpublic static function logout() {\...
php
chosen
[ { "from": "system", "value": "Sort search selections by title\n" }, { "from": "human", "value": "<?php\n\n/*\n* This file is part of the Integrated package.\n*\n* (c) e-Active B.V. <integrated@e-active.nl>\n*\n* For the full copyright and license information, please view the LICENSE\n* file that...
php
chosen
[ { "from": "system", "value": "Add Let's Encrypt domain validation information\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Web Routes\n|--------------------------------------------------------------------------\n|\...
php
chosen
[ { "from": "system", "value": "Fix 0/false strpos outlier problems\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of WordPlate.\n *\n * (c) Vincent Klaiber <hello@vinkla.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was di...
php
chosen
[ { "from": "system", "value": "Revert temp fix for IP-based blacklist\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Middleware;\n\nuse Closure;\n\nuse App\\IpBlacklist;\nuse Log;\n\nclass IPBasedBlacklist\n{\n /**\n * Handle an incoming request.\n *\n * @param \...
php
chosen
[ { "from": "system", "value": "FIX Added 'disable' flag to be able to disable overall tracking from config\n" }, { "from": "human", "value": "<?php\n\n/**\n * @author Stephen McMahon <stephen@silverstripe.com.au>\n */\nclass DataChangeTrackService {\n\n\tprotected $dcr_cache = array();\n\n\tpubli...
php
chosen
[ { "from": "system", "value": "Declare property set in constructor\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\n/**\n * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)\n * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)\n *\n * Li...
php
chosen
[ { "from": "system", "value": "Check if a file was ever loaded before trying to reload\n" }, { "from": "human", "value": "<?php \n\nnamespace DataStream;\n\n/**\n * Data source loader\n */\nclass Source\n{\n \n protected $data = null;\n \n /**\n * @var boolean Whether the file should be read...
php
chosen
[ { "from": "system", "value": "Add queue display to /queue\n" }, { "from": "human", "value": "@section(\"content\")\n\n\n@stop\n" }, { "from": "gpt", "value": "@section(\"content\")\n\n<div class=\"container main\">\n\t<div class=\"table-responsive\">\n\t\t<table class=\"table\">\n\t\...
php
chosen
[ { "from": "system", "value": "Remove unneeded __destruct call in OC\\Files\\Storage\\Temporary\n" }, { "from": "human", "value": "<?php\n/**\n * Copyright (c) 2012 Robin Appelman <icewind@owncloud.com>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * ...
php
chosen
[ { "from": "system", "value": "Add input data to assignment's name.\n" }, { "from": "human", "value": "<?php\n\nrequire_once(__DIR__ . '/Assignment.class.php');\n\n/**\n * Grader for JFlap programs.\n *\n * @author Marco Aurélio Graciotto Silva\n */\nclass CmdlineInputOutputAssignment extends Ass...
php
chosen
[ { "from": "system", "value": "Use current host name for redirect url\n" }, { "from": "human", "value": "<?php\nuse TOL\\PhotoHack\\Youtube;\n\nreturn function($app) {\n $twigView = new \\Slim\\Views\\Twig();\n $twigView->parserOptions = ['autoescape' => false];\n\n $app->config('templat...
php
chosen
[ { "from": "system", "value": "Include updating of scoped tag permissions\n\nAddresses https://github.com/flarum/core/issues/2924\r\n\r\nThe rename `viewDiscussions` migration introduced for Flarum 1.0 does not take tag scoped permissions into account\r\nhttps://github.com/flarum/core/blob/e92c267cdec46266b6...
php
chosen
[ { "from": "system", "value": "Check event name when constructing" }, { "from": "human", "value": "<?php\n\nnamespace Arch;\n\n/**\n * Class event\n */\nclass Event\n{\n \n /**\n * The event name\n * @var string\n */\n protected $name;\n \n /**\n * The event callbac...
php
chosen
[ { "from": "system", "value": "Mark internal methods as such\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Brick\\Di;\n\n/**\n * Base class for definitions.\n */\nabstract class Definition\n{\n /**\n * @var Scope|null\n */\n private $scope = null;...
php
chosen
[ { "from": "system", "value": "Remove useless blank line after the namespace declaration\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...
php
chosen
[ { "from": "system", "value": "view: Add Network Detail panel to config_overview\n" }, { "from": "human", "value": "<section>\n\t\n<div class=\"pure-u-3-5\">\n\t\n\t<div class=\"white-container raised\">\n\t\t<h3>Tasks</h3>\n\t</div>\n\t\n</div>\n\n<div class=\"pure-u-2-5\">\n\t<div class=\"white...
php
chosen
[ { "from": "system", "value": "Fix placeholders on storage location paths\n" }, { "from": "human", "value": "<?php\ndefined('C5_EXECUTE') or die('Access Denied');\nif (is_object($configuration)) {\n $path = $configuration->getRootPath();\n $relativePath = $configuration->getWebRootRelativeP...
php
chosen
[ { "from": "system", "value": "Add 'SA' as new suffix for company" }, { "from": "human", "value": "<?php\n\nnamespace Faker\\Provider\\fr_CH;\n\nclass Company extends \\Faker\\Provider\\fr_FR\\Company\n{\n protected static $formats = array(\n '{{lastName}} {{companySuffix}}',\n '...
php
chosen
[ { "from": "system", "value": "Allow code spans across newlines.\n" }, { "from": "human", "value": "<?php\n\nnamespace FluxBB\\Markdown\\Parser\\Inline;\n\nuse FluxBB\\Markdown\\Common\\Text;\nuse FluxBB\\Markdown\\Node\\Code;\nuse FluxBB\\Markdown\\Node\\InlineNodeAcceptorInterface;\nuse FluxBB\...
php
chosen
[ { "from": "system", "value": "Fix exception message in test\n" }, { "from": "human", "value": "<?php\n\nnamespace LiteCQRS;\n\nclass DefaultCommandTest extends \\PHPUnit_Framework_TestCase\n{\n public function testCreateArrayMapsToPublicProperties()\n {\n $cmd = new TestCommand(Arra...
php
chosen
[ { "from": "system", "value": "Add a test for MySQLPlatform::getDropIndexSQL()\n" }, { "from": "human", "value": "<?php\n\nnamespace Doctrine\\DBAL\\Tests\\Platforms;\n\nuse Doctrine\\DBAL\\Platforms\\AbstractPlatform;\nuse Doctrine\\DBAL\\Platforms\\MySQLPlatform;\nuse Doctrine\\DBAL\\Transactio...
php
chosen
[ { "from": "system", "value": "Rename variable elephpant as druplicon\n" }, { "from": "human", "value": "<?php\n\n/**\n * @file\n * Contains \\Drupal\\Console\\Command\\Autowire\\ElephpantCommand.\n */\n\nnamespace Drupal\\Console\\Command\\Autowire;\n\nuse Symfony\\Component\\Console\\Input\\Inp...
php
chosen
[ { "from": "system", "value": "Fix yii app compatible layer\n" }, { "from": "human", "value": "<?php\n/**\n * \n *\n * All rights reserved.\n * \n * @author Falaleev Maxim\n * @email max@studio107.ru\n * @version 1.0\n * @company Studio107\n * @site http://studio107.ru\n * @date 18/04/14.04.2014 ...
php
chosen
[ { "from": "system", "value": "Replace concrete Application class with Contract\n" }, { "from": "human", "value": "<?php\n\nnamespace Krlove\\EloquentModelGenerator\\Provider;\n\nuse Illuminate\\Foundation\\Application;\nuse Illuminate\\Support\\ServiceProvider;\nuse Krlove\\EloquentModelGenerato...
php
chosen
[ { "from": "system", "value": "Remove unique constraint from test user migration\n" }, { "from": "human", "value": "<?php\n\nnamespace Aviator\\Database\\Migrations;\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades...
php
chosen
[ { "from": "system", "value": "Throw RuntimeException if the factory cannot write to stream\n" }, { "from": "human", "value": "<?php\n\nnamespace Http\\Message;\n\nuse Psr\\Http\\Message\\StreamInterface;\n\n/**\n * Factory for PSR-7 Stream.\n *\n * @author Márk Sági-Kazár <mark.sagikazar@gmail.c...
php
chosen
[ { "from": "system", "value": "Test for cache file before removing\n" }, { "from": "human", "value": "<?php\n\nrequire_once('./config.php');\nrequire_once('./functions.php');\n\n// If we're good to clear cache, remove cache file\nif((isset($_GET['clearcache'])) & (in_array($_SERVER['REMOTE_ADDR']...
php
chosen
[ { "from": "system", "value": "Remove TidioChat from this view" }, { "from": "human", "value": "@extends('app')\n\n@section('content')\n<div class=\"container\">\n <div class=\"row\">\n <div class=\"panel panel-default\">\n <div class=\"panel-heading\">{{ trans('manager.busin...
php
chosen
[ { "from": "system", "value": "Clean up analytics index action test\n" }, { "from": "human", "value": "<?php\n\nnamespace Backend\\Modules\\Analytics\\Tests\\Action;\n\nuse Backend\\Core\\Tests\\BackendWebTestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Client;\n\nclass IndexTest extends BackendW...
php
chosen
[ { "from": "system", "value": "Set limit for leaderboard to 10\n" }, { "from": "human", "value": "<?php\n\nnamespace Badger\\UserBundle\\Doctrine\\Repository;\n\nuse Doctrine\\ORM\\EntityRepository;\nuse Badger\\UserBundle\\Repository\\UserRepositoryInterface;\n\n/**\n * @author Adrien Pétremann ...
php
chosen
[ { "from": "system", "value": "Fix another moved class name\n" }, { "from": "human", "value": "<?php\n\nnamespace CoreSphere\\CoreBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\ExceptionController as BaseController;\nuse Symfony\\Bundle\\FrameworkBundle\\Templating\\Temp...
php
chosen