conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add an example seeder shell\n"
},
{
"from": "gpt",
"value": "<?php\n\nApp::uses('SeederShell', 'FakeSeeder.Console/Command');\n\n/**\n * Example Seeder Suite\n *\n * Can be used to create custom suites of seeders, to logically group them.\n * Must be placed in app/Co... | php | chosen |
[
{
"from": "human",
"value": "Add unit test for DataTransformerManager\n\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * @copyright 2018 Vladimir Jimenez\n * @license https://github.com/allejo/stakx/blob/master/LICENSE.md MIT\n */\n\nnamespace allejo\\stakx\\Test\\DataTransformer;\n\nuse alle... | php | chosen |
[
{
"from": "human",
"value": "Correct time and date and not that 12h BS\n"
},
{
"from": "gpt",
"value": "<?php if (!defined('APPLICATION')) exit();\n$Definition['Date.DefaultFormat'] = '%e %B, %Y';\n$Definition['Date.DefaultDayFormat'] = '%e %B, %Y';\n$Definition['Date.DefaultYearFormat'] = '%e %... | php | chosen |
[
{
"from": "human",
"value": "Add test for node collection\n"
},
{
"from": "gpt",
"value": "<?php declare(strict_types=1);\n\nnamespace Tests\\Becklyn\\RouteTreeBundle\\Builder;\n\nuse Becklyn\\RouteTreeBundle\\Builder\\NodeCollection;\nuse Becklyn\\RouteTreeBundle\\Node\\NodeFactory;\nuse Beckly... | php | chosen |
[
{
"from": "system",
"value": "Fix CI for php 5.3\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-2014 Zend Technologies USA I... | php | chosen |
[
{
"from": "human",
"value": "Add migration for server metrics\n"
},
{
"from": "gpt",
"value": "<?php\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Capsule\\Manager as Capsule;\n\nclass Servermetrics extends Migration\n{... | php | chosen |
[
{
"from": "human",
"value": "Add map and mapInverse tests\n"
},
{
"from": "gpt",
"value": "<?php\n/*\n * This file is part of the Pentothal package.\n *\n * (c) Giuseppe Mazzapica <giuseppe.mazzapica@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * f... | php | chosen |
[
{
"from": "human",
"value": "Add machine_id column to gendata table\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddMachineIdToGendataTable extends Migr... | php | chosen |
[
{
"from": "human",
"value": "Add tests for the content extentions export theme templates page\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Backend\\Modules\\ContentBlocks\\Tests\\Action;\n\nuse Common\\WebTestCase;\n\nclass ExportThemeTemplatesTest extends WebTestCase\n{\n public funct... | php | chosen |
[
{
"from": "human",
"value": "Add first setup for a reference implementation\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @package File\n */\n\nnamespace My\\Space;\n\ndefine(\"GLOBAL_CONSTANT_DEFINE\", 'test');\n\n/**\n * @package Constant\n */\ndefine(\"Namespaced\\\\GLOBAL_CONSTANT_DEFINE\"... | php | chosen |
[
{
"from": "human",
"value": "Add task to reset Globally Enabled element settings\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass ResetGloballyEnabledElements extends BuildTask\n{\n\n protected $title = 'Reset Globally Enabled elements';\n\n protected $description = 'Reset individual elemen... | php | chosen |
[
{
"from": "human",
"value": "Add a basic test for AbstractConstraint\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Tests\\Chromabits\\Nucleus\\Meditation\\Constraints;\n\nuse Chromabits\\Nucleus\\Meditation\\Constraints\\AbstractConstraint;\nuse Chromabits\\Nucleus\\Meditation\\Primitives\... | php | chosen |
[
{
"from": "human",
"value": "Create eloquent class finder from declared classes.\n"
},
{
"from": "gpt",
"value": "<?php namespace Reshadman\\EloquentFaster;\nuse Illuminate\\Database\\Eloquent\\Model;\n\n/**\n * @property string hello\n */\nclass EloquentClassFinder {\n\n /**\n * Finds el... | php | chosen |
[
{
"from": "human",
"value": "Create a new custom file system iterator\n\nA lightweight file system recursive iterator intended to replace Symfony's\nFinder component, which can behave incredibly slow at times.\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * @copyright 2016 Vladimir Jimenez\n *... | php | chosen |
[
{
"from": "human",
"value": "Add functional tests for the Archive action.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Frontend\\Modules\\Blog\\Tests\\Action;\n\nuse Common\\WebTestCase;\n\nclass ArchiveTest extends WebTestCase\n{\n public function testArchiveContainsBlogPosts()\n {... | php | chosen |
[
{
"from": "human",
"value": "Implement skeleton for recipe API\n\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass ApiModule {\n\n private $db = NULL;\n\n //============================================================================\n // Constructor.\n //======================================... | php | chosen |
[
{
"from": "system",
"value": "Add type hinting to sign-in event."
},
{
"from": "human",
"value": "<?php\nnamespace Drupal\\auth0\\Event;\n\nuse Symfony\\Component\\EventDispatcher\\Event;\n\n/**\n * User signin event.\n */\nclass Auth0UserSigninEvent extends Event {\n \n const NAME = 'auth0.si... | php | chosen |
[
{
"from": "human",
"value": "Update log table info column to mediumtext\n"
},
{
"from": "gpt",
"value": "<?php\ndeclare(strict_types=1);\n\nuse Phinx\\Db\\Adapter\\MysqlAdapter;\nuse Phinx\\Migration\\AbstractMigration;\n\nfinal class LogInfoMediumText extends AbstractMigration\n{\n public fu... | php | chosen |
[
{
"from": "human",
"value": "Add custom xml decoder example\n"
},
{
"from": "gpt",
"value": "<?php\nrequire __DIR__ . '/../vendor/autoload.php';\n\nuse \\Curl\\Curl;\n\n$my_xml_decoder = function ($response) {\n $xml_obj = @simplexml_load_string($response);\n if ($xml_obj !== false) {\n ... | php | chosen |
[
{
"from": "human",
"value": "Add Create Directories console task\n"
},
{
"from": "gpt",
"value": "<?php namespace Aedart\\Scaffold\\Tasks;\n\nuse Aedart\\Scaffold\\Contracts\\Collections\\Directories;\nuse Aedart\\Scaffold\\Contracts\\Handlers\\DirectoriesHandler;\nuse Aedart\\Scaffold\\Resolver... | php | chosen |
[
{
"from": "human",
"value": "Add Feedback manage permission to EAS\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse App\\Permission;\nuse App\\Role;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddFeedbackManagePermissionToEas extends Migration\n{\n /**\n * Run the migrations.\... | php | chosen |
[
{
"from": "human",
"value": "Send Data to a Kinesis Delivery Stream\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n *\n * This file is licensed under the Apache License, Version 2.0 (the \"License\").\n * You may not ... | php | chosen |
[
{
"from": "human",
"value": "Test for file system virtualizatio\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse NewUp\\Support\\Testing\\FilesystemVirtualization\\FilesystemVirtualization;\nuse org\\bovigo\\vfs\\vfsStreamDirectory;\nuse org\\bovigo\\vfs\\vfsStream;\n\nclass FilesystemVirtualizatio... | php | chosen |
[
{
"from": "human",
"value": "Add custom iterator class for returning Day objects from DatePeriod"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace UNL\\UCBCN\\Frontend;\n\nclass DayIterator extends \\IteratorIterator\n{\n protected $calendar;\n \n public function __construct(\\DatePeri... | php | chosen |
[
{
"from": "system",
"value": "Fix typo error.\nTypo on copyright comment.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the Bruery Platform.\n *\n * (c) Viktore Zara <viktore.zara@gmail.com>\n * (c) Mell Zamora <mellzamora@outlook.com>\n *\n * Copyright (c) 2016. For t... | php | chosen |
[
{
"from": "human",
"value": "Simplify merging of any pre-populated data files, excluding print control information\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass MergePrepop\n{\n\tprivate $ignore\t= array('propertymapping', 'property', 'object', 'processors', 'settings');\n\tprivate $added\t= a... | php | chosen |
[
{
"from": "human",
"value": "Add php file for testing\n"
},
{
"from": "gpt",
"value": "<?php\n\t// test data\n\t\tif ($data = file_get_contents(\"php://input\")) {\n\t\t\t$obj = json_decode($data);\n\t\t\theader('Content-type: application/json');\n\t\t\tif ($obj->list == true) {\n\t\t\t\t// test... | php | chosen |
[
{
"from": "human",
"value": "Complete map function unit tests.\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Mimic\\Functional as F;\n\n/**\n * Unit Test for map Mimic library function.\n *\n * @since 0.1.0\n *\n * @todo Need to use QuickTest library.\n */\nclass MapFuncTest extends PHPUnit_Fram... | php | chosen |
[
{
"from": "human",
"value": "Add test to create a PublicDashboard project, so that CMake dashboards running on the same machine can submit to a localhost CDash.\n"
},
{
"from": "gpt",
"value": "<?php\n// kwtest library\nrequire_once('kwtest/kw_web_tester.php');\nrequire_once('kwtest/kw_db.php');... | php | chosen |
[
{
"from": "human",
"value": "Add tests for accessing Favorites controller\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace App\\Test\\TestCase\\Controller;\n\nuse App\\Test\\TestCase\\Controller\\TatoebaControllerTestTrait;\nuse Cake\\Core\\Configure;\nuse Cake\\TestSuite\\IntegrationTestCase;\... | php | chosen |
[
{
"from": "human",
"value": "Add flatten single function test suite.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Mimic\\Test;\n\nuse PHPUnit_Framework_TestCase;\nuse Mimic\\Functional as F;\n\nuse ArrayIterator;\n\n/**\n * Unit Test for flattenSingle Mimic library function.\n *\n * @sinc... | php | chosen |
[
{
"from": "human",
"value": "Add script to remove duplicate mobile fields.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Script to unset duplicate mobile numbers (keeping only the most recently logged in).\n *\n * to run:\n * drush --script-path=../scripts/ php-script unset-duplicate-mobiles.p... | php | chosen |
[
{
"from": "human",
"value": "Implement bare CreatePostCommand and Handler\n\nNo functionality as of yet just bare skeleton classes with minimum implementation to ensure it works\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Broadway\\CommandHandling\\SimpleCo... | php | chosen |
[
{
"from": "human",
"value": "Add webservice for searching on users\n"
},
{
"from": "gpt",
"value": "<?php \n\tdefined('C5_EXECUTE') or die(\"Access Denied.\");\n class WalkLeadersController extends Controller {\n\n public function on_start() {\n $method = $_SERVER['REQUEST_METHOD'];\n ... | php | chosen |
[
{
"from": "human",
"value": "Create Templates for Cisco ISE"
},
{
"from": "gpt",
"value": "<?php\n# vim: syntax=php tabstop=4 softtabstop=0 noexpandtab laststatus=1 ruler\n\n/**\n * html/templates/ise.php\n *\n * Cisco ISE template for UNetLab.\n *\n * LICENSE:\n *\n * This file is part of UNetL... | php | chosen |
[
{
"from": "system",
"value": "[TASK] Fix cache commands for old Magento CE 1.4\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace N98\\Magento\\Command\\Cache;\n\nuse N98\\Magento\\Command\\AbstractMagentoCommand;\n\nclass AbstractCacheCommand extends AbstractMagentoCommand\n{\n /**\n ... | php | chosen |
[
{
"from": "human",
"value": "Add a test for the menu configuration event class\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace LAG\\AdminBundle\\Tests\\Event\\Menu;\n\nuse LAG\\AdminBundle\\Event\\Menu\\MenuConfigurationEvent;\nuse LAG\\AdminBundle\\Tests\\AdminTestBase;\n\nclass MenuConfigu... | php | chosen |
[
{
"from": "human",
"value": "Add skeleton for default dot exporter"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Fhaculty\\Graph\\Exporter;\n\nuse Fhaculty\\Graph\\GraphViz;\nuse Fhaculty\\Graph\\Graph;\n\nclass Dot implements ExporterInterface\n{\n public function getOutput(Graph $graph)... | php | chosen |
[
{
"from": "system",
"value": "Set ElfChat version to 6.0.0 and edition to Unlim."
},
{
"from": "human",
"value": "<?php\n/* (c) Anton Medvedev <anton@elfet.ru>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n *... | php | chosen |
[
{
"from": "human",
"value": "Add first test for parser\n"
},
{
"from": "gpt",
"value": "<?php\n/*\n * Mustache PHP Compiler - Test the Mustache class\n *\n * (c) July 2011 - Manuel Odendahl - wesen@ruinwesen.com\n */\n\nrequire_once(dirname(__FILE__).\"/../vendor/simpletest/autorun.php\");\nrequ... | php | chosen |
[
{
"from": "human",
"value": "Add more indexes on relevant columns\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Database migration class\n *\n * @author Gerry Demaret <gerry@tigron.be>\n */\nnamespace Skeleton\\Transaction;\n\nuse \\Skeleton\\Database\\Database;\n\nclass Migration_20190301_141... | php | chosen |
[
{
"from": "system",
"value": "Fix invalid typehint for subject in is_granted Twig function"
},
{
"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 v... | php | chosen |
[
{
"from": "human",
"value": "Include the !regdate command natively in Sonium\n"
},
{
"from": "gpt",
"value": "<?php\n// Copyright 2015 Las Venturas Playground. All rights reserved.\n// Use of this source code is governed by the MIT license, a copy of which can\n// be found in the LICENSE file.\n... | php | chosen |
[
{
"from": "human",
"value": "Add tests for Escape Extension.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace League\\Plates\\Extension;\n\nclass EscapeTest extends \\PHPUnit_Framework_TestCase\n{\n private $extension;\n\n public function setUp()\n {\n $this->extension = new E... | php | chosen |
[
{
"from": "human",
"value": "Add script to change codestyle\n"
},
{
"from": "gpt",
"value": "<?php\n\nfunction print_usage_and_exit(string $msg = '') {\n global $argv;\n fprintf(STDERR, \"%sUsage: %s pathname.php\\nConverts fooBar to foo_bar in variable names\\n\", $msg ? $msg . \"\\n\" : ... | php | chosen |
[
{
"from": "human",
"value": "Implement hasContent for Image_Cc correctly\n"
},
{
"from": "gpt",
"value": "<?php\nclass Kwc_Abstract_Image_Cc_Component extends Kwc_Abstract_Composite_Cc_Component\n{\n public static function getSettings($masterComponentClass)\n {\n $ret = parent::getS... | php | chosen |
[
{
"from": "human",
"value": "Add unit test for Conversation's form\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace FD\\PrivateMessageBundle\\Tests\\Form;\n\nuse FD\\PrivateMessageBundle\\Entity\\Conversation;\nuse FD\\PrivateMessageBundle\\Entity\\PrivateMessage;\nuse FD\\PrivateMessageBundl... | php | chosen |
[
{
"from": "human",
"value": "Add runner for specific commits\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Cauditor\\Runners;\n\nuse Cauditor\\Analyzers\\AnalyzerInterface;\nuse Cauditor\\Api;\nuse Cauditor\\Config;\n\n/**\n * @author Matthias Mullie <cauditor@mullie.eu>\n * @copyright Cop... | php | chosen |
[
{
"from": "system",
"value": "Fix E_STRICT warning in i18n example."
},
{
"from": "human",
"value": "<?php\n\nclass I18n {\n\n // Variable to be interpolated\n public $name = 'Bob';\n\n // Add a {{#__}} lambda for i18n\n public $__ = array(__CLASS__, '__trans');\n\n // A *very* sm... | php | chosen |
[
{
"from": "human",
"value": "Add Sync_SMS controller and Repository and Services\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: BENGEOS-PC\n * Date: 3/20/2016\n * Time: 4:54 AM\n */\n\nnamespace Sync_SMS\\Model;\n\n\nclass Contact\n{\n\n}"
}
] | php | chosen |
[
{
"from": "human",
"value": "Add support for emails to be sent at given time by cron jobs\n"
},
{
"from": "gpt",
"value": "<?php\n\trequire 'session.php';\n\t\n\t$time = date('m-d-Y h:i a');\n\t$con = connect();\n\t$get_message = \"SELECT * FROM future_emails WHERE future_emails.time <= '$time'\... | php | chosen |
[
{
"from": "human",
"value": "Index file to put on web server to test aleavatar\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Malenki\\Aleavatar;\n\nif(!extension_loaded('gd'))\n{\n throw new \\RuntimeException('GD is not available! Aleavatar uses GD to work!');\n}\n\n(@include_once __DIR_... | php | chosen |
[
{
"from": "human",
"value": "Add some fixes for various CORS issues caused by multisite\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * Fix issue with uploads URLs pointing to the main site. This causes CORS errors in browsers.\n */\nadd_filter('upload_dir', function (array $uploads) {\n if... | php | chosen |
[
{
"from": "human",
"value": "Add a basic test for the filter class\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace LAG\\AdminBundle\\Tests\\Filter;\n\nuse LAG\\AdminBundle\\Filter\\Filter;\nuse LAG\\AdminBundle\\Tests\\AdminTestBase;\n\nclass FilterTest extends AdminTestBase\n{\n public f... | php | chosen |
[
{
"from": "human",
"value": "Create a migration which initializes database\n"
},
{
"from": "gpt",
"value": "<?php\n include_once 'migrate.php';\n\n migrate(\n array(\n 'CREATE TABLE IF NOT EXISTS \n `users` (\n `id` int(11) NOT NULL AUTO_... | php | chosen |
[
{
"from": "human",
"value": "Add Theme Wrapper for better DRY\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @ Lamosty.com 2015\n */\n\nnamespace Lamosty\\RentiFlat\\Helper_Functions;\n\n/**\n * Theme wrapper\n *\n * @link https://roots.io/sage/docs/theme-wrapper/\n * @link http://scribu.net/wo... | php | chosen |
[
{
"from": "human",
"value": "Add unit test for getProduct\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace PayBreak\\Sdk\\Test\\Gateways;\n\nuse PayBreak\\Sdk\\ApiClient\\ApiClientFactoryInterface;\nuse PayBreak\\Sdk\\ApiClient\\ProviderApiClient;\nuse PayBreak\\Sdk\\Entities\\ProductEntity;\... | php | chosen |
[
{
"from": "human",
"value": "Add unit test for DatabaseConnectionCheck\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * This file is part of the Gerrie package.\n *\n * (c) Andreas Grunwald <andygrunwald@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n ... | php | chosen |
[
{
"from": "human",
"value": "UPDATE and SET clause code-coverage\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass Update_test extends CI_TestCase {\n\n\t/**\n\t * @var object Database/Query Builder holder\n\t */\n\tprotected $db;\n\n\tpublic function set_up()\n\t{\n\t\t$this->db = Mock_Database_S... | php | chosen |
[
{
"from": "human",
"value": "Add command-line script to create a CorA user.\n\nWill be required for proper installation of CorA.\n"
},
{
"from": "gpt",
"value": "<?php\n$CORA_DIR = dirname(__FILE__) . \"/../\";\nrequire_once( $CORA_DIR . \"lib/globals.php\" );\nrequire_once( $CORA_DIR . \"lib/co... | php | chosen |
[
{
"from": "human",
"value": "Add a test that ensures all /src files parse\n\nFormer-commit-id: 0792beb820dd9e464b153963d8ac5040a3fa7ccd\nFormer-commit-id: 0df92273484d72c9fd5c379e3a2bb4cc9a193bcf"
},
{
"from": "gpt",
"value": "<?php\n\nclass FilesParseTest extends \\PHPUnit_Framework_TestCase\n{... | php | chosen |
[
{
"from": "human",
"value": "Add test function with correct name\n"
},
{
"from": "gpt",
"value": "<?php\n/*------------------------------------------------------------------------------\n\n Project : CachingProxy\n Filename : tests/overrideRealpathFunction.php\n Autor : (c) Sebastian K... | php | chosen |
[
{
"from": "human",
"value": "Add Drupal 7 FormAPI snippet : hiding a label\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * Drupal 7 snippet :\n * Form API - Hide a label\n */\n\n/**\n * Implement hook_form_FORM_ID_alter()\n * → ex: 'comment_form'\n */\nfunction MODULE_OR_THEME_form_comment... | php | chosen |
[
{
"from": "human",
"value": "[Tests] Add test case on xmlinflector\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Doctrine\\Tests\\OXM\\Util;\n\nuse Doctrine\\OXM\\Util\\Inflector;\n\nclass InflectorTest extends \\PHPUnit_Framework_TestCase\n{\n public function testXmlize()\n {\n ... | php | chosen |
[
{
"from": "human",
"value": "Add tests with 100% coverage for Algorithm\\Eulerian"
},
{
"from": "gpt",
"value": "<?php\n\nuse Fhaculty\\Graph\\Algorithm\\Eulerian as AlgorithmEulerian;\nuse Fhaculty\\Graph\\Graph;\n\nclass EulerianTest extends TestCase\n{\n public function testGraphEmpty()\n ... | php | chosen |
[
{
"from": "human",
"value": "Add meta tag provider interface.\n"
},
{
"from": "gpt",
"value": "<?php declare(strict_types=1);\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2019, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full ... | php | chosen |
[
{
"from": "human",
"value": "Add Base abstraction for console tasks\n\nEnsures that input, output and configuration is set, before actually\nperforming the given task execution\n"
},
{
"from": "gpt",
"value": "<?php namespace Aedart\\Scaffold\\Tasks;\n\nuse Aedart\\Scaffold\\Contracts\\Tasks\\Co... | php | chosen |
[
{
"from": "human",
"value": "Add migration: create users table.\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse yii\\db\\Migration;\n\nclass m160528_135628_ceate_user_table extends Migration\n{\n public function up()\n {\n $this->createTable('users', [\n 'id' => $this->prim... | php | chosen |
[
{
"from": "human",
"value": "Add module manager options test file\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace ZendTest\\Module;\n\nuse PHPUnit_Framework_TestCase as TestCase,\n Zend\\Module\\ManagerOptions,\n InvalidArgumentException,\n BadMethodCallException;\n\nclass ManagerOp... | php | chosen |
[
{
"from": "human",
"value": "Add IP class Unit Tests\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2017, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Public License; See PH7.LICENSE.... | php | chosen |
[
{
"from": "human",
"value": "Implement Custom Messages & Attributes\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Milkmeowo\\Framework\\Repository\\Foundations\\Validators;\n\nuse Prettus\\Validator\\LaravelValidator;\n\nclass Validator extends LaravelValidator\n{\n\n /**\n * Valida... | php | chosen |
[
{
"from": "human",
"value": "Create class to do safe math operations.\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * This file is part of the Stippers project (available here: https://github.com/Stannieman/stippers/).\n * The license and all terms en conditions that apply to Stippers also app... | php | chosen |
[
{
"from": "human",
"value": "Test UnavailableDriver exception in AbstractDriver\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * This file is part of the Stash package.\n *\n * (c) Robert Hafner <tedivm@tedivm.com>\n *\n * For the full copyright and license information, please view the LICENSE\n... | php | chosen |
[
{
"from": "human",
"value": "Add a test to discourage people from implementing support for __call.\n\nPull in the test from https://gist.github.com/655784\n\nThis should discourage reports like #16, #19 and #55, and #76.\n"
},
{
"from": "gpt",
"value": "<?php\n\nrequire_once '../Mustache.php';\n... | php | chosen |
[
{
"from": "system",
"value": "Fix a typo in `differential.querydiffs`\n\nSummary:\n - \"revision\" is misspelled.\n - Remove an unused variable.\n\nTest Plan: Used API console to call method.\n\nReviewers: btrahan, chad\n\nReviewed By: chad\n\nCC: aran\n\nDifferential Revision: https://secure.phabricator.... | php | chosen |
[
{
"from": "human",
"value": "Add tests for the login form.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * PHP version 7.1\n *\n * This source file is subject to the license that is bundled with this package in the file LICENSE.\n */\nnamespace App\\Form\\User;\n\nuse Mandragora\\FormFactory;\nu... | php | chosen |
[
{
"from": "human",
"value": "Add command to delete posts by id\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Rogue\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse Rogue\\Models\\Post;\n\nclass DeletePosts extends Command\n{\n /**\n * The name and signature of the conso... | php | chosen |
[
{
"from": "human",
"value": "Add unit tests for FlatStore\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Intercom\\Util;\n\nuse Guzzle\\Tests\\GuzzleTestCase;\n\nclass FlatStoreTest extends GuzzleTestCase\n{\n /** @var array */\n private $unkeyed_data = ['Help', 1234];\n /** @var ar... | php | chosen |
[
{
"from": "human",
"value": "Add unit test for PHPBugs\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Room11\\Jeeves\\Tests\\Chat\\Plugin;\n\nuse Amp\\Artax\\HttpClient;\nuse Amp\\Artax\\Response;\nuse Amp\\Success;\nuse function Amp\\wait;\nuse PHPUnit\\Framework\\TestCase;\nuse Room11\\Je... | php | chosen |
[
{
"from": "human",
"value": "Add mock pdo classes to test with testing\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Tomahawk\\Test;\n\nclass MockPdo extends \\PDO\n{\n public function __construct ()\n {\n\n }\n\n public function quote($string, $parameter_type = \\PDO::PARAM_ST... | php | chosen |
[
{
"from": "human",
"value": "Halo: Add a mock class for classes that use fluid interfaces.\n\nThis should make unit tests for methods that use fluid interface methods\nbut don't care about their functionality more compact.\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * This file contains the ... | php | chosen |
[
{
"from": "human",
"value": "Add test case for ByHourRule.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Zimbra\\Mail\\Tests\\Struct;\n\nuse Zimbra\\Mail\\Tests\\ZimbraMailTestCase;\nuse Zimbra\\Mail\\Struct\\ByHourRule;\n\n/**\n * Testcase class for ByHourRule.\n */\nclass ByHourRuleTest ... | php | chosen |
[
{
"from": "human",
"value": "Add shell to mass-edit sentences\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Tatoeba Project, free collaborative creation of languages corpuses project\n * Copyright (C) 2015 Gilles Bedel\n *\n * This program is free software: you can redistribute it and/or m... | php | chosen |
[
{
"from": "system",
"value": "Improve unit test about report's field.\n\ngit-svn-id: 6e9066ea2b7311f0dbdfae11f91a207e5fe444e0@355 fe8bb9cb-3c6a-df11-91c9-004063e5cbdf\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace mageekguy\\atoum\\tests\\units\\report\\fields\\runner;\n\nuse\n\t\\mageekg... | php | chosen |
[
{
"from": "human",
"value": "Add support for Zataz website.\n\nIt gets the last 5 articles available. The feed is missing images since hot-linking is impossible from host.\nWe might need a way to grab and store that content as well.\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * @name Zataz\n... | php | chosen |
[
{
"from": "human",
"value": "Add empty expresion parser class.\n"
},
{
"from": "gpt",
"value": "<?php\n// Jivoo\n// Copyright (c) 2015 Niels Sonnich Poulsen (http://nielssp.dk)\n// Licensed under the MIT license.\n// See the LICENSE file or http://opensource.org/licenses/MIT for more information... | php | chosen |
[
{
"from": "human",
"value": "[AdminBundle] Create crud for ShippingCategory\n[CoreBundle][Core] Add ShippingCategoryRepository\n[UiBundle] Add translations\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the ful... | php | chosen |
[
{
"from": "human",
"value": "Write a test to confirm out index output.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Sitemap\\Writers;\n\nuse Sitemap\\Sitemap;\nuse Sitemap\\Index;\n\nclass IndexTest extends \\PHPUnit_Framework_TestCase\n{\n public function testIndexXMLWriter()\n {\n... | php | chosen |
[
{
"from": "human",
"value": "Add tests for the currency model\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Symm\\BitpayClient\\Tests;\n\nuse Symm\\BitpayClient\\Model\\Currency;\n\n/**\n * CurrencyTest\n */\nclass CurrencyTest extends \\PHPUnit_Framework_TestCase\n{\n\n protected $curr... | php | chosen |
[
{
"from": "human",
"value": "Add start of Bolt\\Content tests"
},
{
"from": "gpt",
"value": "<?php\nnamespace Bolt\\tests\\Content;\n\nuse Bolt\\Tests\\BoltUnitTest;\nuse Bolt\\Content;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n/**\n * Class to test src/Storage.\n *\n * @author Ross R... | php | chosen |
[
{
"from": "human",
"value": "Create nested set comments table.\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse yii\\db\\Schema;\nuse console\\components\\Migration;\n\nclass m150804_073905_create_nested_set_comment_table extends Migration\n{\n public function up()\n {\n $this->createT... | php | chosen |
[
{
"from": "human",
"value": "Add migration with column for tournament owner\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Support\\Facades\\DB;\n\nclass AddTournamentOwnerColumn extends Mi... | php | chosen |
[
{
"from": "human",
"value": "Add a service provider for site specific token/cookie names"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Bolt\\Provider;\n\nuse Silex\\Application;\nuse Silex\\ServiceProviderInterface;\n\n/**\n * Token/cookie name service provider.\n *\n * NOTE: We use hostname... | php | chosen |
[
{
"from": "human",
"value": "Set calculated expiration dates to last day of the month.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Forces expiration dates to always be set to the end of the month.\n *\n * NOTE: Changing the calculated expiration date does not change the renewal date\n * with... | php | chosen |
[
{
"from": "human",
"value": "Add Finnish translations to error messages\n\nAdd Finnish translations to validation error messages.\n\nUse localization specific terms where possible.\n\n - \"slug\" translates to \"polkutunnus\" as it used in Finnish WordPress\n localization\n"
},
{
"from": "gpt",
... | php | chosen |
[
{
"from": "human",
"value": "Add migration for updating xform tables with jr_xform_id field\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * Created by PhpStorm.\n * User: Godluck Akyoo\n * Date: 27-Jun-16\n * Time: 20:12\n */\nclass Migration_Update_xforms_table extends CI_Migration\n{\n\n\tpu... | php | chosen |
[
{
"from": "human",
"value": "Add unit test of Map\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Jivoo\\Core;\n\nclass MapTest extends \\Codeception\\TestCase\\Test {\n\n /**\n *\n * @var \\UnitTester\n */\n protected $tester;\n\n protected function _before() {}\n\n protected func... | php | chosen |
[
{
"from": "human",
"value": "Prepare a test for migration testing\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Nwidart\\Modules\\Tests\\Commands;\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Nwidart\\Modules\\Repository;\nuse Nwidart\\Modules\\Tests\\BaseTestCase;\n\nabstract class M... | php | chosen |
[
{
"from": "human",
"value": "ENH: Add cdash_unlink and cdash_testsuite_unlink: debug/fix unlink problems\n"
},
{
"from": "gpt",
"value": "<?php\nfunction cdash_testsuite_unlink($filename)\n{\n $try_count = 1;\n echo \"unlink '\".$filename.\"'\\n\";\n $success = unlink($filename);\n\n while(f... | php | chosen |
[
{
"from": "human",
"value": "Create an Ajax action which will clear the cache using the built in command\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Backend\\Modules\\Settings\\Ajax;\n\nuse Backend\\Core\\Engine\\Base\\AjaxAction;\nuse Symfony\\Bundle\\FrameworkBundle\\Console\\Applicati... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.