conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add Plitz->PHP integration test harness\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Plitz\\Tests\\Integration;\n\nuse Plitz\\Compilers\\PhpCompiler;\nuse Plitz\\Lexer\\Lexer;\nuse Plitz\\Parser\\Parser;\nuse Symfony\\Component\\Yaml\\Yaml;\n\nclass PlitzToPhp e... | php | chosen |
[
{
"from": "human",
"value": "Build system for MD files.\n"
},
{
"from": "gpt",
"value": "<?php\n\n// This is a batch jobs for markdown files generation\n\n$folder = __DIR__ . \"/../ideas/\";\n\n$iter = new RecursiveIteratorIterator(\n new RecursiveDirectoryIterator($folder, RecursiveDirectory... | php | chosen |
[
{
"from": "human",
"value": "III-9: Add interface for read model repository\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @file\n */\nnamespace CultuurNet\\UDB3\\SavedSearches\\ReadModel;\n\ninterface SavedSearchRepositoryInterface\n{\n /**\n * @return SavedSearch[]\n */\n public... | php | chosen |
[
{
"from": "human",
"value": "Implement a config serializer for the new version, storing only paths to be loaded\n\nCloses #54.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Studio\\Config;\n\nclass Version2Serializer implements Serializer\n{\n public function deserializePaths($obj)\n ... | php | chosen |
[
{
"from": "human",
"value": "Add test with 100% coverage for new Algorithm\\Degree"
},
{
"from": "gpt",
"value": "<?php\n\nuse Fhaculty\\Graph\\Algorithm\\Degree as AlgorithmDegree;\nuse Fhaculty\\Graph\\Exception\\UnderflowException;\nuse Fhaculty\\Graph\\Exception\\UnexpectedValueException;\nu... | php | chosen |
[
{
"from": "human",
"value": "Add a page to list all URLs.\n"
},
{
"from": "gpt",
"value": "<h3>Last 50 Articles</h3>\n <ul>\n<?php query_posts('showposts=50'); ?>\n\t<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>\n\t<li><?php the_permalink() ?></li>\n<?php endwhile; endif; ?... | php | chosen |
[
{
"from": "human",
"value": "Add benchmark for select once vs multiple\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Evflow\\Benchmarks;\n\nuse Athletic\\AthleticEvent;\n\nclass SelectEvent extends AthleticEvent\n{\n const STREAM_COUNT = 100;\n private $readStreams;\n private $write... | php | chosen |
[
{
"from": "human",
"value": "Add migration for roadblocks table\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateRoadblocksTable extends Migration {\n\n\t/**\n\t * Run the migrations.\n\t *\n\t... | php | chosen |
[
{
"from": "human",
"value": "Add test case verifying eager loads are clear\n\nOtherwise, getClassMetadata would be triggered more times\n"
},
{
"from": "gpt",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Doctrine\\Tests\\ORM\\Functional\\Ticket;\n\nuse Doctrine\\ORM\\Decorator\\Entit... | php | chosen |
[
{
"from": "system",
"value": "Add static `rename` method to facade docblocks\n\nThis method is statically accessible from the schema facade. But IDE's are not recognizing it."
},
{
"from": "human",
"value": "<?php\n\nnamespace Illuminate\\Support\\Facades;\n\n/**\n * @method static \\Illuminate\... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Fix conflict AbstractPluginManager::valdatePlugin with DiAbstractFactory\"\n\nThis reverts commit 69dc3de5b09d625641a113ed81a8e44455c8d199.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http... | php | chosen |
[
{
"from": "human",
"value": "Add test for meta model\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * This file is part of Cachet.\n *\n * (c) Alt Three Services Limited\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source... | php | chosen |
[
{
"from": "human",
"value": "Add Zend_Log Test - Logging to a database\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass LogTest extends PHPUnit_Framework_TestCase\n{\n public function testDbLogger()\n {\n $log = new Zend_Log();\n $dbWriter = new Zend_Log_Writer_Db(\n ... | php | chosen |
[
{
"from": "human",
"value": "Add test suite for User Login\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Foundation\\Testing\\DatabaseTransactions;\n\nclass UserLoginTest extends TestCase\n{\n use DatabaseTransactions;\n use CreateUser;\n\n /**\n * @covers \\App\\Http\\... | php | chosen |
[
{
"from": "human",
"value": ":sparkles: Add new interface for URI parser.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Risna\\OAuth1;\n\nuse Psr\\Http\\Message\\UriInterface;\n\ninterface UriParserInterface\n{\n /**\n * Check whether the given URI is absolute.\n *\n * @para... | php | chosen |
[
{
"from": "human",
"value": "III-666: Test for instantiating an OfferType from a value with incorrect casing.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace CultuurNet\\UDB3\\Offer;\n\nclass OfferTypeTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n * @test\n */\n public fu... | php | chosen |
[
{
"from": "human",
"value": "Add logawaresingleton object for quicker access\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: mirel\n * Date: 03.03.2016\n * Time: 13:11\n */\n\nnamespace mpf\\base;\n\n\nclass LogAwareSingleton extends LogAwareObject {\n\n private... | php | chosen |
[
{
"from": "human",
"value": "[Front] Insert front detail template for Nodes.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * This file is part of the Clastic package.\n *\n * (c) Dries De Peuter <dries@nousefreak.be>\n * For the full copyright and license information, please view the LICENSE\n *... | php | chosen |
[
{
"from": "human",
"value": "Add test for delete projects webservice\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Tests\\AppBundle\\API\\Delete;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\nuse Symfony\\Component\\Http... | php | chosen |
[
{
"from": "human",
"value": "Fix pb (bad redirection) when resetting password\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Neblion\\ScrumBundle\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\RedirectResponse;\nuse Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedExcepti... | php | chosen |
[
{
"from": "human",
"value": "Add unit test for synchronizer\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace HansOtt\\Lastify\\Test;\n\nuse HansOtt\\Lastify\\TrackInfo;\nuse InvalidArgumentException;\nuse PHPUnit_Framework_TestCase;\nuse HansOtt\\Lastify\\Synchronizer;\nuse HansOtt\\Lastify\\... | php | chosen |
[
{
"from": "human",
"value": "Set the internal pointer of an array to its first element\n"
},
{
"from": "gpt",
"value": "\n<?php\n\n$array = array('step one', 'step two', 'step three', 'step four');\n\n// by default, the pointer is on the first element\necho current($array) . \"<br />\\n\"; // \"... | php | chosen |
[
{
"from": "human",
"value": "Add missing very important file\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * Copyright 2015-2017 ppy Pty. Ltd.\n *\n * This file is part of osu!web. osu!web is distributed with the hope of\n * attracting more community contributions to the core ecosyste... | php | chosen |
[
{
"from": "human",
"value": "Add in a storage model, just a simple key/val storage in mongodb, for storing long term data\n"
},
{
"from": "gpt",
"value": "<?php\r\n/**\r\n * The MIT License (MIT)\r\n *\r\n * Copyright (c) 2016. Michael Karbowiak\r\n *\r\n * Permission is hereby granted, free of ... | php | chosen |
[
{
"from": "human",
"value": "Add tests for Options class (in progress)\n"
},
{
"from": "gpt",
"value": "<?php\n/*\nCopyright 2002-2012 MarkLogic Corporation. All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance... | php | chosen |
[
{
"from": "human",
"value": "Add Supporting Service Provider for easer event registration\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace SmoothPhp\\LaravelAdapter;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse SmoothPhp\\Contracts\\EventDispatcher\\EventDispatcher;\n\n/**\n * Class Smooth... | php | chosen |
[
{
"from": "human",
"value": "Add API docs for importer.\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * Hook to register importers.\n *\n * @return array\n * An associative array mapping unique machine names to associative arrays\n * containing the following keys:\n * - type: The extensi... | php | chosen |
[
{
"from": "human",
"value": "Add orchestra.publisher facade based on orchestral/foundation@a7fef45\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "gpt",
"value": "<?php namespace Orchestra\\Support\\Facades;\n\nuse Illuminate\\Support\\Facades\\F... | php | chosen |
[
{
"from": "human",
"value": "Drop unused files from the internal repository\n\nThis script should be called periodicly. Espcially if you synchronize\ndifferent repositories.\n"
},
{
"from": "gpt",
"value": "<?php\n// Drop unused files from the internal repository.\n//\n// This script should be c... | php | chosen |
[
{
"from": "human",
"value": "Add migration script due to column name change\n\nChange has been made in 1f32dddbd7fa425f426fb6e865dfd20c797c8213\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Openl10n\\Migrations;\n\nuse Doctrine\\DBAL\\Migrations\\AbstractMigration;\nuse Doctrine\\DBAL\\Sch... | php | chosen |
[
{
"from": "human",
"value": "Add doctrine migration for taxon createdAt/updatedAt\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Sylius\\Migrations;\n\nuse Doctrine\\DBAL\\Migrations\\AbstractMigration;\nuse Doctrine\\DBAL\\Schema\\Schema;\n\n/**\n * Auto-generated Migration: Please modify ... | php | chosen |
[
{
"from": "human",
"value": "Add new test for finder.\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Ktp\\Finder;\nuse Ktp\\Contracts\\HttpClient as HttpClientContract;\n\nclass FinderTest extends PHPUnit_Framework_TestCase {\n /** @test */\n function finder_has_http_client()\n {\n ... | php | chosen |
[
{
"from": "human",
"value": "BUGFIX: Add fixture for previous commit\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace TYPO3\\Flow\\Tests\\Functional\\Property\\Fixtures;\n\n/*\n * This file is part of the TYPO3.Flow package.\n *\n * (c) Contributors of the Neos Project - www.neos.io\n *\n * Thi... | php | chosen |
[
{
"from": "human",
"value": "Remove unique from index ccmp_name\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass m141229_072229_ccmp_name_unique_remove extends EDbMigration\n{\n\tpublic function up()\n\t{\n $this->execute(\"\n ALTER TABLE `kls`.`ccmp_company` \n ... | php | chosen |
[
{
"from": "human",
"value": "Add integration tests for RegisterPromotionActionsPass\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 full copyright and license information, please view the LICENSE\n * file th... | php | chosen |
[
{
"from": "human",
"value": "Fix CollectionAbstract entities keys - test\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Nokaut\\ApiKit\\Collection;\n\nuse Nokaut\\ApiKit\\Collection;\nuse Nokaut\\ApiKit\\Entity\\Category;\nuse PHPUnit_Framework_TestCase;\n\nclass CollectionAbstractTest exte... | php | chosen |
[
{
"from": "human",
"value": "Add invalid vhost exception and exception namespace\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Vmwarephp\\Exception;\n\nclass InvalidVhost extends \\Exception {\n\tfunction __construct($message = null, $code = 0, Exception $previous = null) {\n\t\t$defaultMess... | php | chosen |
[
{
"from": "human",
"value": "Check for Warning: func_get_args(): Called from the global scope - no function context\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * @author Yuchen Wang <phobosw@gmail.com>\n *\n * Code follow PSR-1 and PSR-2 standards\n * http://www.php-fig.org/psr/psr-1/\n * h... | php | chosen |
[
{
"from": "human",
"value": "Add admin dashboard client register language\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * This <server-gardu-reporter> project created by :\n * Name : syafiq\n * Date / Time : 30 June 2017, 4:19 PM.\n * Email : syafiq.rezpector@gmail.com\n * Github... | php | chosen |
[
{
"from": "human",
"value": "Initialize Mail base request class\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * This file is part of the Zimbra API in PHP library.\n *\n * © Nguyen Van Nguyen <nguyennv1981@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE... | php | chosen |
[
{
"from": "human",
"value": "Add basic tests for authenticator\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Artesaos\\Zenvia\\Tests;\n\nclass AuthenticatorTest extends \\PHPUnit_Framework_TestCase\n{\n private $account = 'test';\n private $password = 'password';\n\n private $authen... | php | chosen |
[
{
"from": "human",
"value": "Move Resolver override to a Provider\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Flint\\Provider;\n\nuse Flint\\Controller\\ControllerResolver;\nuse Silex\\Application;\n\n/**\n * @package Flint\n */\nclass ControllerServiceProvider implements \\Silex\\Servic... | php | chosen |
[
{
"from": "human",
"value": "[UPDATE] Update loading common properties for document editor\n"
},
{
"from": "gpt",
"value": "<?php\r\nclass generic_GetDocumentEditorInfosAction extends f_action_BaseJSONAction\r\n{\r\n\t/**\n\t * @param Context $context\n\t * @param Request $request\n\t */\r\n\tpu... | php | chosen |
[
{
"from": "human",
"value": "Add controller for the sendMessages\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Helldar\\Vk\\Controllers\\Messages;\n\n/**\n * Sends a message.\n *\n * @see https://vk.com/dev/messages.send\n */\nclass SendController\n{\n /**\n * Available method param... | php | chosen |
[
{
"from": "human",
"value": "Add migration to set a default value for the field 'deleted', and update existing records\naccordingly.\n\nThe update of existing records in the 'file' table consists of setting 'deleted'\nfields containing the previous default value of '0000-00-00 00:00:00' to NULL.\n\nWarning:... | php | chosen |
[
{
"from": "human",
"value": "Add a trait for md-elements that can be indexed\n"
},
{
"from": "gpt",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace SAML2\\XML\\md;\n\nuse Webmozart\\Assert\\Assert;\n\n/**\n * Trait adding methods to handle elements that can be indexed.\n *\n * @package ... | php | chosen |
[
{
"from": "system",
"value": "Use transport options in auth tests\n"
},
{
"from": "human",
"value": "<?php\n\nRequests::$transport = 'Requests_Transport_fsockopen';\n\nclass RequestsTest_Auth_Basic extends PHPUnit_Framework_TestCase {\n\tpublic function testUsingArray() {\n\t\t$options = array(\... | php | chosen |
[
{
"from": "human",
"value": "Add test for meta data\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Frontend\\Core\\Tests\\Header;\n\nuse Frontend\\Core\\Header\\MetaData;\nuse InvalidArgumentException;\n\nclass MetaDataTest extends \\PHPUnit_Framework_TestCase\n{\n public function testCo... | php | chosen |
[
{
"from": "human",
"value": "Add snippet for hiding license key\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Plugin Name: Restrict Content Pro - Hide License Key\n * Description: Hides the license key field.\n * Version: 1.0\n * Author: Restrict Content Pro Team\n * License: GPL2\n */\n\n/**\... | php | chosen |
[
{
"from": "human",
"value": "Add qucs php wrapper so it's easy to get on e a deployed server\n"
},
{
"from": "gpt",
"value": "<?php\n\nif($_REQUEST['qucs'] || $_REQUEST['spice']) {\n//if (false) {\n $path = '/home/skim/local/app/qucs-0.0.15/bin';\n\n if ($_REQUEST['qucs']) {\n $data = str_r... | php | chosen |
[
{
"from": "human",
"value": "Add Todo model that handles all of the DB interations.\n"
},
{
"from": "gpt",
"value": "<?php\r\n\r\nclass Todo_model extends CI_Model {\r\n\r\n\tpublic function __construct()\r\n\t{\r\n\t\t// connect to the database\r\n\t\tparent::__construct();\r\n\t\t$this->load->... | php | chosen |
[
{
"from": "human",
"value": "Add new user datafixture class\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace CrickLog\\CoreBundle\\Tests\\Fixtures;\n\nuse Protalk\\UserBundle\\Entity\\User;\nuse Doctrine\\Common\\DataFixtures\\AbstractFixture;\nuse Doctrine\\Common\\Persistence\\ObjectManager... | php | chosen |
[
{
"from": "human",
"value": "Add the first phpunit test\n"
},
{
"from": "gpt",
"value": "<?php\n\nrequire_once 'Auth/BrowserID.php';\n\nclass OkayTest extends PHPUnit_Framework_TestCase\n{\n public function testFailureNoAssertion()\n {\n $verifier = new Auth_BrowserID('http://localh... | php | chosen |
[
{
"from": "human",
"value": "Add the purchase type extractor test\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * This file is part of Bens Penhorados, an undergraduate capstone project.\n *\n * (c) Fábio Santos <ffsantos92@gmail.com>\n *\n * For the full copyright and license information, plea... | php | chosen |
[
{
"from": "human",
"value": "Add tests for the recommended property 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\\RecommendedProperty;\n\nu... | php | chosen |
[
{
"from": "human",
"value": "Add a Administrative Area validator with custom rules\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Galahad\\LaravelAddressing\\Validator;\n\nuse Galahad\\LaravelAddressing\\Entity\\AdministrativeArea;\nuse Galahad\\LaravelAddressing\\Entity\\Country;\nuse Gala... | php | chosen |
[
{
"from": "human",
"value": "Add recover password type form\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Listabierta\\Bundle\\MunicipalesBundle\\Form\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\Options... | php | chosen |
[
{
"from": "human",
"value": "Add simple tests for PharComposer"
},
{
"from": "gpt",
"value": "<?php\n\nuse Clue\\PharComposer\\PharComposer;\n\nclass PharComposerTest extends TestCase\n{\n public function testConstructor()\n {\n $pharcomposer = new PharComposer(__DIR__ . '/../compos... | php | chosen |
[
{
"from": "human",
"value": "Add test for edit UpdateProject webservice\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: s216121\n * Date: 21.10.16\n * Time: 09:49\n */\n\nnamespace Tests\\AppBundle\\API\\Edit;\n\n\nuse Symfony\\Component\\HttpFoundation\\ParameterB... | php | chosen |
[
{
"from": "human",
"value": "Add a few missing tests\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Tests\\Regis\\Domain\\Model;\n\nuse Regis\\Domain\\Model\\Git\\Diff\\Change;\nuse Regis\\Domain\\Model\\Git\\Diff\\Line;\n\nclass LineTest extends \\PHPUnit_Framework_TestCase\n{\n public ... | php | chosen |
[
{
"from": "human",
"value": "Test module migrations are getting published\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Nwidart\\Modules\\Tests\\Commands;\n\nuse Nwidart\\Modules\\Tests\\BaseTestCase;\n\nclass PublishMigrationCommandTest extends BaseTestCase\n{\n /**\n * @var \\Illu... | php | chosen |
[
{
"from": "human",
"value": "Add update script for missing return_path.\n\nShould have been added to a489beb41347a20679c873a27309466976f5ab31\n"
},
{
"from": "gpt",
"value": "<?php\nclass Kwc_Mail_Update_20160407AddReturnPathColumn extends Kwf_Update\n{\n public function update()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Throw exception if the config.path is not valid\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Cilex framework.\n *\n * (c) Mike van Riel <mike.vanriel@naenius.com>\n *\n * For the full copyright and license information, please view the ... | php | chosen |
[
{
"from": "human",
"value": "MINOR: Add tests for some search-form fixes\n\nThese 2 tests validate that the following bugs have been fixed.\n\nhttps://github.com/silverstripe/silverstripe-framework/issues/3212\nhttps://github.com/silverstripe/silverstripe-cms/issues/1452"
},
{
"from": "gpt",
"va... | php | chosen |
[
{
"from": "human",
"value": "Add test coverage for NoopChecker."
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * This file is part of Psy Shell.\n *\n * (c) 2012-2018 Justin Hileman\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with t... | php | chosen |
[
{
"from": "human",
"value": "Add a test to ensure that the 'Not implemented' searchable type is searchable\n\n(but not implemented by the engine, speicifically, QBP which will throw\n an exception if it can not build a query)\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace packages\\OpenSkil... | php | chosen |
[
{
"from": "human",
"value": "Add unit tests for LoggingApp\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace React\\Chatroulette;\n\nuse Monolog\\Logger;\nuse Monolog\\Handler\\TestHandler;\n\nclass LoggingAppTest extends \\PHPUnit_Framework_TestCase\n{\n private $handler;\n private $log... | php | chosen |
[
{
"from": "human",
"value": "Add an initial set of tests\n\nThese are intended to perform simplistic testing of the routes that\nshould work, based on the Docker container configuration, along with\nalso testing a non-route.\n"
},
{
"from": "gpt",
"value": "<?php\n\n\nclass CanRenderValidRouteCe... | php | chosen |
[
{
"from": "human",
"value": "[feature/AddTest] Add test on the ModuleContainer\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Unit\\lib\\ModuleContainer;\n\nuse Chris\\Composer\\AutoregisterClassmapPlugin\\Container\\ModuleContainer;\n\nclass ModuleContainerTest extends \\PHPUnit_Framework_... | php | chosen |
[
{
"from": "system",
"value": "Fix output of HTML from support Cachet link\n"
},
{
"from": "human",
"value": "<footer class=\"footer\">\n @if(Setting::get('show_support'))\n <p>{{ trans('cachet.powered_by', ['app' => Setting::get('app_name')]) }}</p>\n @endif\n <p><a href=\"/rss\"><i ... | php | chosen |
[
{
"from": "human",
"value": "Add phpunit test to load all classes\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass LoadAllClassesTest extends PHPUnit_Framework_TestCase\n{\n public function testLoad()\n {\n foreach (Emergence_FS::findFiles('\\.php$', true, 'php-classes') AS $classNod... | php | chosen |
[
{
"from": "human",
"value": "Add solr block abstract class\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: ian\n * Date: 8/28/14\n * Time: 12:30 PM\n */\nabstract class Asm_Solr_Block_Abstract extends Mage_Core_Block_Template\n{\n\n /**\n * Set Store Id\n ... | php | chosen |
[
{
"from": "human",
"value": "Add translation for Persian language."
},
{
"from": "gpt",
"value": "<?php\n/**\n * Message translations.\n *\n * This file is automatically generated by 'yii message' command.\n * It contains the localizable messages extracted from source code.\n * You may modify th... | php | chosen |
[
{
"from": "human",
"value": "Reorganize for 100% for UpdatedListener.\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace inklabs\\kommerce\\Entity\\Accessor;\n\nclass UpdatedListenerTest extends \\PHPUnit_Framework_TestCase\n{\n public function testPreUpdate()\n {\n $listener = new U... | php | chosen |
[
{
"from": "human",
"value": "Add page override for fact page.\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * Generates minimal site-wide page chrome.\n * @see https://drupal.org/node/1728148\n **/\n\n?>\n\n<?php if (!empty($tabs['#primary'])): ?><nav class=\"admin--tabs\"><?php print render($... | php | chosen |
[
{
"from": "human",
"value": "Add example for assigning library media\n"
},
{
"from": "gpt",
"value": "<?php\n/*\n * Spring Signage Ltd - http://www.springsignage.com\n * Copyright (C) 2015 Spring Signage Ltd\n * (assignToLibrary.php)\n */\nrequire '../vendor/autoload.php';\n\nsession_start();\ne... | php | chosen |
[
{
"from": "human",
"value": "Create a new Union interface to help with abstraction of drivers.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @author \"Michael Collette\" <metrol@metrol.net>\n * @package Metrol/DBSql\n * @version 1.0\n * @copyright (c) 2016, Michael Collette\... | php | chosen |
[
{
"from": "human",
"value": "TASK: Add mysql migration for profile pictures\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace TYPO3\\Flow\\Persistence\\Doctrine\\Migrations;\n\nuse Doctrine\\DBAL\\Migrations\\AbstractMigration;\nuse Doctrine\\DBAL\\Schema\\Schema;\n\n/**\n * Auto-generated Migra... | php | chosen |
[
{
"from": "human",
"value": "Add skeleton tests for the Forwarding Address delete()\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace SilMock\\tests\\Google\\Service\\Gmail\\Resource;\n\nuse PHPUnit\\Framework\\Assert;\nuse PHPUnit\\Framework\\TestCase;\nuse SilMock\\Google\\Service\\Gmail\\Re... | php | chosen |
[
{
"from": "human",
"value": "Add a test case of ViewRenderer\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Core\\ControllerDispatcher;\n\nuse App\\ViewEngine\\DummyView;\nuse App\\ViewEngine\\JsonView;\nuse App\\ViewEngine\\RedirectView;\nuse App\\ViewEngine\\TwigView;\nuse App\\ViewResolv... | php | chosen |
[
{
"from": "human",
"value": "Add tests for AppInstance topic subscriptions\n"
},
{
"from": "gpt",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Kreait\\Firebase\\Tests\\Integration\\Messaging;\n\nuse Kreait\\Firebase\\Messaging;\nuse Kreait\\Firebase\\Tests\\IntegrationTestCase;\n\n/*... | php | chosen |
[
{
"from": "human",
"value": "Add test: Redirect https and http when accessing the site.\n"
},
{
"from": "gpt",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace Fc2blog\\Tests\\App\\Core\\Controller;\n\nuse Fc2blog\\Tests\\Helper\\ClientTrait;\nuse PHPUnit\\Framework\\TestCase;\n\nclass Htt... | php | chosen |
[
{
"from": "human",
"value": "Work on the filterable interface.\n\nSigned-off-by: Jason Lewis <b136be6b8ecc2c62ceb9857ec62bf85489a45e0c@gmail.com>\n"
},
{
"from": "gpt",
"value": "<?php namespace JasonLewis\\Basset;\n\ninterface FilterableInterface {\n\n\t/**\n\t * Apply a filter.\n\t * \n\t * @p... | php | chosen |
[
{
"from": "human",
"value": "Add Drush INIT config command\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * @file\n * Contains \\Docker\\Drupal\\Command\\DemoCommand.\n */\n\nnamespace Docker\\Drupal\\Command\\Drush;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\... | php | chosen |
[
{
"from": "human",
"value": "Create new class for receiving information of github\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: sonja\n * Date: 12/4/17\n * Time: 10:23 AM\n */\n\nnamespace AppBundle\\Entity;\n\n\nclass FOSUBUserProvider\n{\n\n}"
}
] | php | chosen |
[
{
"from": "human",
"value": "2.5.0: Create a simple block to link to the library.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Drupal\\happy_alexandrie\\Plugin\\Block;\n\nuse Drupal\\Core\\Block\\BlockBase;\nuse Drupal\\Core\\Url;\n\n/**\n * Provides a 'LibraryBlock' block.\n *\n * @Block... | php | chosen |
[
{
"from": "human",
"value": "Backup of old instructor id scraper\n\nThis file has been replaced by getUBCID.php which connects to external\nASP.NET page to retrieve search results from w18.ok.ubc.ca SQL database.\n"
},
{
"from": "gpt",
"value": "<?php\n//Old scraper for simulating instructr sear... | php | chosen |
[
{
"from": "human",
"value": "Add an xpost filter that only xposts posts in multiple verticals\n\nSee GigaOM/gigaom#1830\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\nFilter Name: Posts with multiple verticals -> Endpoint\n*/\n\nclass GO_XPost_Filter_MultiVertical extends GO_XPost_Filter\n{\n\t/*... | php | chosen |
[
{
"from": "human",
"value": "Add Configuration metadata controller (part 1)\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Embark\\CMS\\Configuration;\n\nuse Embark\\CMS\\Metadata\\MetadataControllerInterface;\nuse Embark\\CMS\\Metadata\\MetadataControllerTrait;\n\nclass Controller implemen... | php | chosen |
[
{
"from": "system",
"value": "Add eager loading for TOC\n"
},
{
"from": "human",
"value": "<?php\n\nclass HomeController extends BaseController {\n\n\tprotected $page;\n\tprotected $issue;\n\n\tfunction __construct(Page $page, Issue $issue)\n\t{\n\t\t$this->page = $page;\n\t\t$this->issue = $iss... | php | chosen |
[
{
"from": "human",
"value": "Add exception for unauthorized response\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Created by IntelliJ IDEA.\n * User: mduncan\n * Date: 7/27/15\n * Time: 9:15 AM\n */\n\nnamespace Fulfillment\\OMS\\Exceptions;\n\nclass UnauthorizedMerchantException extends \\Ex... | php | chosen |
[
{
"from": "human",
"value": "Add new tests for Model/Util/Various\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2018, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Public License; See... | php | chosen |
[
{
"from": "human",
"value": "Test the publish complete packet\n"
},
{
"from": "gpt",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace BinSoul\\Test\\Net\\Mqtt\\Packet;\n\nuse BinSoul\\Net\\Mqtt\\Packet;\nuse BinSoul\\Net\\Mqtt\\Packet\\PublishCompletePacket;\nuse BinSoul\\Net\\Mqtt\\Pack... | php | chosen |
[
{
"from": "human",
"value": "Add unit tests for ColumnVector.\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Math\\LinearAlgebra;\n\nclass ColumnVectorTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n * @dataProvider dataProviderForConstructor\n */\n public function testConst... | php | chosen |
[
{
"from": "human",
"value": "Add delete access token test.\n\nTest that access_tokens where refresh_tokens haven't reached the cutoff don't\nget deleted.\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * Copyright (c) ppy Pty Ltd <contact@ppy.sh>.\n *\n * This file is part of osu!web. osu!... | php | chosen |
[
{
"from": "human",
"value": "Add a scaffold location maker utility\n"
},
{
"from": "gpt",
"value": "<?php namespace Aedart\\Scaffold\\Traits;\n\nuse Aedart\\Scaffold\\Containers\\IoC;\nuse Aedart\\Scaffold\\Contracts\\Indexes\\ScaffoldLocation;\n\n/**\n * Scaffold Location Maker\n *\n * @author ... | php | chosen |
[
{
"from": "human",
"value": "Add test for Traits listing\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace fennecweb\\ajax\\listing;\n\nuse \\fennecweb\\WebService as WebService;\n\nclass TraitsTest extends \\PHPUnit_Framework_TestCase\n{\n\n public function testExecute()\n {\n //... | php | chosen |
[
{
"from": "human",
"value": "Add base class for command bus decorators\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @file\n */\n\nnamespace CultuurNet\\UDB3\\CommandHandling;\n\n\nuse Broadway\\CommandHandling\\CommandBusInterface;\nuse Broadway\\CommandHandling\\CommandHandlerInterface;\n\na... | php | chosen |
[
{
"from": "human",
"value": "Add base test case class for all Zimbra Mail Api test cases.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Zimbra\\Mail\\Tests;\n\nuse Zimbra\\Soap\\Tests\\Client\\LocalClientHttp;\nuse Zimbra\\Mail\\Base as MailBase;\n\n/**\n * Base testcase class for all Zimb... | php | chosen |
[
{
"from": "human",
"value": "Add positive test for OSR_Validate\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * Tests for successful validation in OSR\n *\n * @author Edward Nash <e.nash@dvz-mv.de>\n *\n * @copyright ©2019 DVZ Datenverarbeitungszentrum M-V GmbH\n */\nclass OSR_2_ValidationTest... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.