conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Correct the URI in the comment for the all() function\n" }, { "from": "human", "value": "<?php namespace Rossedman\\Teamwork;\n\nuse Rossedman\\Teamwork\\Traits\\RestfulTrait;\n\nclass Time extends AbstractObject {\n\n use RestfulTrait;\n\n protected $wrapper...
php
chosen
[ { "from": "system", "value": "Make the image path work even if it's in a subfolder\n" }, { "from": "human", "value": "<?php\ninclude( '../config.php' );\n\n$url = 'http://www.myepisodes.com/rss.php?feed=mylist&uid=mirrorer&pwdmd5=' . $myEpisodes;\n\n$data = file_get_contents( $url );\n\n$shows =...
php
chosen
[ { "from": "system", "value": "Remove useless try catch block\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: quimmanrique\n * Date: 13/02/17\n * Time: 19:13\n */\n\nnamespace Cmp\\Queues\\Infrastructure\\AmqpLib\\v26\\RabbitMQ\\Queue;\n\nuse Cmp\\Queues\\Domain\\...
php
chosen
[ { "from": "system", "value": "Implement form for step 2\n" }, { "from": "human", "value": "<?php\n\nnamespace Listabierta\\Bundle\\MunicipalesBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFoundation\\Request;\n\nuse Listabierta\...
php
chosen
[ { "from": "system", "value": "Read partition names from configuration file rather than use hardcoded partition names\n" }, { "from": "human", "value": "<?php\nfunction graph_slurm_probejob_pendtime ( &$rrdtool_graph ) {\n\tglobal $rrd_dir;\n\t\n\t$series =\n\t\t \"DEF:'general'='${rrd_dir}/slur...
php
chosen
[ { "from": "system", "value": "Update to new v1 endpoint\n\nWe're moving to a versioned API endpoint. Thanks!" }, { "from": "human", "value": "<?php\nrequire '../src/Curl/Curl.php';\n\nuse \\Curl\\Curl;\n\n$curl = new Curl();\n$curl->get('https://domainr.com/api/json/search', array(\n 'client_...
php
chosen
[ { "from": "system", "value": "BAP-11419: Implement Download (Export) functionality\n- Fixed missed typehint\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\TranslationBundle\\Handler;\n\nuse Oro\\Bundle\\ImportExportBundle\\Handler\\ExportHandler;\n\nuse Oro\\Bundle\\Translati...
php
chosen
[ { "from": "system", "value": "Remove unneeded jquery script include\n" }, { "from": "human", "value": "<section id=\"scripts\">\n <script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js\"></script>\n <script>window.jQuery || document.write('<script src=\"<?php bloginfo(...
php
chosen
[ { "from": "system", "value": "Update list command to display table\n" }, { "from": "human", "value": "<?php namespace NZTim\\Queue\\Commands;\n\nuse Illuminate\\Console\\Command;\nuse NZTim\\Queue\\QueueManager;\n\nclass ListCommand extends Command\n{\n protected $signature = 'queuemgr:list {...
php
chosen
[ { "from": "system", "value": "Update branch method for new abstracted validate and send logic\n" }, { "from": "human", "value": "<?php\n\nnamespace ZpgRtf\\Methods;\n\nuse League\\JsonGuard\\Validator;\nuse League\\JsonReference\\Dereferencer;\nuse ZpgRtf\\Objects\\BranchObject;\n\n/**\n * The b...
php
chosen
[ { "from": "system", "value": "Allow pagination from query\nFluid presenter method" }, { "from": "human", "value": "<?php\n\nnamespace ItvisionSy\\LaravelExtras\\Presenter;\n\nuse ArrayIterator as Iterator;\nuse Illuminate\\Database\\Eloquent\\Collection as ECollection;\n\n/**\n * Description of ...
php
chosen
[ { "from": "system", "value": "Remove the files Matt re-added\n\nThis reverts commit 18106dac8014cd215ba01ac416bccd3bdebc6fa9.\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the YDD\\Vebra package.\n *\n * (c) 2012 Damon Jones <damon@yummyduckdesign.co.uk> and Matthew Dav...
php
chosen
[ { "from": "system", "value": "Clean up repositories with symbols correctly\n\nSummary: We currently try to delete symbols by ID, but the table has a multipart primary key and no `id` column.\n\nTest Plan: Ran query locally; had @JThramer verify fix in his environment.\n\nReviewers: btrahan\n\nReviewed By: b...
php
chosen
[ { "from": "system", "value": "Set default value for path of config\n" }, { "from": "human", "value": "<?php\n\nnamespace RMiller\\PhpSpecExtension;\n\nuse Behat\\Testwork\\ServiceContainer\\Extension as ExtensionInterface;\nuse Behat\\Testwork\\ServiceContainer\\ExtensionManager;\nuse Symfony\\C...
php
chosen
[ { "from": "system", "value": "Remove duplicate code; fix docblock\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the league/commonmark package.\n *\n * (c) Colin O'Dell <colinodell@gmail.com>\n *\n * Original code based on the CommonMark JS reference parser (http://bitly...
php
chosen
[ { "from": "system", "value": "Make it easier to set image alt text" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the league/commonmark package.\n *\n * (c) Colin O'Dell <colinodell@gmail.com>\n *\n * Original code based on the CommonMark JS reference parser (http://bitly....
php
chosen
[ { "from": "system", "value": "Document changes in mail driver interface\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 this source code.\n */\n\nnam...
php
chosen
[ { "from": "system", "value": "Fix iCryptoSystem missing, shorten function names, fix chaining issue\n" }, { "from": "human", "value": "<?php\n\nnamespace Rosio\\EncryptedCookie;\n\nclass CookieFactory\n{\n\tprivate $cryptoSystem;\n\n\tfunction __construct (iCryptoSystem $cryptoSystem)\n\t{\n\t\t...
php
chosen
[ { "from": "system", "value": "Fix publishing our config file.\n" }, { "from": "human", "value": "<?php\n\nnamespace Prolougetech\\Big;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass BigServiceProvider extends ServiceProvider\n{\n /**\n * Indicates if loading of the provider is defe...
php
chosen
[ { "from": "system", "value": "Add FST to minute reports\n" }, { "from": "human", "value": "<?php\n\n/**\n * Spigot Timings Parser\n *\n * Written by Aikar <aikar@aikar.co>\n *\n * @license MIT\n */\nclass MinuteReport {\n use FromJson;\n /**\n * @index t\n * @var int\n */\n ...
php
chosen
[ { "from": "system", "value": "Handle App::abort() no longer exist.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php namespace Orchestra\\Support\\Traits;\n\nuse Illuminate\\Support\\Facades\\App;\nuse Illuminate\\Support\\F...
php
chosen
[ { "from": "system", "value": "Save bot details on authorization" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Socialite;\nuse Storage;\nuse GuzzleHttp\\Client;\n\nclass AuthController extends Controller\n{\n\n public function authorizeSlack()\n {\n ...
php
chosen
[ { "from": "system", "value": "OEE-620: Create REST API resource to get dictionary/enum items. Fix CS\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\EntityBundle\\Provider;\n\nuse Doctrine\\ORM\\QueryBuilder;\n\ninterface DictionaryValueListProviderInterface\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "Remove the `server:log` command if monolog is not loaded\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Symfony package.\n *\n * (c) Fabien Potencier <fabien@symfony.com>\n *\n * For the full copyright and license information, please vie...
php
chosen
[ { "from": "system", "value": "Add switch case statement for defining the organism page and set the navbar type\n" }, { "from": "human", "value": "<?php\n\n//config file\nrequire_once __DIR__ . DIRECTORY_SEPARATOR . 'config.php';\n\n//required libs\nrequire_once 'smarty/smarty/libs/Smarty.class.p...
php
chosen
[ { "from": "system", "value": "Change field defaults from NULL to 0\n\nMariaDB doesn't seem to like numeric/boolean fields to have NULL for a\ndefault value\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Ill...
php
chosen
[ { "from": "system", "value": "Make sure tests don't fail when integration tests not loaded\n" }, { "from": "human", "value": "<?php\n\nnamespace\n{\n require __DIR__.'/../vendor/autoload.php';\n}\n\nnamespace Cache\\IntegrationTests\n{\n if (!class_exists('Cache\\IntegrationTests\\CachePoo...
php
chosen
[ { "from": "system", "value": "Increment version number of console application fixes T71\n\nReviewers: stevie, glenn\n\nReviewed By: stevie\n\nManiphest Tasks: T71\n\nDifferential Revision: https://phabricator.heyday.net.nz/D42\n" }, { "from": "human", "value": "<?php\n\nnamespace Heystack\\Subsy...
php
chosen
[ { "from": "system", "value": "Add a test for Writer + MIME Dir + iterator.\n" }, { "from": "human", "value": "<?php\n\nnamespace Sabre\\VObject;\n\nclass WriterTest extends \\PHPUnit_Framework_TestCase {\n\n function getComponent() {\n\n $data = \"BEGIN:VCALENDAR\\r\\nEND:VCALENDAR\";\...
php
chosen
[ { "from": "system", "value": "Fix survey ID, machine description display\n" }, { "from": "human", "value": "<h2><span class=\"label label-default\">Pending surveys</span></h2>\n<table class=\"table table-striped table-hover\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th>Survey ID</th>\n <th>Descr...
php
chosen
[ { "from": "system", "value": "Fix a critical bug where the project member query would return wrong members\n\nDurch einen Fehler in der orWhere() Logik von Laravel konnte die project_id ignoriert werden\n" }, { "from": "human", "value": "<?php\n\nnamespace EmergencyExplorer;\n\nuse Illuminate\\D...
php
chosen
[ { "from": "system", "value": "Fix compilation error in Magento 2.1\n" }, { "from": "human", "value": "<?php\n\nnamespace PHPUnit\\Framework {\n\n if (!class_exists(TestCase::class)) {\n /*\n * Forward compatibility for PHPUnit 4.x (Magento 2.1)\n */\n abstract cl...
php
chosen
[ { "from": "system", "value": "Fix Order suspend/unsuspend HTTP method\n\n@see\r\nhttps://manage.resellerclub.com/kb/answer/1077\r\nhttps://manage.resellerclub.com/kb/node/1452" }, { "from": "human", "value": "<?php\n\nnamespace habil\\ResellerClub\\APIs;\n\nuse habil\\ResellerClub\\Helper;\n\ncl...
php
chosen
[ { "from": "system", "value": "Use the new emptyResponse() method for returning an empty AdminCommand response.\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the TelegramBot package.\n *\n * (c) Avtandil Kikabidze aka LONGMAN <akalongman@gmail.com>\n *\n * For the full co...
php
chosen
[ { "from": "system", "value": "Enable requests on fixture station.\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\\Entity;\n\...
php
chosen
[ { "from": "system", "value": "Make inaccessable private key exception more informative\n\nPerviously setting $config['rsa_private_key'] = 'file://full/path/to/key.pem' (note two slashes instead of three) or other variations that are incompatitible with openssl_pkey_private(), would just give the user \"Cann...
php
chosen
[ { "from": "system", "value": "Exclude alias functions from phpcs\n" }, { "from": "human", "value": "<?php\n\nnamespace Dash;\n\n/**\n * @see all\n * @codeCoverageIgnore\n */\nfunction every($iterable, $predicate)\n{\n\treturn all($iterable, $predicate);\n}\n" }, { "from": "gpt", "val...
php
chosen
[ { "from": "system", "value": "Fix error when there are no orders on the query\n" }, { "from": "human", "value": "<?php namespace Flarum\\Sticky\\Handlers;\n\nuse Flarum\\Core\\Events\\DiscussionSearchWillBePerformed;\nuse Flarum\\Categories\\CategoryGambit;\n\nclass StickySearchModifier\n{\n ...
php
chosen
[ { "from": "system", "value": "Add date generation while publishing migrations\n\nUses the migration stub and prefixes it with the current timestamp." }, { "from": "human", "value": "<?php\n\nnamespace Actuallymab\\LaravelComment;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass LaravelComme...
php
chosen
[ { "from": "system", "value": "Allow any DOMNode to be passed as parameters\n" }, { "from": "human", "value": "<?php\nnamespace phpgt\\dom;\n\n/**\n * Contains methods that are particular to Node objects that can have a parent.\n *\n * This trait is used by the following classes:\n * - Element\n...
php
chosen
[ { "from": "system", "value": "Support pdo key in container" }, { "from": "human", "value": "<?php\n\nnamespace Inspector;\n\nuse Inspector\\Inspection\\InspectionInterface;\n\nuse ReflectionClass;\n\nclass Inspector implements InspectorInterface\n{\n private $inspections = array();\n priva...
php
chosen
[ { "from": "system", "value": "Update the timeline endpoint for instagram\n" }, { "from": "human", "value": "<?php\n\nnamespace duncan3dc\\OAuth;\n\nuse duncan3dc\\Helpers\\Helper;\nuse duncan3dc\\Serial\\Json;\n\nclass Instagram extends OAuth2\n{\n\n public function __construct(array $options...
php
chosen
[ { "from": "system", "value": "Change the date formatting on lastplayed\n" }, { "from": "human", "value": "@section(\"content\")\n\n\t<div class=\"container main\">\n\t\t<h1 class=\"text-center\">Last Played</h1>\n\n\t\t<ul class=\"list-group col-md-8 col-md-offset-2\">\n\t\t\t@foreach ($lastplay...
php
chosen
[ { "from": "system", "value": "Remove incompatible backticks from migration. Closes GH-90\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nclass AlterTableIncidentsRemoveDefaultComponent extends Migratio...
php
chosen
[ { "from": "system", "value": "Fix whitespace issue with Admin Panel ModelAdmin columns\n" }, { "from": "human", "value": "@if (method_exists($modelAdmin, 'tableTbodyRow')) \n {{ $modelAdmin->tableTbodyRow($modelItem) }}\n@else\n <tr>\n @foreach ($modelAdmin->getColumns() as $key => ...
php
chosen
[ { "from": "system", "value": "Update action_bucket column with new name and default value\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass MakeBucketAndDe...
php
chosen
[ { "from": "system", "value": "BB-4080: Add CLI command to perform product reindex\n - cr fixes\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\SearchBundle\\Engine;\n\ninterface IndexerInterface\n{\n /**\n * Save one of several entities to search index\n *\n * @...
php
chosen
[ { "from": "system", "value": "Use Session class in upload controller\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers\\Files;\n\nuse Storage;\n\nuse App\\Http\\Controllers\\Controller;\nuse App\\File;\n\nuse Illuminate\\Http\\Request;\n\nclass UploadController extends...
php
chosen
[ { "from": "system", "value": "Improve test support: avoid send header when header sent.\n" }, { "from": "human", "value": "<?php header(\"Content-Type: application/json; charset=utf-8\"); ?>\n<?php echo json_encode($json); ?>\n" }, { "from": "gpt", "value": "<?php\nif(!headers_sent()...
php
chosen
[ { "from": "system", "value": "Hide follow events if the user may not view profiles\n" }, { "from": "human", "value": "<?php\nnamespace wcf\\system\\user\\activity\\event;\nuse wcf\\data\\user\\UserList;\nuse wcf\\system\\SingletonFactory;\nuse wcf\\system\\WCF;\n\n/**\n * User activity event imp...
php
chosen
[ { "from": "system", "value": "Fix \"Trying to get property of non-object\" when mentioning at your own submission\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Traits;\n\nuse App\\Notifications\\UsernameMentioned;\nuse App\\User;\nuse Auth;\n\ntrait UsernameMentions\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "Fix route parameters for a row action\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the DataGridBundle.\n *\n * (c) Stanislav Turza <sorien@mail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file t...
php
chosen
[ { "from": "system", "value": "Revert \"Update version inside constant.php\"\n\nThis reverts commit ad751383f50b96b48a915e1d022c912f1114d166.\n" }, { "from": "human", "value": "<?php\n\n/**\n * CheckoutApi_Client_Constant\n * A final class that manage constant value for all CheckoutApi_Client_Cli...
php
chosen
[ { "from": "system", "value": "Load and fetch the extension classes\n" }, { "from": "human", "value": "<?php\n\nnamespace Bolt\\Extension;\n\nuse Silex\\Application;\n\n/**\n * Management class for extensions.\n *\n * @author Gawain Lynch <gawain.lynch@gmail.com>\n */\nclass Manager\n{\n /** @...
php
chosen
[ { "from": "system", "value": "Update filter to use Grammar modifiers\n" }, { "from": "human", "value": "<?php\n\nnamespace Romans\\Filter;\n\nuse Romans\\Grammar\\Grammar;\nuse Romans\\Grammar\\GrammarAwareTrait;\n\n/**\n * Int to Roman\n */\nclass IntToRoman\n{\n use GrammarAwareTrait;\n\n ...
php
chosen
[ { "from": "system", "value": "Test for possible array callable with a magic constant\n" }, { "from": "human", "value": "<?php\n\nnamespace AppendedArrayItem;\n\n// inferred from literal array\n$integers = [1, 2, 3];\n$integers[] = 4;\n$integers['foo'] = 5;\n\n$integers[] = 'foo';\n$integers['bar...
php
chosen
[ { "from": "system", "value": "Define the recommender of a product.\n" }, { "from": "human", "value": "<?php\nApp::uses('AppModel', 'Model');\n\n/**\n * Product model\n */\nclass ProductSuggestion extends AppModel\n{\n\tpublic $belongsTo = array(\n\t\t'Person',\n\t\t'Product'\n\t);\n}\n" }, {...
php
chosen
[ { "from": "system", "value": "Add Abstract Request tests for Account Type\n" }, { "from": "human", "value": "<?php\n\nnamespace Omnipay\\SecureTrading\\Test\\Message;\n\nuse Omnipay\\SecureTrading\\Message\\AbstractRequest;\nuse Omnipay\\Tests\\TestCase;\n\nabstract class AbstractRequestTest ext...
php
chosen
[ { "from": "system", "value": "Add test for the method EventLists::reset\n" }, { "from": "human", "value": "<?php\n\nnamespace Phug\\Test\\Profiler;\n\nuse PHPUnit\\Framework\\TestCase;\nuse Phug\\Renderer\\Profiler\\EventList;\n\n/**\n * @coversDefaultClass \\Phug\\Renderer\\Profiler\\EventList\...
php
chosen
[ { "from": "system", "value": "Make it possible to do text substitution with this renderer.\n\n\nsvn commit r2278\n" }, { "from": "human", "value": "<?php\n\nrequire_once 'Swat/SwatCellRenderer.php';\n\n/**\n * A text cell renderer\n *\n * @package Swat\n * @copyright 2004-2005 silverorange\n *...
php
chosen
[ { "from": "system", "value": "Add comment why we are manually saving the session\n" }, { "from": "human", "value": "<?php\n\nnamespace Auth0\\Login;\n\nuse Session;\nuse Auth0\\SDK\\Store\\StoreInterface;\n\nclass LaravelSessionStore implements StoreInterface\n{\n const BASE_NAME = 'auth0_';\...
php
chosen
[ { "from": "system", "value": "Update header for proxy midleware [WEB-889]\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Middleware;\n\nuse Illuminate\\Http\\Request;\nuse Fideloper\\Proxy\\TrustProxies as Middleware;\n\nclass TrustProxies extends Middleware\n{\n /**\n *...
php
chosen
[ { "from": "system", "value": "Add name accessor for Branch object\n" }, { "from": "human", "value": "<?php\n\nrequire_once(__DIR__ . '/../GitHubObject.php');\n\n\t\n\nclass GitHubBranch extends GitHubObject\n{\n\t/* (non-PHPdoc)\n\t * @see GitHubObject::getAttributes()\n\t */\n\tprotected functi...
php
chosen
[ { "from": "system", "value": "Fix property name in twig extension\n" }, { "from": "human", "value": "<?php\n\nnamespace Knplabs\\MenuBundle\\Twig;\n\nuse Knplabs\\MenuBundle\\Templating\\Helper\\MenuHelper;\n\nclass MenuExtension extends \\Twig_Extension\n{\n /**\n * @var MenuHelper\n ...
php
chosen
[ { "from": "system", "value": "Fix edit link outside the header\n" }, { "from": "human", "value": "<h2><?= $this->get('game')->name; ?>\n<a href=\"<?= $this->get('edit-link'); ?>\">Edit</a></h2>\n<div>\n Created at: <?= $this->get('game')->created; ?><br>\n Last modified: <?= $this->get('ga...
php
chosen
[ { "from": "system", "value": "Add getPath(), getUri() in the request intereface" }, { "from": "human", "value": "<?php\n\nnamespace Http;\n\ninterface Request\n{\n public function getParameter($key, $defaultValue = null);\n public function getFile($key, $defaultValue = null);\n public f...
php
chosen
[ { "from": "system", "value": "Update tests to reflect c03ba5c\n" }, { "from": "human", "value": "<?php\n\nnamespace Thumbor;\n\nclass UrlTest extends \\PHPUnit_Framework_TestCase\n{\n public function testSign()\n {\n $this->assertEquals(\n 'bDv76lTvUdX6vORS96scx7P185c=',\...
php
chosen
[ { "from": "system", "value": "Add lookup support for user profile page\n" }, { "from": "human", "value": "<?php\nnamespace wcf\\system\\page\\handler;\n\n/**\n * Menu page handler for the user profile page.\n * \n * @author\tMatthias Schmidt\n * @copyright\t2001-2016 WoltLab GmbH\n * @license\tG...
php
chosen
[ { "from": "system", "value": "Correct line spacing in update checker\n" }, { "from": "human", "value": "<?php\n\nfunction checkVersion() {\n\t$current = explode(\"-\", file_get_contents(\"version\"));\n\t$latest = explode(\"-\", file_get_contents(\"https://raw.github.com/VeoPVM/LinMon/master/sla...
php
chosen
[ { "from": "system", "value": "Use array_get to prevent undefined index warnings\n" }, { "from": "human", "value": "<?php\n\nreturn array(\n\n /*\n |--------------------------------------------------------------------------\n | Database Connections\n |---------------------------------...
php
chosen
[ { "from": "system", "value": "Add academic level and language questions to step 3 form\n" }, { "from": "human", "value": "<?php\n\nnamespace Listabierta\\Bundle\\MunicipalesBundle\\Form\\Type;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nus...
php
chosen
[ { "from": "system", "value": "Add user_id to playlist item transformer\n" }, { "from": "human", "value": "<?php\n\n// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.\n// See the LICENCE file in the repository root for full licence text.\n\nn...
php
chosen
[ { "from": "system", "value": "Test path exception for generic resource.\n" }, { "from": "human", "value": "<?php\n\nnamespace Orbt\\ResourceMirror\\Tests\\Resource;\n\nuse Orbt\\ResourceMirror\\Resource\\GenericResource;\n\nclass GenericResourceTest extends \\PHPUnit_Framework_TestCase\n{\n /...
php
chosen
[ { "from": "system", "value": "Throw exceptions properly when running tests\n" }, { "from": "human", "value": "<?php namespace App\\Exceptions;\n\nuse Exception;\nuse Illuminate\\Foundation\\Exceptions\\Handler as ExceptionHandler;\n\nclass Handler extends ExceptionHandler {\n\n\t/**\n\t * A list...
php
chosen
[ { "from": "system", "value": "Update to include the TheGame:MapBundle controller\n" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\HttpKernel\\Kernel;\nuse Symfony\\Component\\Config\\Loader\\LoaderInterface;\n\nclass AppKernel extends Kernel\n{\n public function registerBun...
php
chosen
[ { "from": "system", "value": "Make networth rollback column nullable\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass DropNetworthColumnFromDominionsTable...
php
chosen
[ { "from": "system", "value": "Add newline to end of file\n" }, { "from": "human", "value": "<?php\n\nnamespace Paulboco\\Powerball\\Drawings;\n\nclass DrawingFacade\n{\n /**\n * The file handler instance.\n *\n * @var Paulboco\\Powerball\\Drawings\\FileHandler\n */\n privat...
php
chosen
[ { "from": "system", "value": "Fix fixture loading with API keys.\n\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Entity\\Fixture;\n\nuse App\\Entity;\nuse Doctrine\\Common\\DataFixtures\\AbstractFixture;\nuse Doctrine\\Common\\DataFixtures\\DependentFixtureInterface;\nuse Doctrine\\...
php
chosen
[ { "from": "system", "value": "Clear the song index before re-indexing the entire database\n" }, { "from": "human", "value": "<?php\n\nuse Elasticsearch\\Client;\n\ntrait AdminSearch {\n\n\tpublic function getSearch($index = null) {\n\n\t\tif ($index) {\n\n\t\t\t$document = $this->search($index, ...
php
chosen
[ { "from": "system", "value": "Remove PEAR-related stuff and fixed some comments\n" }, { "from": "human", "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 LIC...
php
chosen
[ { "from": "system", "value": "Fix undefined variable \"heading\" in cli 404\n" }, { "from": "human", "value": "<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\n\nuse CodeIgniter\\CLI\\CLI;\n\nCLI::error('ERROR: '.$heading);\nCLI::write($message);\nCLI::newLine();\n" }, ...
php
chosen
[ { "from": "system", "value": "Switch to store GMT dates.\n" }, { "from": "human", "value": "<?php\n\n//This should be run on cron.\n\ninclude_once('config.php');\n\n$mysqli = new mysqli($dbhost, $dbuser, $dbpass, $dbname);\nif ($mysqli->connect_errno) {\n echo \"Failed to connect to MySQL: (\...
php
chosen
[ { "from": "system", "value": "Update of the doc for equals to Model" }, { "from": "human", "value": "<?php\n\nnamespace App;\n\nuse Illuminate\\Foundation\\Auth\\User as Authenticatable;\n\nclass User extends Authenticatable\n{\n /**\n * The attributes that are mass assignable.\n *\n ...
php
chosen
[ { "from": "system", "value": "Change filter sets merge priority in add Imagine filter sets compiler pass.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2017, Darvin Studio\n * @link https://www.darvin-studio.ru\...
php
chosen
[ { "from": "system", "value": "Check before attempting to remove composer from phar archive\n" }, { "from": "human", "value": "<?php \r\n/**\r\n* Packages everything into a nice PHAR archive\r\n*/\r\n\r\nif(file_exists('emulator.phar')) {\r\n unlink('emulator.phar');\r\n}\r\n\r\n$phar = new Phar...
php
chosen
[ { "from": "system", "value": "Add ip on ip dev\n" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Debug\\Debug;\n\n// If you don't want to setup permissions the proper way, just uncomment the following PHP line\n// read http://sy...
php
chosen
[ { "from": "system", "value": "Fix undefined variable error. (woops)\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse Illuminate\\Http\\Request;\n\nuse \\App\\Manga;\nuse \\App\\MangaInformation;\n\nclass MangaEditController extends Controller\n{\n public fu...
php
chosen
[ { "from": "system", "value": "Add a few proper tests for literals, all tests passing now\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Composer.\n *\n * (c) Nils Adermann <naderman@naderman.de>\n * Jordi Boggiano <j.boggiano@seld.be>\n *\n * For the full copyright a...
php
chosen
[ { "from": "system", "value": "Undo title to lowercase in octopress header.\n" }, { "from": "human", "value": "<?php\n\nfunction rewriteHeader($headline, $oldTag, $newTag) {\n\tif (strpos($headline, $oldTag) === 0) {\n\t\t$data = substr($headline, strlen($oldTag));\n\t\t$data = str_replace('\"', ...
php
chosen
[ { "from": "system", "value": "Remove \"MOD\" comment in hidden release feature\n\nThis will be a built-in feature.\n" }, { "from": "human", "value": "<?php\ninclude('db.php');\n$releasequery = $sql->query('SELECT releaseid, releasename, releasedate, releasecover FROM ' . $sql->get_table_prefix()...
php
chosen
[ { "from": "system", "value": "Fix typo in compiler pass\n" }, { "from": "human", "value": "<?php\n\nnamespace Knplabs\\MarkupValidatorBundle\\DependencyInjection\\Compiler;\n\nuse Symfony\\Component\\DependencyInjection\\Reference;\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\...
php
chosen
[ { "from": "system", "value": "[FIX] css: Allow url etc in custom css and js prefs (thanks luci)\n\ngit-svn-id: 84b83dd0f57d36a02bb8202710824ee41d1b7ca0@41591 b456876b-0849-0410-b77d-98878d47e9d5\n" }, { "from": "human", "value": "<?php\n// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS ...
php
chosen
[ { "from": "system", "value": "Adjust path for location on production drive\n" }, { "from": "human", "value": "<?php\n\n /**\n * Sloth-PHP\n * Tiny php framework, not actually as slow as it sounds.\n *\n * Written and copyrighted 2014+\n * by Sven Marc 'cybrox' Gehring\n */\n\n /* A...
php
chosen
[ { "from": "system", "value": "Exclude \"_modified\" property from \"getAll\" method\n\nThe \"getAll\" method of the Entity class should return an array with real\nattributes of the Entity object but not internally used properties.\n" }, { "from": "human", "value": "<?php\nnamespace ORM;\n\nabstr...
php
chosen
[ { "from": "system", "value": "Add necessary member variables for iRunCommand\n" }, { "from": "human", "value": "<?php\n\nnamespace Lauft\\Behat\\BashExtension\\Context;\n\n/**\n * BashContext context for Behat BDD tool.\n * Provides bash base step definitions.\n */\nclass BashContext extends Raw...
php
chosen
[ { "from": "system", "value": "Change script order to load Jquery first\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n<head>\n\t<link rel=\"stylesheet\" href=\"bootstrap.min.css\" type=\"text/css\" >\n\t<link rel=\"stylesheet\" href=\"base.css\" type=\"text/css\" >\n\t<link href='ht...
php
chosen
[ { "from": "system", "value": "Allow to manually set size.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php namespace Orchestra\\Avatar\\Handlers;\n\nuse Illuminate\\Support\\Arr;\nuse Orchestra\\Avatar\\Handler;\nuse Orches...
php
chosen
[ { "from": "system", "value": "Cut back on unused code in Report Controller\n" }, { "from": "human", "value": "<?php\n\nnamespace Ise\\WebSecurityBundle\\Controller;\n\nuse Psr\\Log\\LoggerInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Bundle\\FrameworkBundle\\Controll...
php
chosen
[ { "from": "system", "value": "Throw better exceptions on invalid data\n" }, { "from": "human", "value": "<?php\nnamespace GraphiteAlert;\nuse Guzzle\\Http\\Client;\n\nclass GraphiteData\n{\n protected $config;\n protected $client;\n\n public function __construct($config)\n {\n ...
php
chosen
[ { "from": "system", "value": "Set default autorefresh time to 120s (from 30)\n" }, { "from": "human", "value": "<?php\n\ndefined( 'NODEMON_RUNNING') || die( 'Access denied.' );\n\n// See https://github.com/xblau/node-interface/wiki/Configuration\n// for more info about these options.\n\n$nodecon...
php
chosen