conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add clearTitleSegments method to seo helper\n\n\nFormer-commit-id: 7eaed8690b7c184f477a748e87ea13cb89bb9ef8\nFormer-commit-id: 52e068afc53274320ccd396396bb64f1c71343d0" }, { "from": "human", "value": "<?php\nnamespace Concrete\\Core\\Html\\Service;\n\nclass Seo\n{\n...
php
chosen
[ { "from": "system", "value": "BAP-5789: Return updatedAt field for API methods of Calendar Events. CS fix\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\CalendarBundle\\Migrations\\Schema\\v1_4;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\n\nuse Oro\\Bundle\\MigrationBundle\\Migra...
php
chosen
[ { "from": "system", "value": "Revert \"Segunda Tentativa - Funções\"\n\nThis reverts commit 167ae524b3e5a3e25540d123cc2b9535df9453bb.\n" }, { "from": "human", "value": "<?php\n\nnamespace framework\n\nclass Database {\n\t\n\tpublic function conect($dsn){\n\t}\n\tprivate function executeSql($sql)...
php
chosen
[ { "from": "system", "value": "Remove class namespace prefix and declare on top\n" }, { "from": "human", "value": "<?php namespace App\\Providers;\n\nuse Illuminate\\Routing\\Router;\nuse Illuminate\\Foundation\\Support\\Providers\\RouteServiceProvider as ServiceProvider;\n\nclass RouteServicePro...
php
chosen
[ { "from": "system", "value": "Add versioning to api routes (api/v1)\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Providers;\n\nuse Illuminate\\Support\\Facades\\Route;\nuse Illuminate\\Foundation\\Support\\Providers\\RouteServiceProvider as ServiceProvider;\n\nclass RouteServicePro...
php
chosen
[ { "from": "system", "value": "Enforce image on backend users images to be actual images" }, { "from": "human", "value": "<?php\n\nnamespace Nodes\\Backend\\Models\\User\\Validation;\n\nuse Nodes\\Validation\\AbstractValidator;\n\n/**\n * Class UserValidation.\n */\nclass UserValidator extends Ab...
php
chosen
[ { "from": "system", "value": "Remove alias from service provider\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php namespace Orchestra\\Asset;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\Foundation\\AliasLo...
php
chosen
[ { "from": "system", "value": "Use match instead of non-existant head routing method\n" }, { "from": "human", "value": "<?php\n\nnamespace Vaffel\\Tuski\\Silex\\Provider;\n\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Silex\\ControllerP...
php
chosen
[ { "from": "system", "value": "Use array key lookup to check action method\n" }, { "from": "human", "value": "<?php\n\n// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.\n// See the LICENCE file in the repository root for full licence text.\n...
php
chosen
[ { "from": "system", "value": "Add support for image in quote template\n" }, { "from": "human", "value": "<?php\n// Quote block.\n\n// This optionally accepts:\n// $feature_color, like 'orange' or 'purple'.\n\n$classes = array();\n\nif ($feature_color) {\n array_push($classes, 'ws-feature-'.$f...
php
chosen
[ { "from": "system", "value": "Remove the no longer existing function \"isUserVerified\"\n\nThx @eMerzh\n" }, { "from": "human", "value": "<?php\n\n// Check if we are a user\nOCP\\JSON::callCheck();\nOC_JSON::checkLoggedIn();\n\n$username = isset($_POST[\"username\"]) ? $_POST[\"username\"] : OC_...
php
chosen
[ { "from": "system", "value": "Add error message to InvalidArgumentException\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace Moka\\Factory;\n\nuse Moka\\Exception\\InvalidArgumentException;\nuse Moka\\Stub\\Stub;\nuse Moka\\Stub\\StubSet;\n\n/**\n * Class StubFacto...
php
chosen
[ { "from": "system", "value": "[DBAL-184] Fix Binding Type for BIGINT\n" }, { "from": "human", "value": "<?php\n/*\n * $Id$\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 IMPL...
php
chosen
[ { "from": "system", "value": "Add intersection comparison for array values\n" }, { "from": "human", "value": "<?php\n\nnamespace PhpAbac\\Comparison;\n\nclass ArrayComparison {\n /**\n * @param string $serializedHaystack\n * @param mixed $needle\n * @return boolean\n */\n p...
php
chosen
[ { "from": "system", "value": "Fix tests for vue changes to homepage.\n\n" }, { "from": "human", "value": "<?php\nclass A02_Frontend_IndexCest extends CestAbstract\n{\n /**\n * @before setupComplete\n * @before login\n */\n public function seeHomepage(FunctionalTester $I)\n {...
php
chosen
[ { "from": "system", "value": "Make doctrine executor do left-joins by default\n" }, { "from": "human", "value": "<?php\n\nnamespace RulerZ\\Executor\\DoctrineORM;\n\nuse RulerZ\\Context\\ExecutionContext;\nuse RulerZ\\Result\\IteratorTools;\n\ntrait FilterTrait\n{\n abstract protected functio...
php
chosen
[ { "from": "system", "value": "Test domains are resolved correctly\n" }, { "from": "human", "value": "<?php\n\nuse Valet\\Tests\\Functional\\FunctionalTestCase;\n\n/**\n * @group functional\n * @group acceptance\n */\nclass InstallTest extends FunctionalTestCase\n{\n public function test_valet...
php
chosen
[ { "from": "system", "value": "Return types in page bundle\n" }, { "from": "human", "value": "<?php\n/*\n * WellCommerce Open-Source E-Commerce Platform\n *\n * This file is part of the WellCommerce package.\n *\n * (c) Adam Piotrowski <adam@wellcommerce.org>\n *\n * For the full copyright and li...
php
chosen
[ { "from": "system", "value": "[Serializer] Improve test coverage of the MaxDepth annotation\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, ple...
php
chosen
[ { "from": "system", "value": "Add user to auth response\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the FOSRestBundle package.\n *\n * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>\n *\n * For the full copyright and license information, please view the LI...
php
chosen
[ { "from": "system", "value": "Remove any empty nodes before combining into a path\n\n\nFormer-commit-id: c12d3fa77b23485c1eae3f9f8137fbeccb7aabdb\nFormer-commit-id: b19f2ff796cca26e822084734250c4bb4aab06d8" }, { "from": "human", "value": "<?php\nnamespace Concrete\\Core\\Url\\Components;\n\n/**\...
php
chosen
[ { "from": "system", "value": "Disable header on login page\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nreturn [\n 'toolbar' => [\n 'active' => false,\n ],\n 'title' => [\n 'parent_id' => 'content',\n 'sort' => 100,\n 'cfg' => [\n ...
php
chosen
[ { "from": "system", "value": "[DependencyInjection] Fix fixture class loaded twice during dumper tests\n" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Definition;\n\n$container = new Containe...
php
chosen
[ { "from": "system", "value": "Fix test to check for the correct version\n" }, { "from": "human", "value": "<?php namespace Rollbar;\n\nuse \\Mockery as m;\nuse Rollbar\\Payload\\Notifier;\n\nclass NotifierTest extends BaseRollbarTest\n{\n public function testName()\n {\n $name = \"r...
php
chosen
[ { "from": "system", "value": "Add 'separator' parameter for decimal separator in /math\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\n\nuse App\\Http\\Requests;\nuse App\\Helpers\\Helper;\nuse Exception;\n\nclass MathController ex...
php
chosen
[ { "from": "system", "value": "Fix PHP notice from the wrong type hint\n" }, { "from": "human", "value": "<?php\n\nnamespace WP_CLI;\n\nuse \\Composer\\DependencyResolver\\Rule;\nuse \\Composer\\EventDispatcher\\Event;\nuse \\Composer\\EventDispatcher\\EventSubscriberInterface;\nuse \\Composer\\S...
php
chosen
[ { "from": "system", "value": "Allow to pass null for cache handler" }, { "from": "human", "value": "<?php\nnamespace Tmdb\\SymfonyBundle;\n\nuse Doctrine\\Common\\Cache\\Cache;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse Symfony\\Component\\HttpFoundation\\ParameterB...
php
chosen
[ { "from": "system", "value": "Use Event-Dispatcher contracts Event class.\n\n" }, { "from": "human", "value": "<?php\n\nnamespace R\\U2FTwoFactorBundle\\Event;\n\nuse Symfony\\Component\\EventDispatcher\\Event;\nuse Symfony\\Component\\HttpFoundation\\Response;\nuse R\\U2FTwoFactorBundle\\Model\...
php
chosen
[ { "from": "system", "value": "Revert \"Remove Sf4.2 deprecation on TreeBuilder constructor\"\n\nThis reverts commit 803a5a2bcfa827db60f2bd0b55f144aa896adfb5.\n" }, { "from": "human", "value": "<?php\n\nnamespace AlterPHP\\EasyAdminExtensionBundle\\DependencyInjection;\n\nuse Symfony\\Component\\...
php
chosen
[ { "from": "system", "value": "Tidy up the Laravel service provider.\n\nSigned-off-by: Jason Lewis <b136be6b8ecc2c62ceb9857ec62bf85489a45e0c@gmail.com>\n" }, { "from": "human", "value": "<?php\n\nnamespace Dingo\\Api\\Provider;\n\nuse ReflectionClass;\nuse Illuminate\\Support\\ServiceProvider;\nu...
php
chosen
[ { "from": "system", "value": "Add the profiles as a provider" }, { "from": "human", "value": "<?php\n\nnamespace Bolt\\Extension\\Bolt\\Members\\Provider;\n\nuse Bolt\\Extension\\Bolt\\Members\\Members;\nuse Silex\\Application;\nuse Silex\\ServiceProviderInterface;\n\nclass MembersServiceProvide...
php
chosen
[ { "from": "system", "value": "[Core] Implement twig function for variants prices map\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...
php
chosen
[ { "from": "system", "value": "Fix HTTP error code when bad authentication to 401 \n\n…instead of 400/404, so client can deal with it correctly (#537)" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Middleware;\n\nuse Closure;\nuse Tymon\\JWTAuth\\Exceptions\\JWTException;\nuse Tym...
php
chosen
[ { "from": "system", "value": "Make test cases easier to identify\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Doctrine\\DBAL\\Tests\\Functional\\Schema;\n\nuse Doctrine\\DBAL\\Schema\\AbstractSchemaManager;\nuse Doctrine\\DBAL\\Schema\\Comparator;\nuse Doctri...
php
chosen
[ { "from": "system", "value": "Clean up tweets hset too\n" }, { "from": "human", "value": "<?php\n\nnamespace PHPSW\\Spec\\Suite;\n\ndescribe(\"Task\", function () {\n describe(\"meetup:import:all\", function () {\n it(\"expects that the task runs\", function () {\n $stdout =...
php
chosen
[ { "from": "system", "value": "Add url to user badge properties\n" }, { "from": "human", "value": "<?php\n\n/**\n * Copyright (c) ppy Pty Ltd <contact@ppy.sh>.\n *\n * This file is part of osu!web. osu!web is distributed with the hope of\n * attracting more community contributions to the...
php
chosen
[ { "from": "system", "value": "Correct the namespace in the template file.\n" }, { "from": "human", "value": "<?php\n\nclass <CLASS> extends Torm\\Model {\n\tconst table = '<TABLE>';\n\tconst primaryKey = '<PRIMARY KEY>';\n\n<FIELD>\n\tprotected $<PROPERTY NAME>;\n</FIELD>\n\n\tprotected static $...
php
chosen
[ { "from": "system", "value": "Sort namespaces php env independently fix\n" }, { "from": "human", "value": "<?php\n\nerror_reporting(E_ALL);\n\n$file = __DIR__ . '/../vendor/autoload.php';\nif (file_exists($file)) {\n $loader = require $file;\n}\n\nif (!isset($loader)) {\n throw new \\Runti...
php
chosen
[ { "from": "system", "value": "Insert role_id field after the primary key" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddRoleToUsersTable extends Migration\n{\n /**\n * Run the migrations....
php
chosen
[ { "from": "system", "value": "Add Payment and Image providers by default\n\nAlso, reordered default providers for easier maintenance\n" }, { "from": "human", "value": "<?php\n\nnamespace Faker;\n\nclass Factory\n{\n const DEFAULT_LOCALE = 'en_US';\n\n protected static $defaultProviders = a...
php
chosen
[ { "from": "system", "value": "Fix missing initialiation leading to notices.\n" }, { "from": "human", "value": "<?php\n/**\n * Qafoo PHP Refactoring Browser\n *\n * LICENSE\n *\n * This source file is subject to the MIT license that is bundled\n * with this package in the file LICENSE.txt.\n * If...
php
chosen
[ { "from": "system", "value": "Update the COLORPALETTE_DIR constant to point to new directory.\n\nRelated to the previous commit updating composer to install this in\nthe vendor directory but the caused the module to not find\nthe css/ColorPaletteField.css file.\n" }, { "from": "human", "value": ...
php
chosen
[ { "from": "system", "value": "Remove docblock injected by phpstorm\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: gg\n * Date: 12/04/2015\n * Time: 12:11\n */\n\nnamespace PhpXmlRpc\\Helper;\n\n\nclass Logger\n{\n protected static $instance = null;\n\n /**...
php
chosen
[ { "from": "system", "value": "Fix errors revealed by tests\n" }, { "from": "human", "value": "<?php\n\nnamespace TheCrypticAce\\Suitey\\Steps;\n\nuse Closure;\nuse TheCrypticAce\\Suitey\\IO;\nuse TheCrypticAce\\Suitey\\Process;\n\nclass Migrate implements Step\n{\n public function __construct...
php
chosen
[ { "from": "system", "value": "Add owner to API call for tournaments list\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Transformers;\n\nuse App\\Models\\Tournament;\nuse League\\Fractal\\TransformerAbstract;\n\nclass TournamentTransformer extends TransformerAbstract\n{\n public f...
php
chosen
[ { "from": "system", "value": "Use the Correct Deprecation Error Type\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n\n/**\n * This file is part of PMG\\Queue\n *\n * Copyright (c) PMG <https://www.pmg.com>\n *\n * For full copyright information see the LICENSE file distribute...
php
chosen
[ { "from": "system", "value": "Add full-width question mark as alias\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Chatbot\\Commands;\n\nuse Casperlaitw\\LaravelFbMessenger\\Contracts\\BaseHandler;\nuse Casperlaitw\\LaravelFbMessenger\\Messages\\ReceiveMessage;\nuse Casperlaitw\\Lara...
php
chosen
[ { "from": "system", "value": "Make anonymous functions static where possible\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Inphest\\MetaTests;\n\nuse Exception;\nuse Inphest\\Assert;\nuse function Inphest\\test;\nuse TypeError;\n\n$sameData = [\n '1 === 1' ...
php
chosen
[ { "from": "system", "value": "Load chado modifications as part of fixture setup\n" }, { "from": "human", "value": "<?php\nrequire_once __DIR__ . DIRECTORY_SEPARATOR . 'config.php';\n\n$database = unserialize(DATABASE)['test'];\necho exec('PGPASSWORD='.$database['DB_PASSWORD'].\n ' dropdb ...
php
chosen
[ { "from": "system", "value": "Fix login if activation enabled\n" }, { "from": "human", "value": "<?php\n\nnamespace Laravolt\\Auth;\n\nuse Illuminate\\Http\\Request;\nuse Laravolt\\Auth\\Contracts\\Login;\n\nclass DefaultLogin implements Login\n{\n public function rules(Request $request)\n ...
php
chosen
[ { "from": "system", "value": "Move cortex:autoload & cortex:activate commands to cortex/foundation module responsibility\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Cortex\\Foundation\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\n\nclass InstallC...
php
chosen
[ { "from": "system", "value": "Change the default module directory to the app/ directory\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\t'modules'\t=>\tbase_path('Modules'),\n\t'assets'\t=>\tpublic_path('modules'),\n];" }, { "from": "gpt", "value": "<?php\n\nreturn [\n\t'modul...
php
chosen
[ { "from": "system", "value": "Add YiiAsset dependency for widget asset bundles\n" }, { "from": "human", "value": "<?php\n\n/**\n * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2013\n * @package yii2-widgets\n * @version 1.0.0\n */\n\nnamespace kartik\\widgets;\n\n/**\n * Base asse...
php
chosen
[ { "from": "system", "value": "Change max length for image URLs\n\nImages length are longer. So multiple the regular URL length by 2.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2017, Pierre-Henry Soria. All R...
php
chosen
[ { "from": "system", "value": "Change populate method, allow empty array\n" }, { "from": "human", "value": "<?php namespace Aedart\\Util\\Interfaces; \n\n/**\n * Interface Populatable\n *\n * Components implementing this interface promise, that the given component can\n * be populated with some ...
php
chosen
[ { "from": "system", "value": "Fix output stream and return code\n" }, { "from": "human", "value": "<?php\n\nif( posix_geteuid() ) {\n\techo \"\\033[1;31mError:\\033[0m Please run `ee` with root privileges.\";\n\treturn;\n}\n\n// Can be used by plugins/themes to check if EE is running or not\ndef...
php
chosen
[ { "from": "system", "value": "Set the element width inline\n" }, { "from": "human", "value": "<div class=\"col-md-12\">\n <div class=\"a-note\">\n <div class=\"layout\">\n <div class=\"layout-center\">\n <div class=\"text-capitalize\">\n <a ...
php
chosen
[ { "from": "system", "value": "Add ACF options & split_content function\n" }, { "from": "human", "value": "<?php\n \nuse Dedato\\SoluForce\\Setup;\n\n/* ==========================================================================\n Timber Setup\n ===============================================...
php
chosen
[ { "from": "system", "value": "Fix path for xsce logo\n" }, { "from": "human", "value": "<header class=\"banner navbar navbar-default navbar-static-top\" role=\"banner\">\r\n <div class=\"container\">\r\n <div class=\"navbar-header\">\r\n <button type=\"button\" class=\"navbar-toggle col...
php
chosen
[ { "from": "system", "value": "Fix escaping for stricter php7.3. Escaping the minus is the right fix.\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types = 1);\n\nnamespace Soliant\\SimpleFM\\Client\\ResultSet\\Transformer;\n\nuse Litipk\\BigNumbers\\Decimal;\n\nfinal class NumberTrans...
php
chosen
[ { "from": "system", "value": "Add support for Windows OS.\n\nWindows cannot execute a subcommand like \"$ ()\"." }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\n/**\n * This file is part of Laravel Zero.\n *\n * (c) Nuno Maduro <enunomaduro@gmail.com>\n *\n * For the full c...
php
chosen
[ { "from": "system", "value": "Make sure tests work with PHP 5.3" }, { "from": "human", "value": "<?php\n\nnamespace JMS\\Tests\\Composer\\Graph;\n\nuse JMS\\Composer\\Graph\\DependencyGraph;\n\nclass DependencyGraphTest extends \\PHPUnit_Framework_TestCase\n{\n public function testImplicitCre...
php
chosen
[ { "from": "system", "value": "Fix class name clash in database migrations.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass UpdateMiningActivitiesTable ex...
php
chosen
[ { "from": "system", "value": "Remove the related posts function\n" }, { "from": "human", "value": "<?php while (have_posts()) : the_post(); ?>\n <article <?php post_class(); ?>>\n <header>\n <h1 class=\"entry-title\"><?php the_title(); ?></h1>\n </header>\n <div class=\"entry-meta...
php
chosen
[ { "from": "system", "value": "BAP-6912: Remove BC break of REST API after migration to new version of FOSRestBundle\n - small fix\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\SegmentBundle\\Controller\\Api\\Rest;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controll...
php
chosen
[ { "from": "system", "value": "Fix first functional test class" }, { "from": "human", "value": "<?php\n\nnamespace Bolt\\Extension\\Leskis\\BoltFieldGeojson\\Tests;\n\nuse Bolt\\Tests\\BoltUnitTest;\nuse Bolt\\Extension\\Leskis\\BoltFieldGeojson\\BoltFieldGeojsonExtension;\n\n/**\n * BoltFieldGeo...
php
chosen
[ { "from": "system", "value": "Remove double Controller in classname\n\nWhen generating a new Controller, the classname had a double Controller word in it. eg. TestControllerController.\r\nThis removes one of them." }, { "from": "human", "value": "<?php\n\nnamespace {{ ns }};\n\nuse Symfony\\Bund...
php
chosen
[ { "from": "system", "value": "Fix AJAX response class constructor.\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 copyright and lice...
php
chosen
[ { "from": "system", "value": "Set created client to public\n" }, { "from": "human", "value": "<?php\n\nnamespace Guzzle\\ConfigOperationsBundle\\DependencyInjection\\CompilerPass;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Comp...
php
chosen
[ { "from": "system", "value": "Make sure that timezone information is included in calendar export\n" }, { "from": "human", "value": "<?php\n\nnamespace BOMO\\IcalBundle\\Provider;\n\n\nuse BOMO\\IcalBundle\\Model\\Timezone,\n BOMO\\IcalBundle\\Model\\Calendar,\n BOMO\\IcalBundle\\Model\\Eve...
php
chosen
[ { "from": "system", "value": "Clean up styling on 2FA enable form.\n\n" }, { "from": "human", "value": "<?php\nreturn [\n 'method' => 'post',\n 'elements' => [\n 'secret' => ['hidden', []],\n\n 'otp' => [\n 'text',\n [\n 'label' => __('Cod...
php
chosen
[ { "from": "system", "value": "Test when a class contains several actions\n" }, { "from": "human", "value": "<?php\n\n/*\n * (c) Kévin Dunglas <dunglas@gmail.com>\n *\n * This source file is subject to the MIT license that is bundled\n * with this source code in the file LICENSE.\n */\n\nnamespac...
php
chosen
[ { "from": "system", "value": "Make the big hero image work.\n" }, { "from": "human", "value": "<?php\n\t// If a feature image is set, get the id, so it can be injected as a css background property\n\tif ( has_post_thumbnail( $post->ID ) ) :\n\t\t$image = wp_get_attachment_image_src( get_post_thu...
php
chosen
[ { "from": "system", "value": "Change support requirement to key" }, { "from": "human", "value": "<?php\n\nnamespace LinkValue\\MobileNotifBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Compiler\\CompilerPassInterface;\nuse Symfony\\Component\\DependencyInj...
php
chosen
[ { "from": "system", "value": "Put js at the end of the `<body>` tag.`\n" }, { "from": "human", "value": "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <link rel=\"shortcut icon\" href...
php
chosen
[ { "from": "system", "value": "Exclude some no longer relevant categories\n" }, { "from": "human", "value": "<?php\n get_header();\n\n if (have_posts()) {\n while (have_posts()) {\n the_post();\n?>\n <div class=\"blogPost\">\n <?php the_content(); ?>\n\n<?php\n if (is_page(...
php
chosen
[ { "from": "system", "value": "Fix bug where public station podcast feed would not display when logged out\n" }, { "from": "human", "value": "<?php\n\nclass FeedsController extends Zend_Controller_Action\n{\n public function stationRssAction()\n {\n $this->view->layout()->disableLayo...
php
chosen
[ { "from": "system", "value": "Use self instead of this\n" }, { "from": "human", "value": "<?php\n\n/**\n * BankwireBundle for Symfony2\n *\n * This Bundle is part of Symfony2 Payment Suite\n *\n * @author Marc Morera <yuhu@mmoreram.com>\n * @package BankwireBundle\n *\n * Marc Morera 2013\n */\n...
php
chosen
[ { "from": "system", "value": "[CS] Remove unused variables passed to closures\n\n" }, { "from": "human", "value": "<?php\n\nnamespace Symfony\\Component\\Form\\Tests\\Fixtures;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Compo...
php
chosen
[ { "from": "system", "value": "Add CorsService to service provider\n" }, { "from": "human", "value": "<?php\n/**\n * CORS middleware service provider\n *\n * @package phpnexus/cors-laravel\n * @copyright Copyright (c) 2016 Mark Prosser\n * @license http://www.apache.org/licenses/LICENSE...
php
chosen
[ { "from": "system", "value": "Use better loading to cut down on DB queries\n" }, { "from": "human", "value": "<?php\n\nnamespace Lchski;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Item extends Model\n{\n protected $fillable = ['title'];\n\n public function links()\n {\n ...
php
chosen
[ { "from": "system", "value": "Add a model for the callback.\n" }, { "from": "human", "value": "<?php\n/**\n * File: facebook.php\n * User: zacharydubois\n * Date: 2016-01-04\n * Time: 20:49\n * Project: Digital-Footprint-Profile\n */" }, { "from": "gpt", "value": "<?php\n/**\n * File...
php
chosen
[ { "from": "system", "value": "Switch to using MySQL Prepared Statements\n" }, { "from": "human", "value": "<?php\n\n\trequire('DB_Config.php');\n\trequire('Encrypt.class.php');\n\t\n\tclass Authenticate {\n\t\t\n\t\tprivate $mysqli;\n\t\t\n\t\t//Get the table structure from DB_Config\n\t\tprivat...
php
chosen
[ { "from": "system", "value": "Load the config value correctly.\n" }, { "from": "human", "value": "<?php namespace Mitch\\LaravelDoctrine\\Console;\n\nuse Illuminate\\Console\\Command;\n\nclass GenerateProxiesCommand extends Command {\n\n protected $name = 'doctrine:generate:proxies';\n pr...
php
chosen
[ { "from": "system", "value": "Move map method of route service provider into base api server route service provider\n" }, { "from": "human", "value": "<?php\n\nnamespace Fuzz\\ApiServer\\Providers;\n\nuse Illuminate\\Foundation\\Support\\Providers\\RouteServiceProvider as ServiceProvider;\n\ncla...
php
chosen
[ { "from": "system", "value": "Improve timing safe comparison function\n\nImprove the timing safe comparison function to better handle cases where input is of different length.\r\n\r\nNote that it is now important to always pass any string that the user can directly control to the second parameter of the fun...
php
chosen
[ { "from": "system", "value": "Fix traits boot/destroy method names\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of Railt package.\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\ndecl...
php
chosen
[ { "from": "system", "value": "Remove exception messages and add equality test" }, { "from": "human", "value": "<?php\n/**\n * UsernameTest.php\n *\n * @copyright 2013 George D. Cooksey, III\n * @license http://www.opensource.org/licenses/mit-license.html MIT License\n */\n\nnamespace VeritasT...
php
chosen
[ { "from": "system", "value": "Fix for redirect after signing up\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\Http\\Requests\\UniversityRegisterRequest;\nuse App\\Http\\Requests;\nuse App\\Http\\Controllers\\Controller;\nuse App\\University;\nuse Illum...
php
chosen
[ { "from": "system", "value": "Test administrative area list feature\n" }, { "from": "human", "value": "<?php\n\nuse Galahad\\LaravelAddressing\\AdministrativeAreaCollection;\nuse Galahad\\LaravelAddressing\\Country;\n\n/**\n * Class AdministrativeAreaCollectionTest\n *\n * @author Junior Grossi ...
php
chosen
[ { "from": "system", "value": "Remove unnecessary variable from SM factory closure ($dbParams)\n" }, { "from": "human", "value": "<?php\nreturn array(\n 'cdli-twostagesignup' => array(\n 'test_database_schema_up' => 'schema_up.mysql.sql',\n 'test_database_schema_down' => 'schem...
php
chosen
[ { "from": "system", "value": "Set kCurrentContext::$ps_vesion = 'ps3' to support dynamic enums in mrss feeds\n\ngit-svn-id: 8a2ccb88241e16c78017770bc38d91d6d5396a5a@63256 6b8eccd3-e8c5-4e7d-8186-e12b5326b719\n" }, { "from": "human", "value": "<?php\r\n$start = microtime(true);\r\nset_time_limit(...
php
chosen
[ { "from": "system", "value": "Change minimimum required PHP version to 5.3.23\n\n- Remove [] array notation\n" }, { "from": "human", "value": "<?php\n/**\n * @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause\n * @copyright Copyright (c) 2014 Zend Technologies USA Inc. (http://w...
php
chosen
[ { "from": "system", "value": "Update WigdetController->register. Put the active widgets in array\n" }, { "from": "human", "value": "<?php\n\nnamespace Controllers;\n\nuse Widgets\\HelloWidget;\n\n/**\n * Widget Controller\n *\n * @author José María Valera Reales\n */\nclass WidgetController exte...
php
chosen
[ { "from": "system", "value": "Switch to a new way of setting the resolver on the validation factory\n\nThis is necessary, because since Laravel 5.2 the validator service provider is\ndeferred. We can't set it once at the beginning. Now it gets set in a callback\nwhenever someone resolves `validator` from th...
php
chosen
[ { "from": "system", "value": "[FrameworkBundle] Fix ClassCacheWarme when classes.php is already warmed\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 informa...
php
chosen
[ { "from": "system", "value": "[fix] Install as disabled by default\n" }, { "from": "human", "value": "<?php\n\nuse Hubzero\\Content\\Migration\\Base;\n\n// No direct access\ndefined('_HZEXEC_') or die();\n\n/**\n * Migration script for adding User - Auto-approve plugin\n **/\nclass Migration2018...
php
chosen
[ { "from": "system", "value": "[FIX] Fix email (as username) validation when login_is_email pref is on\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@59506 b456876b-0849-0410-b77d-98878d47e9d5\n" }, { "from": "human", "value": "<?php \n// (c) Copyright 2002-2016 by authors of the Tiki Wi...
php
chosen
[ { "from": "system", "value": "Use glob instead of scandir" }, { "from": "human", "value": "<?php\n\nclass ModLoader implements ISystemComponent\n{\n \n public function __construct()\n {\n \n $this->loadAllMods ();\n \n }\n \n private function loadAllMods ()...
php
chosen
[ { "from": "system", "value": "Make sure that hidden files are taken into account (e.g. .nojekyll)\n" }, { "from": "human", "value": "<?php\n\nnamespace Couscous\\Module\\Template\\Step;\n\nuse Couscous\\Model\\LazyFile;\nuse Couscous\\Model\\Project;\nuse Couscous\\Step;\nuse Symfony\\Component\...
php
chosen