conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix link integrity no referer tests\n" }, { "from": "human", "value": "<?php\n\nnamespace SimplyTestable\\WorkerBundle\\Tests\\Integration\\Command\\Task\\Perform\\LinkIntegrity;\n\nuse SimplyTestable\\WorkerBundle\\Tests\\Command\\ConsoleCommandBaseTestCase;\n\ncla...
php
chosen
[ { "from": "system", "value": "Add shic for SS3.7 support" }, { "from": "human", "value": "<?php\n\n// If subsites is installed\nif(class_exists('Subsite')) {\n CatalogueProduct::add_extension('SubsiteCatalogueExtension');\n CatalogueCategory::add_extension('SubsiteCatalogueExtension');\n ...
php
chosen
[ { "from": "system", "value": "[ChangelogLinker] Remove extra spaces from message without package\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n\nnamespace Symplify\\ChangelogLinker\\ChangeTree\\Resolver;\n\nuse Nette\\Utils\\Strings;\nuse Symplify\\ChangelogLinker\\Configura...
php
chosen
[ { "from": "system", "value": "Use isset instead of empty\n" }, { "from": "human", "value": "<?php defined('SYSPATH') or die('No direct script access.');\n\nclass MustacheView\n{\n\tprotected $values;\n\tpublic $name;\n\t\n\tpublic function __construct($name)\n\t{\n\t\t$this->name = $name;\n\t}\n...
php
chosen
[ { "from": "system", "value": "Remove from Spaces till implement toggle switch" }, { "from": "human", "value": "<?php\n\nnamespace humhub\\modules\\twitter;\n\nreturn [\n 'id' => 'twitter',\n 'class' => 'humhub\\modules\\twitter\\Module',\n 'namespace' => 'humhub\\modules\\twitter',\n ...
php
chosen
[ { "from": "system", "value": " Rename the first parameter for the compile mthod\n" }, { "from": "human", "value": "<?php\n\nabstract class Media_Compiler {\n\n\t/**\n\t * Add contents to the file specified, while\n\t * also recursively creating the directory the\n\t * file should be located in i...
php
chosen
[ { "from": "system", "value": "Edit a wording of breadcrums.\n\n:)\n" }, { "from": "human", "value": "<?php\n\nuse yii\\helpers\\Html;\n\n/* @var $this yii\\web\\View */\n/* @var $model app\\models\\CttStaticdataDocsources */\n\n$this->title = Yii::t('app/ctt_staticdata_docsource', 'Update Ctt St...
php
chosen
[ { "from": "system", "value": "Remove non-existant src-internal directory from coverage whitelist.\n" }, { "from": "human", "value": "<?php\n\ndeclare (strict_types = 1); // @codeCoverageIgnore\n\nuse Evenement\\EventEmitterInterface;\nuse Peridot\\Console\\Environment;\nuse Peridot\\Reporter\\Co...
php
chosen
[ { "from": "system", "value": "Check if url or not\n" }, { "from": "human", "value": "<?php\n\nnamespace ProjectBundle\\Repository;\n\n/**\n * PlayerRepository\n *\n * This class was generated by the Doctrine ORM. Add your own custom\n * repository methods below.\n */\nclass PlayerRepository exte...
php
chosen
[ { "from": "system", "value": "Remove obsoleted files after upgrade\n" }, { "from": "human", "value": "#!/usr/local/bin/php -f \n<?php\n\t/* upgrade embedded users serial console */\n\trequire_once(\"globals.inc\");\n\trequire_once(\"functions.inc\");\n\trequire_once(\"config.inc\");\n\tif($g['pl...
php
chosen
[ { "from": "system", "value": "Change exception thrown for calling unsupported helper method\n" }, { "from": "human", "value": "<?php\n\nnamespace Mdd\\QueryBuilder\\Conditions;\n\nuse Mdd\\QueryBuilder\\Condition;\n\nabstract class AbstractCondition implements Condition\n{\n public function _...
php
chosen
[ { "from": "system", "value": "Update base controller to laravel 5.2\n" }, { "from": "human", "value": "<?php\n\nnamespace jorenvanhocht\\Blogify\\Controllers\\Admin;\n\nuse Illuminate\\Foundation\\Bus\\DispatchesCommands;\nuse Illuminate\\Routing\\Controller as BaseController;\nuse Illuminate\\F...
php
chosen
[ { "from": "system", "value": "Add custom fields to catalogue item\n" }, { "from": "human", "value": "<?php\n\nnamespace Sellsy\\Models\\Catalogue;\n\n/**\n * Class Item\n * @package Sellsy\\Models\\Catalogue\n */\nclass Item\n{\n /**\n * @var int\n * @copy\n */\n public $id;\n\...
php
chosen
[ { "from": "system", "value": "Prepare for Yii2 2.0 RC" }, { "from": "human", "value": "<?php\nnamespace gilek\\gtreetable;\n\nuse yii\\web\\AssetBundle;\n\nclass GTreeTableAsset extends AssetBundle {\n /**\n * @inheritdoc\n */\n public $sourcePath = '@gilek/gtreetable/gtreetable';\...
php
chosen
[ { "from": "system", "value": "Use LinkRenderer::getLinkRenderer() instead of Linker::linkKnown()\n\nLinker::linkKnown() has deprecated since 1.28.\n" }, { "from": "human", "value": "<?php\nnamespace Avatar;\nclass UploadLogFormatter extends \\LogFormatter {\n\n\tpublic function getActionLinks() ...
php
chosen
[ { "from": "system", "value": "Set required in files related\n" }, { "from": "human", "value": "<?php\nclass RelatedFileForm extends BaseForm\n{\n public function configure()\n {\n $this->widgetSchema['filenames'] = new sfWidgetFormInputFile();\n $this->widgetSchema['filenames']->setLabel...
php
chosen
[ { "from": "system", "value": "Fix stats files language issues\n- If you used forced_lang stats files were in this language which is bad.\n- Force english!\n" }, { "from": "human", "value": "<?php\n\t\n// --------------------------------------------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "BB-4056: Add or adjust implementation of the SKU filters from the grid. Both use StringFilter in the ORM version\n- namespace fix\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\SearchBundle;\n\nuse Oro\\Bundle\\SearchBundle\\DependencyInjection\\...
php
chosen
[ { "from": "system", "value": "Remove unused php open and close tags" }, { "from": "human", "value": "<?php\nerror_reporting(E_ALL & ~E_NOTICE);\nforeach (glob(\"functions/*.php\") as $filename) {\n include $filename;\n}\n\nif ( isset($_GET['host']) && !empty($_GET['host'])) {\n $data = [];\n ...
php
chosen
[ { "from": "system", "value": "Fix javascript new directory location (src).\n" }, { "from": "human", "value": "<?php\n/**\n * @copyright Copyright &copy; A.F.Schuurman, 2015\n * @package yii2-add-to-homescreen\n * @subpackage yii2-widget-switchinput\n * @version 1.0.0\n */\n\nnamespace AddToHomes...
php
chosen
[ { "from": "system", "value": "[TaxationBundle] Add event subscriber AddCodeFormSubscriber to TaxRateType and TaxCategoryType\n[TaxationBundle] Add validation for filed 'code' from TaxRate and TaxCategory\n[Taxation] Add field 'code' to TaxCategory and TaxRate, TaxCategoryInterface and TaxRateInterface exte...
php
chosen
[ { "from": "system", "value": "Handle a non-existent field in an array\n\nThis was giving me an error, since I had several records for which a particular field was not defined. Since I use a schema-less DB (MongoDB), this field doesn't even exist with a null value. `data_get` performs an `array_key_exists`...
php
chosen
[ { "from": "system", "value": "Convert E_ERRORS into exceptions in unit tests\n" }, { "from": "human", "value": "<?php\n\nrequire __DIR__ . '/../vendor/autoload.php';\n" }, { "from": "gpt", "value": "<?php\n\nrequire __DIR__ . '/../vendor/autoload.php';\n\n// Throw an exception when E...
php
chosen
[ { "from": "system", "value": "Add comments to auth example\n" }, { "from": "human", "value": "<?php\n\nnamespace Tyrell;\n\nuse Tonic\\Resource,\n Tonic\\Response,\n Tonic\\UnauthorizedException;\n\n/**\n * Simple HTTP authentication example.\n *\n * The condition annotation @secure maps t...
php
chosen
[ { "from": "system", "value": "Update Sami theme as default.\n" }, { "from": "human", "value": "<?php\n\nuse Sami\\Sami;\nuse Sami\\Version\\GitVersionCollection;\nuse Symfony\\Component\\Finder\\Finder;\n\n$iterator = Finder::create()\n ->files()\n ->name('*.php')\n ->exclude('Resources...
php
chosen
[ { "from": "system", "value": "Set the default chunk size back to 500." }, { "from": "human", "value": "<?php\n\nreturn array(\n\n\t'path' => '/database/seeds',\n 'chunk_size' => 200 // Maximum number of rows per insert statement\n\n);\n" }, { "from": "gpt", "value": "<?php\n\nretu...
php
chosen
[ { "from": "system", "value": "Update test_amp_is_canonical() with new naming.\n" }, { "from": "human", "value": "<?php\n/**\n * Tests for amp.php.\n *\n * @package AMP\n */\n\n/**\n * Tests for amp.php.\n */\nclass Test_AMP extends WP_UnitTestCase {\n\n\t/**\n\t * Tear down and clean up.\n\t */\...
php
chosen
[ { "from": "system", "value": "Add comment to empty test to keep the mock from crashing\n" }, { "from": "human", "value": "<?php\n\nnamespace Spec\\Runner\\Cli\\Files;\n\nclass DescribeFoo extends \\PHPSpec\\Context\n{\n function itDoesSomething()\n {\n \n }\n}" }, { "from...
php
chosen
[ { "from": "system", "value": "Use ES5 function syntax in script\n" }, { "from": "human", "value": "@extends('layouts.main')\n\n@section('title')\n Payment\n@endsection\n\n@section('breadcrumb')\n\n <ol class=\"breadcrumb\">\n <li><a href=\"/shop\">Shop</a></li>\n <li><a href=\"...
php
chosen
[ { "from": "system", "value": "Set the default IPP URI\n" }, { "from": "human", "value": "<?php\nnamespace QuickBooksOnline\\API\\Core\\Configuration;\n\n/**\n* Base Urls for QBO, QBD and IPP\n* -----------------\n* Remove QBD part from this and the sdk.config File\n* Feb.7th.2017 @Hao\n* -------...
php
chosen
[ { "from": "system", "value": "Add optional selector argument support.\n" }, { "from": "human", "value": "<?php\n\nnamespace ProcessWire\\GraphQL\\Field\\Page;\n\nuse Youshido\\GraphQL\\Field\\AbstractField;\nuse Youshido\\GraphQL\\Execution\\ResolveInfo;\nuse ProcessWire\\GraphQL\\Type\\Object\\...
php
chosen
[ { "from": "system", "value": "Add sort by downlaods for hex accuracy\n" }, { "from": "human", "value": "<?php\nnamespace WillFarrell\\AlfredPkgMan;\n\nrequire_once('Cache.php');\nrequire_once('Repo.php');\n\nclass Hex extends Repo\n{\n protected $id = 'hex';\n protected $kind ...
php
chosen
[ { "from": "system", "value": "Include the fetching of the capsule, allow the truncats to be customizable\n" }, { "from": "human", "value": "<?php\nuse Laracasts\\Integrated\\Extensions\\Goutte as IntegrationTest;\n\nuse Illuminate\\Database\\Capsule\\Manager as Capsule;\n\ntrait EloquentFunction...
php
chosen
[ { "from": "system", "value": "Remove page title from frontpage\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| HTML::title() macro\n|---...
php
chosen
[ { "from": "system", "value": "Improve English for checkbox label\n" }, { "from": "human", "value": "<?php\nnamespace MarkMx\\SkelBundle\\Form\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\Optio...
php
chosen
[ { "from": "system", "value": "Add @covers annotation to test how coverage report changes.\n" }, { "from": "human", "value": "<?php\n\nuse PreSQL\\PDO;\n\nclass PDOTest extends PHPUnit_Framework_TestCase\n{\n public function testIsPreSQLPDOVersionReturnedCorrectly()\n {\n $this->asse...
php
chosen
[ { "from": "system", "value": "Add texte to description to producr\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"utf-8\">\n <title>Nos Bonbons</title>\n <link rel=\"stylesheet\" href=\"css/main.css\">\n </head>\n <body>\n\n\n <?php\n inclu...
php
chosen
[ { "from": "system", "value": "Split preparating of context into separate method when rendering pages\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace MattyG\\BBStatic\\Content\\Page;\n\nuse MattyG\\BBStatic\\BBCode\\NeedsBBCodeRendererTrait;\nuse MattyG\\BBStatic\\...
php
chosen
[ { "from": "system", "value": "Clear queued changes after they are retrieved\n\nThis prevents persisting the same changes twice in the event store\n" }, { "from": "human", "value": "<?php\n\nnamespace Ob\\Hex\\Domain;\n\nabstract class EventSourcedEntity\n{\n protected $changes = [];\n\n pu...
php
chosen
[ { "from": "system", "value": "Add key path config to example settings file\n\n" }, { "from": "human", "value": "<?php\n\n// Maximum number of posts to show on a journal page\n$postsVisibleOnPage = 5;\n\n// Whether in production mode or not\n$isProduction = false;\n\n// Calculate database file na...
php
chosen
[ { "from": "system", "value": "Implement comparison method to check if an attribute is null\n" }, { "from": "human", "value": "<?php\n\nnamespace PhpAbac\\Comparison;\n\nclass BooleanComparison extends AbstractComparison\n{\n /**\n * @param bool $expected\n * @param bool $value\n *...
php
chosen
[ { "from": "system", "value": "Check only the files that are staged for commit\n" }, { "from": "human", "value": "<?php\n\nnamespace GrumPHP\\Locator;\n\nuse Gitonomy\\Git\\Diff\\File;\nuse Gitonomy\\Git\\Repository;\nuse GrumPHP\\Collection\\FilesCollection;\nuse SplFileInfo;\n\n/**\n * Class Gi...
php
chosen
[ { "from": "system", "value": "Add register method, change publishes tag.\n" }, { "from": "human", "value": "<?php\n\nnamespace Samrap\\Validation;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass ValidationServiceProvider extends ServiceProvider\n{\n /**\n * Perform post-registration...
php
chosen
[ { "from": "system", "value": "Add in JSON response format" }, { "from": "human", "value": "<?php\n\nrequire_once('../Config/DBConnection.php');\n\n//enable cross origin resources sharing (CORS)\nif (isset($_SERVER['HTTP_ORIGIN'])) {\n header(\"Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIG...
php
chosen
[ { "from": "system", "value": "Use login form to dump out login call.\n" }, { "from": "human", "value": "<?php\n\nclass SessionsController extends \\BaseController {\n\n\n /**\n * Show the form for creating a new resource.\n *\n * @return Response\n */\n public function create()\n {\n ...
php
chosen
[ { "from": "system", "value": "Add missing class property declarations\n" }, { "from": "human", "value": "<?php\n\nnamespace RIPS\\APIConnector;\n\nuse GuzzleHttp\\Client;\nuse RIPS\\APIConnector\\Requests\\UserRequests;\nuse RIPS\\APIConnector\\Requests\\OrgRequests;\nuse RIPS\\APIConnector\\Req...
php
chosen
[ { "from": "system", "value": "Add File uploaded check or create API.\n" }, { "from": "human", "value": "<?php\n\nnamespace Zhiyi\\Plus\\Http\\Controllers\\APIs\\V2;\n\nuse Illuminate\\Http\\Request;\nuse Zhiyi\\Plus\\Models\\File as FileModel;\nuse Zhiyi\\Plus\\Http\\Controllers\\Controller;\nus...
php
chosen
[ { "from": "system", "value": "Add plaintext error output for CLI\n" }, { "from": "human", "value": "<?php\nnamespace Concrete\\Core\\Error\\Provider;\n\nuse Concrete\\Core\\Error\\Handler\\ErrorHandler;\nuse Concrete\\Core\\Error\\Handler\\JsonErrorHandler;\nuse Concrete\\Core\\Foundation\\Servi...
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": "Add a method to add the csrf token to the url in tests\n" }, { "from": "human", "value": "<?php\n\nnamespace Backend\\Core\\Tests;\n\nuse Common\\WebTestCase;\nuse Symfony\\Bundle\\FrameworkBundle\\Client;\n\nabstract class BackendWebTestCase extends WebTestCase\n{\...
php
chosen
[ { "from": "system", "value": "Add extra method so we know what JS files to load\n" }, { "from": "human", "value": "<?php\n\nnamespace Common\\BlockEditor\\Blocks;\n\nuse Frontend\\Core\\Engine\\TwigTemplate;\n\nabstract class EditorBlock\n{\n /** @var TwigTemplate */\n private $template;\n...
php
chosen
[ { "from": "system", "value": "Add geo property to place type\n" }, { "from": "human", "value": "<?php\n\nnamespace JsonLd\\ContextTypes;\n\nclass Place extends Thing\n{\n /**\n * Property structure\n *\n * @var array\n */\n protected $extendedStructure = [\n 'address...
php
chosen
[ { "from": "system", "value": "Handle newlines in proposed json\n" }, { "from": "human", "value": "<?php require_once(\"utilities.php\");\n\n$file = fopen(\"cached/proposed.json\",\"w\");\n$count = 0;\n$result = doUnprotectedQuery(\"SELECT pv_id, pv_name, pv_lat, pv_lng, pv_images, pv_population,...
php
chosen
[ { "from": "system", "value": "Add test to review the default values with no options\n\n" }, { "from": "human", "value": "<?php\n\nnamespace Sirius\\Validation\\Rule;\n\nuse Sirius\\Validation\\Rule\\GreaterThan as Rule;\n\nclass GreaterThanTest extends \\PHPUnit_Framework_TestCase\n{\n\n func...
php
chosen
[ { "from": "system", "value": "Test the factory a bit\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests;\n\nuse Rosio\\EncryptedCookie;\nuse Rosio\\EncryptedCookie\\CookieFactory;\nuse Rosio\\EncryptedCookie\\CryptoSystem\\AES_SHA1;\n\nclass CookieFactoryTest extends \\PHPUnit_Framework...
php
chosen
[ { "from": "system", "value": "Define the database schema in test.\n" }, { "from": "human", "value": "<?php\nclass ScribbleFixture extends CakeTestFixture {\n\n\tpublic $useDbConfig = 'test';\n\n\tpublic $import = 'Scribble';\n\n\tpublic $records = array(\n\t\tarray('id' => 1, 'title' => 'Test Sc...
php
chosen
[ { "from": "system", "value": "Delete null values from fixed values\n" }, { "from": "human", "value": "<?php\n\nnamespace ViewerBundle\\Form\\Type;\n\nuse Core\\CoreBundle\\Form\\Type\\GenericEntityType;\nuse Core\\ProjectBundle\\Component\\Helper\\ProjectHelper;\nuse Symfony\\Bridge\\Doctrine\\R...
php
chosen
[ { "from": "system", "value": "Add some more linespacing to make output easier to read\n" }, { "from": "human", "value": "<?php\nset_time_limit(0);\n\n// Configuration\ninclude 'config/config.php';\n\n// Version\ninclude 'functions/getVersion.php';\ninclude 'functions/checkVersion.php';\n\necho \...
php
chosen
[ { "from": "system", "value": "Move \"you can close this window\" to newline\n\nSigned-off-by: Daniel Kesselberg <1d6e1cf70ec6f9ab28d3ea4b27a49a77654d370e@danielkesselberg.de>\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n/**\n * @copyright Copyright (c) 2019, Roeland Jago D...
php
chosen
[ { "from": "system", "value": "Update command to use new handle method\n" }, { "from": "human", "value": "<?php\n\nnamespace SebastiaanLuca\\Migrations\\Commands;\n\nuse Illuminate\\Database\\Console\\Migrations\\MigrateMakeCommand;\nuse Illuminate\\Support\\Composer;\nuse SebastiaanLuca\\Migrati...
php
chosen
[ { "from": "system", "value": "Add sibling `vendor` folder location\n\nFor the development use case where all repositories are checked out into a flat folder hierarchy (mirroring the GitHub org), the `vendor` folder will end up being a sibling to the `wp-cli` framework folder.\n\nThe bootstrapping code needs...
php
chosen
[ { "from": "system", "value": "Use correct quotes for exception message\n" }, { "from": "human", "value": "<?php\nclass Kwf_Component_MasterLayout_Legacy extends Kwf_Component_MasterLayout_Abstract\n{\n public function getContexts(Kwf_Component_Data $data)\n {\n return null;\n }\n...
php
chosen
[ { "from": "system", "value": "Switch route to use dependency injection\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|--------------------------------------------------------------------------\n|...
php
chosen
[ { "from": "system", "value": "Add simple require support to base controller\n" }, { "from": "human", "value": "<?php\n\nnamespace CuteControllers\\Base;\n\nabstract class Controller\n{\n protected $request;\n\n public function __construct(\\CuteControllers\\Request $request)\n {\n ...
php
chosen
[ { "from": "system", "value": "Fix unchecked function call in thread datawriter\n" }, { "from": "human", "value": "<?php\n\nclass SV_WordCountSearch_XenForo_DataWriter_Discussion_Thread extends XFCP_SV_WordCountSearch_XenForo_DataWriter_Discussion_Thread\n{\n protected function _getFields()\n ...
php
chosen
[ { "from": "system", "value": "Fix closure for team filteR\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Nova\\Filters;\n\nuse App\\Team;\nuse Illuminate\\Http\\Request;\nuse Laravel\\Nova\\Filters\\Filter;\n\nclass UserTeam extends Filter\n{\n /**\n * The filter's component.\...
php
chosen
[ { "from": "system", "value": "Fix PHP 7.1 related failures\n\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file tha...
php
chosen
[ { "from": "system", "value": "Complete cyclic rotation on a given array.\n" }, { "from": "human", "value": "<?php\nclass CyclicRotation\n{\n private $array;\n private $rotation;\n\n public function __construct($array, $rotation) {\n $this->array = $array;\n $this->rotation...
php
chosen
[ { "from": "system", "value": "Remove reference to container variable\n" }, { "from": "human", "value": "<?php\n\nnamespace Noback\\PHPUnitTestServiceContainer\\PHPUnit;\n\nuse Noback\\PHPUnitTestServiceContainer\\ServiceContainer;\nuse Noback\\PHPUnitTestServiceContainer\\ServiceContainerInterfa...
php
chosen
[ { "from": "system", "value": "Update Address for API v2.01\n" }, { "from": "human", "value": "<?php\n$UserId = $_SESSION[\"MangoPayDemo\"][\"UserLegal\"];\n$BankAccount = new \\MangoPay\\BankAccount();\n$BankAccount->Type = \"IBAN\";\n$BankAccount->Details = new MangoPay\\BankAccountDetailsIBAN(...
php
chosen
[ { "from": "system", "value": "Create Season Admin roles for each season seeded\n" }, { "from": "human", "value": "<?php\n\nuse App\\Models\\Season;\nuse Illuminate\\Database\\Seeder;\n\nclass SeasonsTableSeeder extends Seeder\n{\n public function run(): void\n {\n factory(Season::cl...
php
chosen
[ { "from": "system", "value": "Move along, nothing to see here.\n" }, { "from": "human", "value": "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"viewport\" content=\"width=...
php
chosen
[ { "from": "system", "value": "Add logging to CLI controller\n" }, { "from": "human", "value": "<?php\nnamespace Tev\\TevMailchimp\\Command;\n\nuse Exception;\nuse TYPO3\\CMS\\Extbase\\Mvc\\Controller\\CommandController;\nuse TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManagerInterface;\nuse...
php
chosen
[ { "from": "system", "value": "Update the path and the url " }, { "from": "human", "value": "<?php\n/*\n * This file is part of the AlphaLemonThemeEngineBundle and it is distributed\n * under the MIT License. To use this bundle you must leave\n * intact this copyright notice.\n *\n * Copyright (c...
php
chosen
[ { "from": "system", "value": "Check getRootNode method exists for older Symfony versions\n" }, { "from": "human", "value": "<?php\n\nnamespace AshleyDawson\\SimplePaginationBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\...
php
chosen
[ { "from": "system", "value": "Tweak PHPDocs in the extension configuration files\n\n" }, { "from": "human", "value": "<?php\n\nnamespace Symfony\\Bundle\\DoctrineMigrationsBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\n\n/**\n * DoctrineMigrati...
php
chosen
[ { "from": "system", "value": "Clean up coverage in Endpoint\n" }, { "from": "human", "value": "<?php\n\nnamespace zaporylie\\Vipps\\Tests\\Unit;\n\nuse Eloquent\\Enumeration\\Exception\\UndefinedMemberException;\nuse PHPUnit\\Framework\\TestCase;\nuse Psr\\Http\\Message\\UriInterface;\nuse zapor...
php
chosen
[ { "from": "system", "value": "Add current year to footer copyright\n" }, { "from": "human", "value": "<footer class=\"footer-wrapper\">\n <div class=\"container\">\n <div class=\"row\">\n <ul class=\"footer-text\">\n <li class=\"footer-copyright\"><strong>&cop...
php
chosen
[ { "from": "system", "value": "Fix deprecated symfony > 4.2\n" }, { "from": "human", "value": "<?php\n\nnamespace Coosos\\UserRoleTypeBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterfa...
php
chosen
[ { "from": "system", "value": "Change DB Pointer for use Mysql 5.6.11\n" }, { "from": "human", "value": "<?php\n\nreturn [\n 'class' => 'yii\\db\\Connection',\n // 'dsn' => 'oci:host=103.13.28.239;dbname=103.13.28.239/XE;charset=UTF8',\n 'dsn' => 'mysql:host=103.253.75.56;dbname=unitedla...
php
chosen
[ { "from": "system", "value": "Use ::class instead of strings\n" }, { "from": "human", "value": "<?php\n\nnamespace Concrete\\Core\\Site;\n\nuse Concrete\\Core\\Foundation\\Service\\Provider;\n\nclass ServiceProvider extends Provider\n{\n public function register()\n {\n $this->app->...
php
chosen
[ { "from": "system", "value": "Allow specifying the permission for dev/check\n" }, { "from": "human", "value": "<?php\n\nclass DevCheckController extends Controller {\n\n\tpublic static $allowed_actions = array(\n\t\t'index'\n\t);\n\n\tfunction index($request) {\n\t\t$suiteName = $request->param(...
php
chosen
[ { "from": "system", "value": "Mark disabled users as \"closed documents\" in search\n\nTest Plan:\n $ ./reindex_all_users.php\n\nSearch for me in open documents.\nSearch for @epriestley in open documents.\n\nReviewers: epriestley\n\nReviewed By: epriestley\n\nCC: aran, Korvin\n\nDifferential Revision: http...
php
chosen
[ { "from": "system", "value": "Update testing and add a couple more\n" }, { "from": "human", "value": "<?php\n\nuse Collective\\Html\\HtmlBuilder;\nuse Illuminate\\Http\\Request;\nuse Illuminate\\Routing\\RouteCollection;\nuse Illuminate\\Routing\\UrlGenerator;\n\nuse Noylecorp\\Recaptcha\\Recapt...
php
chosen
[ { "from": "system", "value": "Use `set` not `add` after the delete\n\nWe want the `add` action to be _synchronous_. That means that if the\naction fails anywhere we consider it a failure.\n\nAfterwards, we want to do an _asynchronous_ `set` action. It is okay if\nsome hosts do not recieve the set, they will...
php
chosen
[ { "from": "system", "value": "Throw exception if readline extension is not loaded\n" }, { "from": "human", "value": "<?php\n\nclass CM_InputStream_Readline extends CM_InputStream_Abstract {\n\n\tpublic function __construct() {\n\t\t$this->_outputStream = new CM_OutputStream_Stream_StandardError(...
php
chosen
[ { "from": "system", "value": "Use the new API system to set some basic configurations.\n" }, { "from": "human", "value": "<?php\n /*\n The MIT License (MIT)\n\n Copyright (c) 2014 Julian Xhokaxhiu\n\n Permission is hereby granted, free of charge, to any person obtaining a...
php
chosen
[ { "from": "system", "value": "Test commit from pauls Atom\n" }, { "from": "human", "value": "<?php include('plugin/page_declaration.php');?>\n\t<title>PAT Locker</title>\n</head>\n<body>\n\t<div style=\"width:950px; margin: 0 auto;\">\n\t\t\t<h1 class=\"Titillium\">PAT Locker:</h1>\n\t\t\t<h2 cl...
php
chosen
[ { "from": "system", "value": "Create instance of web service\n" }, { "from": "human", "value": "<?php\n\nrequire_once 'config.inc.php';\nrequire_once 'MailManagerWebService.php';\n\n" }, { "from": "gpt", "value": "<?php\n\nrequire_once 'config.inc.php';\nrequire_once 'MailManagerWebS...
php
chosen
[ { "from": "system", "value": "Set record date on entity when persisting transaction\n" }, { "from": "human", "value": "<?php\n\nnamespace PerFi\\PerFiBundle\\Repository;\n\nuse Doctrine\\ORM\\EntityRepository;\nuse PerFi\\Domain\\Transaction\\Transaction;\nuse PerFi\\Domain\\Transaction\\Transac...
php
chosen
[ { "from": "system", "value": "Replace breadcrumb data-vocabulary.org microdata with schema.org\n" }, { "from": "human", "value": "<?php\n$navItems = $controller->getNavItems(true);\n?>\n\n<?php if (count($navItems) > 1): ?>\n <nav aria-label=\"breadcrumb\">\n <ol class=\"breadcrumb\">\...
php
chosen
[ { "from": "system", "value": "Move callback URL to .env\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n\t/*\n\t|--------------------------------------------------------------------------\n\t| Third Party Services\n\t|----------------------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Add errorhandling for testforblock parser.\n" }, { "from": "human", "value": "<?php\n\nnamespace gries\\MControl\\Server\\Command\\ResponseParser;\n\nclass TestForBlockParser implements ResponseParserInterface\n{\n\n /**\n * Get the Server response\n *\n ...
php
chosen
[ { "from": "system", "value": "Add simple seeder for Ads\n" }, { "from": "human", "value": "<?php\n\nclass DatabaseSeeder extends Seeder {\n\n\t/**\n\t * Run the database seeds.\n\t *\n\t * @return void\n\t */\n\tpublic function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t$this->call('CategoriesT...
php
chosen
[ { "from": "system", "value": "Use improved humanSize() method to convert bytes\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of the Krystal Framework\n * \n * Copyright (c) No Global State Lab\n * \n * For the full copyright and license information, please view\n * the li...
php
chosen
[ { "from": "system", "value": "Add extension to DI configuration\n" }, { "from": "human", "value": "<?php\n\nnamespace DMS\\Bundle\\TwigExtensionBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\Configura...
php
chosen
[ { "from": "system", "value": "Use correct method, and rename variable.\n" }, { "from": "human", "value": "<?php\n\nnamespace Pippin\\Transport;\n\nuse Psr\\Http\\Message\\RequestInterface;\n\nuse RuntimeException;\n\nclass cURLTransport implements TransportInterface {\n\n\tprivate $curl;\n\n\tpu...
php
chosen
[ { "from": "system", "value": "Remove test data from calendar creation\n" }, { "from": "human", "value": "<?php\n/**\n * Copyright (c) 2011 Bart Visscher <bartv@thisnet.nl>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n...
php
chosen
[ { "from": "system", "value": "Change default downloader to cURL\n" }, { "from": "human", "value": "<?php\n\nreturn [\n 'page_sleep' => 10,\n 'image_sleep' => 3,\n\n 'downloader' => 'normal', // normal or curl\n];" }, { "from": "gpt", "value": "<?php\n\nreturn [\n 'page_s...
php
chosen
[ { "from": "system", "value": "Remove @package & restart travis\n" }, { "from": "human", "value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/zf2 for the canonical source repository\n * @copyright Copyright (c) 2005-2013 Zend Tech...
php
chosen