conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Add region in the new API route\n" }, { "from": "human", "value": "<?php\nnamespace CodeDay\\Clear\\ModelContracts;\n\nuse \\CodeDay\\Clear\\Models;\n\nclass Grant extends ModelContract\n{\n public static function getFields()\n {\n return [\n ...
php
chosen
[ { "from": "system", "value": "[Migrations] Add missing mysql check for migrations\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Sylius\\Bundle\\CoreBundle\\Migrations;\n\nuse Doctrine\\DBAL\\Schema\\Schema;\nuse Doctrine\\Migrations\\AbstractMigration;\n\n/**\...
php
chosen
[ { "from": "system", "value": "Add ignore_404 setting to config\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Raygunbundle package.\n *\n * (c) nietonfir <nietonfir@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file th...
php
chosen
[ { "from": "system", "value": "Set memory_limit to be unlimited for tests\n" }, { "from": "human", "value": "<?php\nrequire_once realpath(__DIR__ . '/../core/slir.class.php');\n\nabstract class SLIRTestCase extends PHPUnit_Framework_TestCase\n{\n /**\n * @var SLIR\n */\n protected $slir;\n\...
php
chosen
[ { "from": "system", "value": "Add possitive user login test\n" }, { "from": "human", "value": "<?php\nrequire_once('Autoload.php');\nclass SQLAuthTest extends PHPUnit_Framework_TestCase\n{\n public function testSQLAuthenticator()\n {\n $GLOBALS['FLIPSIDE_SETTINGS_LOC'] = './tests/tr...
php
chosen
[ { "from": "system", "value": "Use uniqid rather than plain ol timestamp.\n" }, { "from": "human", "value": "<?php\n\nnamespace DoSomething\\Gateway;\n\ntrait ForwardsTransactionIds\n{\n /**\n * Run custom tasks before making a request.\n *\n * @see RestApiClient@raw\n */\n ...
php
chosen
[ { "from": "system", "value": "Allow custom theme lib directories using .libcfg\n" }, { "from": "human", "value": "<?php\n\nnamespace CupOfTea\\WordPress\\Foundation\\Bootstrap;\n\nuse Illuminate\\Support\\Str;\nuse Illuminate\\Contracts\\Container\\Container;\n\nclass RegisterThemeAutoloader\n{\...
php
chosen
[ { "from": "system", "value": "Load the form from the subscribe widget.\n" }, { "from": "human", "value": "<?php\n\nnamespace Frontend\\Modules\\Mailmotor\\Widgets;\n\n/*\n * This file is part of the Fork CMS Mailmotor Module from SIESQO.\n *\n * For the full copyright and license information, pl...
php
chosen
[ { "from": "system", "value": "Change the format date conversion to d/m/Y" }, { "from": "human", "value": "<?php\n\nnamespace JS\\Stdlib\\Hydrator\\Strategy;\n\nuse Zend\\Stdlib\\Hydrator\\Strategy\\DefaultStrategy;\n\nclass DateTimeStrategy extends DefaultStrategy {\n\n public function extrac...
php
chosen
[ { "from": "system", "value": "Move field and online threshold to constants\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenDominion\\Nova\\Filters;\n\nuse Carbon\\Carbon;\nuse Illuminate\\Http\\Request;\nuse Laravel\\Nova\\Filters\\Filter;\n\nclass UserOnline extends Filter\n{\n /**...
php
chosen
[ { "from": "system", "value": "Fix an issue where SSH workflows would execute immediately\n\nSummary: rPe397103bf broke this since one of the implementations was `return false;`, not `return true;`.\n\nAuditors: chad\n" }, { "from": "human", "value": "<?php\n\nabstract class PhabricatorSSHWorkflo...
php
chosen
[ { "from": "system", "value": "Allow data aggregate contents to be traversable\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Transfer.\n *\n * For the full copyright and license information, please view the LICENSE file located\n * in the root directory.\n */\n\nnamespac...
php
chosen
[ { "from": "system", "value": "Fix charset and lang for serving static page\n" }, { "from": "human", "value": "<?php\n\n\theader(\"Content-Type: text/html; charset=UTF-8\");\n\n\trequire(\"time.php\");\n\n?>\n<!DOCTYPE html>\n<html lang=\"en\">\n\t<head>\n\t\t<title><?php echo $pageMeta[\"title\"...
php
chosen
[ { "from": "system", "value": "Add comment about preload context.\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\n/**\n * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)\n *\n * Licensed under The MIT License\n * Redistributions of files must retain ...
php
chosen
[ { "from": "system", "value": "Fix ordering for test executions\n" }, { "from": "human", "value": "<?php namespace Nestor\\Repositories;\n\nuse Nestor\\Model\\Execution;\n\nclass DbExecutionRepository extends DbBaseRepository implements ExecutionRepository {\n\n\tpublic function __construct(Execu...
php
chosen
[ { "from": "system", "value": "Check session value before use\n" }, { "from": "human", "value": "<?php\n/**\n * PHPCI - Continuous Integration for PHP\n *\n * @copyright Copyright 2014, Block 8 Limited.\n * @license https://github.com/Block8/PHPCI/blob/master/LICENSE.md\n * @link ...
php
chosen
[ { "from": "system", "value": "Add images to the asset pipeline\n" }, { "from": "human", "value": "<?php\nnamespace SMVC\\Controller;\n\nclass Asset extends \\Base\\Controller {\n public static $mapping = array(\n 'scripts' => '\\Base\\JavascriptAssetView',\n 'scriptMap' => '\\Base\\Source...
php
chosen
[ { "from": "system", "value": "Fix overriding return type for PHP7.1\n" }, { "from": "human", "value": "<?php\n\nnamespace Htsl\\Parser\\Node;\n\nuse Htsl\\Htsl;\nuse Htsl\\ReadingBuffer\\Line;\nuse Htsl\\Parser\\Section;\n\n////////////////////////////////////////////////////////////////\n\nclas...
php
chosen
[ { "from": "system", "value": "Fix user role create view\n" }, { "from": "human", "value": "@extends('layout')\n\n@section('content')\n<div class='container main-container'>\n\t<h1>Create User Group</h1><br><br>\n\n<form action=\"{{admin_link('user_role-store')}}\" method='POST'>\n\n{{csrf_field(...
php
chosen
[ { "from": "system", "value": "Add administration data store routing\n" }, { "from": "human", "value": "<?php\nnamespace Mapbender\\DataSourceBundle;\n\nuse Mapbender\\CoreBundle\\Component\\MapbenderBundle;\n\n/**\n * DataSource Bundle.\n * y\n * @author Andriy Oblivantsev\n */\nclass MapbenderD...
php
chosen
[ { "from": "system", "value": "Use the endpoints table as datasource for the html list\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Contracts\\Filesystem\\Filesystem;\nuse Symfony\\Component\\Yaml\\Yaml;\n\nclass DevelopersController extends Con...
php
chosen
[ { "from": "system", "value": "Set layout to A & B instead using balance" }, { "from": "human", "value": "<?php\n\nclass LoaderEdgeListBipartit extends LoaderFile{\n public function createGraph(){\n\n $graph = new Graph();\n\n $file = $this->getLines();\n\n $graph->createV...
php
chosen
[ { "from": "system", "value": "Fix file level doc for test class\n\nFix DisallowLongArraySyntax to DisallowShortArraySyntax.\n" }, { "from": "human", "value": "<?php\n/**\n * Unit test class for the DisallowLongArraySyntax sniff.\n *\n * @author Greg Sherwood <gsherwood@squiz.net>\n * @copyrig...
php
chosen
[ { "from": "system", "value": "Add delete (destroy method) for ApiController.\n" }, { "from": "human", "value": "<?php\n\n/**\n * Package Routes\n */\n\nRoute::group(['namespace' => 'Taskforcedev\\CrudAPI\\Http\\Controllers'], function () {\n Route::group(['prefix' => 'api'], function () {\n ...
php
chosen
[ { "from": "system", "value": "BB-4189: Create listener for all entities in website search\n - used correct mapping provider\n - removed website restriction\n - fixed functional test\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\SearchBundle\\EventListener;\n\nuse Doctrine\\C...
php
chosen
[ { "from": "system", "value": "Add new Stripe webhook config values\n\nSee https://github.com/laravel/cashier/pull/565\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Third Party Services\n |...
php
chosen
[ { "from": "system", "value": "Fix for ambiguous suburbs that have brackets and screw some things up.\n" }, { "from": "human", "value": "<?php\nnamespace SimpleQuiz\\Utils;\n\nclass Location {\n\n protected $_suburb = null;\n protected $_district = null;\n protected $_region = null;\n ...
php
chosen
[ { "from": "system", "value": "Remove unnecessary arguments to composer install.\n\nWe don't set these elsewhere and don't need to set them here.\n" }, { "from": "human", "value": "#!/usr/bin/env php\n<?php\nchdir(__DIR__);\n\n$returnStatus = null;\npassthru('composer install --dev --no-interacti...
php
chosen
[ { "from": "system", "value": "Switch to use new function for date presentation.\n" }, { "from": "human", "value": "<?php\n\nrequire_once(\"iCalendar.php\");\n\n header(\"Content-type: text/plain\");\n\n $sql = \"SELECT caldav_data.caldav_type AS type, calendar_item.uid, calendar_item.rrule \";...
php
chosen
[ { "from": "system", "value": "Change from email address in Contact\n" }, { "from": "human", "value": "<?php\n// Check for empty fields\nif(empty($_POST['name']) \t\t||\n empty($_POST['email']) \t\t||\n empty($_POST['phone']) \t\t||\n empty($_POST['message'])\t||\n !filter_var($_POST['em...
php
chosen
[ { "from": "system", "value": "Allow Edit and Set of Slug Field\n" }, { "from": "human", "value": "<div class=\"form-group\">\n <input type=\"text\" id=\"name\"\n class=\"form-control input-lg\"\n name=\"name\"\n placeholder=\"Enter Page Title\"\n ...
php
chosen
[ { "from": "system", "value": "Support for PSR-15 RequestHandlerInterface for queue items\n\nProblem/details/solution noted here:\r\nhttps://github.com/relayphp/Relay.Relay/issues/47" }, { "from": "human", "value": "<?php\n/**\n *\n * This file is part of Relay for PHP.\n *\n * @license http://op...
php
chosen
[ { "from": "system", "value": "Use array shorthand for cache table\n" }, { "from": "human", "value": "<?php\nnamespace Craft;\n\nclass Wistia_CacheRecord extends BaseRecord\n{\n\tpublic function getTableName()\n\t{\n\t\treturn 'wistia_cache';\n\t}\n\n\tprotected function defineAttributes()\n\t{\n...
php
chosen
[ { "from": "system", "value": "Add dummy routes for API calls from organism search\n" }, { "from": "human", "value": "<?php\n\nnamespace AppBundle\\Controller;\n\nuse AppBundle\\AppBundle;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\Routing\\Annotation\...
php
chosen
[ { "from": "system", "value": "Allow setsize for product images\n" }, { "from": "human", "value": "<?php\n\n/**\n * Adds some image size functions to the Image DataObject.\n */\nclass Product_Image extends DataExtension {\n\n\tpublic function getThumbnail() {\n\t\treturn $this->owner->SetSize(\n\...
php
chosen
[ { "from": "system", "value": "Fix require statement in example code\n" }, { "from": "human", "value": "<?php\n\nrequire '../vendor/autoload.php';\n\nuse Cvuorinen\\Raspicam\\Raspistill;\n\n$camera = new Raspistill();\n\n$filename = date('Y-m-d_H:i:s') . '.jpg';\n\ntry {\n $camera->takePicture...
php
chosen
[ { "from": "system", "value": "Add new third function for test\n" }, { "from": "human", "value": "<?php\r\n/**\r\n * Config.php\r\n *\r\n * Created by Keyur Ajmera.\r\n * User: Keyur Ajmera\r\n * Date: 10/12/2015\r\n * Time: 5:09 PM\r\n *\r\n * Read .config file and load all variables\r\n */\r\n\...
php
chosen
[ { "from": "system", "value": "Fix edit user route param\n\nSigned-off-by: Christoph Wurst <7abde52c298496fa169fb750f91f213a282142af@winzerhof-wurst.at>\n" }, { "from": "human", "value": "@extends('settings/settings')\n\n@section('settings_content')\n<h1>Benutzer</h1>\n@if (Auth::user()->isAdmin(...
php
chosen
[ { "from": "system", "value": "Add missing phrases for datatables bulk actions\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nreturn [\n\n 'already_authenticated' => 'You are already authenticated!',\n 'import_complete' => 'Congrats! Import process completed.',\n ...
php
chosen
[ { "from": "system", "value": "Support conversion profile flavor params control\n\ngit-svn-id: 8a2ccb88241e16c78017770bc38d91d6d5396a5a@59577 6b8eccd3-e8c5-4e7d-8186-e12b5326b719\n" }, { "from": "human", "value": "<?php\r\n/**\r\n * @package api\r\n * @subpackage objects\r\n */\r\nclass KalturaCo...
php
chosen
[ { "from": "system", "value": "Use testimonials on home page\n" }, { "from": "human", "value": "<?php\n $defaults = array(\n 'preview' => false,\n 'testimonials' => false\n );\n\n $settings = array();\n\n foreach ($_REQUEST as $key => $value) {\n $settings[$key] = ($value === 'true')...
php
chosen
[ { "from": "system", "value": "OEE-1164: Add multi-curency validator to available currency form\n- Revert changes\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\CurrencyBundle\\Provider;\n\ninterface CurrencyProviderInterface\n{\n /**\n * Returns list of unique currency...
php
chosen
[ { "from": "system", "value": "Fix type: emptyProcedute -> emptyProcedure\n" }, { "from": "human", "value": "<?php\n\n\nnamespace Retrinko\\CottonTail\\Message\\Payloads;\n\nuse Retrinko\\CottonTail\\Exceptions\\PayloadException;\n\nclass RpcRequestPayload extends DefaultPayload\n{\n const KEY...
php
chosen
[ { "from": "system", "value": "Use getBody() method instead of body property directly\n" }, { "from": "human", "value": "<?php\n\nnamespace ElasticSearcher\\Traits;\n\nuse ArrayHelpers\\Arr;\n\n/**\n * A body can be an entire query or just a chunk of query (fragment).\n * Any entity (query, fragm...
php
chosen
[ { "from": "system", "value": "Make the page navigation fit the entire width of the content box so it doesn't try to float up beside something else.\n" }, { "from": "human", "value": "<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?>\n\n<div id=\"page-selector\">\n\t<?php ech...
php
chosen
[ { "from": "system", "value": "Change placeholder text in sign in form\n" }, { "from": "human", "value": "<form name=\"loginform\" action=\"<?php echo wp_login_url($_SERVER['REQUEST_URI']);?>\" method=\"post\">\n\t<input type=\"hidden\" name=\"redirect_to\" value=\"<?php echo esc_url($_SERVER['RE...
php
chosen
[ { "from": "system", "value": "Add ReturnTypeWillChange to JsonSerializable implementation\n\nSigned-off-by: Alexander M. Turek <b1c1d8736f20db3fb6c1c66bb1455ed43909f0d8@derrabus.de>\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Twig.\n *\n * (c) Fabien Potencier\n *\n *...
php
chosen
[ { "from": "system", "value": "Add example in Eval class\n" }, { "from": "human", "value": "<?php\n\nclass Eval_Command extends WP_CLI_Command {\n\n\t/**\n\t * Execute arbitrary PHP code.\n\t *\n\t * ## OPTIONS\n\t *\n\t * <php-code>\n\t * : The code to execute, as a string.\n\t *\n\t * [--skip-w...
php
chosen
[ { "from": "system", "value": "Clean up demo site map a little\n" }, { "from": "human", "value": "<?\n\n$_meta['hide_breadcrumb'] = true;\n\nif( !$shutup ) :\n?>\n\nHome Page Content\n\n<?\n\nendif;" }, { "from": "gpt", "value": "<?\n\n$_meta['hide_breadcrumb'] = true;\n$_meta['sitema...
php
chosen
[ { "from": "system", "value": "Change PATCH verb in POST, Slim seems to have problems using getParsedBody method :(\n" }, { "from": "human", "value": "<?php\n\n/**\n * Register routes for each available item types\n */\nforeach ($app->getContainer()['item_types'] as $item_type) {\n $app->group...
php
chosen
[ { "from": "system", "value": "Update the admin role name\n" }, { "from": "human", "value": "<?php namespace App\\Providers;\n\nuse Permission;\nuse Illuminate\\Support\\Facades\\Gate;\nuse Illuminate\\Foundation\\Support\\Providers\\AuthServiceProvider as ServiceProvider;\n\nclass AuthServicePro...
php
chosen
[ { "from": "system", "value": "Add descriptiotn to dbQueryCount & make it non-null.\n" }, { "from": "human", "value": "<?php\n\nnamespace ProcessWire\\GraphQL\\Field\\Debug;\n\nuse Youshido\\GraphQL\\Field\\AbstractField;\nuse Youshido\\GraphQL\\Type\\Scalar\\IntType;\nuse Youshido\\GraphQL\\Exec...
php
chosen
[ { "from": "system", "value": "Order taxons with hierarchy in mind." }, { "from": "human", "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 was distribute...
php
chosen
[ { "from": "system", "value": "Allow to modify the size of batchOperation\n" }, { "from": "human", "value": "<?php\n/**\n * AppShell file\n *\n * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)\n * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)\n *\n * Lic...
php
chosen
[ { "from": "system", "value": "Add sample shortcode render to options page.\n" }, { "from": "human", "value": "<div class=\"wrap\">\n\t<div id=\"icon-options-general\" class=\"icon32\"></div>\n\t<h2><?php _e( 'WP Brightcove Shortcode Plugin', 'wp-brightcove-shortcode' ); ?></h2>\n\t\n\t<div id=\"...
php
chosen
[ { "from": "system", "value": "Set the status code through $context->response.\n" }, { "from": "human", "value": "<?php\n/**\n * @version $Id: default.php 3314 2012-02-10 02:14:52Z johanjanssens $\n * @package Nooku_Server\n * @subpackage Settings\n * @copyright Copyright (C) 2011 - 20...
php
chosen
[ { "from": "system", "value": "Fix migration of data in atPageSelector table\n" }, { "from": "human", "value": "<?php\n\nnamespace Concrete\\Core\\Updater\\Migrations\\Migrations;\n\nuse Concrete\\Core\\Database\\Connection\\Connection;\nuse Concrete\\Core\\Updater\\Migrations\\AbstractMigration;...
php
chosen
[ { "from": "system", "value": "Verify tasks-request job is created after successful perform\n" }, { "from": "human", "value": "<?php\n\nnamespace SimplyTestable\\WorkerBundle\\Tests\\Command\\Task\\Perform;\n\nclass SuccessTest extends PerformCommandTest {\n\n /**\n * @var int\n */\n ...
php
chosen
[ { "from": "system", "value": "Add a test for Worker::in\n" }, { "from": "human", "value": "<?php namespace Spec\\Sauce;\n\nuse PhpSpec\\ObjectBehavior;\nuse Prophecy\\Argument;\n\nclass WorkerSpec extends ObjectBehavior {\n\n function it_is_initializable()\n {\n $this->shouldHaveTyp...
php
chosen
[ { "from": "system", "value": "Add addDirective method to add directive\n" }, { "from": "human", "value": "<?php\nnamespace CodeGen\\Frameworks\\Apache2;\n\nclass BaseDirectiveGroup\n{\n protected $tag;\n\n protected $dynamicDirectives = [];\n\n public function __construct($tag)\n {\n...
php
chosen
[ { "from": "system", "value": "Make npm verbose during 'platform build -vv'\n" }, { "from": "human", "value": "<?php\n\nnamespace Platformsh\\Cli\\Local\\Toolstack;\n\nuse Platformsh\\Cli\\Exception\\DependencyMissingException;\n\nclass NodeJs extends ToolstackBase\n{\n public function getKey(...
php
chosen
[ { "from": "system", "value": "Fix test suite on <7\n" }, { "from": "human", "value": "<?php\n\nnamespace Installer;\n\nuse Composer\\Plugin\\Capability\\CommandProvider;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\nuse Compo...
php
chosen
[ { "from": "system", "value": "Use the default modal command. Set title and href.\n" }, { "from": "human", "value": "<?php\n/**\n * @version\t\t$Id$\n * @category\tNooku\n * @package Nooku_Server\n * @subpackage Weblinks\n * @copyright\tCopyright (C) 2011 Timble CVBA and Contributors. (http:...
php
chosen
[ { "from": "system", "value": "Use WebserviceTestCase as parent for listing traits test\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\AppBundle\\API\\Listing;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Test\\WebTestCase;\nuse Symfony\\Component\\HttpFoundation\\ParameterBag;\nuse Tes...
php
chosen
[ { "from": "system", "value": "Revert \"switched to execut ckfinder\"\n\nThis reverts commit a9657b395a551b96211ca18f60258ec6bfb533bb.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Mamaev Yuriy (eXeCUT)\n * @link https://github.com/execut\n * @copyright Copyright (c) 2020 Mamaev Yuriy...
php
chosen
[ { "from": "system", "value": "Use proper return type in command\n" }, { "from": "human", "value": "<?php\n\nnamespace Laravel\\Passport\\Console;\n\nuse Illuminate\\Console\\Command;\n\nclass InstallCommand extends Command\n{\n /**\n * The name and signature of the console command.\n ...
php
chosen
[ { "from": "system", "value": "Create directories when loading fixtures.\n\n" }, { "from": "human", "value": "<?php\nnamespace App\\Entity\\Fixture;\n\nuse App\\Radio\\Adapters;\nuse Doctrine\\Common\\DataFixtures\\AbstractFixture;\nuse Doctrine\\Common\\Persistence\\ObjectManager;\nuse App\\Enti...
php
chosen
[ { "from": "system", "value": "Revert \"Temporarily removed the first line from the survey-complete page\"\n\nThis reverts commit 803aa203\n" }, { "from": "human", "value": "<?php if ($valid_token) { ?>\n\t<?=heading('Hartelijk dank voor het invullen van deze vragenlijst.', 2); ?>\n\t<p>\n<!--\t\...
php
chosen
[ { "from": "system", "value": "Remove dropping unique from sys_notification_read\n" }, { "from": "human", "value": "<?php\n\nuse Carbon\\Carbon;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass AddEmailViewPermission extends Migration\n{\n ...
php
chosen
[ { "from": "system", "value": "Store date format into a constant\n" }, { "from": "human", "value": "<?php\n/**\n * Created by Pierre-Henry Soria\n */\n\nnamespace PFBC\\Validation;\n\nuse PH7\\Framework\\Date\\CDateTime;\nuse PH7\\Framework\\Mvc\\Model\\DbConfig;\n\nclass BirthDate extends \\PFBC...
php
chosen
[ { "from": "system", "value": "Use Case for persona b (pet seeker)\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<head>\n\t<title>Conceptual-Model</title>\n</head>\n<body>\n\t<main>\n\t\t<h2>Entities and Attributes</h2>\n\t\t<p><strong>User Profile</strong></p>\n\t\t<ul>\n\t\t\t<li></li>\n\...
php
chosen
[ { "from": "system", "value": "Use $eval to maintain state\n" }, { "from": "human", "value": "<?php #YOLO\n\nnamespace yolo;\n\nfunction yolisp($swag, array $env = []) {\n if (!is_array($swag)) {\n if (isset($env[$swag])) {\n return $env[$swag];\n } else if (function_e...
php
chosen
[ { "from": "system", "value": "Add dominion state metadata to Bugsnag\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenDominion\\Http\\Middleware;\n\nuse Closure;\nuse Illuminate\\Database\\Eloquent\\ModelNotFoundException;\nuse OpenDominion\\Services\\Dominion\\SelectorService;\n\nclass...
php
chosen
[ { "from": "system", "value": "Make sure SearchLeaf gets given a SearchModel for correct functions\n\n" }, { "from": "human", "value": "<?php\n\nnamespace SuperCMS\\Leaves\\Site\\Product;\n\nuse Rhubarb\\Leaf\\Crud\\Leaves\\ModelBoundModel;\nuse SuperCMS\\Leaves\\Site\\Search\\SearchLeaf;\n\nclas...
php
chosen
[ { "from": "system", "value": "Return FALSE when account is not valid" }, { "from": "human", "value": "<?php\n\nnamespace Shoptet\\Spayd\\Utilities;\n\nuse Shoptet\\Spayd\\Exceptions;\n\nclass IbanUtilities {\n\t\n\tpublic static function computeIBANFromCzechBankAccount(\\Shoptet\\Spayd\\Model\\C...
php
chosen
[ { "from": "system", "value": "Fix for issue with presence input name\n" }, { "from": "human", "value": "<?php\n\nnamespace Rhubarb\\Scaffolds\\Communications\\Leaves\\CommunicationItem;\n\nuse Rhubarb\\Leaf\\Controls\\Common\\Checkbox\\CheckboxView;\n\nclass CommunicationItemCollectionCheckboxVi...
php
chosen
[ { "from": "system", "value": "Switch to singleton on register\n" }, { "from": "human", "value": "<?php namespace Ritey\\LibPhoneNumberLaravel;\n/**\n* Libphonenumber-for-php service provider package for Laravel by David Wright.\n*\n* NOTICE OF LICENSE\n*\n* Licensed under the terms from David Wr...
php
chosen
[ { "from": "system", "value": "Add test new company suspended\n" }, { "from": "human", "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\\Testing\\Datab...
php
chosen
[ { "from": "system", "value": "Remove error levels for PHP\n" }, { "from": "human", "value": "<?php\r\n /**\r\n * @desc Bootstrap base engine classes\r\n * @package M2 Micro Framework\r\n * @subpackage Main\r\n * @author Alexander Chaika\r\n */\r\n\r\n // start session\r...
php
chosen
[ { "from": "system", "value": "Add more tests back in\n" }, { "from": "human", "value": "<?php\n\nclass Purity5Test extends PHPUnit_Framework_TestCase\n{\n\t// Tests\n\n\tpublic function test_SimpleParse() {\n\t\t$html = '<html>\n\t\t\t<head>\n\t\t\t\t<title>Welcome</title>\n\t\t\t</head>\n\t\t\t...
php
chosen
[ { "from": "system", "value": "Reduce length of slug field to prevent error when creating unique index\n" }, { "from": "human", "value": "<?php\n\nnamespace Flarum\\Tags\\Migration;\n\nuse Flarum\\Database\\AbstractMigration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nclass MakeSlugUnique e...
php
chosen
[ { "from": "system", "value": "Remove message delivery for Facebook\n" }, { "from": "human", "value": "<?php\n\nnamespace PragmaRX\\Sdk\\Services\\FacebookMessenger\\Listeners;\n\nuse PragmaRX\\Sdk\\Services\\Chat\\Events\\EventPublisher;\nuse PragmaRX\\Sdk\\Services\\Chat\\Events\\ChatMessageWas...
php
chosen
[ { "from": "system", "value": "Delete firstVisit = true, userID = 0 sessions after processing background queue\n\nThese sessions most likely stem from a script / cronjob that is set-up\nto regularly request the background queue to ensure it does not fill up\nin periods of low user activity. They “fill up” th...
php
chosen
[ { "from": "system", "value": "Fix missing requirement (overwrote in last batch of commits, due to conflicts).\n" }, { "from": "human", "value": "<?php\n/*\n * Created on Aug 19, 2009\n *\n * SVN INFORMATION:::\n * -------------------\n * Last Author::::::::: $Author$ \n * Current Revision:::: $...
php
chosen
[ { "from": "system", "value": "Fix bug with how Pantheon is disabling updates" }, { "from": "human", "value": "<?php\n// Only in Test and Live Environments...\nif ( in_array( $_ENV['PANTHEON_ENVIRONMENT'], Array('test', 'live') ) ) {\n //\n // Disable Core Updates EVERYWHERE (use git upstream)\...
php
chosen
[ { "from": "system", "value": "Fix PHP 8.1.2 compatibility in DatabaseException\n\n> Cannot access protected property PDOException::$code\n" }, { "from": "human", "value": "<?php\n\nnamespace wcf\\system\\database\\exception;\n\n/**\n * Denotes an database related error.\n *\n * @author Tim Dues...
php
chosen
[ { "from": "system", "value": "Improve list of methods use in benchmark" }, { "from": "human", "value": "<?php\n\nclass Benchmark\n{\n public function run($runCount = 2500)\n {\n $functions = array(\"abs\", \"acos\", \"asin\", \"atan\", \"floor\", \"exp\", \"sin\", \"tan\", \"sqrt\")...
php
chosen
[ { "from": "system", "value": "Move skip link right after body tag\n" }, { "from": "human", "value": "<?php\n/**\n * Template for header\n *\n * <head> section and everything up until <div id=\"content\">\n *\n * @Author: Roni Laukkarinen\n * @Date: 2020-05-11 13:17:32\n * @Last Modified by: Ti...
php
chosen
[ { "from": "system", "value": "Add initial HTTP methods array\n" }, { "from": "human", "value": "<?php\n\nnamespace SimpleRoute;\n\nfinal class Route implements RouteInterface\n{\n /**\n * @var string[]\n */\n private $methods;\n\n /**\n * @var string\n */\n private $p...
php
chosen
[ { "from": "system", "value": "Add debug to behat feature\n" }, { "from": "human", "value": "<?php\n\nuse Behat\\Behat\\Context\\SnippetAcceptingContext;\nuse Behat\\Behat\\Hook\\Scope\\BeforeScenarioScope;\nuse Bex\\Behat\\Context\\TestRunnerContext;\n\n\nclass FeatureContext implements SnippetA...
php
chosen
[ { "from": "system", "value": "Send security headers in bootstrap and not in presenter so that we have them sent when redirecting from HTTP to HTTPS as well\n" }, { "from": "human", "value": "<?php\nnamespace Companies20Module;\n\n/**\n * Base class for all companies20 module presenters.\n *\n * ...
php
chosen
[ { "from": "system", "value": "CRM-2906: Save attachment as attachment entity\n- Support target method\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\src\\Oro\\Bundle\\EmailBundle\\Tests\\Unit\\Fixtures\\Entity;\n\nuse Oro\\Bundle\\AttachmentBundle\\Entity\\Attachment as BaseAttachmen...
php
chosen
[ { "from": "system", "value": "BAP-1626: Customize multi-step setup forms\n- added \"client_validation\" form type option (comments fixed)\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\FormBundle\\Form\\Extension;\n\nuse Symfony\\Component\\Form\\AbstractTypeExtension;\nuse S...
php
chosen
[ { "from": "system", "value": "PLAT-10694: Add linux batch for doc conversion\n" }, { "from": "human", "value": "<?php\n\n/**\n * @package plugins.document\n * @subpackage lib\n */\nclass KOperationEnginePdfCreatorLinux extends KOperationEnginePdfCreator\n{\n\t// List of supported file types\n\tp...
php
chosen
[ { "from": "system", "value": "Send the test SMTP message from the configured from address/name\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse Exception;\nuse Illuminate\\Console\\Command;\nuse Illuminate\\Support\\Facades\\Mail;\n\nclass TestSmtpCredentials ...
php
chosen
[ { "from": "system", "value": "Add (helpful) comments to docBlocks\n" }, { "from": "human", "value": "<?php\n/***************************************************************************\n * @author Pierre-Henry Soria <ph7software@gmail.com>\n * @category PH7 Template Engine\n * ...
php
chosen
[ { "from": "system", "value": "ADD support to multiple languages from config/app.php config file\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Jobs;\n\nuse App\\Jobs\\Job;\nuse Request;\nuse Illuminate\\Contracts\\Bus\\SelfHandling;\n\nclass SetLocale extends Job implements SelfHandl...
php
chosen
[ { "from": "system", "value": "Replace code blocks with snippets\n" }, { "from": "human", "value": "<?php get_header(); ?>\n\n<div class=\"container\">\n <?php if (!is_front_page()) : ?>\n <header class=\"page-header\">\n <h1 class=\"page-title\"><?php single_post_title(); ?>...
php
chosen
[ { "from": "system", "value": "Revert \"Added filters to stop WordPress from automatically adding p tags\"\n\nThis reverts commit 28770297b88c997c8ec9e7952eeb88e77248f7d3.\n" }, { "from": "human", "value": "<?php\n\nnamespace Roots\\Sage\\Extras;\n\nuse Roots\\Sage\\Config;\n\n/**\n * Add <body> ...
php
chosen
[ { "from": "system", "value": "Add a c5_execute or die\n\nFormer-commit-id: 1ab7033f04df48da857139fd1bbf7cf8788ddfb4" }, { "from": "human", "value": "<?\nif (is_object($configuration)) {\n\t$path = $configuration->getRootPath();\n\t$relativePath = $configuration->getWebRootRelativePath();\n}\n?>\...
php
chosen