conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "[PhpUnitBridge] Add test case for @expectedDeprecation annotation\n\n"
},
{
"from": "gpt",
"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, pl... | php | chosen |
[
{
"from": "human",
"value": "Add lesson for simple Make Static refactoring\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Make Static\n *\n * Make method static.\n *\n */\n\nnamespace Refactoring16\\JetBrains;\n\n// 1. Make method split static.\nclass Splitter\n{\n\tprivate $delimiter;\n\n\tpub... | php | chosen |
[
{
"from": "human",
"value": "Add make task runner mock util method\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Aedart\\Scaffold\\Contracts\\Tasks\\ConsoleTaskRunner;\nuse Mockery as m;\n\n/**\n * Trait TaskRunnerUtils\n *\n * @author Alin Eugen Deac <aedart@gmail.com>\n */\ntrait TaskRunnerUti... | php | chosen |
[
{
"from": "human",
"value": "[API] Configure cart and related items serialization\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 propel user table migration file\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * Data object containing the SQL and PHP code to migrate the database\n * up to version 1421151831.\n * Generated on 2015-01-13 12:23:51 by vagrant\n */\nclass PropelMigration_142115... | php | chosen |
[
{
"from": "human",
"value": "Add 'Geen' als inkomen met migratie\n"
},
{
"from": "gpt",
"value": "<?php declare(strict_types=1);\n\nnamespace Application\\Migrations;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Doctrine\\Migrations\\AbstractMigration;\n\n/**\n * Auto-generated Migration: Please ... | php | chosen |
[
{
"from": "human",
"value": "Add MailMimeParser class unit tests\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace ZBateson\\MailMimeParser;\n\nuse PHPUnit_Framework_TestCase;\n\n/**\n * Description of MailMimeParserTest\n *\n * @group MailMimeParser\n * @group Base\n * @covers ZBateson\\MailMim... | php | chosen |
[
{
"from": "human",
"value": "Add a factory class to create exception pages.\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace pyd\\testkit\\web\\exceptions;\n\nuse pyd\\testkit\\Tests;\nuse yii\\base\\InvalidParamException;\n\n/**\n * Create exception page instances.\n *\n * @author Pierre-Yves ... | php | chosen |
[
{
"from": "human",
"value": "Add backend for checking and getting the lastest notification\n"
},
{
"from": "gpt",
"value": "<?php\n\n# check here\n//Notifications which could be shown in the bottom corner of the page, and also dismissed.\n//This would require another table with system informatio... | php | chosen |
[
{
"from": "human",
"value": "Add exclusive flag to artist tracks"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddExclusiveToArtistTracks extends Migration\n{\n /**\n * Run the migrations.\n ... | php | chosen |
[
{
"from": "human",
"value": "Add unit tests for TIdentityDecorator\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Squid\\MySql\\Impl\\Connectors\\Object\\Identity;\n\n\nuse lib\\DataSet;\nuse lib\\DummyObject;\nuse PHPUnit\\Framework\\TestCase;\nuse Squid\\MySql\\Impl\\Connectors\\Internal\\O... | php | chosen |
[
{
"from": "human",
"value": "Add test for artisan update command. Need to refactor so it's not hitting the meetup api\n"
},
{
"from": "gpt",
"value": "<?php \n$I = new AcceptanceTester($scenario);\n$I->wantTo('add or update events in database');\n$I->runShellCommand('php artisan memvents:update'... | php | chosen |
[
{
"from": "human",
"value": "Add a custom throttle class\n\ni dont want Stiphle's behavior of waiting. I want to deny the upload.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Copyright (c) (2017) - Aikar's Minecraft Timings Parser\n *\n * Written by Aikar <aikar@aikar.co>\n * + Contributo... | php | chosen |
[
{
"from": "human",
"value": "TASK: Add code migration to adjust DB migrations\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Neos\\Flow\\Core\\Migrations;\n\n/*\n * This file is part of the Neos.Flow package.\n *\n * (c) Contributors of the Neos Project - www.neos.io\n *\n * This package is O... | php | chosen |
[
{
"from": "system",
"value": "Fix merge (phpdoc => typehint)\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file tha... | php | chosen |
[
{
"from": "human",
"value": "Update code Related product & show more images\n"
},
{
"from": "gpt",
"value": "<aside id=\"more_products\" class=\"canvas\">\n\t<h3>Related products</h3>\n\t<ul id=\"products\">\n\t\t<?php\n\t\t\t$count = count($info);\n\t\t\tfor($i=0; $i<$count; $i++){\n\t\t\t\t$id... | php | chosen |
[
{
"from": "human",
"value": "ADD: Create a class that will allow us to create an authenticated client with a JWT token\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * MIT License\n *\n * Copyright (c) 2016 Ricardo Velhote\n *\n * Permission is hereby granted, free of charge, to any person obtain... | php | chosen |
[
{
"from": "human",
"value": "Test the disconnect request 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\\DisconnectRequestPacket;\nuse BinSoul\\Net\\Mqtt\\... | php | chosen |
[
{
"from": "human",
"value": "ADD Lucene Search Query Builder\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Created by PhpStorm.\n * User: ahmetturk\n * Date: 30/06/2017\n * Time: 15:02\n */\n\nnamespace Fabs\\CouchDB2;\n\n\nuse Fabs\\CouchDB2\\Model\\LuceneSearchQueryModel;\n\nclass LuceneSear... | php | chosen |
[
{
"from": "system",
"value": "Reset loyalty when toggling whether txn earns any\n"
},
{
"from": "human",
"value": "<?\ninclude '../scat.php';\ninclude '../lib/txn.php';\n\n$txn_id= (int)$_REQUEST['txn'];\n\n$txn= txn_load($db, $txn_id);\n\nif (!$txn)\n die_jsonp('No such transaction.');\n\n/* P... | php | chosen |
[
{
"from": "human",
"value": "Add Command to generate CSV of the list\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Dellaert\\KULEducationAPIBundle\\Command;\n\nuse Symfony\\Component\\Console\\Command\\Command;\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\... | php | chosen |
[
{
"from": "human",
"value": "Create helper for assertion messages.\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace pyd\\testkit;\n\n/**\n * Store and provide generic failure messages for assertion methods.\n *\n * <code>\n * // AssertionMessage::get() will return the message set by the hasFocu... | php | chosen |
[
{
"from": "human",
"value": "Add class for getting latest vuln.\n\n\ngit-svn-id: 3b6cb4556d214d66df54bca2662d7ef408f367bf@3794 46e82423-29d8-e211-989e-002590a4cdd4\n"
},
{
"from": "gpt",
"value": "<?php\n\t#\n\t# $Id: vuln_latest.php,v 1.1.2.1 2006-09-16 23:17:42 dan Exp $\n\t#\n\t# Copyright (c... | php | chosen |
[
{
"from": "human",
"value": "Add PHPUnit test for demo adapter\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * Copyright (C) 2013 Kolibre\n *\n * This file is part of Kolibre-KADOS.\n * Kolibre-KADOS is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Lesse... | php | chosen |
[
{
"from": "human",
"value": "system: Add Json Interface to system\n\n Make application json class implement it.\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * This file contains an abstract definition for a JSON helper class.\n *\n * PHP Version 5.3\n *\n * @category Libraries\n * @package... | php | chosen |
[
{
"from": "human",
"value": "Set SplatNet ID for bbass\n\nSigned-off-by: AIZAWA Hina <07c779d48779c322a7c5324109202f9012f7aebf@bouhime.com>\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @copyright Copyright (C) 2015-2017 AIZAWA Hina\n * @license https://github.com/fetus-hina/stat.ink/blob/mast... | php | chosen |
[
{
"from": "human",
"value": "Add new model to handle DCS Device\n"
},
{
"from": "gpt",
"value": "<?php\nclass db_dcs_device extends CI_Model{\n\tfunction get_all(){\n\t\t$q = $this->db->get('dcs_device');\n\t\treturn $q->result();\n\t}\n\t\n\tfunction insert($data){\n\t\t$this->db->insert('dcs_d... | php | chosen |
[
{
"from": "human",
"value": "Add test for adding and getting log items\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass CM_Paging_Log_AbstractTest extends CMTest_TestCase {\n\n\tpublic function testAddGet() {\n\t\t$paging = $this->getMockBuilder('CM_Paging_Log_Abstract')->setMethods(array('getTyp... | php | chosen |
[
{
"from": "human",
"value": "Add tests for connected components (100% coverage)"
},
{
"from": "gpt",
"value": "<?php\n\nuse Fhaculty\\Graph\\Algorithm\\ConnectedComponents as AlgorithmConnected;\nuse Fhaculty\\Graph\\Graph;\n\nclass ConnectedComponentsTest extends TestCase\n{\n public functio... | php | chosen |
[
{
"from": "human",
"value": "Add test case for ByDayRule.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Zimbra\\Mail\\Tests\\Struct;\n\nuse Zimbra\\Mail\\Tests\\ZimbraMailTestCase;\nuse Zimbra\\Enum\\WeekDay;\nuse Zimbra\\Mail\\Struct\\ByDayRule;\nuse Zimbra\\Mail\\Struct\\WkDay;\n\n/**\n ... | php | chosen |
[
{
"from": "human",
"value": "Add a class to create the charge with authorize only\n\nAdd a class to create the charge with authorize only. The public key and\nsecret key will be used from the initialize of parent class. This class\nis still fixed the parameters from the client side."
},
{
"from": "g... | php | chosen |
[
{
"from": "human",
"value": "Add candidacy step 7 form type\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": ":sparkles: Add new interface for building signature base string.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Risan\\OAuth1\\Signature;\n\nuse Psr\\Http\\Message\\UriInterface;\n\ninterface BaseStringBuilderInterface\n{\n /**\n * Build the signature bas... | php | chosen |
[
{
"from": "human",
"value": "Add a test to cover promises\n"
},
{
"from": "gpt",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace GraphQL\\Tests;\n\nuse GraphQL\\Executor\\Promise\\Adapter\\SyncPromiseAdapter;\nuse GraphQL\\GraphQL;\nuse GraphQL\\Type\\Definition\\ObjectType;\nuse GraphQ... | php | chosen |
[
{
"from": "human",
"value": "Add a database base class\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace SilMock\\Google\\Service;\n\nuse Exception;\nuse SilMock\\DataStore\\Sqlite\\SqliteUtils;\nuse Sil\\Psr3Adapters\\Psr3EchoLogger;\n\nclass DbClass\n{\n /** @var string|null - The path (w... | php | chosen |
[
{
"from": "human",
"value": "Fix defaults of new fields\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Phinx\\Migration\\AbstractMigration;\nuse Phinx\\Db\\Adapter\\MysqlAdapter;\n\nclass FixQbJeId extends AbstractMigration\n{\n public function change()\n {\n $table= $this->table('paym... | php | chosen |
[
{
"from": "human",
"value": "Create base controller class for WizinSimpleCmsBundle\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Base controller class for WizinSimpleCmsBundle\n */\nnamespace Wizin\\Bundle\\SimpleCmsBundle\\Controller;\n\nuse Wizin\\Bundle\\BaseBundle\\Controller\\Controller a... | php | chosen |
[
{
"from": "human",
"value": "Add custom attribute value endpoint\n\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace TZK\\Taiga\\Services;\n\nuse TZK\\Taiga\\RestClient;\nuse TZK\\Taiga\\Service;\n\nclass IssueCustomAttributeValues extends Service\n{\n public function __construct(RestClient... | php | chosen |
[
{
"from": "system",
"value": "Modify front controller to call primary loader\n"
},
{
"from": "human",
"value": "<?php\n\n// Check if we're at least on PHP 5.3.3. We do this check here, because as soon as\n// we require any other files, we'll get a fatal error, because the parser chokes\n// on th... | php | chosen |
[
{
"from": "human",
"value": "Add stub test for CASHData\n"
},
{
"from": "gpt",
"value": "<?php\n# error reporting\n# ini_set('display_errors',1);\n# error_reporting(E_ALL|E_STRICT);\n\nrequire_once('lib/simpletest/autorun.php');\nrequire_once('core/php/cashmusic.php');\n\nclass BasicTests extend... | php | chosen |
[
{
"from": "human",
"value": "Add first server side page for interfacing with Armadito HTTP Client\n"
},
{
"from": "gpt",
"value": "<?php\n\n// Page qui reçoit les requêtes de l'agent\n\ninclude_once (\"../../../inc/includes.php\");\ninclude_once (\"inc/armadito-includes.php\");\n\nif($_SERVER['R... | php | chosen |
[
{
"from": "human",
"value": "Add test to check length_in_pt returns as expected\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Dompdf\\Tests\\Css;\n\nuse Dompdf\\Dompdf;\nuse Dompdf\\Css\\Style;\nuse Dompdf\\Css\\Stylesheet;\nuse Dompdf\\Tests\\TestCase;\n\nclass StyleTest extends TestCase\... | php | chosen |
[
{
"from": "human",
"value": "Create nameless_version setting if it doesn't already exist\n"
},
{
"from": "gpt",
"value": "<?php\n// 2.0.0 pr-12 to 2.0.0 ? updater\ntry {\n $db_engine = Config::get('mysql/engine');\n} catch (Exception $e) {\n // unable to retrieve from config\n echo $e->... | php | chosen |
[
{
"from": "human",
"value": "Add test for created by field\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace ActiveCollab\\DatabaseStructure\\Test\\CompositeFields;\n\nuse ActiveCollab\\DatabaseStructure\\Field\\Composite\\CreatedByField;\nuse ActiveCollab\\DatabaseStructure\\Test\\TestCase;\n... | php | chosen |
[
{
"from": "human",
"value": "Add test for emailtracking response\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass CM_Http_Response_EmailTrackingTest extends CMTest_TestCase {\n\n public function tearDown() {\n CMTest_TH::clearEnv();\n }\n\n public function testProcess() {\n ... | php | chosen |
[
{
"from": "human",
"value": "Add test case for InvalidTwoFactorCodeException serialization\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Scheb\\TwoFactorBundle\\Tests\\Security\\Authentication\\Exception;\n\nuse Scheb\\TwoFactorBundle\\Security\\Authentication\\Exception\\InvalidTwoFactorC... | php | chosen |
[
{
"from": "human",
"value": "Make `cite_as` text columns to support longer lengths\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass MakeCiteAsTextColumn ext... | php | chosen |
[
{
"from": "human",
"value": "Test cases for frontend loggedout routes\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Tests\\Feature\\Frontend;\n\nuse Tests\\BrowserKitTestCase;\nuse App\\Models\\Access\\User\\User;\nuse Illuminate\\Support\\Facades\\App;\nuse Illuminate\\Support\\Facades\\E... | php | chosen |
[
{
"from": "human",
"value": "Add task locker for cli exec\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Pragma\\Helpers;\n\nclass TaskLock {\n\tpublic static function check_lock($path, $lock_name){\n\t\tif( ! file_exists($path) ){;\n\t\t\t$oldumask = umask(0);\n\t\t\tmkdir($path, 0775, true)... | php | chosen |
[
{
"from": "human",
"value": "[NEW] Add datetime formatter to search\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@36876 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "gpt",
"value": "<?php\n// (c) Copyright 2002-2011 by authors of the Tiki Wiki CMS Groupware Project\n// \n// All... | php | chosen |
[
{
"from": "human",
"value": "Add a authentication endpoint into the API\n"
},
{
"from": "gpt",
"value": "<?php defined('SYSPATH') or die('No direct script access.');\n\n/**\n * Simple authentication API\n */\nclass Controller_Api_V1_Auth extends Controller_Api_Standard\n{\n\n\tpublic function ac... | php | chosen |
[
{
"from": "human",
"value": "Add a demo api controller\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Lyon1\\Bundle\\PoobleBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Symfony\\Comp... | php | chosen |
[
{
"from": "human",
"value": "Create migration to remove Projects table and project_id column from workspaces table\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse App\\Utils\\RawMigration;\n\nclass RemoveProjects extends RawMigration\n{\n /**\n * @inheritdoc\n * @return string\n */\... | php | chosen |
[
{
"from": "human",
"value": "Add File: First Draft Plugin File"
},
{
"from": "gpt",
"value": "<?php\n/*\nPlugin Name: OHS Rest API Plugin\nDescription: Enables the OHS API\nAuthor: Derek Dorr\nVersion: 0.1\n*/\nif ( ! defined( 'ABSPATH' ) ) {\n\texit;\n} // Exit if accessed directly\n\nregister_... | php | chosen |
[
{
"from": "human",
"value": "Add an example of creating an order\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * Include the composer autoload file.\n */\n\ninclude('../vendor/autoload.php');\n\n/*\n * Load in the configuration information.\n * Make sure to replace the keys with your own.\n */\... | php | chosen |
[
{
"from": "human",
"value": "Add events.php for table trl\n\nNow cache deleted on master-change and component-change\n"
},
{
"from": "gpt",
"value": "<?php\nclass Kwc_Basic_Table_Trl_Events extends Kwc_Chained_Trl_Events\n{\n public function getListeners()\n {\n $ret = parent::getLi... | php | chosen |
[
{
"from": "human",
"value": "Create dummy class to test query filters\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Cerbero\\QueryFilters;\n\n/**\n * Dummy class to test query filters.\n *\n * @author Andrea Marco Sartori\n */\nclass TestFilters extends QueryFilters\n{\n /**\n * ... | php | chosen |
[
{
"from": "human",
"value": "Add the make 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, please view t... | php | chosen |
[
{
"from": "human",
"value": "Delete metadata objects for deleted entries\n\ngit-svn-id: 8a2ccb88241e16c78017770bc38d91d6d5396a5a@50661 6b8eccd3-e8c5-4e7d-8186-e12b5326b719\n"
},
{
"from": "gpt",
"value": "<?php\r\nclass kMetadataObjectDeletedHandler implements kObjectDeletedEventConsumer\r\n{\r\... | php | chosen |
[
{
"from": "human",
"value": "Add example for using rate limiter via MultiCurl::setRateLimit()\n"
},
{
"from": "gpt",
"value": "<?php\nrequire __DIR__ . '/../vendor/autoload.php';\n\nuse Curl\\MultiCurl;\n\n$start_time = microtime(true);\n\n$multi_curl = new MultiCurl();\n$multi_curl->setRateLimi... | php | chosen |
[
{
"from": "system",
"value": "Fix invalid whitespace on empty line\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the Laravel Auditing package.\n *\n * @author Antério Vieira <anteriovieira@gmail.com>\n * @author Quetzy Garcia <quetzyg@altek.org>\n * @author ... | php | chosen |
[
{
"from": "human",
"value": "Add table seeder for statuses\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass StatusesTableSeeder extends Seeder {\n\n\tpublic function run()\n\t{\n\t\tStatus::create([\n\t\t\t'title' => 'Open'\n\t\t]);\n\t\tStatus::create([\n\t\t\t'title' => 'In Progress'\n\t\t]);\n... | php | chosen |
[
{
"from": "human",
"value": "Add a service manager factory for the translator\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Zend Framework\n *\n * LICENSE\n *\n * This source file is subject to the new BSD license that is bundled\n * with this package in the file LICENSE.txt.\n * It is also av... | php | chosen |
[
{
"from": "human",
"value": "Add opcode cache recipe with tasks\n\n* opcache:reset:create_script\n* local:opcache:reset:create_script\n* opcache:reset:execute\n"
},
{
"from": "gpt",
"value": "<?php\n\nenv('web_dir', '.');\n\nset('reset_script_content', '\n<?php\n\nif (function_exists(\"opcache_r... | php | chosen |
[
{
"from": "human",
"value": "Add a wrapper class for API Credentials\n\n\nsvn commit r81454\n"
},
{
"from": "gpt",
"value": "<?php\n\nrequire_once 'SwatDB/SwatDBClassMap.php';\nrequire_once 'SwatDB/SwatDBRecordsetWrapper.php';\nrequire_once 'Site/dataobjects/SiteApiCredential.php';\n\n/**\n * A ... | php | chosen |
[
{
"from": "human",
"value": "Add test case for special characters\n\nSigned-off-by: Julius Härtl <bf353fa4999f2f148afcc6d8ee6cb1ee74cc07c3@bitgrid.net>\n"
},
{
"from": "gpt",
"value": "<?php\n/*\n * @copyright Copyright (c) 2021 Julius Härtl <jus@bitgrid.net>\n *\n * @author Julius Härtl <jus@bi... | php | chosen |
[
{
"from": "human",
"value": "Create migration to test Edge creation\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Lchski\\Migrations;\n\n\nuse Lchski\\Contracts\\Migration;\n\nclass CreateConnectionMigration extends BaseMigration implements Migration\n{\n\t/**\n\t * Create a dummy connecti... | php | chosen |
[
{
"from": "human",
"value": "Add unit test for models/Counter::getBest() method.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace tests\\codeception\\unit\\models;\n\nuse yii\\codeception\\TestCase;\nuse Carbon\\Carbon;\nuse app\\models\\Counter;\n\nclass CounterTest extends TestCase\n{\n ... | php | chosen |
[
{
"from": "human",
"value": "Add Client and Server interaction test"
},
{
"from": "gpt",
"value": "<?php\n\nuse Socks\\Factory;\n\nclass PairTest extends TestCase\n{\n private $loop;\n private $factory;\n \n public function setUp()\n {\n $this->loop = React\\EventLoop\\Fact... | php | chosen |
[
{
"from": "system",
"value": "Fix for erroneous service definition\n"
},
{
"from": "human",
"value": "<?php\n/*\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n * LIMITED TO, THE IMPLIED WARRANTIES O... | php | chosen |
[
{
"from": "human",
"value": "Add filesize column to track_files\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass UpdateTrackFilesWithFilesize extends Migration\n{\n /**\n * Run the migrations.... | php | chosen |
[
{
"from": "human",
"value": "Create Forum: Code Source data source"
},
{
"from": "gpt",
"value": "<?php\n\n\trequire_once(TOOLKIT . '/class.datasource.php');\n\t\n\tClass datasourceforum_code_source extends Datasource{\n\t\t\n\t\tpublic $dsParamROOTELEMENT = 'forum-code-source';\r\n\t\tpublic $d... | php | chosen |
[
{
"from": "human",
"value": "Check if fork is already installed\n\nBefore we try to do a clean install we need to be sure that fork isn't installed already.\nIf it is installed we run the prepare for reinstall command\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace ForkCMS\\Bundle\\Installer... | php | chosen |
[
{
"from": "human",
"value": "Add M6Web Guzzlehttp cache interface\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace M6Web\\Bundle\\ApcuBundle\\CacheAdapters;\n\nuse M6Web\\Bundle\\GuzzleHttpBundle\\Cache\\CacheInterface;\nuse M6Web\\Bundle\\ApcuBundle\\Apcu\\Apcu as BaseApcu;\n\n/**\n * Cache in... | php | chosen |
[
{
"from": "human",
"value": "Add unit tests (basic) for Vacancy\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse App\\User;\nuse App\\Business;\nuse App\\Contact;\nuse App\\Appointment;\nuse App\\Service;\nuse App\\Vacancy;\nuse Carbon\\Carbon;\nuse Illuminate\\Foundation\\Testing\\DatabaseTransact... | php | chosen |
[
{
"from": "human",
"value": "Add PolicyRule Manager with a create method\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace PhpAbac\\Manager;\n\nuse PhpAbac\\Model\\PolicyRule;\nuse PhpAbac\\Model\\PolicyRuleAttribute;\n\nuse PhpAbac\\Repository\\PolicyRuleRepository;\n\nclass PolicyRuleManager... | php | chosen |
[
{
"from": "human",
"value": "[PLG_NEWSLETTER_*] Install event, resource, feedaggregator plugins.\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Hubzero\\Content\\Migration\\Base;\n\n/**\n * Migration script for enabling digest plugins\n * Specifically the event, feedaggregator, and resource plugi... | php | chosen |
[
{
"from": "system",
"value": "Update dependency configuration as App now composes the container\n"
},
{
"from": "human",
"value": "<?php\n// DIC configuration\n\n// -----------------------------------------------------------------------------\n// Service providers\n// ---------------------------... | php | chosen |
[
{
"from": "human",
"value": "Remove float issue in client creation\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @package plugins.quiz\n * @subpackage api.objects\n */\nclass KalturaQuestionSummary extends KalturaObject\n{\n\t/**\n\t *\n\t * @var float\n\t */\n\tpublic $percentage;\n\n\tprivat... | php | chosen |
[
{
"from": "human",
"value": "Add test of details traitOfProject webservice\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Test\\AppBundle\\API\\Details;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\nuse Symfony\\Component... | php | chosen |
[
{
"from": "human",
"value": "Create service provider for the IDE (ODM) helper\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Laravel IDE Helper Generator\n *\n * @author Barry vd. Heuvel <barryvdh@gmail.com>, David Chang <davidchchang@gmail.com>\n * @copyright 2014 Barry vd. Heuvel / Fruitca... | php | chosen |
[
{
"from": "human",
"value": "Add console cli with basic interactive command\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass CM_Console_Cli extends CM_Cli_Runnable_Abstract {\n\n\tpublic function interactive() {\n\t\twhile ('exit' !== ($code = $this->_getInput()->read('php >'))) {\n\t\t\t$result ... | php | chosen |
[
{
"from": "system",
"value": "BAP-9940: Create controller DELETE list action\n - fix cs\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\ApiBundle\\Processor;\n\nuse Oro\\Bundle\\ApiBundle\\Provider\\ConfigProvider;\nuse Oro\\Bundle\\ApiBundle\\Processor\\DeleteList\\DeleteList... | php | chosen |
[
{
"from": "human",
"value": "Add unit test to FDPrivateMessageExtension\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace FD\\PrivateMessageBundle\\Tests\\DependencyInjection;\n\nuse FD\\PrivateMessageBundle\\DependencyInjection\\FDPrivateMessageExtension;\nuse Symfony\\Component\\DependencyIn... | php | chosen |
[
{
"from": "human",
"value": "Add make:module test for custom mappings\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Caffeinated\\Modules\\Tests\\Commands\\Generators;\n\nuse Spatie\\Snapshots\\MatchesSnapshots;\nuse Caffeinated\\Modules\\Tests\\BaseTestCase;\n\nclass CommandMakeModuleTest ... | php | chosen |
[
{
"from": "human",
"value": "Add filter empty string to null\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * Mmi Framework (https://github.com/milejko/mmi.git)\n *\n * @link https://github.com/milejko/mmi.git\n * @copyright Copyright (c) 2010-2017 Mariusz Miłejko (mariusz@milejko.pl)\n ... | php | chosen |
[
{
"from": "human",
"value": "Add test for internal controller\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Nextcloud - passman\n *\n * This file is licensed under the Affero General Public License version 3 or\n * later. See the COPYING file.\n *\n * @author Sander Brand <brantje@gmail.com>\n... | php | chosen |
[
{
"from": "human",
"value": "WIP: Implement unit tests for console ouput\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Neos\\Flow\\Tests\\Unit\\Cli;\n\n/*\n * This file is part of the Neos.Flow package.\n *\n * (c) Contributors of the Neos Project - www.neos.io\n *\n * This package is Open S... | php | chosen |
[
{
"from": "human",
"value": "Create generate migration command acceptance test\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass GenerateMigrationCommandTest extends AcceptanceTestCase\n{\n public function testExecute()\n {\n $output = $this->runConsole('g:migration test migration');\... | php | chosen |
[
{
"from": "human",
"value": "Add a simple example to docs\n"
},
{
"from": "gpt",
"value": "<?php\n\n$loader = require __DIR__.'/../../vendor/autoload.php';\n\nuse Doctrine\\Common\\Annotations\\AnnotationRegistry;\nAnnotationRegistry::registerLoader(array($loader, 'loadClass'));\n\n// Configure ... | php | chosen |
[
{
"from": "human",
"value": "[*] Add migration for lecture type\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Application\\Migrations;\n\nuse Doctrine\\DBAL\\Migrations\\AbstractMigration,\nDoctrine\\DBAL\\Schema\\Schema;\n\n/**\n * Auto-generated Migration: Please modify to your need!\n *... | php | chosen |
[
{
"from": "human",
"value": "Set rateGroup on Projects that currently don't have one\n\nAs an addition to 1c304ea, we also try to set the rateGroup based on the\ncustomer.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Application\\Migrations;\n\nuse Doctrine\\DBAL\\Migrations\\AbstractMigr... | php | chosen |
[
{
"from": "human",
"value": "[TASK] Add external file as menu\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace KayStrobach\\Menu;\n\n/* *\n * This script belongs to the TYPO3 Flow package \"Fluid\". *\n * ... | php | chosen |
[
{
"from": "human",
"value": "Add helper for ob_* functions\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * JBZoo Utils\n *\n * This file is part of the JBZoo CCK package.\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source co... | php | chosen |
[
{
"from": "human",
"value": "Add tests for the Model\\Git\\Diff class\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Tests\\Regis\\Application\\Model\\Git;\n\nuse Regis\\Application\\Model\\Git;\n\nclass DiffTest extends \\PHPUnit_Framework_TestCase\n{\n public function testGetAddedTextF... | php | chosen |
[
{
"from": "human",
"value": "system: Add basic structure of an autoloader class\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * This file contains a PHP Class autoloader, which\n * on class instantiation tries to load the required\n * source file automatically without the need to\n * explicite... | php | chosen |
[
{
"from": "system",
"value": "Test list command after the installation\n"
},
{
"from": "human",
"value": "<?php\nuse PhpBrew\\Testing\\CommandTestCase;\n\nclass InstallCommandTest extends CommandTestCase\n{\n /**\n * @outputBuffering enabled\n */\n public function testInstallComman... | php | chosen |
[
{
"from": "human",
"value": "[feature/AddTest] Add test on the autoload dumper\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Unit\\lib\\Dumper;\n\nuse Chris\\Composer\\AutoregisterClassmapPlugin\\Dumper\\AutoloadDumper;\nuse Neirda24\\Bundle\\ToolsBundle\\Converter\\ArrayToText;\nuse Phake... | php | chosen |
[
{
"from": "human",
"value": "Add language for Bahasa Indonesia\n"
},
{
"from": "gpt",
"value": "<?php\nreturn array(\n 'required' => \"harus diisi\",\n 'equals' => \"harus sama dengan '%s'\",\n 'different' => \"harus berbeda dengan '%s'\",\n 'accepted' => \"harus diterima (accepted)\... | php | chosen |
[
{
"from": "human",
"value": "Add an extension to register the base_url global within twig templates\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Jadu\\Pulsar\\Twig\\Extension;\n\n/**\n * Base URL\n */\nclass BaseUrlExtension extends \\Twig_Extension\n{\n\n public function getName() \n ... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.