conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "human",
"value": "Add new php test for organism import\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Tests\\AppBundle\\Command;\n\n\nuse AppBundle\\API\\Details\\Organism;\nuse AppBundle\\Command\\ImportTraitEntriesCommand;\nuse AppBundle\\Entity\\TraitCategoricalEntry;\nuse App... | php | chosen |
[
{
"from": "human",
"value": "Add bonary condition Helper test\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Mdd\\QueryBuilder\\Conditions;\nuse Mdd\\QueryBuilder\\Types;\nuse Mdd\\QueryBuilder\\Tests\\Escapers\\SimpleEscaper;\n\nclass HelperTest extends PHPUnit_Framework_TestCase\n{\n protect... | php | chosen |
[
{
"from": "human",
"value": "Add missing migration for job attempts"
},
{
"from": "gpt",
"value": "<?php\nuse Migrations\\AbstractMigration;\n\nclass AddAttemptsToJobs extends AbstractMigration\n{\n /**\n * Change Method.\n *\n * More information on this method is available here:\... | php | chosen |
[
{
"from": "human",
"value": "Add tests for singular page posts utility\n"
},
{
"from": "gpt",
"value": "<?php\ndeclare (strict_types = 1);\n\nnamespace GrottoPress\\Jentil\\Tests\\Unit\\Utilities\\Page\\Posts;\n\nuse Codeception\\Util\\Stub;\nuse GrottoPress\\Jentil\\Tests\\Unit\\TestCase;\nuse ... | php | chosen |
[
{
"from": "human",
"value": "Add a Slack Webhooks handler using the same SlackRecord util\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * This file is part of the Monolog package.\n *\n * (c) Jordi Boggiano <j.boggiano@seld.be>\n *\n * For the full copyright and license information, please view... | php | chosen |
[
{
"from": "human",
"value": "Test to see what version we think we are.\n\n\ngit-svn-id: e1a96f6b7015dfe5b5e86c875acd3ba0869cf04b@58 afa44554-0db9-64d6-dc80-ec3199b23f77\n"
},
{
"from": "gpt",
"value": "<?php\nrequire_once('Sprinkles.php');\n\nprint \"PHP major version: \" . php_major_version() .... | php | chosen |
[
{
"from": "human",
"value": "Add unitary tests for methods defined in Entity utility class\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace FBN\\GuideBundle\\Tests\\Utils;\n\nuse FBN\\GuideBundle\\Utils\\Entity;\nuse FBN\\GuideBundle\\Entity\\Article;\n\n/**\n * Unitary tests for the methods ... | php | chosen |
[
{
"from": "human",
"value": "Add tests for Application class.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)\n * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)\n *\n * Licensed under The MIT License\n * For... | php | chosen |
[
{
"from": "human",
"value": "Add test for lazy twig\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @copyright ©2014 Quicken Loans Inc. All rights reserved. Trade Secret,\n * Confidential and Proprietary. Any dissemination outside of Quicken Loans\n * is strictly prohibited.\n */\n\nnamesp... | php | chosen |
[
{
"from": "human",
"value": "Add partial routes and functions for handling first run situation and app paintialisation\n"
},
{
"from": "gpt",
"value": "<?php\n \n $configuration = [\n 'settings' => [\n 'displayErrorDetails' => true,\n ],\n ];\n\n // Create co... | php | chosen |
[
{
"from": "human",
"value": "Fix AutoComplete Not Disabled for 'Password' Field vulnerability\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @author Jan-Christoph Borchardt <hey@jancborchardt.net>\n * @author Lukas Reschke <lukas@owncloud.com>\n * @author Michael Gapczynski <GapczynskiM@gmail.c... | php | chosen |
[
{
"from": "human",
"value": "Update the database to use the right model namespace\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass UpdateModelsReferenceInWe... | php | chosen |
[
{
"from": "human",
"value": "Add missing path seperator to File Lock Provider path\n"
},
{
"from": "gpt",
"value": "<?php\n\ninterface Core_Lock_LockInterface\n{\n\tconst LOCK_TTL_SECONDS = 2.0;\n\tconst LOCK_UNIQUE_ID = 'daemon_lock';\n\t\n\tpublic function set();\n\tpublic function check();\n}... | php | chosen |
[
{
"from": "human",
"value": "Migrate existing data to use {name}-v{version} syntax for referencing definitions.\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse App\\Models\\Revision;\nuse App\\Models\\Block;\nuse Illuminate\\Database\\Migrations\\Migration;\n\n/**\n * Migrates any block definition... | php | chosen |
[
{
"from": "human",
"value": "Add custom twig extension class\n"
},
{
"from": "gpt",
"value": "<?php namespace src\\twig;\n\nuse Slim\\Slim;\n\nclass TwigExtension extends \\Twig_Extension\n{\n public function getName()\n {\n return 'slim-framework-skeleton';\n }\n\n public fun... | php | chosen |
[
{
"from": "human",
"value": "Add presets for user fields data type structure\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace Bitrix24\\Presets;\n\nclass UserFields\n{\n\tconst TYPE = 'type';\n\tconst IS_REQUIRED = 'isRequired';\n\tconst IS_READ_ONLY = 'isReadOnly';\n\tconst IS_IMMUTABLE = 'isI... | php | chosen |
[
{
"from": "system",
"value": "Fix check for missing behavior\n\n- The method exists on a behavior, and is proxied, so therefore `method_exists` is a bad check.\r\n- You can't simply check for `hasBehavior('Search')` as a user can alias a behavior to another one.\r\n- Since we are calling `filterParams` and ... | php | chosen |
[
{
"from": "human",
"value": "[ADD] Add new test cases for fields and views methods\n"
},
{
"from": "gpt",
"value": "<?php namespace Odoo\\Client\\Test;\n\nuse PhpXmlRpc\\Value as xmlrpcval;\nuse Odoo\\Client\\OdooClient;\n\nclass FieldsViewsTest extends TestOdooClient\n{\n public function tes... | php | chosen |
[
{
"from": "human",
"value": "Add a test for variadic arguments\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Mockery\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 available through the wo... | php | chosen |
[
{
"from": "human",
"value": "[Node] Add trait to simplify NodeReference Entities.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * This file is part of the Clastic package.\n *\n * (c) Dries De Peuter <dries@nousefreak.be>\n * For the full copyright and license information, please view the LICENS... | php | chosen |
[
{
"from": "human",
"value": "Add skeleton integration test class\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace CdliAutogenUsernameTest;\n\nuse CdliAutogenUsername\\Generator;\n\nclass IntegrationTest extends \\PHPUnit_Framework_TestCase\n{\n public function testSingleFilterChain()\n {\... | php | chosen |
[
{
"from": "human",
"value": "Add unit tests for FilenameFilter class\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass FilenameFilterTest extends \\Codeception\\TestCase\\Test\n{\n\tpublic function testFilenameFilterClean()\n\t{\n\t\t$tests = array(\n\t\t\t\n\t\t\t// Illegal characters\n\t\t\t'foo... | php | chosen |
[
{
"from": "human",
"value": "Add base test class that tests failing methods"
},
{
"from": "gpt",
"value": "<?php\n/**\n * © 2017 Procurios\n */\nnamespace Procurios\\TDD\\PhpunitAdapter\\test;\n\nuse PHPUnit_Framework_ExpectationFailedException;\nuse Procurios\\TDD\\PhpunitAdapter\\PhpunitAdapte... | php | chosen |
[
{
"from": "human",
"value": "Add empty taxonomy type test file\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass Empty_Taxonomy_Type extends Papi_Taxonomy_Type {\n\n\t/**\n\t * Define our Taxonomy Type meta data.\n\t *\n\t * @return array\n\t */\n\tpublic function meta() {\n\t\treturn [\n\t\t\t'na... | php | chosen |
[
{
"from": "human",
"value": "ADD Lessroad for symfony .\n\nSigned-off-by: Richard Lea <5e20e57f18b15612bae274c2aef7dc395ee6b2a1@zoho.com>\n"
},
{
"from": "gpt",
"value": "<?php\r\n\r\n/*\r\n * Copyright 2014 郷.\r\n *\r\n * Licensed under the Apache License, Version 2.0 (the \"License\");\r\n * y... | php | chosen |
[
{
"from": "human",
"value": "Add new fields for the TagFilter\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @package plugins.tagSearch\n * @relatedService TagService\n * @subpackage api.filters.base\n * @abstract\n */\nabstract class KalturaTagBaseFilter extends KalturaRelatedFilter\n{\n\tstat... | php | chosen |
[
{
"from": "human",
"value": "Test the Adagrad gradient schedule.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace mcordingley\\Regression\\Tests\\Algorithm\\GradientDescent\\Schedule;\n\nuse mcordingley\\Regression\\Algorithm\\GradientDescent\\Schedule\\Adagrad;\nuse PHPUnit_Framework_TestCas... | php | chosen |
[
{
"from": "human",
"value": "Add candidate step 4 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": "Split out email processing into a separate file.\n"
},
{
"from": "gpt",
"value": "<?php \n\nrequire_once 'swiftmailer/lib/swift_required.php';\n\n\t\tif (isset($_POST['nojs'])) {\n\t\t\t$messageHTML = \"Text of the message : \" . urldecode($message)\n\t\t\t\t\t. \" <... | php | chosen |
[
{
"from": "human",
"value": "Add new boolean atom type.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Enzyme\\Axiom\\Atoms;\n\nuse Enzyme\\Axiom\\Exceptions\\AtomException;\n\n/**\n * A wrapper around boolean values.\n */\nclass BooleanAtom implements AtomInterface\n{\n /**\n * Hold... | php | chosen |
[
{
"from": "human",
"value": "Refactor common code into abstract class.\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Gedmo\\Mapping\\Driver;\n\nuse Gedmo\\Mapping\\Driver\\AnnotationDriverInterface;\n\n/**\n * This is an abstract class to implement common functionality\n * for extension an... | php | chosen |
[
{
"from": "system",
"value": "AEIV-665: Fix review issues\n- minor fix\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oro\\Bundle\\CalendarBundle\\Manager;\n\nuse Oro\\Bundle\\CalendarBundle\\Entity\\Attendee;\nuse Oro\\Bundle\\CalendarBundle\\Entity\\Repository\\AttendeeRepository;\nuse ... | php | chosen |
[
{
"from": "human",
"value": "Add comet server for future JTK notification system.\n"
},
{
"from": "gpt",
"value": "<?php\n// Jivoo\n// Copyright (c) 2015 Niels Sonnich Poulsen (http://nielssp.dk)\n// Licensed under the MIT license.\n// See the LICENSE file or http://opensource.org/licenses/MIT f... | php | chosen |
[
{
"from": "human",
"value": "Test the vehicle category extractor\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse App\\Models\\Attributes\\Vehicle\\VehicleCategory;\n\n/*\n * This file is part of Bens Penhorados, an undergraduate capstone project.\n *\n * (c) Fábio Santos <ffsantos92@gmail.com>\n *... | php | chosen |
[
{
"from": "human",
"value": "Add example of parsing a php-like array.\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass ExamplesTest extends \\PHPUnit_Framework_TestCase {\n\n public function testParsePhpLikeArrayExample() {\n $array_keyword = Parser::str('array');\n $comma = Parser::char('... | php | chosen |
[
{
"from": "human",
"value": "Add Test for hydrate model"
},
{
"from": "gpt",
"value": "<?php\n\nrequire(__DIR__ . \"/../vendor/autoload.php\");\n/*\n * To change this license header, choose License Headers in Project Properties.\n * To change this template file, choose Tools | Templates\n * and ... | php | chosen |
[
{
"from": "human",
"value": "Add case insensitive view concept\n"
},
{
"from": "gpt",
"value": "<?php\n\n/* String API concept: Case Insensitive View\n *\n * This concept implements a way of handling case-insensitive search and replace operations\n * on strings. Instead of adding a new set of me... | php | chosen |
[
{
"from": "human",
"value": "Add unit test for LdapBackendGroupProvider\n"
},
{
"from": "gpt",
"value": "<?php\n\nrequire_once __DIR__.'/../Base.php';\n\nuse Kanboard\\Group\\LdapBackendGroupProvider;\n\nclass LdapBackendGroupProviderTest extends Base\n{\n public function testGetLdapGroupPatt... | php | chosen |
[
{
"from": "human",
"value": "Add a test for IntegerOverflowException\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * This file is part of the rybakit/msgpack.php package.\n *\n * (c) Eugene Leonovich <gen.work@gmail.com>\n *\n * For the full copyright and license information, please view the LI... | php | chosen |
[
{
"from": "human",
"value": "Add base form to make it simple to set base uris\n"
},
{
"from": "gpt",
"value": "<?php\n/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */\n\n/**\n * A base form which allows for setting a base action prefix dynamically based on the current request\n *\n... | php | chosen |
[
{
"from": "human",
"value": "Check whether user already has TWFY alert before showing TWFY advert.\n"
},
{
"from": "gpt",
"value": "<?\n// authed.php:\n// Returns whether an email address has signed up to a TWFY alert for an MP.\n// Uses shared secret for authentication.\n//\n// Copyright (c) 20... | php | chosen |
[
{
"from": "human",
"value": "Add validator messages for expired cards\n"
},
{
"from": "gpt",
"value": "<?php defined('SYSPATH') OR die('No direct script access.');\n\nreturn array(\n\t'exp_year' => array(\n\t\t'card_expired' => 'Your card has expired',\n\t),\n\t'exp_month' => array(\n\t\t'card_e... | php | chosen |
[
{
"from": "human",
"value": "Add basic test for extracting schemas from a mysql5 database\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * DBSteward unit test for mysql5 extraction errors\n *\n * @package DBSteward\n * @license http://www.opensource.org/licenses/bsd-license.php Simplified BSD Lic... | php | chosen |
[
{
"from": "human",
"value": "Add value object for the requirement status\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace ForkCMS\\Bundle\\InstallerBundle\\Requirement;\n\nuse InvalidArgumentException;\n\nfinal class RequirementStatus\n{\n const SUCCESS = 'success';\n const WARNING = 'w... | php | chosen |
[
{
"from": "human",
"value": "Add function to generate messages\n"
},
{
"from": "gpt",
"value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace BinSoul\\Common\\I18n;\n\nfunction message(string $key, ?string $domain = null, ?array $parameters = null, ?float $quantity = null)\n{\n $result = new... | php | chosen |
[
{
"from": "human",
"value": "Add test for Company's Licence expiration date\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Test;\n\nuse App\\User;\nuse App\\Company;\n\nuse TestCase;\nuse Carbon\\Carbon;\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illuminate\\Foundation\\T... | php | chosen |
[
{
"from": "human",
"value": "Build Trip cards sorting algorithm\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace TripSorter;\n\nuse TripSorter\\Repositories\\Cards;\n\n/**\n * Class TripSorter\n *\n * @package TripSorter\\Src\n */\nclass TripCardsSorter\n{\n /**\n * @var Cards\n */... | php | chosen |
[
{
"from": "human",
"value": "Add content slices view helper unit test\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace ExpressivePrismicTest\\View\\Helper;\n\nuse ExpressivePrismic\\View\\Helper\\ContentSlices as Helper;\nuse ExpressivePrismic\\LinkResolver as Resolver;\nuse ExpressivePrismic\\... | php | chosen |
[
{
"from": "human",
"value": "[SwiftMailer] Add the SendEmail Command (for the spool)\n\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien.potencier@symfony-project.com>\n *\n * For the full copyright and license informa... | php | chosen |
[
{
"from": "human",
"value": "Add inventory items to machine detail view\n"
},
{
"from": "gpt",
"value": "<table class=\"inventory table table-striped\">\n\t<thead>\n\t\t<tr>\n <th>Name</th>\n <th>Version</th>\n <th>BundleID</th>\n <th>Path</th>\n\t\t</tr>\n\t<... | php | chosen |
[
{
"from": "human",
"value": "[Security] Add test case for user not found\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, please view the LICENSE\... | php | chosen |
[
{
"from": "human",
"value": "Store Steam app IDs as BIGINT\n\nSteam app IDs could get that high, and occasionally the steam API returns 9223372036854775807 which is too large for a standard INT column\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illumi... | php | chosen |
[
{
"from": "human",
"value": "Use dispatchable command for syncing passwords\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Adldap\\Laravel\\Commands;\n\nuse Illuminate\\Support\\Str;\nuse Illuminate\\Support\\Facades\\Hash;\nuse Illuminate\\Support\\Facades\\Config;\nuse Illuminate\\Support... | php | chosen |
[
{
"from": "human",
"value": "Create Vertex migration with awesome random data\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Lchski\\Migrations;\n\n\nuse Lchski\\Contracts\\Migration;\n\nclass CreateBetterVertexMigration extends BaseMigration implements Migration\n{\n\t/**\n\t * Create a du... | php | chosen |
[
{
"from": "human",
"value": "Test a profile's password gets encrypted properly\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Backend\\Modules\\Profiles\\Tests\\Engine;\n\nuse Backend\\Modules\\Profiles\\Engine\\Model;\nuse Common\\WebTestCase;\n\nfinal class ModelTest extends WebTestCase\n... | php | chosen |
[
{
"from": "human",
"value": "Add PHP code to check automorphic number\n"
},
{
"from": "gpt",
"value": "#!/usr/local/bin/php\n<?php\n/* \n * @Author: Menaka S.\n * @Email: menakas.menakas@gmail.com\n *\n * Check if an input number is automorphic\n *\n * An automorphic number's square ends with th... | php | chosen |
[
{
"from": "human",
"value": "Add tests for doing dav requests with encryption enabled\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Copyright (c) 2015 Robin Appelman <icewind@owncloud.com>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COP... | php | chosen |
[
{
"from": "human",
"value": "Add the item_purchase_types table migration\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 informatio... | php | chosen |
[
{
"from": "system",
"value": "Fix the admin test that was checking for a dummy project that doesn't exist\n"
},
{
"from": "human",
"value": "<?php\n$I = new AcceptanceTester($scenario);\n$I->wantTo('ensure that an admin can view a list of projects');\nTestCommonAdmin::logMeIn($I);\n$I->click('Pr... | php | chosen |
[
{
"from": "system",
"value": "Add environment to app contract.\n"
},
{
"from": "human",
"value": "<?php namespace Illuminate\\Contracts\\Foundation;\n\nuse Illuminate\\Contracts\\Container\\Container;\n\ninterface Application extends Container {\n\n\t/**\n\t * Register a service provider with th... | php | chosen |
[
{
"from": "human",
"value": "Add snippet for removing the 2-day grace period on expiration query\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Plugin Name: Restrict Content Pro - Remove Expiration Grace Period\n * Description: Removes the 2-day grace period on the expiration cron job query.\n ... | php | chosen |
[
{
"from": "human",
"value": "Add test for GET: notifications\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\nuse Illuminate\\Foundation\\Testing\\DatabaseTransactions;\nuse Illuminate\\Su... | php | chosen |
[
{
"from": "human",
"value": "III-179: Add factory to create a DateTimeImmutable from a UDB2 date string\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @file\n */\n\nnamespace CultuurNet\\UDB3\\Cdb;\n\nclass DateTimeFactory\n{\n /**\n * @param string $dateString\n * @return \\DateTime... | php | chosen |
[
{
"from": "human",
"value": "BAP-11622: Optimize email body cleanup process\n - Add migration command\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Oro\\Bundle\\EmailBundle\\Command;\n\nuse Doctrine\\DBAL\\Connection;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand... | php | chosen |
[
{
"from": "human",
"value": "Add method registerJoinTeam\nAdd method orderJoinTeam\n"
},
{
"from": "gpt",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of eelly package.\n *\n * (c) eelly.com\n *\n * For the full copyright and license information, please view the LICENS... | php | chosen |
[
{
"from": "human",
"value": "[tests] Add missing tests for SETNX.\n\nFor some obscure reason Predis/Command/StringSetPreserve had no tests.\n"
},
{
"from": "gpt",
"value": "<?php\n\n/*\n * This file is part of the Predis package.\n *\n * (c) Daniele Alessandri <suppakilla@gmail.com>\n *\n * For ... | php | chosen |
[
{
"from": "human",
"value": "Add an extension to automatically load the services configuration\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * This file is part of the Alyx Gray OATH token bundle.\n *\n * (c) Alyx Gray <opensource@alyxgray.com>\n *\n * For the full copyright and license informat... | php | chosen |
[
{
"from": "human",
"value": "Add tool to get OVH credentials\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Copyright 2013 Stéphane Depierrepont (aka Toorop)\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\").\n * You may not use this file except in compliance with the Lic... | php | chosen |
[
{
"from": "human",
"value": "Change la date d'une facture (et les incidences que ca peut avoir)\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass maintenanceFactureChangeDateTask extends sfBaseTask\n{\n protected function configure()\n {\n // // add your own arguments here\n $this->addArgu... | php | chosen |
[
{
"from": "human",
"value": "Add migration to remove unused review_source column from items table\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass RemoveReviewSourceFromItemsTable extends Migration\n... | php | chosen |
[
{
"from": "human",
"value": "Set the data definition field to MEDIUMTEXT to have enough space for files with many columns.\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 changi... | php | chosen |
[
{
"from": "human",
"value": "Add more collectio macro tests\n\nSigned-off-by: Sebastiaan Luca <aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d@sebastiaanluca.com>\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace SebastiaanLuca\\Helpers\\Tests\\Unit\\Collections;\n\nuse Carbon\\Carbon;\nuse Sebastiaa... | php | chosen |
[
{
"from": "human",
"value": "Add a couple of unit tests for checking authentication with the submissions server\n"
},
{
"from": "gpt",
"value": "<?php\nrequire_once('PHPUnit/Framework.php');\n\nclass SubmissionsTest extends PHPUnit_Framework_TestCase\n{\n\t// Check we can login with standard aut... | php | chosen |
[
{
"from": "human",
"value": "Test for the Strings Class\n\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Tests\\Unit;\n\nuse PHPUnit\\Framework\\TestCase;\nuse GeeksAreForLife\\Utilities\\Strings;\n\nclass StringsTest extends TestCase\n{\n /** @test */\n public function string_starts_... | php | chosen |
[
{
"from": "human",
"value": "Rename space menu/preferences to circle menu/preferences\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * Left Navigation by MenuWidget.\n *\n * @package humhub.widgets\n * @since 0.5\n */\n?>\n\n<!-- start: list-group navi for large devices -->\n<div class=\"panel pa... | php | chosen |
[
{
"from": "human",
"value": "Add tests for TransferFundsEmailNotifier class.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * PHP version 7.0\n *\n * This source file is subject to the license that is bundled with this package in the file LICENSE.\n */\nnamespace Ewallet\\Wallet\\Notifications;\n... | php | chosen |
[
{
"from": "human",
"value": "Add info window helper tests\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Ivory\\GoogleMapBundle\\Tests\\Templating\\Helper;\n\nuse Ivory\\GoogleMapBundle\\Templating\\Helper\\Overlays\\InfoWindowHelper;\nuse Ivory\\GoogleMapBundle\\Templating\\Helper\\Base\\C... | php | chosen |
[
{
"from": "human",
"value": "Add Hebrew language support, thanks to Ronny Sherer\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n* PHPMailer language file: refer to English translation for definitive list\n* Hebrew Version, UTF-8\n* by : Ronny Sherer <ronny@hoojima.com>\n*/\n\n$PHPMAILER_LANG['auth... | php | chosen |
[
{
"from": "human",
"value": "Add a interface for custom collections classes\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Galahad\\LaravelAddressing;\n\n/**\n * Interface CollectionInterface\n *\n * @package Galahad\\LaravelAddressing\n * @author Junior Grossi <juniorgro@gmail.com>\n */\ni... | php | chosen |
[
{
"from": "human",
"value": "Add base test case for Transformer\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace OpenOrchestra\\BaseApi\\Tests\\Transformer;\n\nuse Phake;\n\n/**\n * Test TransformerTestCase\n */\nabstract class TransformerTestCase extends \\PHPUnit_Framework_TestCase\n{\n ... | php | chosen |
[
{
"from": "human",
"value": "Create a default directory handler\n"
},
{
"from": "gpt",
"value": "<?php namespace Aedart\\Scaffold\\Handlers;\n\nuse Aedart\\Scaffold\\Contracts\\Handlers\\DirectoryHandler as DirectoryHandlerInterface;\nuse Symfony\\Component\\Finder\\Finder;\n\n/**\n * <h1>Direct... | php | chosen |
[
{
"from": "human",
"value": "Test that mass actions can't be performed on tags without logging in\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Backend\\Modules\\Blog\\Tests\\Action;\n\nuse Backend\\Modules\\Tags\\DataFixtures\\LoadTagsModulesTags;\nuse Backend\\Modules\\Tags\\DataFixtures... | php | chosen |
[
{
"from": "human",
"value": "Add a heap structure that executes a callback\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * The CallbackHeap\n *\n * A simple class for defining a callback to use as the comparison function,\n * when building a heap. Note that this will always incur extra overheaad... | php | chosen |
[
{
"from": "human",
"value": "Add test for inlist assert.\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * InListTest.php\n *\n * @author Tom Valk <tomvalk@lt-box.info>\n * @copyright 2016 Tom Valk\n */\n\nnamespace Arvici\\Tests\\Heart\\Input\\Validation\\Assert;\n\nuse Arvici\\Heart\\Input\... | php | chosen |
[
{
"from": "human",
"value": "Add custom page for pogosta vprašanja\n"
},
{
"from": "gpt",
"value": "<?php //Template Name:Full-Width Page\nget_header(); ?>\n<div class=\"enigma_container\">\n\t<div class=\"row enigma_blog_wrapper\">\n\t<div class=\"col-md-12\">\n\t<h2>Katero različico Ubuntuja n... | php | chosen |
[
{
"from": "human",
"value": "Add test for the dashboard index\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Backend\\Modules\\Dashboard\\Tests\\Action;\n\nuse Common\\WebTestCase;\n\nclass IndexTest extends WebTestCase\n{\n public function testAuthenticationIsNeeded(): void\n {\n ... | php | chosen |
[
{
"from": "human",
"value": "Add phpspec tests for SolrQueryBuilder\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace spec\\SearchApi\\Builders;\n\nuse SearchApi;\nuse SearchApi\\Models;\nuse SearchApi\\Builders\\SolrQueryBuilder;\n\nuse PhpSpec\\ObjectBehavior;\nuse Prophecy\\Argument;\n\n/**... | php | chosen |
[
{
"from": "human",
"value": "Add unit tests for Select Query builder\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Mdd\\QueryBuilder\\Queries;\nuse Mdd\\QueryBuilder\\Conditions;\nuse Mdd\\QueryBuilder\\Types;\n\nclass SelectTest extends PHPUnit_Framework_TestCase\n{\n public function testSel... | php | chosen |
[
{
"from": "human",
"value": "Add installation class to provide easy to use install/uninstall procedure\n"
},
{
"from": "gpt",
"value": "<?php\n namespace Library;\n\n /**\n * Provide easy to use installation or uninstallation order/proccess. Install\n * or uninstall order must be c... | php | chosen |
[
{
"from": "human",
"value": "Remove VO attributes from XML\n"
},
{
"from": "gpt",
"value": "<?php\n\nclass StripAttributes\n{\n\tpublic function addEventHandlers(RequestContext $ctx)\n\t{\n\t\t$ctx->addEventHandler(RendererEvent::XML, $this, 'stripAttribs');\n\t}\n\t\n\tpublic function stripAttr... | php | chosen |
[
{
"from": "human",
"value": "Add unique index constraint for unique indexes.\n\nMongoDB doesn't allow modifying existing indexes, which is real lame, so\nwe have to remove and then re-create it with modified properties. We\nmake `email` and `mobile` sparse indexes because they are nullable.\n"
},
{
... | php | chosen |
[
{
"from": "human",
"value": "Add test for unsigned access token\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace LeagueTests\\AuthorizationValidators;\n\nuse Lcobucci\\JWT\\Builder;\nuse League\\OAuth2\\Server\\Exception\\OAuthServerException;\nuse League\\OAuth2\\Server\\AuthorizationValidat... | php | chosen |
[
{
"from": "human",
"value": "Fix encription component errors and add tests for it\n"
},
{
"from": "gpt",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of the ************************ package.\n * _____________ _______________\n * ______/ \... | php | chosen |
[
{
"from": "human",
"value": "Migrate ids to bigint in the dav app\n\nSigned-off-by: Joas Schilling <ab43a7c9cb5b2380afc4ddf8b3e2583169b39a02@schilljs.com>\n"
},
{
"from": "gpt",
"value": "<?php\nnamespace OCA\\DAV\\Migration;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse OCP\\Migration\\BigIntMigr... | php | chosen |
[
{
"from": "system",
"value": "Send emails to companies and validators when new stuff happens to them\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse App\\Models\\ValidationRequest;\nuse App\\Models\\ValidatorInvite;\n\nclass... | php | chosen |
[
{
"from": "human",
"value": "Add migration to turn INT columns to STRING columns\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass StoreCampaignIdAsString ex... | php | chosen |
[
{
"from": "human",
"value": "Add tests for XML DateFormat methods\n"
},
{
"from": "gpt",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2017-2018, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Public License... | php | chosen |
[
{
"from": "human",
"value": "Add rights flags to artworks\n"
},
{
"from": "gpt",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddRightFlagsToArtworks extends Migration\n{\n ... | php | chosen |
[
{
"from": "human",
"value": "Add unit test for HttpStreamWrapperClient\n"
},
{
"from": "gpt",
"value": "<?php\n\nnamespace Marein\\Nchan\\HttpAdapter;\n\nuse PHPUnit\\Framework\\TestCase;\n\nclass HttpStreamWrapperClientTest extends TestCase\n{\n /**\n * @test\n */\n public functio... | php | chosen |
[
{
"from": "human",
"value": "Add missing file + update readme\n"
},
{
"from": "gpt",
"value": "<?php\n\nrequire_once __DIR__ . '/vendor/autoload.php';\nrequire_once __DIR__ . '/lib/PFBFlowRegister.class.php';\nrequire_once __DIR__ . '/lib/PHPFlowBot.class.php';\n\nPHPFlowBot::init();\n\nPHPFlowB... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.