conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Fix for unique identifier export\n\n--HG--\nrename : app/protected/modules/export/adapters/TextRedBeanModelAttributeValueToExportValueAdapter.php => app/protected/modules/export/adapters/UniqueIdentifierRedBeanModelAttributeValueToExportValueAdapter.php\n"
},
{
"from": "... | php | chosen |
[
{
"from": "human",
"value": "BB-6037: Fix migration issue related to upgrade from beta5 to master\n- migration to remove unused login_disabled field\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Oro\\Bundle\\UserBundle\\Migrations\\Schema\\v1_24;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\n\nu... | php | chosen |
[
{
"from": "human",
"value": "Test for construct of SlackAPI\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace SlackPHP\\SlackAPI\\Main;\n\nuse PHPUnit\\Framework\\TestCase;\nuse SlackPHP\\SlackAPI\\Main\\SlackAPI;\nuse Symfony\\Component\\EventDispatcher\\EventDispatcherInterface;\nuse GuzzleH... | php | chosen |
[
{
"from": "human",
"value": "Add DTS_Cookie server-side cookie accessor.\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * Class definition for DTS_Cookie.\n * \n * @package DTS\n * @author Eric Bollens\n * @copyright Copyright (c) 2012 UC Regents\n * @license BSD\n * @version ... | php | chosen |
[
{
"from": "human",
"value": "MDL-32880: Add moodle1 backup converter for html block.\n\nThis converter processes the HTML block's content, migrating any referenced files.\n"
},
{
"from": "gpt",
"value": "<?php\r\n\r\n/**\r\n * Provides support for the conversion of moodle1 backup to the moodle2 ... | php | chosen |
[
{
"from": "human",
"value": "BAP-10749: Develop data-collection provider for Permissions and Capabilities\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Oro\\Bundle\\UserBundle\\Tests\\Unit\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nus... | php | chosen |
[
{
"from": "human",
"value": "Edit lure text from admin panel\n"
},
{
"from": "gpt",
"value": "<?php\n\nif (isset($_POST[\"lure\"])) {\n\n $statement = \"\n\n UPDATE \" . DB_PREF . \"extension_truncate\n SET lure = ?\n WHERE 1 = 1\n \";\n\n $query = $Database->getHandle()->prepare($st... | php | chosen |
[
{
"from": "human",
"value": "Implement candidacy step 1 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\\O... | php | chosen |
[
{
"from": "human",
"value": "Add new model called other\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Laratrust\\Tests\\Models;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Laratrust\\Traits\\LaratrustUserTrait;\nuse Illuminate\\Database\\Eloquent\\SoftDeletes;\n\nclass Other extends... | php | chosen |
[
{
"from": "human",
"value": "Add simple callback handler for last.fm connection responses (only prints output so far)\n"
},
{
"from": "gpt",
"value": "<?php\n\n/* GNU FM -- a free network service for sharing your music listening habits\n\n Copyright (C) 2009 Free Software Foundation, Inc\n\n ... | php | chosen |
[
{
"from": "human",
"value": "Add tool for package overview\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Tool for generation of package overview per organism, usable for checks.\n */\nuse Nette\\Utils\\Json;\n\ninclude_once __DIR__ . '/../app/bootstrap.php';\n\nfunction printHelp()\n{\n\tprint... | php | chosen |
[
{
"from": "human",
"value": "Add integration tests for RegisterRuleCheckersPass\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 w... | php | chosen |
[
{
"from": "human",
"value": "Test module translations are getting published\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Nwidart\\Modules\\Tests\\Commands;\n\nuse Nwidart\\Modules\\Tests\\BaseTestCase;\n\nclass PublishTranslationCommandTest extends BaseTestCase\n{\n /**\n * @var \\... | php | chosen |
[
{
"from": "human",
"value": "Add minimal xhtml 1.0 live tests\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace SimplyTestable\\WorkerBundle\\Tests\\Live\\Command\\Task\\Perform\\HtmlValidation\\XHTML10;\n\nuse SimplyTestable\\WorkerBundle\\Tests\\Command\\ConsoleCommandBaseTestCase;\n\nclass ... | php | chosen |
[
{
"from": "human",
"value": "Add the ability to hardware-pair Pico remotes and Caseta dimmers directly, for speed and reliability far beyond what SmartThings will ever be able to offer.\n"
},
{
"from": "gpt",
"value": "<?php\n\n// Hardware-pairs a Pico remote to a set of Caseta dimmers.\n// Usef... | php | chosen |
[
{
"from": "human",
"value": "Add in a data series object to bundle data with transforms."
},
{
"from": "gpt",
"value": "<?php\n\nnamespace mcordingley\\Regression;\n\nuse callable;\n\n/**\n * DataSeries\n * \n * Represents a single series of data used in a regression. By convention, the\n * firs... | php | chosen |
[
{
"from": "human",
"value": "Add library with Composer tasks\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Bob\\Library;\n\nuse Bob\\Application;\nuse Bob\\TaskLibraryInterface;\nuse Bob\\BuildConfig as b;\n\nclass ComposerLibrary implements TaskLibraryInterface\n{\n function register(A... | php | chosen |
[
{
"from": "human",
"value": "Add API directory and Rundeck Resource Model provider\n"
},
{
"from": "gpt",
"value": "<?php\n\n/* -------------------------------------------------------------------------\n This script generates rundeck.org compliant external resource model\n provider. It will ... | php | chosen |
[
{
"from": "human",
"value": "Create tests for PrincipalInfo command\n"
},
{
"from": "gpt",
"value": "<?php\r\n/**\r\n * Created by PhpStorm.\r\n * User: Bruno\r\n * Date: 05/03/2018\r\n * Time: 22:20\r\n */\r\n\r\nnamespace AdobeConnectClient\\Tests\\Commands;\r\n\r\nuse AdobeConnectClient\\Comm... | php | chosen |
[
{
"from": "human",
"value": "Add Database class, no real code yet.\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * @author Michael Croes <mycroes@gmail.com>\n */\n\n/**\n * Main database class. This class maintains a mysql connection and serves as\n * a factory for tables classes.\n */\n\n/**\... | php | chosen |
[
{
"from": "human",
"value": "Add unit tests for DateType\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Doctrine\\ODM\\MongoDB\\Tests\\Mapping\\Types;\n\nuse Doctrine\\ODM\\MongoDB\\Types\\DateType;\nuse Doctrine\\ODM\\MongoDB\\Types\\Type;\n\nclass DateTypeTest extends \\PHPUnit_Framework_... | php | chosen |
[
{
"from": "human",
"value": "Add missing test for cast()\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Copyright 2017, 2018 Alexey Kopytko <alexey@kopytko.com>\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the ... | php | chosen |
[
{
"from": "human",
"value": "Add debit card success page block\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass Ebanx_Gateway_Block_Checkout_Success_Payment_Creditcardmx extends Ebanx_Gateway_Block_Checkout_Success_Creditcardpayment\n{\n\tprotected $currencyCode = 'MXN';\n\n\tprotected function _... | php | chosen |
[
{
"from": "human",
"value": "Add suspension mark for Company\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddIsSuspendedToCompaniesTable extends Migration\n{\n /**\n * Run the migrations.\... | php | chosen |
[
{
"from": "human",
"value": "Add people_counter_id column to attendance table for imports\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass AddPeopleCounterI... | php | chosen |
[
{
"from": "human",
"value": "Add Test case for AddMsgSpec.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Zimbra\\Mail\\Tests\\Struct;\n\nuse Zimbra\\Mail\\Tests\\ZimbraMailTestCase;\nuse Zimbra\\Mail\\Struct\\AddMsgSpec;\n\n/**\n * Testcase class for AddMsgSpec.\n */\nclass AddMsgSpecTest ... | php | chosen |
[
{
"from": "human",
"value": "Add Image wrapper for AsssetInterface object\n\nThis was done to simplify cache manager process.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Avalanche\\Bundle\\ImagineBundle\\Imagine\\Image;\n\nuse Assetic\\Asset\\AssetInterface;\n\nclass ImageAssetWrapper\n{... | php | chosen |
[
{
"from": "human",
"value": "Move find byte, and decrypt into functions\n\nRewrite code to find the single byte key, and decrypt with\nit to seprate functions, and move those functions into their\nown file.\n"
},
{
"from": "gpt",
"value": "<?php\nrequire_once 'letterScore.php';\n\nfunction singl... | php | chosen |
[
{
"from": "human",
"value": "Create router for static pages\n\n\n"
},
{
"from": "gpt",
"value": "<?php\n\n$config = array\n(\n 'staticpages/frontend/home' => 'staticpages/frontend/view/1',\n 'staticpages/frontend/carts' => 'staticpages/frontend/view/3',\n 'staticpages/frontend/comp... | php | chosen |
[
{
"from": "human",
"value": "Add jsonexception for pasring json errors\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\nCopyright (C) 2016 Teclib'\n\nThis file is part of Armadito Plugin for GLPI.\n\nArmadito Plugin for GLPI is free software: you can redistribute it and/or modify\nit under the term... | php | chosen |
[
{
"from": "human",
"value": "Add ip_address column to api_log table\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass AddIpAddressColumnToApiLogTable extends... | php | chosen |
[
{
"from": "human",
"value": "Add view for admin list posts\n"
},
{
"from": "gpt",
"value": "<p>\n Список постов:\n</p>\n<table class=\"content-table\">\n <?php foreach($posts as $post) : ?>\n <tr>\n <td>\n <?php echo $post->id; ?>\n </td>\n ... | php | chosen |
[
{
"from": "system",
"value": "BB-7489: Test & Merge\n- moved FrontendBundle files from commerce package to customer-portal\n- removed test page templates\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\EntityBundle\\Form\\DataTransformer;\n\nuse Symfony\\Component\\Form\\DataT... | php | chosen |
[
{
"from": "human",
"value": "Clear the cache when the content changes\n"
},
{
"from": "gpt",
"value": "<?php\nclass Kwc_Newsletter_Subscribe_MailEditable_Events extends Kwc_Abstract_Events\n{\n public function getListeners()\n {\n $ret = parent::getListeners();\n $ret[] = arr... | php | chosen |
[
{
"from": "human",
"value": "Add Event emitter based on Evenement\n\nSigned-off-by: Yoshi2889 <77953cd64cc4736aae27fa116356e02d2d97f7ce@gmail.com>\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n\tWildPHP - a modular and easily extendable IRC bot written in PHP\n\tCopyright (C) 2016 WildPHP\n\n\tT... | php | chosen |
[
{
"from": "human",
"value": "Add basic example (needs credentials)\n"
},
{
"from": "gpt",
"value": "<?php\n\nrequire dirname(__FILE__).'/../vendor/autoload.php';\n\nuse Alfatraining\\Grpc\\Authentication\\AuthenticationServiceClient;\nuse Alfatraining\\Grpc\\Authentication\\AuthenticationRequest... | php | chosen |
[
{
"from": "human",
"value": "Revert \"remove some old cruft\"\n\nThis reverts commit 17cb33b8f9e44cf33097b5a153c4eb7e06e0c004.\n"
},
{
"from": "gpt",
"value": "<?php\n\n// Needed due to changes in File.php r6641, 2012-05-15\n\ndie; // mission complete, 2012-05-15\n\nrequire_once('../core/core.ph... | php | chosen |
[
{
"from": "human",
"value": "Add a sample application for the google affiliate network.\n"
},
{
"from": "gpt",
"value": "<?php\n/*\n * Copyright 2011 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the ... | php | chosen |
[
{
"from": "human",
"value": "Implement middleware for presenting pretty error pages\n"
},
{
"from": "gpt",
"value": "<?php namespace Flarum\\Forum\\Middleware;\n\nuse Psr\\Http\\Message\\ResponseInterface as Response;\nuse Psr\\Http\\Message\\ServerRequestInterface as Request;\nuse Zend\\Diactor... | php | chosen |
[
{
"from": "human",
"value": "Add middleware for clean temp files\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace App\\Http\\Middleware;\n\nuse Closure;\nuse \\DirectoryIterator;\n\nclass CleanerMiddleware\n{\n /**\n * Handle an incoming request.\n *\n * @param \\Illuminate\\H... | php | chosen |
[
{
"from": "system",
"value": "Update Tickets index test since we're no longer showing description and instead showing updated at.\n"
},
{
"from": "human",
"value": "<?php\n$I = new AcceptanceTester($scenario);\n$I->wantTo('ensure that the tickets index works');\nTestCommonAdmin::logMeIn($I);\n$I... | php | chosen |
[
{
"from": "system",
"value": "Check to see if validation check is due"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\Storage\\Database\\Schema;\n\nuse Bolt\\Exception\\StorageException;\nuse Carbon\\Carbon;\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Symfony\\Component\\Filesystem\\Exce... | php | chosen |
[
{
"from": "human",
"value": "Implement Factory design pattern to generate Abac object\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace PhpAbac;\n\nuse PhpAbac\\Configuration\\ConfigurationInterface;\nuse PhpAbac\\Configuration\\Configuration;\n\nuse PhpAbac\\Manager\\PolicyRuleManager;\nuse P... | php | chosen |
[
{
"from": "human",
"value": "Add rollback command unit test\n"
},
{
"from": "gpt",
"value": "<?php\n\nrequire_once __DIR__ . '/CommandTestCase.php';\n\nuse Gaufrette\\Adapter\\InMemory;\n\nclass RollbackCommandTest extends CommandTestCase\n{\n protected\n $mock;\n \n protected fu... | php | chosen |
[
{
"from": "human",
"value": "Add script that completes game for a given group\n\n"
},
{
"from": "gpt",
"value": "<?php\n/*\n * CodeMOOC TreasureHuntBot\n * ===================\n * UWiClab, University of Urbino\n * ===================\n * Generates individual certificate for a group.\n */\n\nrequ... | php | chosen |
[
{
"from": "human",
"value": "Create CPP Bridge compiler test case\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace VirtualizorCompiler;\n\nuse App\\Virtualizor\\Lang\\CPP;\nuse PHPUnit\\Framework\\TestCase;\n\nclass CPPTest extends TestCase\n{\n\tpublic function test1()\n\t{\n\t\t$code = \"\n... | php | chosen |
[
{
"from": "human",
"value": "Add new exception, translation flashes and refactor\n"
},
{
"from": "gpt",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Sylius\\Component\\Resource\\Exception;\n\nfinal class VariantWithNoOptionsValuesException extends \\Exception\n{\n public function ... | php | chosen |
[
{
"from": "human",
"value": ":sparkles: Add new trait to build signature base string.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Risan\\OAuth1\\Signature;\n\ntrait CanBuildBaseString\n{\n /**\n * The BaseStringBuilder instance.\n *\n * @var \\Risan\\OAuth1\\Signature\\Bas... | php | chosen |
[
{
"from": "human",
"value": "Add factory to build EventLoop, Client, DNSResolver\n\nThis allow to simplify the process of react instance creation\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Http\\Adapter;\n\nuse React\\EventLoop\\LoopInterface;\nuse React\\EventLoop\\Factory as EventLoop... | php | chosen |
[
{
"from": "human",
"value": "Align markup vs &attributes precedence with pug-js\n\nsplit: dd5b6edb537be0b4c081b32fcc690e6c5fbbd46c\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Phug\\Util;\n\nuse SplObjectStorage;\n\n/**\n * Interface AttributesInterface.\n */\ninterface AttributesInterfac... | php | chosen |
[
{
"from": "human",
"value": "Check what is waster $this of self\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Check what is there overhead when used static call on dynamic methods\n *\n * @file ThisVsSelf.php\n *\n * PHP version 5.3.9+\n *\n * @author Yancharuk Alexander <alex@itvault.info... | php | chosen |
[
{
"from": "human",
"value": "Add Configure and Sanitize to twig templates, more to be added later\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Cake Twig Extension\n *\n * This file adds a bunch of commonly used cake classes as global variables to twig.\n *\n * eg: Where you would user Configu... | php | chosen |
[
{
"from": "human",
"value": "Create contact form for job seeker\n"
},
{
"from": "gpt",
"value": "@extends('layouts.app')\n\n@section('content')\n<div class=\"container\">\n <div class=\"row\">\n <div class=\"col-md-8 col-md-offset-2\">\n <div class=\"panel panel-default\">\n... | php | chosen |
[
{
"from": "human",
"value": "Add S1 model to ingest Sentinel-1 metadata from PEPS server OpenSearch endpoint"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * RESTo\n * \n * RESTo - REstful Semantic search Tool for geOspatial \n * \n * Copyright 2013 Jérôme Gasperi <https://github.com/jjrom>\n * \n... | php | chosen |
[
{
"from": "human",
"value": "Add FileDownloadUnbuffered that immediately outputs data to browser.\n"
},
{
"from": "gpt",
"value": "<?\nnamespace Asenine\\Util;\n\nclass ForceDownloadUnbuffered\n{\n\tpublic function __construct($name, $contentType = 'application/octet-stream')\n\t{\n\t\tini_set('... | php | chosen |
[
{
"from": "human",
"value": "Add \"Direct Parent Page\" column to admin area\n"
},
{
"from": "gpt",
"value": "<?php\n/*\nPlugin Name: Nested Pages Permissions by Role\nDescription: This plugin restricts users to only be able to edit pages under their assigned page tree.\nVersion: 0.2.25\nAuthor:... | php | chosen |
[
{
"from": "human",
"value": "Add output path test helper trait\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Codeception\\Configuration;\nuse Codeception\\Util\\Debug;\n\n/**\n * Output Path\n *\n * @author Alin Eugen Deac <aedart@gmail.com>\n */\ntrait OutputPath\n{\n /**\n * Creates an ... | php | chosen |
[
{
"from": "human",
"value": "Add filter callback factory that can be used for more advanced column filters where the -> operator is not sufficient.\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass Cm_Mongo_Filter\n{\n /** @var string */\n protected $_resource;\n\n /** @var string */\n protect... | php | chosen |
[
{
"from": "human",
"value": "Test storing token on session when session is empty\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Gt\\Csrf\\Test;\n\nuse Gt\\Csrf\\SessionTokenStore;\nuse Gt\\Session\\SessionStore;\nuse PHPUnit\\Framework\\TestCase;\n\nclass SessionTokenStoreTest extends TestCas... | php | chosen |
[
{
"from": "human",
"value": "Add provisional block locator.. not sure about this.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace BitWasp\\Bitcoin\\Network;\n\nuse BitWasp\\Bitcoin\\Chain\\BlockIndex;\nuse BitWasp\\Buffertools\\Buffer;\n\nclass BlockLocator\n{\n /**\n * @param $height... | php | chosen |
[
{
"from": "human",
"value": "Add base class for reponse/model objects to extend\n\nThis class will be used to expose the original response instance\n"
},
{
"from": "gpt",
"value": "<?php declare(strict_types=1);\nnamespace ImboClient\\Response;\n\nuse Psr\\Http\\Message\\ResponseInterface;\n\nab... | php | chosen |
[
{
"from": "system",
"value": "Set the default timezone to avoid errors in hhvm\n\nAdded a default timezone to the bootstrap.php to fix errors in HHVM\ntests, which was introduced when Travis removed the default `/etc/hhvm/php.ini`\nin https://github.com/travis-ci/travis-ci/issues/2523#issuecomment-59303763\... | php | chosen |
[
{
"from": "human",
"value": "Add a new function to alert and redirect\n"
},
{
"from": "gpt",
"value": "<?php\n\nfunction alert_and_redirect($msg = '', $url = '') {\n if (empty($msg)) {\n $msg = '올바른 방법으로 이용해 주십시오.';\n }\n\n echo \"<meta http-equiv=\\\"content-type\\\" content=\\\... | php | chosen |
[
{
"from": "human",
"value": "Add a tool for checking language files\n"
},
{
"from": "gpt",
"value": "<?php\nif ($argc != 2 || (isset($argv[1]) && in_array($argv[1], array('--help', '-h')))) {\n echo \"Check language files for missing/redundant keys\\n\\n\";\n echo \"Usage: {$... | php | chosen |
[
{
"from": "system",
"value": "Fix bug with deleting reported messages.\n"
},
{
"from": "human",
"value": "<?php\n$notify_id = $_REQUEST['notify_id'];\nif (!isset($notify_id)) {\n\tcreate_error('You must choose the messages you want to delete.');\n}\n\n$db->query('DELETE FROM message_notify WHERE... | php | chosen |
[
{
"from": "human",
"value": "Add a sample application for the site verification api.\n\n\n\ngit-svn-id: 6c6eb0d3cc6e8d5f6d3a0c71e6b3abc7e9845ff1@375 6c5fc399-1a2c-022f-82ce-feb0d0b4916c\n"
},
{
"from": "gpt",
"value": "<?php\nrequire_once '../../src/apiClient.php';\nrequire_once '../../src/contr... | php | chosen |
[
{
"from": "human",
"value": "Add tests for the log level stuff\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace duncan3dc\\CLImate;\n\nuse Psr\\Log\\LogLevel;\n\nclass LogLevelest extends AbstractTest\n{\n\n public function testLevelEmergency()\n {\n $this->cli->shouldReceive(\"e... | php | chosen |
[
{
"from": "human",
"value": "Add a test for returned as data\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Tests\\Feature;\n\nuse Tests\\TestCase;\nuse Illuminate\\Foundation\\Testing\\RefreshDatabase;\n\nclass ActivityStreamTest extends TestCase\n{\n /**\n * Test request to homepag... | php | chosen |
[
{
"from": "human",
"value": "Add unit test coverage to DeepDiff\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Bolt\\Tests;\n\nuse Bolt\\DeepDiff;\n\nclass DeepDiffTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n * @dataProvider deepDiffProvider\n */\n public function test... | php | chosen |
[
{
"from": "human",
"value": "Add user with role scope.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Orchestra\\Model\\Scopes;\n\nuse Illuminate\\Database\\Eloquent\\Model;\nuse Illuminate\\Database\\Eloquent\... | php | chosen |
[
{
"from": "human",
"value": "Convert spanish command reaction to a service\n\n"
},
{
"from": "gpt",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace StackGuru\\Services;\nuse \\StackGuru\\Core\\Service\\AbstractService;\nuse \\StackGuru\\Core\\Command\\CommandContext;\nuse StackGuru\\Core\... | php | chosen |
[
{
"from": "system",
"value": "Fix logic for determining whether users can add tags to a discussion\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Flarum.\n *\n * For detailed copyright and license information, please view the\n * LICENSE file that was distributed with th... | php | chosen |
[
{
"from": "human",
"value": "Add English translation for wiki module\n\n\ngit-svn-id: bab463d4a4ed964554a7384a5fddda2edc604a7d@5812 201d5d3c-b55e-5fd7-737f-ddc643e51545\n"
},
{
"from": "gpt",
"value": "<?php\n /**\n * @file en.lang.php\n * @author haneul (haneul0318@gmail.com)\n ... | php | chosen |
[
{
"from": "human",
"value": "Add file size modifier plugin\n\nSigned-off-by: Kaoru Ishikura <cdb165a9a0fdf6fb03afc7c91b98ee2f15662d4d@sakura-creative.com>\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Smarty plugin\n *\n * This library is free software; you can redistribute it and/or\n * modif... | php | chosen |
[
{
"from": "system",
"value": "Convert provider to use AdminMenuBuilder"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bolt\\Provider;\n\nuse Bolt\\Menu\\MenuBuilder;\nuse Bolt\\Menu\\MenuEntry;\nuse Bolt\\Translation\\Translator as Trans;\nuse Silex\\Application;\nuse Silex\\ServiceProvider... | php | chosen |
[
{
"from": "human",
"value": "Add test skeleton for forgot password func tests\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\nuse Illuminate\\Foundation\\Testing\\DatabaseTransactions;\n\... | php | chosen |
[
{
"from": "human",
"value": "Add invoice layout class usefull for printing and mailing invoices.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Picqer\\Financials\\Exact;\n\n/**\n * Class Layout\n *\n * @package Picqer\\Financials\\Exact\n * @see https://start.exactonline.nl/docs/HlpRestAPI... | php | chosen |
[
{
"from": "system",
"value": "Handle invalid not before claim value\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Emarref\\Jwt\\Verification;\n\nuse Emarref\\Jwt\\Claim;\nuse Emarref\\Jwt\\Encoding;\nuse Emarref\\Jwt\\Exception\\VerificationException;\nuse Emarref\\Jwt\\HeaderParameter;\... | php | chosen |
[
{
"from": "human",
"value": "Add the Lumen 5.1 factories directory\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Model Factories\n|--------------------------------------------------------------------------\n|\n| Here ... | php | chosen |
[
{
"from": "human",
"value": "Add script to benchmark GET performance\n"
},
{
"from": "gpt",
"value": "<?php\nrequire __DIR__ . '/../vendor/autoload.php';\n\nuse EventStore\\EventStore;\nuse EventStore\\WritableEvent;\nuse EventStore\\WritableEventCollection;\n\n/**\n * @param int $length\n *... | php | chosen |
[
{
"from": "human",
"value": "Add a little SQL-info script that is sort of useful maybe?\n\nSummary: I'm not aware of an easy way to get this information through normal tools. I'm sure there's some fancy GUI client that has it but this seems worth keeping around.\n\nTest Plan: ran script, got helpful informa... | php | chosen |
[
{
"from": "human",
"value": "Test asset: class with nullable method parameters\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace ZendTest\\Code\\TestAsset;\n\nclass NullableHintsClass\n{\n public function arrayParameter(?array $foo)\n {\n }\n\n public function callableParameter(?ca... | php | chosen |
[
{
"from": "human",
"value": "Add new example encrypt+sign+compress, armored input and output\n"
},
{
"from": "gpt",
"value": "<?php\n@include_once dirname(__FILE__).'/../vendor/autoload.php';\nrequire_once dirname(__FILE__).'/../lib/openpgp.php';\nrequire_once dirname(__FILE__).'/../lib/openpgp_... | php | chosen |
[
{
"from": "human",
"value": "Add routing helper for dingo.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Laravel\\Lumen\\Routing;\n\nuse Dingo\\Api\\Routing\\Helpers;\n\ntrait Helpers\n{\n use Helpers;\n\n ... | php | chosen |
[
{
"from": "human",
"value": "Add group function test suite.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Mimic\\Test;\n\nuse PHPUnit_Framework_TestCase;\nuse Mimic\\Functional as F;\n\n/**\n * Unit Test for group Mimic library function.\n *\n * @since 0.1.0\n */\nclass GroupFuncTest exten... | php | chosen |
[
{
"from": "human",
"value": "Test for B2 constructor exceptions\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * This file is part of the Imbo package\n *\n * (c) Christer Edvartsen <cogo@starzinger.net>\n *\n * For the full copyright and license information, please view the LICENSE file that was... | php | chosen |
[
{
"from": "human",
"value": "Add HTTP auth to Raspberry IP Camera\n"
},
{
"from": "gpt",
"value": "<?php\n\nfunction authenticate() {\n global $passwordsettings;\n\n if ( $_SESSION['login_user'] !== $passwordsettings['AdminUsername'] ) {\n header( 'WWW-Authenticate: Basic realm=\"Ra... | php | chosen |
[
{
"from": "system",
"value": "Support Windows color with ANSICON\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace mageekguy\\atoum;\n\nuse\n\tmageekguy\\atoum\n;\n\nclass cli\n{\n\tprivate static $isTerminal = null;\n\n\tpublic function __construct(atoum\\adapter $adapter = null)\n\t{\n\t\t... | php | chosen |
[
{
"from": "human",
"value": "Tests: Test suite for extensive database testing\nAdded test suite which uses a large data set (10000 tuples) to test the database under different conditions. Caution: needs 30 minutes to run through because insertion is extremely slow.\n"
},
{
"from": "gpt",
"value"... | php | chosen |
[
{
"from": "human",
"value": "Add unit tests for Vandermonde matrix.\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Math\\LinearAlgebra;\n\nclass VandermondeTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n * @dataProvider dataProviderForTestConstructor\n */\n public function ... | php | chosen |
[
{
"from": "human",
"value": "Add API for getting item history\n"
},
{
"from": "gpt",
"value": "<?\ninclude '../scat.php';\ninclude '../lib/item.php';\n\n$id= (int)$_REQUEST['id'];\n\n$code= $_REQUEST['code'];\n\nif (!$id && $code) {\n $code= $db->escape($code);\n $q= \"SELECT id FROM item WHER... | php | chosen |
[
{
"from": "human",
"value": "[stable10] Add index to oc_cards to assist with searching large number of rows\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace OCA\\dav\\Migrations;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse OCP\\Migration\\ISchemaMigration;\n\n/**\n * Add index to oc_cards to as... | php | chosen |
[
{
"from": "human",
"value": "Add D7 snippet : cleanup orphaned files\n"
},
{
"from": "gpt",
"value": "<?php\n\n/**\n * Remove files no longer in use,\n * physically & in DB\n * \n * Sources :\n * https://www.drupal.org/node/733258#comment-7427898\n */\n\n// Ex: with devel module, path ... | php | chosen |
[
{
"from": "human",
"value": "Add tests for the error page\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Backend\\Modules\\Error\\Tests\\Action;\n\nuse Common\\WebTestCase;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nclass IndexTest extends WebTestCase\n{\n public function test... | php | chosen |
[
{
"from": "human",
"value": "Add Execution Statuses Controller Test\n"
},
{
"from": "gpt",
"value": "<?php\n/*\n * The MIT License (MIT)\n *\n * Copyright (c) 2016 Bruno P. Kinoshita, Peter Florijn\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this s... | php | chosen |
[
{
"from": "human",
"value": "Add tests for the exports controller\n\nNow that the exports controller has been refactored we can test it.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace OpenCFP\\Test\\Http\\Controller\\Admin;\n\nuse OpenCFP\\Domain\\Model\\Talk;\nuse OpenCFP\\Test\\RefreshDat... | php | chosen |
[
{
"from": "system",
"value": "Remove add/setException methods. Remove @access/@return annotations.\nMove $exceptions property above methods.\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This file is part of the Geocoder package.\n * For the full copyright and license information, please v... | php | chosen |
[
{
"from": "human",
"value": "Add test of required S3 parameters\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * This file is part of the Imbo package\n *\n * (c) Christer Edvartsen <cogo@starzinger.net>\n *\n * For the full copyright and license information, please view the LICENSE file that was... | php | chosen |
[
{
"from": "human",
"value": "Add app status with scraper errors\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass Denkmal_App_Cli extends CM_App_Cli {\n\n public function status() {\n $status = array(\n 'scraper-errors' => count($this->_getLastScraperErrors()),\n );\n\n... | php | chosen |
[
{
"from": "human",
"value": "Add update certificate controller logic.\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass UsersController extends BaseController {\n\n\tpublic function updateCertificate()\n\t{\n\t\t$user = Auth::user();\n\t\t$certificate = Input::get('conduit_certificate');\n\n\t\tif... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.