conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add test for NCBI taxid mapping\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Tests\\AppBundle\\API\\Mapping;\n\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\nuse Tests\\AppBundle\\API\\WebserviceTestCase;\n\nclass ByNcbiTaxidTest extends WebserviceTes... | php | chosen |
[
{
"from": "human",
"value": "Add case three to `find` field test.\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * If user has only to couple necessary templates\n * then find returns a filtered list of pages that\n * user has access to.\n */\n\nnamespace ProcessWire\\GraphQL\\Test\\Field\\Page... | php | chosen |
[
{
"from": "human",
"value": "Add Facebook api config file\n"
},
{
"from": "gpt",
"value": "<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\n\n$config['app_id'] = '173033269864660';\n$config['app_secret'] = '0be221242a158e18193b2cc4209249e7';\n"
}
] | php | chosen |
[
{
"from": "human",
"value": "Add migration to create fos_user table\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Application\\Migrations;\n\nuse Doctrine\\DBAL\\Migrations\\AbstractMigration,\n Doctrine\\DBAL\\Schema\\Schema;\n\n/**\n * Auto-generated Migration: Please modify to your n... | php | chosen |
[
{
"from": "human",
"value": "Patch to remove tables created by phpgacl no longer used. For old installations of EPESI only.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Remove old tables created by phpgacl - no longer needed\n * jtylek@telaxus.com\n */\n@DB::DropTable('acl');\n@DB::DropTable(... | php | chosen |
[
{
"from": "system",
"value": "Fix case, it's not ARGV it's argv for php\n"
},
{
"from": "human",
"value": "#!/usr/local/bin/php -f \n<?php\n\n\t/* upgrade embedded users serial console */\n\trequire_once(\"globals.inc\");\n\trequire_once(\"config.inc\");\n\trequire_once(\"functions.inc\");\n\n\t... | php | chosen |
[
{
"from": "human",
"value": "Add Download Link Expired page\n"
},
{
"from": "gpt",
"value": "<?php\n include '_templates/sitewide.php';\n $page['title'] = 'Download Expired ⋅ elementary';\n include $template['header'];\n?>\n\n<script>\n ga('send', 'event', '405: Download Expired... | php | chosen |
[
{
"from": "system",
"value": "BAP-11410: Add CRUD controller for Language entity\n- cr updates"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\TranslationBundle\\EventListener\\Datagrid;\n\nuse Oro\\Bundle\\DataGridBundle\\Datasource\\ResultRecord;\nuse Oro\\Bundle\\DataGridBund... | php | chosen |
[
{
"from": "human",
"value": "Add exception for serializing unserializable exceptions.\n\nThe SimpleSAML_Error_Exception class is a base class for serializable\nexceptions. This patch adds SimpleSAML_Error_UnserializableException.\nThat class saves some of the information from an Exception and saves it\nin a... | php | chosen |
[
{
"from": "human",
"value": "[Resource] Create resource autocomplete choice type\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 that ... | php | chosen |
[
{
"from": "human",
"value": "Add migration file for signuplinks page\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse yii\\db\\Migration;\n\n/**\n * Handles the creation for table `signuplinks`.\n */\nclass m160624_001751_create_signuplinks extends Migration\n{\n /**\n * @inheritdoc\n */... | php | chosen |
[
{
"from": "human",
"value": "Add first phpunit test case\n"
},
{
"from": "gpt",
"value": "<?php\n\n\nnamespace MathieuImbert\\SlackLogger\\Tests;\n\n\nuse PHPUnit\\Framework\\TestCase;\nuse MathieuImbert\\SlackLogger\\SlackLogger;\nuse Psr\\Log\\LogLevel;\n\nclass SlackLoggerTest extends TestCas... | php | chosen |
[
{
"from": "human",
"value": "Change filename to coexist with other classes\n"
},
{
"from": "gpt",
"value": "<?php\n\n\tclass Page\n\t{\n\t\tprivate $metatitle;\n\t\tprivate $url;\n\t\tprivate $title;\n\n\t\tpublic function __construct($metatitle, $url, $title)\n\t\t{\n\t\t\t$this->metatitle = $m... | php | chosen |
[
{
"from": "human",
"value": "Work on Eloquent integration test setup.\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Database\\Connection;\nuse Illuminate\\Database\\Eloquent\\Model as Eloquent;\n\nclass DatabaseEloquentIntegrationTests extends PHPUnit_Framework_TestCase {\n\n\t/**\n\... | php | chosen |
[
{
"from": "human",
"value": "Add realm finder service test\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace OpenDominion\\Tests\\Unit\\Services;\n\nuse CoreDataSeeder;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\nuse OpenDominion\\Models\\Race;\nuse OpenDominion\\Models\\Realm;\... | php | chosen |
[
{
"from": "human",
"value": "Add a test for PM notification sending\n"
},
{
"from": "gpt",
"value": "<?php\n\nApp::uses('NotificationListener', 'Lib/Event');\nApp::uses('CakeEvent', 'Event');\nApp::uses('CakeEmail', 'Network/Email');\n\nclass NotificationListenerTest extends CakeTestCase {\n ... | php | chosen |
[
{
"from": "human",
"value": "Add minimal test of ACL aware AS3 adapter\n\nAs the API will change, this will ensure the adapter always\nimplements the Adapter interface\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Gaufrette\\Adapter;\n\nclass AclAwareAmazonS3Test extends \\PHPUnit_Framewor... | php | chosen |
[
{
"from": "human",
"value": "Add cover code block encoding edge case in smilies replacement tests\n"
},
{
"from": "gpt",
"value": "<?php\r\n/**\r\n * Created by PhpStorm.\r\n * User: benlo\r\n * Date: 25/03/19\r\n * Time: 21:36\r\n */\r\n\r\nnamespace Friendica\\Test\\src\\Content;\r\n\r\nuse Fr... | php | chosen |
[
{
"from": "human",
"value": "Create Logged in Author data source\n"
},
{
"from": "gpt",
"value": "<?php\n\n\trequire_once(TOOLKIT . '/class.datasource.php');\n\n\tClass datasourcelogged_in_author extends AuthorDatasource{\n\n\t\tpublic $dsParamROOTELEMENT = 'logged-in-author';\n\t\tpublic $dsPar... | php | chosen |
[
{
"from": "human",
"value": "BB-3874: Remove Checkout and AlternativeCheckout entities\n - removed Checkout and AlternativeCheckout entities\n - entity BaseCheckout renamed to Checkout\n - updated related services\n - add migrations\n - updated unit tests\n"
},
{
"from": "gpt",
"value": "<?php\n... | php | chosen |
[
{
"from": "human",
"value": "Add tests for accessing Audio controller actions\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace App\\Test\\TestCase\\Controller;\n\nuse App\\Test\\TestCase\\Controller\\TatoebaControllerTestTrait;\nuse Cake\\Core\\Configure;\nuse Cake\\TestSuite\\IntegrationTestCa... | php | chosen |
[
{
"from": "human",
"value": "Allow test cases to clear out tables\n"
},
{
"from": "gpt",
"value": "<?php\nuse Laracasts\\Integrated\\Extensions\\Goutte as IntegrationTest;\n\nuse Illuminate\\Database\\Capsule\\Manager as Capsule;\n\ntrait EloquentFunctionalityTrait \n{\n /**\n * Begin a n... | php | chosen |
[
{
"from": "human",
"value": "Update SplatNet IDs for Spring Fest\n\nrelated to #413\nfixes #418\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @copyright Copyright (C) 2015-2019 AIZAWA Hina\n * @license https://github.com/fetus-hina/stat.ink/blob/master/LICENSE MIT\n * @author AIZAWA Hina <hina... | php | chosen |
[
{
"from": "human",
"value": "Add a test for WifPrivateKeySerializer, where it successfully produces the correct wif, and where it catches an invalid wif\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace BitWasp\\Bitcoin\\Tests\\Serializer\\Key\\PrivateKey;\n\n\nuse BitWasp\\Bitcoin\\Base58;\nu... | php | chosen |
[
{
"from": "human",
"value": "Add test for Log component\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace PhpTabsTest\\Component;\n\nuse PHPUnit_Framework_TestCase;\nuse PhpTabs\\Component\\Config;\nuse PhpTabs\\Component\\Log;\n\n/**\n * Tests Log component\n */\nclass LogTest extends PHPUnit... | php | chosen |
[
{
"from": "human",
"value": "Revert \"Revert \"Start på equipment\"\"\n\nThis reverts commit ace77d012161e6ba0a7edd17b6a78bb6ce760f8d.\n"
},
{
"from": "gpt",
"value": "<?php\n\n//dbconnector:\n $db_host=\"192.168.0.4\"; // Host name\n $db_username=\"c1root\"; // Mysql username\n $db_pas... | php | chosen |
[
{
"from": "human",
"value": "Add test coverage for fast lookup\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse OpenSRS\\fastlookup\\FastDomainLookup;\n\nclass FastDomainLookupTest extends PHPUnit_Framework_TestCase\n{\n /**\n * Should throw an exception if domain is ommited\n * \n *... | php | chosen |
[
{
"from": "human",
"value": "Add Firearm as a resource.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\Firearm;\nuse Illuminate\\Http\\Request;\n\nuse App\\Http\\Requests;\nuse App\\Http\\Controllers\\Controller;\n\nclass FirearmController extends Control... | php | chosen |
[
{
"from": "human",
"value": "Add functional tests for link and unlink\n"
},
{
"from": "gpt",
"value": "<?php\n\ndeclare (strict_types = 1); // @codeCoverageIgnore\n\nnamespace Recoil;\n\nrit('terminates the linked strand', function () {\n $strand = yield Recoil::execute(function () {\n ... | php | chosen |
[
{
"from": "system",
"value": "Allow skipping the ContactDetails step if users are logged in, with correct info already provided.\n"
},
{
"from": "human",
"value": "<?php\n\nclass CheckoutStep_ContactDetails extends CheckoutStep{\n\n\tprivate static $allowed_actions = array(\n\t\t'contactdetails'... | php | chosen |
[
{
"from": "system",
"value": "Fix a possible undefined variable\n\nSummary:\nI pulled this out of the logs; not sure how anyone hit it, but this controller could bump into an undefined variable here:\n\n```\n2015/06/24 22:59:55 [error] 10150#0: *172493 FastCGI sent in stderr: \"PHP message: [2015-06-24 22:5... | php | chosen |
[
{
"from": "system",
"value": "Add user defined config hendler\n"
},
{
"from": "human",
"value": "<?php\nnamespace Resources;\n\nclass Config {\n \n static private $config = array();\n \n static private function _cache($name){\n \n if( ! isset(self::$config[$name]) ) {\n... | php | chosen |
[
{
"from": "human",
"value": "Add helper method to build request attribute\n"
},
{
"from": "gpt",
"value": "<?php namespace JD\\Laradit\\Helpers;\n\nclass APIRequestBuilder\n{\n public static function getRequestAttributes($url, $token)\n {\n return [\n 'url' => 'https://oa... | php | chosen |
[
{
"from": "human",
"value": "Add Nova user dropdown partial, without the gravatar\n"
},
{
"from": "gpt",
"value": "<dropdown-trigger class=\"h-9 flex items-center\" slot-scope=\"{toggle}\" :handle-click=\"toggle\">\n <span class=\"text-90\">\n {{ auth()->user()->name }}\n </span>\n<... | php | chosen |
[
{
"from": "human",
"value": "Add Dusk test for the micropub client\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Tests\\Browser;\n\nuse Tests\\DuskTestCase;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\n\nclass MicropubClientTest extends DuskTestCase\n{\n /**\n * Test t... | php | chosen |
[
{
"from": "human",
"value": "Add company approval email template\n"
},
{
"from": "gpt",
"value": "<!-- resources/views/emails/company-approval.blade.php -->\n\nYour Application Licence has bin approved.\n<br/>\n<br/>To login and start using application go to:\n<br/>\n<br/><a href=\"{{ url('auth/... | php | chosen |
[
{
"from": "human",
"value": "Add missing carrier data file from last commit\n\nFixes #163\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * This file is automatically @generated by {@link GeneratePhonePrefixData}.\n * Please don't modify it directly.\n */\n\nreturn array (\n 26460 => 'Telecom Nam... | php | chosen |
[
{
"from": "human",
"value": "Add test suite for git locator\n"
},
{
"from": "gpt",
"value": "<?php\ndeclare( strict_types=1 );\n\nnamespace GrumPHPTest\\Unit\\Locator;\n\nuse GrumPHP\\Locator\\GitRepositoryDirLocator;\nuse GrumPHP\\Util\\Filesystem;\nuse GrumPHPTest\\Symfony\\FilesystemTestCase;... | php | chosen |
[
{
"from": "human",
"value": "Add PHPUnit tests for Stripe_ApplicationFee\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass Stripe_ApplicationFeeTest extends Stripe_TestCase\n{\n public function testUrls()\n {\n $applicationFee = new Stripe_ApplicationFee('abcd/efgh');\n $this->assertSame(\... | php | chosen |
[
{
"from": "human",
"value": "Add indexes to artwork_term table via migration\n\nShould be a substantial speedup: from 15-20s to 2-5s on `/artworks`.\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\... | php | chosen |
[
{
"from": "human",
"value": "Add hero standfirst template for page title block\n"
},
{
"from": "gpt",
"value": "<?php\ndefined('C5_EXECUTE') or die(\"Access Denied.\");\n?>\n\n<section class=\"ws-hero ws-hero-standfirst ws-hero-sm\">\n\n <?php\n if ($useFilterTitle) {\n if (is_objec... | php | chosen |
[
{
"from": "human",
"value": "Test cases for the symbol manager\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Contracts libray - a design by contracts library\n *\n * @author Ntwali Bashige <ntwali.bashige@gmail.com>\n * @copyright 2015 Ntwali Bashige\n * @link http://www.ntwaliba... | php | chosen |
[
{
"from": "human",
"value": "Add tests for the PagesController.\n\nThese tests used to be in cakephp/cakephp but the code is here, and not\nthere.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)\n * Copyright (c) Cake Software Founda... | php | chosen |
[
{
"from": "human",
"value": "Add install command integration test (incomplete)\n"
},
{
"from": "gpt",
"value": "<?php\nuse Symfony\\Component\\Console\\Input\\ArrayInput;\nuse Symfony\\Component\\Console\\Output\\StreamOutput;\n\n/**\n * InstallCommandTest\n *\n * @group commands\n * @group inst... | php | chosen |
[
{
"from": "human",
"value": "Add class to identify FI by name and address\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Z38\\SwissPayment;\n\n/**\n * FinancialInstitutionAddress holds information to identify a FI by name and address\n */\nclass FinancialInstitutionAddress implements Financ... | php | chosen |
[
{
"from": "human",
"value": "Test inserting bigint values in DB\n\nSigned-off-by: Florian Pritz <753f544d2d01592750fb4bd29251b78abcfc8ecd@xinu.at>\n"
},
{
"from": "gpt",
"value": "<?php\n/*\n * Copyright 2017 Florian \"Bluewind\" Pritz <bluewind@server-speed.net>\n *\n * Licensed under AGPLv3\n ... | php | chosen |
[
{
"from": "human",
"value": "Correct an old issue with Paste by restoring the file attachment edge\n\nSummary:\nI'm having trouble figuring out exactly what the timeframe on this was, but for a while in November we were not writing edges between pastes and their attached files correctly.\n\nAn example of th... | php | chosen |
[
{
"from": "human",
"value": "Create transformer to change retruned value of collection of participants\n\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace App\\Http\\Response\\Transformers;\n\nuse App\\Participant;\nuse League\\Fractal\\TransformerAbstract;\n\nclass ParticipantTransformer extend... | php | chosen |
[
{
"from": "human",
"value": "Add missing permission category task handler: logs\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Concrete\\Core\\Permission\\Category\\TaskHandler;\n\nuse Concrete\\Core\\Error\\UserMessageException;\nuse Concrete\\Core\\Permission\\Category\\DefaultTaskHandler... | php | chosen |
[
{
"from": "human",
"value": "Add sanity check to check if database connection is OK.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n *\n * @param array &$hookinfo hookinfo\n */\nfunction consentSimpleAdmin_hook_sanitycheck(&$hookinfo) {\n\tassert('is_array($hookinfo)');\n\tassert('array_key_exist... | php | chosen |
[
{
"from": "human",
"value": "Implement the most dumb cache driver in the whole universe\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Ob_Ivan\\Cache\\Driver;\n\nuse Ob_Ivan\\Cache\\StorageInterface;\n\nclass NoneDriver implements StorageInterface\n{\n public function delete($key)\n {\n... | php | chosen |
[
{
"from": "human",
"value": "Add cache-related columns to track_files table\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * Pony.fm - A community for pony fan music.\n * Copyright (C) 2015 Peter Deltchev\n *\n * This program is free software: you can redistribute it and/or modify\n * it under ... | php | chosen |
[
{
"from": "human",
"value": "Add tests for the Swarrot message publisher\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * Regis – Static analysis as a service\n * Copyright (C) 2016-2017 Kévin Gomez <contact@kevingomez.fr>\n *\n * This program is free software: you can redistribute it and/or mod... | php | chosen |
[
{
"from": "human",
"value": "Add index on addressbookid, name and value to improve query for addressbooks and contacts\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @author Jörn Friedrich Dreyer <jfd@butonic.de>\n *\n * @copyright Copyright (c) 2020, ownCloud GmbH\n * @license AGPL-3.0\n *\n *... | php | chosen |
[
{
"from": "human",
"value": "Implement a server class that composes the other servers\n\nUseful for local development using PHP-PM. :)\n"
},
{
"from": "gpt",
"value": "<?php\n/*\n * This file is part of Flarum.\n *\n * (c) Toby Zerner <toby.zerner@gmail.com>\n *\n * For the full copyright and li... | php | chosen |
[
{
"from": "human",
"value": "Add id as a primary key for cancelled_operation table\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass m110905_125508_update_cancelled_operation_table extends CDbMigration\n{\n\tpublic function up()\n\t{\n\t\t$this->dropForeignKey('operation_1','cancelled_operation');... | php | chosen |
[
{
"from": "human",
"value": "Configure mockery to be a little more strict\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Tests;\n\nuse Mockery;\nuse PHPUnit\\Framework\\TestCase as Base;\n\nabstract class TestCase extends Base\n{\n /**\n * @before\n */\n protected function set... | php | chosen |
[
{
"from": "human",
"value": "[fix] Add columns to table that might be missing on older hubs\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Hubzero\\Content\\Migration\\Base;\n\n// No direct access\ndefined('_HZEXEC_') or die();\n\n/**\n * Migration script for adding versionid and doi columns to d... | php | chosen |
[
{
"from": "human",
"value": "Test for the application implementation\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * PHP Version 5.6.0\n *\n * @category Unknown Category\n * @package Tests\n * @author Dimitar Dimitrov <daghostman.dd@gmail.com>\n * @license MIT https://opensource.org/licenses... | php | chosen |
[
{
"from": "human",
"value": "Create migreation for user table.\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Phinx\\Migration\\AbstractMigration;\n\nclass CreateUserTable extends AbstractMigration\n{\n public function change()\n {\n $table = $this->table('user');\n $table->ad... | php | chosen |
[
{
"from": "human",
"value": "Add advanced autocomplete search example.\n"
},
{
"from": "gpt",
"value": "<?php\n\nrequire_once \"vendor/autoload.php\";\nrequire_once 'example_helpers.php';\n\n/*\n The following snippet shows an example of how to search for people using the autocomplete endpoint ... | php | chosen |
[
{
"from": "system",
"value": "Add dynamic option setter for session resource\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Panada session Handler.\n *\n * @package\tResources\n * @link\thttp://panadaframework.com/\n * @license\thttp://www.opensource.org/licenses/bsd-license.php\n * @author\t... | php | chosen |
[
{
"from": "human",
"value": "Add tests for the RouteAwareFactory\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Hateoas\\Tests\\Factory;\n\nuse Hateoas\\Factory\\Config\\ArrayConfig;\nuse Hateoas\\Factory\\Definition\\RouteLinkDefinition;\nuse Hateoas\\Factory\\RouteAwareFactory;\nuse Hateo... | php | chosen |
[
{
"from": "human",
"value": "Implement detected bot data fixture.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n * For the full copyright and license... | php | chosen |
[
{
"from": "human",
"value": "Create a basic catcher class\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace duncan3dc\\Exceptions;\n\nclass Catcher\n{\n /**\n * @param \\Throwable[] $exceptions An array of caught exceptions.\n */\n private $exceptions = [];\n\n\n /**\n * R... | php | chosen |
[
{
"from": "human",
"value": "Add missing file from previous commit.\n"
},
{
"from": "gpt",
"value": "<?php\n/*\n* This file is part of pssht.\n*\n* (c) François Poirotte <clicky@erebot.net>\n*\n* For the full copyright and license information, please view the LICENSE\n* file that was distributed... | php | chosen |
[
{
"from": "human",
"value": "Send via code, not direct through apache.\n"
},
{
"from": "gpt",
"value": "<?php\n\n include \"init.inc\";\n\n import_request_variables(\"cpg\",\"rvar_\");\n\n header('Cache-Control: max-age=0, must-revalidate, no-cache, no-store');\n header('Content-Type: text/p... | php | chosen |
[
{
"from": "human",
"value": "Add a command to kick a specific job id\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Leezy\\PheanstalkBundle\\Command;\n\nuse Leezy\\PheanstalkBundle\\Proxy\\PheanstalkProxy;\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand;\nuse Symfony\\... | php | chosen |
[
{
"from": "human",
"value": "Add (failed) test for XHTML\n"
},
{
"from": "gpt",
"value": "<?php\nheader('Content-Type: application/xml; charset=utf-8'); // Necessary to do “real” XHTML.\n?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xht... | php | chosen |
[
{
"from": "human",
"value": "Add base class to capture credentials once\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Trackops;\n\nuse Trackops\\Api\\GuzzleRequest;\n\nclass Trackops\n{\n protected $subdomain;\n\n protected $username;\n\n protected $token;\n\n public function __c... | php | chosen |
[
{
"from": "human",
"value": "Add a PHP script to handle form submissions.\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*============================================================================*\\\n\t ________ ______ __ __\n\t / ____/ /__ _ ____... | php | chosen |
[
{
"from": "human",
"value": "[DoctrineBundle] Add new Command doctrine:mapping:info that allows to check what entities are mapped and if their metadata is specified correctly. Added exception when a mapping/bundle directory does not exist.\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * This fi... | php | chosen |
[
{
"from": "human",
"value": "Add start of implementation of Share command\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Commands;\n\nuse Telegram\\Bot\\Commands\\Command;\nuse Base\\DB;\nuse Base\\Meetup;\n/**\n * Class ShareCommand.\n */\nclass ShareCommand extends Command\n{\n /**\n ... | php | chosen |
[
{
"from": "human",
"value": "Add a page resource for sending mail test\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Kenjis.Contact\n *\n * @author Kenji Suzuki <https://github.com/kenjis>\n * @license MIT License\n * @copyright 2014 Kenji Suzuki\n * @link https://github.com/kenj... | php | chosen |
[
{
"from": "human",
"value": "Add a system level logging service provider"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Bolt\\Provider;\n\nuse Bolt\\Database\\LoggerHandler;\nuse Monolog\\Logger;\nuse Silex\\Application;\nuse Silex\\ServiceProviderInterface;\n\n/**\n * Monolog provider for Bo... | php | chosen |
[
{
"from": "human",
"value": "[Tests] Add a namespaced class to testvendor/testext\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Bolt\\Extensions\\TestVendor\\TestExt;\n\nclass GumLeaves\n{\n protected $dropBear = 'Koala Power!';\n\n public function __construct()\n {\n }\n\n pu... | php | chosen |
[
{
"from": "system",
"value": "Use PHP_SAPI instead of php_sapi_name()"
},
{
"from": "human",
"value": "<?php\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Debug\\Debug;\n\n// If you don't want to setup permissions the proper way, just uncomment the following PHP li... | php | chosen |
[
{
"from": "human",
"value": "Add the stomp receive task.. too many tasks to run now.. way too many.. fuck\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace ProjectRena\\Task;\n\nuse ProjectRena\\RenaApp;\nuse Cilex\\Command\\Command;\nuse ProjectRena\\Lib;\nuse Symfony\\Component\\Console\\Input... | php | chosen |
[
{
"from": "human",
"value": "Add new changes from jedi academy\n\nMaster"
},
{
"from": "gpt",
"value": "<div class=\"row\">\n <div class=\"span3\"><img src=\"/data/{mug}\" title=\"{who}\"/></div>\n <div class=\"span8 offset1\">\n <p class=\"lead\">{what}</p><br/>\n <p class=\... | php | chosen |
[
{
"from": "human",
"value": "Add Composer class to dump autoloader"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Bolt\\Composer\\Action;\n\nclass DumpAutoload\n{\n /**\n * @param $io Composer\\IO\\BufferIO\n * @param $composer Composer\\Composer\n * @param $options arra... | php | chosen |
[
{
"from": "human",
"value": "Add interface for migration import files\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Bolt\\Database\\Migration\\Input;\n\nuse Bolt\\Database\\Migration\\Import;\nuse Symfony\\Component\\HttpFoundation\\File\\File;\n\n/**\n * Interface for migration import fil... | php | chosen |
[
{
"from": "human",
"value": "Add first cli controller for retrieving a user's info.\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Monolog\\Logger;\nuse Monolog\\Handler\\StreamHandler;\n\n\n\t$log->pushHandler(new StreamHandler('php://stdout', Logger::WARNING));\n\n\tif(empty($username)) {\n\t\t... | php | chosen |
[
{
"from": "human",
"value": "Add benchmark for socket pairs\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Icicle\\Benchmarks\\Concurrent;\n\nuse Athletic\\AthleticEvent;\n\n/**\n * Profiles sending and receiving serialized data across a local TCP socket.\n */\nclass SocketPairEvent extends A... | php | chosen |
[
{
"from": "human",
"value": "Test that you need to be authenticated to edit a tag\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Backend\\Modules\\Blog\\Tests\\Action;\n\nuse Backend\\Modules\\Tags\\DataFixtures\\LoadTagsModulesTags;\nuse Backend\\Modules\\Tags\\DataFixtures\\LoadTagsTags;\... | php | chosen |
[
{
"from": "human",
"value": "[IM] Test vendor file for Netgear\n\nWe have two of these shite switches in the office and this\nis purely for development / testing purposes. This should\nnot be used as a template for other vendor files!\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n Copyright (... | php | chosen |
[
{
"from": "human",
"value": "Add Handler for sending emails from WordPress\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Analog\\Handler;\n\n/**\n * Send the log message to the specified email address using WordPress wp_mail.\n *\n * You can also specify a template in your theme to style h... | php | chosen |
[
{
"from": "human",
"value": "Add unit tests for SearchImage\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.L... | php | chosen |
[
{
"from": "human",
"value": "Add stub for registration controller\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse SlimController\\SlimController;\nuse rmatil\\cms\\Constants\\HttpStatusCodes;\nuse rmatil\\cms\\Entities\\User;\nuse Doctrine\\ORM\\EntityManager;\nuse Doctrine\\DBAL\\DBALException;\n... | php | chosen |
[
{
"from": "human",
"value": "Add json RPC test to cover our additions\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: thomas\n * Date: 31/05/15\n * Time: 17:05\n */\n\nnamespace BitWasp\\Bitcoin\\Tests\\JsonRpc;\n\n\nuse BitWasp\\Bitcoin\\JsonRpc\\JsonRpcClient;\nu... | php | chosen |
[
{
"from": "human",
"value": "Add SNMP helper for Vyatta.\n"
},
{
"from": "gpt",
"value": "<?php\nif (!defined('BASEPATH')) {\n exit('No direct script access allowed');\n}\n#\n# Copyright 2003-2015 Opmantek Limited (www.opmantek.com)\n#\n# ALL CODE MODIFICATIONS MUST BE SENT TO CODE@OPMANTE... | php | chosen |
[
{
"from": "human",
"value": "Add Mail wrapper for public API\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * ownCloud\n *\n * This file is licensed under the Affero General Public License version 3 or\n * later. See the COPYING file.\n *\n * @author Pellaeon Lin <pellaeon@cnmc.tw>\n * @copyright... | php | chosen |
[
{
"from": "human",
"value": "Test rgb to hex conversions\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Rainbow\\Tests\\Converter;\n\nuse Rainbow\\Converter\\RgbToHexConverter;\nuse Rainbow\\Hex;\nuse Rainbow\\Rgb;\n\nclass RgbToHexConverterTest extends \\PHPUnit_Framework_TestCase\n{\n ... | php | chosen |
[
{
"from": "human",
"value": "Move all the files under docs\n"
},
{
"from": "gpt",
"value": "<?php\n\n$title_singular = 'Address';\n$title_plural = 'Addresses';\n$table_name = 'Address';\n$table_name_lower = 'track';\n$reference_implementation = 'http://www.php-intro.com/exams/fin-f15-address';\n... | php | chosen |
[
{
"from": "human",
"value": "Revert \"Tue Aug 13 23:09:09 MDT 2013\"\n\nThis reverts commit 5679872f4e219e6e4fd57a265cb1e2f65ee2b81f.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Inventory\\Model\\Validate;\n\nuse Zend\\Validator\\AbstractValidator;\nuse Zend\\Validator\\Regex;\n\nclass S... | php | chosen |
[
{
"from": "human",
"value": "Add point tests for geometry builder\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Test the GeometryBuilder class\n * @author Rob Ingram <robert.ingram@ccc.govt.nz>\n */\nrequire_once 'src/GeoJSON/GeometryBuilder.php';\nuse PHPUnit\\Framework\\TestCase;\n\nclass G... | php | chosen |
[
{
"from": "human",
"value": "Add new validator to check if input is instance of a certain class\n\nChange-Id: I6365cf9a6652ca42a1f6897002e5abe455ed4f44\n"
},
{
"from": "gpt",
"value": "<?php\r\n/**\r\n * Zend Framework (http://framework.zend.com/)\r\n *\r\n * @link http://github.com/zendfra... | php | chosen |
[
{
"from": "human",
"value": "Add class to store DB table names\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 PH... | php | chosen |
[
{
"from": "human",
"value": "Add test for the Webhook Create command\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Tests\\Regis\\Application\\CommandHandler\\Webhook;\n\nuse Regis\\Application\\Repository\\Repositories;\nuse Regis\\Application\\Command;\nuse Regis\\Application\\CommandHand... | php | chosen |
[
{
"from": "system",
"value": "Allow PHP response to send MultipleHeaders safely\n\n- Detect MultipleHeaderDescription\n - when found, pass boolean false as second argument to header()\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace Zend\\Http\\PhpEnvironment;\n\nuse Zend\\Http\\Response... | php | chosen |
[
{
"from": "human",
"value": "Test : Check if class Chill\\ReportBundle\\Entity\\Report is in chill_custom_fields.customizables_entities\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Chill\\ReportBundle\\Tests\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase;\n\ncl... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.