conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Allow slashes and backslashes in the code's content.\n" }, { "from": "human", "value": "<?php\n\n/*\n * (c) Jeroen van den Enden <info@endroid.nl>\n *\n * This source file is subject to the MIT license that is bundled\n * with this source code in the file LICENSE.\n...
php
chosen
[ { "from": "system", "value": "Update Dotenv config to the new version\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of gpupo/common\n * Created by Gilmar Pupo <contact@gpupo.com>\n * For the information of copyright and license you should read t...
php
chosen
[ { "from": "system", "value": "Change installing message in composer dependency\n" }, { "from": "human", "value": "<?php\n\nnamespace WP_CLI;\n\nuse \\Composer\\DependencyResolver\\Rule;\nuse \\Composer\\EventDispatcher\\Event;\nuse \\Composer\\EventDispatcher\\EventSubscriberInterface;\nuse \\Co...
php
chosen
[ { "from": "system", "value": "Switch to mock builder as it works across all PHPUnit versions." }, { "from": "human", "value": "<?php\n\nnamespace React\\Tests\\EventLoop;\n\nclass TestCase extends \\PHPUnit_Framework_TestCase\n{\n protected function expectCallableExactly($amount)\n {\n ...
php
chosen
[ { "from": "system", "value": "Change the order of the answer_id field\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateDiscussionsTable extends Migr...
php
chosen
[ { "from": "system", "value": "Disable feature test that came with Laravel by default\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\Feature;\n\nuse Tests\\TestCase;\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\nu...
php
chosen
[ { "from": "system", "value": "Update loopback plugin to return valid Host header.\n" }, { "from": "human", "value": "<?php\n/**\n * Plugin Name: E2E Enable Loopback\n * Description: Plugin to filter http requests to remove the port.\n *\n * @package Google\\Site_Kit\n * @copyright 2020 Google ...
php
chosen
[ { "from": "system", "value": "Remove Unix commands from build tool and replace with PHP native ones.\n\nAlso, only remove the beginning PHP open tag and file-level PHPDoc comment. Fixes #152.\n" }, { "from": "human", "value": "<?php\n$compileFile = 'SimplePie.compiled.php';\nchdir(dirname(dirnam...
php
chosen
[ { "from": "system", "value": "Remove unnecessary increment for the last key.\n" }, { "from": "human", "value": "<?php namespace Limoncello\\Application\\Authorization;\n\n/**\n * Copyright 2015-2018 info@neomerx.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * yo...
php
chosen
[ { "from": "system", "value": "Test getting the login status of a profile\n" }, { "from": "human", "value": "<?php\n\nnamespace Frontend\\Modules\\Profiles\\Tests\\Engine;\n\nuse Common\\WebTestCase;\nuse Frontend\\Core\\Engine\\Model as FrontendModel;\nuse Frontend\\Modules\\Profiles\\Engine\\Au...
php
chosen
[ { "from": "system", "value": "Add list of channel moderators for irc page\n\nSigned-off-by: Dries Vints <9818b0f8e34f57ac0059d0bc440479771e319166@gmail.com>\n" }, { "from": "human", "value": "<h2>#Laravel IRC Chat</h2>\n\n<iframe src=\"https://kiwiirc.com/client/irc.freenode.net/?&theme=basic#la...
php
chosen
[ { "from": "system", "value": "Remove a not using import stantment\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Auth;\n\nuse Prob\\Handler\\ProcInterface;\n\nabstract class PermissionManager\n{\n abstract public function __construct(array $settings = []);\n\n /**\n * @retu...
php
chosen
[ { "from": "system", "value": "Add validation for configuring story.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Event;\nuse Illuminate\\Support\\Facades\\View;\nuse Orchestra\\Suppo...
php
chosen
[ { "from": "system", "value": "Add enabled() static function to check if site is enabled\n\nSigned-off-by: Kirtan Gajjar <dda7ffca0822762c3fa90dba716be1cac57d994e@gmail.com>\n" }, { "from": "human", "value": "<?php\n\nnamespace EE\\Model;\nuse EE;\n\n/**\n * Site model class.\n */\nclass Site ext...
php
chosen
[ { "from": "system", "value": "Make NocaptchaField extendable by injector" }, { "from": "human", "value": "<?php\nclass NocaptchaProtector implements SpamProtector {\n /**\n * Return the Field that we will use in this protector\n * @return string\n */\n public function getFormFi...
php
chosen
[ { "from": "system", "value": "Update dock block for new location of HeadersInterface\n" }, { "from": "human", "value": "<?php\n/**\n * Slim Framework (https://slimframework.com)\n *\n * @link https://github.com/slimphp/Slim\n * @copyright Copyright (c) 2011-2017 Josh Lockhart\n * @license ...
php
chosen
[ { "from": "system", "value": "Test case to check returned Object\n" }, { "from": "human", "value": "<?php\n\nnamespace MartiAdrogue\\SqlBuilder\\Test;\n\nuse MartiAdrogue\\SqlBuilder\\SelectBuilder;\nuse MartiAdrogue\\SqlBuilder\\Exception\\InvalidSqlSyntaxException;\n\nclass SelectBuilderTest e...
php
chosen
[ { "from": "system", "value": "Test that the event manager is not replaced\n" }, { "from": "human", "value": "<?php\nnamespace UpCloo\\App;\n\nclass BootTest extends \\PHPUnit_Framework_TestCase\n{\n public function testGetEmptyServiceManagerOnMissingConfiguration()\n {\n $boot = new...
php
chosen
[ { "from": "system", "value": "Update last login time on newcomer auth\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Http\\Controllers\\All;\n\nuse App\\Http\\Controllers\\Controller;\nuse App\\Models\\User;\nuse EtuUTT;\nuse Request;\nuse Config;\nuse View;\nuse Crypt;\nuse Redirect...
php
chosen
[ { "from": "system", "value": "Remove useless method in interface\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the Tmdb package.\n *\n * (c) Vincent Faliès <vincent.falies@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file...
php
chosen
[ { "from": "system", "value": "Allow adding a person that is just a company\n" }, { "from": "human", "value": "<?\ninclude '../scat.php';\n\n$name= $_REQUEST['name'];\nif (empty($name))\n die_jsonp(\"You need to supply at least a name.\");\n\n$q= \"SELECT id\n FROM person\n WHERE name...
php
chosen
[ { "from": "system", "value": "Use HTML5 utf8 meta tag\n" }, { "from": "human", "value": "<!DOCTYPE html>\n\n<html lang=\"en\">\n <head>\n <title>EndofCodes Demo</title>\n <?php\n include 'helpers/html.php';\n includeStyle( \"general\" );\n includ...
php
chosen
[ { "from": "system", "value": "Use require_once() instead of include()\n" }, { "from": "human", "value": "<?\n\ninclude('../EpiDBClient.php');\n\n$client = new EpiDBClient();\n$client->submit('{ \"source\": \"php\" }');\n\n" }, { "from": "gpt", "value": "<?\n\nrequire_once('../EpiDBCl...
php
chosen
[ { "from": "system", "value": "Change root redirect to API docs\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Web Routes\n|--------------------------------------------------------------------------\n|\n| Here is wher...
php
chosen
[ { "from": "system", "value": "Implement some methods\nConstructor, mkdir, mkfile, path\n" }, { "from": "human", "value": "<?php\n\n// Prevent this class from being included if another plugin\n// has already loaded it\nif (class_exists('GSUtils')) return;\n\nclass GSUtils {\n // ...\n}\n" }, ...
php
chosen
[ { "from": "system", "value": "Add fix for analog watch\n" }, { "from": "human", "value": "<?php /**\n * Created by PhpStorm.\n * User: Philipp Dippel\n * Date: 31.05.17\n * Time: 17:44\n */\n\n?>\n\n<div id=\"mainContainer\">\n <canvas id=\"mainCanvas\" width=\"2000\" height=\"2000\"></canvas...
php
chosen
[ { "from": "system", "value": "Make sure getBeanFactory() is available in access traits.\n" }, { "from": "human", "value": "<?php\n\nnamespace ampf\\skeleton\\beanAccess\\repos;\n\nuse \\ampf\\skeleton\\doctrine\\repositories\\Test;\n\ntrait Test\n{\n\tprotected $__testRepository = null;\n\n\t/**...
php
chosen
[ { "from": "system", "value": "(fix): Allow using roles and default AWS config\n" }, { "from": "human", "value": "<?php\n\n/**\n * Minds S3 Torrent Builder\n *\n * @author emi\n */\n\nnamespace Minds\\Core\\Torrent\\TorrentBuilders;\n\nuse Minds\\Core\\Di\\Di;\nuse Minds\\Core\\Media\\Services\\A...
php
chosen
[ { "from": "system", "value": "Fix for not filling associated object unless they had ID fields.\n\nIf I'm not misunderstanding, the intended behavior is to be able to\npopulate completely new records as well. The fill was left inside the\nidentifier column conditions which meant unless you set them you\ncou...
php
chosen
[ { "from": "system", "value": "Install Composer dev deps in local stage\n" }, { "from": "human", "value": "<?php\nrequire_once __DIR__ . '/deployer/recipe/configure.php';\nrequire_once __DIR__ . '/deployer/recipe/yii2-app-basic.php';\n\nserverList(__DIR__ . '/stage/servers.yml');\nset('repository...
php
chosen
[ { "from": "system", "value": "Fix misplaced dot, causing issues with routing\n" }, { "from": "human", "value": "<?php\nnamespace Onion\\Framework\\Middleware\\Internal;\n\nuse Interop\\Http\\Middleware\\ServerMiddlewareInterface;\nuse Interop\\Http\\Middleware\\DelegateInterface;\nuse Psr\\Http\...
php
chosen
[ { "from": "system", "value": "Define template path inside share callback\n" }, { "from": "human", "value": "<?php\nnamespace Apitude\\Core\\Template;\n\nuse Apitude\\Core\\Provider\\AbstractServiceProvider;\nuse Apitude\\Core\\Utility\\Arr;\nuse Handlebars\\Handlebars;\nuse Handlebars\\Loader\\F...
php
chosen
[ { "from": "system", "value": "Fix for filters sorting position\n\nAgain fixed.... boooring." }, { "from": "human", "value": "<table {!! $attributes !!}>\n <colgroup>\n @foreach ($columns as $column)\n <col width=\"{!! $column->getWidth() !!}\" />\n @endforeach\n </...
php
chosen
[ { "from": "system", "value": "Replace deprecated share method with singleton" }, { "from": "human", "value": "<?php\n\nnamespace Alexpechkarev\\GoogleGeocoder;\n\nuse Illuminate\\Foundation\\AliasLoader;\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\Support\\Facades\\Config;\n\ncla...
php
chosen
[ { "from": "system", "value": "Fix Updater with custom config.json-locations / allow ANTRAGSGRUEN_CONFIG with ./yii\n" }, { "from": "human", "value": "<?php\n\n$configDir = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'models' .\n DIRECTORY_SEPARATOR . 'settings' . DIRECTORY_SE...
php
chosen
[ { "from": "system", "value": "Update factory voter ACTIVE_RELATION statement\n" }, { "from": "human", "value": "<?php\n\nnamespace Furniture\\FactoryBundle\\Security\\Voter;\n\nuse Furniture\\UserBundle\\Entity\\User;\nuse Furniture\\FactoryBundle\\Entity\\Factory;\nuse Symfony\\Component\\Secur...
php
chosen
[ { "from": "system", "value": "Allow custom endpoint in persona.verifier.\n" }, { "from": "human", "value": "<?php\nnamespace Mozilla\\Persona\\Provider\\Laravel;\n\nuse Auth;\nuse Illuminate\\Auth\\Guard;\nuse Illuminate\\Support\\ServiceProvider;\nuse Mozilla\\Persona\\Identity;\nuse Mozilla\\P...
php
chosen
[ { "from": "system", "value": "ADD some special uris for cc payment\n" }, { "from": "human", "value": "<?php\n/**\n * Payment Secupaycreditcards Api Model class\n */\n\nnamespace SecucardConnect\\Product\\Payment\\Model;\n\n/**\n * Payment Secupaycreditcards Api Model class\n *\n */\nclass Secupa...
php
chosen
[ { "from": "system", "value": "Fix for php 5.6 thing.\n" }, { "from": "human", "value": "<?php\n\nnamespace FireflyIII\\Http\\Middleware;\n\nuse Closure;\nuse FireflyIII\\Support\\Domain;\n\nclass Binder\n{\n protected $binders = [];\n\n /**\n * Binder constructor.\n */\n public ...
php
chosen
[ { "from": "system", "value": "Remove useless phpdoc and use long syntax for wildcard parameters\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenOrchestra\\BaseApi\\Tests\\Transformer;\n\nuse Phake;\n\n/**\n * Test TransformerTestCase\n */\nabstract class TransformerTestCase extends \\P...
php
chosen
[ { "from": "system", "value": "Set locale based on new language user table field\n" }, { "from": "human", "value": "<?php\n\nnamespace eHOSP\\Http\\Controllers;\n\nuse Illuminate\\Foundation\\Bus\\DispatchesJobs;\nuse Illuminate\\Routing\\Controller as BaseController;\nuse Illuminate\\Foundation\...
php
chosen
[ { "from": "system", "value": "Add metrics and user tabs\n" }, { "from": "human", "value": "@extends('layout.master')\n\n@section('content')\n<div class='text-header'>\n\t<h1>Dashboard. <small>Manage Cachet.</small></h1>\n</div>\n\n<hr />\n\n<div role='tabpanel'>\n\t<ul class='nav nav-tabs' role=...
php
chosen
[ { "from": "system", "value": "Change from refresh to redirect" }, { "from": "human", "value": "<?php\nif (!defined('BASEPATH'))\n exit('No direct script access allowed');\n\nclass Go extends CI_Controller\n{\n /**\n * Method to redirect from an linq to a full URL\n */\n public f...
php
chosen
[ { "from": "system", "value": "Use indented code block instead of fenced.\n\nIndented is a bit better for human consumption, and these docblocks are more for humans than robots." }, { "from": "human", "value": "<?php\n\nnamespace Psy;\n\n/**\n * Command to return the eval-able code to startup Psy...
php
chosen
[ { "from": "system", "value": "Implement ContainerAwareInterface and use ContainerAwareTrait\n" }, { "from": "human", "value": "<?php\n\nnamespace Encore\\Error;\n\nuse Encore\\Container\\Container;\nuse Symfony\\Component\\Debug\\ExceptionHandler as BaseExceptionHandler;\n\nclass ExceptionHandle...
php
chosen
[ { "from": "system", "value": "Initialize the customizer AFTER including lessphp & image_resize\n" }, { "from": "human", "value": "<?php\n/**\n * Roots includes\n */\nrequire_once locate_template('/lib/utils.php'); // Utility functions\nrequire_once locate_template('/lib/init.php'); ...
php
chosen
[ { "from": "system", "value": "Move users model into the correct namespace\n" }, { "from": "human", "value": "<?php\n\nnamespace Rogue;\n\nuse Illuminate\\Foundation\\Auth\\User as Authenticatable;\n\nclass User extends Authenticatable\n{\n /**\n * The attributes that are mass assignable.\...
php
chosen
[ { "from": "system", "value": "Choose a more appropriate glyph for People.\n\nSummary:\n\nTest Plan:\n\nReviewers:\n\nCC:\n" }, { "from": "human", "value": "<?php\n\n/*\n * Copyright 2011 Facebook, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use ...
php
chosen
[ { "from": "system", "value": "Update provider registration to add silex version to user agent\n" }, { "from": "human", "value": "<?php\n/**\n * Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\").\n...
php
chosen
[ { "from": "system", "value": "Make cakephp-models repos install in src/Model\n" }, { "from": "human", "value": "<?php\nnamespace AnduFratu\\CakePhpModelsInstaller;\n\nuse Composer\\Package\\PackageInterface;\nuse Composer\\Installer\\LibraryInstaller;\n\nclass Installer extends LibraryInstaller ...
php
chosen
[ { "from": "system", "value": "Revert santizing toaddress, because PHPMailer now throws exceptions\n" }, { "from": "human", "value": "<?php\nOCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('files_sharing');\nOCP\\JSON::callCheck();\n\n$user = OCP\\USER::getUser();\n// TODO translations\n$...
php
chosen
[ { "from": "system", "value": "BAP-3242: Add data transformer for chart\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\ChartBundle\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerBuilder;\nuse Symfony\\Component\\DependencyInjection\\Loader;\nuse...
php
chosen
[ { "from": "system", "value": "Set default creation date for new episode\n" }, { "from": "human", "value": "<?php\n\n/**\n * episode actions.\n *\n * @package sflimetracker\n * @subpackage episode\n */\nclass episodeActions extends sfActions\n{\n\n public function executeAdd($request)\n {\n ...
php
chosen
[ { "from": "system", "value": "Generalize index name for `migrate:rollback` [WEB-1515]\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateIndexesToImpr...
php
chosen
[ { "from": "system", "value": "Select - update name to name[] when multiple=true\n" }, { "from": "human", "value": "<?php\n\nclass Form_Select extends Form_Input\n{\n\tprotected $_values;\n\tprotected $_value;\n\n\tpublic function __construct($title, $value, array $values, $allowMultiple = false)...
php
chosen
[ { "from": "system", "value": "Use '/' for clarity when requesting basepath\n" }, { "from": "human", "value": "<?php\n$this->title(' - MailboxFolder');\n?>\n<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"<?= $this->...
php
chosen
[ { "from": "system", "value": "[Form] Allow to disable and customize PercentType symbol\n\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 v...
php
chosen
[ { "from": "system", "value": "Reset the handle when it is already defined\n\nSigned-off-by: Stéphane HULARD <a24f38cb8c57ec2778c80a9f0c151933508927e5@chstudio.fr>\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the bee4/transport package.\n * For the full copyright and lic...
php
chosen
[ { "from": "system", "value": "Fix 414 url too long\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: anton\n * Date: 22.02.17\n * Time: 10:49\n *\n *\n * @property string[] $paragraphesArray\n */\n\nnamespace frontend\\models;\n\n\nclass Work extends \\common\\mode...
php
chosen
[ { "from": "system", "value": "Remove test code from test controller\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Controller;\n\nuse App\\Controller;\nuse DDesrosiers\\SilexAnnotations\\Annotations as SLX;\n\n/**\n * @SLX\\Controller\n * @author Ronan Chilvers <ronan@d3r.com>\n */\n...
php
chosen
[ { "from": "system", "value": "Change the access-types from private to protected\n" }, { "from": "human", "value": "<?php\n/**\n *\n */\nclass Script\n{\n\tprivate $helpMessage = '';\n\tprivate $matches;\n\tprivate $message;\n\tprivate $waConnection;\n\n\tfunction __construct($message, $matches, ...
php
chosen
[ { "from": "system", "value": "Add missing Owner to User Seeder\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass UsersTableSeeder extends Seeder\n{\n /**\n * Run the database seeds.\n *\n * Create one...
php
chosen
[ { "from": "system", "value": "Fix links on member widget\n" }, { "from": "human", "value": "<div class=\"team-member row_block-2\">\n <img src=\"<?= $photo_url ?>\" class=\"team-member_photo\"/>\n <div class=\"team-member_name\"><?= $name ?></div>\n <div class=\"team-member_role\"><?= $...
php
chosen
[ { "from": "system", "value": "[Benchmark] Update 1000 to variable for users to adjust\n" }, { "from": "human", "value": "<?php\n\nrequire __DIR__.'/../vendor/autoload.php';\nrequire __DIR__.'/bench.php';\n\nif (extension_loaded('xdebug')) {\n echo \"Warning: xdebug is loaded, it can impact pe...
php
chosen
[ { "from": "system", "value": "Load module language files using package and module name.\n" }, { "from": "human", "value": "<?php\n/**\n * @version $Id$\n * @package Nooku_Server\n * @subpackage Pages\n * @copyright Copyright (C) 2011 - 2012 Timble CVBA and Contributors. (http://www.ti...
php
chosen
[ { "from": "system", "value": "Fix media deletion issues and media model implicit binding\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nuse Cortex\\Foundation\\Http\\Middleware\\Clockwork;\nuse Illuminate\\Database\\Eloquent\\Relations\\Relation;\n\nreturn function () {\...
php
chosen
[ { "from": "system", "value": "Fix issue with listing users due to removed 'subuserOf' method\n" }, { "from": "human", "value": "<?php\n\nnamespace Pterodactyl\\Repositories\\Eloquent;\n\nuse Pterodactyl\\Models\\User;\nuse Illuminate\\Support\\Collection;\nuse Pterodactyl\\Repositories\\Concerns...
php
chosen
[ { "from": "system", "value": "Use ReflectionExtension to read ext versions\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 and license inf...
php
chosen
[ { "from": "system", "value": "Switch to passing in attrs in constructor.\n" }, { "from": "human", "value": "<?php\n\nclass ShippingEasy_Cancellation extends ShippingEasy_Object\n{ \n public function create($external_order_identifier)\n {\n $this->request(\"post\", \"/api/orders/$external_o...
php
chosen
[ { "from": "system", "value": "Refresh cookie jar when acting as a different user\n\nSigned-off-by: Julius Härtl <bf353fa4999f2f148afcc6d8ee6cb1ee74cc07c3@bitgrid.net>\n" }, { "from": "human", "value": "<?php\n\nuse Behat\\Behat\\Context\\Context;\nuse GuzzleHttp\\Cookie\\CookieJar;\n\nrequire_on...
php
chosen
[ { "from": "system", "value": "Revert \"remove NULL check, replace with DummyLayout\"\n\nThis reverts commit ce03278d842a0ff6325f6041e4c95dee0bfd74c6.\n" }, { "from": "human", "value": "<?php\nnamespace Teach\\Adapters\\Web\\Lesplan;\n\nuse Teach\\Adapters\\HTML\\DummyLayout;\nfinal class Fase im...
php
chosen
[ { "from": "system", "value": "Throw an error if a field equality validator is attached to a field which is not a field set.\n" }, { "from": "human", "value": "<?php\r\n\r\n\tclass FieldEqualityValidator extends Validator\r\n\t{\r\n\t\tprotected $first = null;\r\n\t\tprotected $second = null;\r\n...
php
chosen
[ { "from": "system", "value": "Use the correct server for the Hitbox.tv preview image\n" }, { "from": "human", "value": "<?php\nclass HitboxApi {\n private static $baseUrl = 'https://www.hitbox.tv/api/';\n\n public function getStreamsByGame( $game ){\n $channelList = array();\n\n ...
php
chosen
[ { "from": "system", "value": "Add Acme\\DemoBundle to main bundles, for testing\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 registerBund...
php
chosen
[ { "from": "system", "value": "Fix missing end slash for log directory\n" }, { "from": "human", "value": "<?php\n\nreturn array (\n\n /*\n * Directory to log to\n */\n 'path' => __DIR__ . '/../storage/logs',\n\n /*\n * Name of log file\n *\n * Tomahawk uses the Rotati...
php
chosen
[ { "from": "system", "value": "Solve problem with database conn\n" }, { "from": "human", "value": "<?php\n\t$servername = \"socire.com:3306\";\n\t$username = \"socire_adm\";\n\t$password = \"mewtwo\";\n\t$dbname = \"socire_app\";\n\n\t$conn = mysqli_connect($servername, $username, $password, $dbn...
php
chosen
[ { "from": "system", "value": "Use Router methods instead of Manifest methods\n\nManifest methods may become deprectated\n" }, { "from": "human", "value": "<?php\n \n /**\n * This is the file to define routes, filters an patterns.\n * You can choose one of the two methods for routes...
php
chosen
[ { "from": "system", "value": "Add instruction about interpreter selection\n" }, { "from": "human", "value": "<?php\n/**\n * Simple Breakpoints\n *\n * Tell the interpreter to pause execution and inspect variables.\n *\n * Ctrl+F8 (Windows/Linux)\n * Command+F8 (Mac OS X)\n */\n\nnamespace Debugg...
php
chosen
[ { "from": "system", "value": "Fix mark home page active\n" }, { "from": "human", "value": "<?php\n\nnamespace Rudolf\\Modules\\index;\n\nclass IndexController extends \\Rudolf\\Modules\\_front\\Controller {\n\n\tpublic function index($page) {\n\t\t$page = $this->firstPageRedirect($page);\n\n\t\t...
php
chosen
[ { "from": "system", "value": "Add project type controller action\n" }, { "from": "human", "value": "<?php\n\nnamespace Ben\\CoreBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Sensio\\Bundl...
php
chosen
[ { "from": "system", "value": "Add a comment about the route.\n" }, { "from": "human", "value": "<?php namespace Illuminate\\Auth\\Console;\n\nuse Illuminate\\Console\\Command;\nuse Illuminate\\Filesystem\\Filesystem;\n\nclass RemindersControllerCommand extends Command {\n\n\t/**\n\t * The consol...
php
chosen
[ { "from": "system", "value": "Update Jetpack URLs to https\n\nSee #734.\n" }, { "from": "human", "value": "<?php\n/**\n * Jetpack Compatibility File\n * See: http://jetpack.me/\n *\n * @package _s\n */\n\n/**\n * Add theme support for Infinite Scroll.\n * See: http://jetpack.me/support/infinite-...
php
chosen
[ { "from": "system", "value": "Use `datetime` Instead of `date`\n" }, { "from": "human", "value": "<?php if(!defined('KIRBY')) exit ?>\n\ntitle: Comment\npages: false\nfiles: false\nicon: comment\nfields:\n name:\n label: Name\n type: text\n required: true\n width: 1/2\n icon: use...
php
chosen
[ { "from": "system", "value": "Change the scope of events inside calendar.\n" }, { "from": "human", "value": "<?php\n\nnamespace Plummer\\Calendar;\n\nabstract class CalendarAbstract implements CalendarInterface, \\IteratorAggregate\n{\n\tprotected $name;\n\n\tprotected $events;\n\n\tprotected $r...
php
chosen
[ { "from": "system", "value": "Fix returned value from ternary operation\n" }, { "from": "human", "value": "<?php\n\nnamespace Fulfillment\\Postage\\Api;\n\nuse Fulfillment\\Postage\\Models\\Request\\Contracts\\Postage as PostageContract;\nuse Fulfillment\\Postage\\Exceptions\\ValidationFailureEx...
php
chosen
[ { "from": "system", "value": "Use OCP\\JSON instead of OC_JSON\n" }, { "from": "human", "value": "<?php\n\nOCP\\JSON::callCheck();\nOC_JSON::checkLoggedIn();\nOCP\\JSON::checkAdminUser();\n\n$l=OC_L10N::get('core');\n\n$groupname = $_POST[\"groupname\"];\n\n// Return Success story\n// TODO : mak...
php
chosen
[ { "from": "system", "value": "CC-3841: Remove \"airtime-show-recorder\" initd script on upgrade\n\n-fixed\n" }, { "from": "human", "value": "<?php\n\n/* Stuff not related to upgrading database +\n * config files goes here. */\nclass AirtimeMiscUpgrade{\n public static function start($p_ini){\...
php
chosen
[ { "from": "system", "value": "Add config area for overriding model assumptions.\n" }, { "from": "human", "value": "<?php\n\nreturn [\n /*\n * Please choose which framework should be used for the CRUD ui.\n * Valid options:\n * 'bs3': Bootstrap 3\n * 'bs4': Bootstrap 4\n ...
php
chosen
[ { "from": "system", "value": "Support live params in the API" }, { "from": "human", "value": "<?php\n/**\n * @package api\n * @subpackage objects.factory\n */\nclass KalturaFlavorParamsFactory\n{\n\tstatic function getFlavorParamsOutputInstance($type)\n\t{\n\t\tswitch ($type) \n\t\t{\n\t\t\tcase...
php
chosen
[ { "from": "system", "value": "Fix Standard RM needing an autoloader 🙈\n" }, { "from": "human", "value": "<?php\nnamespace Bolt\\Tests\\Configuration;\n\nuse Bolt\\Application;\nuse Bolt\\Configuration\\Standard;\n\n/**\n * Class to test correct operation and locations of composer configuration....
php
chosen
[ { "from": "system", "value": "Add test for surnames with apostrophes\n" }, { "from": "human", "value": "<?php\n\nrequire_once(dirname(__FILE__) . '/../classes/newuser.php');\n\nclass GenerateUsernameTest extends PHPUnit_Framework_TestCase\n{\n public function setUp()\n {\n $this -> ...
php
chosen
[ { "from": "system", "value": "Fix register user url in navigation link" }, { "from": "human", "value": "<ul class=\"nav pull-right\">\n\t<li><a href=\"<?=app()->url('/register')?>\">Register!</a></li>\n</ul>" }, { "from": "gpt", "value": "<ul class=\"nav pull-right\">\n\t<li><a href=...
php
chosen
[ { "from": "system", "value": "Switch container interface to PSR.\n" }, { "from": "human", "value": "<?php namespace Limoncello\\Core\\Contracts\\Application;\n\n/**\n * Copyright 2015-2017 info@neomerx.com\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not ...
php
chosen
[ { "from": "system", "value": "Stop example script execution if running from command line.\nAdded support for HTTPS hosts for example scripts.\n" }, { "from": "human", "value": "<?php\n\n/**\n * A bootstrap for the Dropbox SDK usage examples\n * @link https://github.com/BenTheDesigner/Dropbox/tre...
php
chosen
[ { "from": "system", "value": "Remove test condition about session since it's currently not working\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Foundation\\Testing\\WithoutMiddleware;\nuse Illuminate\\Foundation\\Testing\\DatabaseMigrations;\nuse Illuminate\\Foundation\\Testing\\D...
php
chosen
[ { "from": "system", "value": "Remove \"Add new\" from Menu sidebar\n\nCloses #376\n" }, { "from": "human", "value": "<?php\n\nCroogoNav::add('sidebar', 'menus', array(\n\t'icon' => array('sitemap', 'large'),\n\t'title' => __d('croogo', 'Menus'),\n\t'url' => array(\n\t\t'plugin' => 'menus',\n\t\t...
php
chosen
[ { "from": "system", "value": "Implement getters for version response\n" }, { "from": "human", "value": "<?php\n\nclass CMService_AwsS3Versioning_Response_Version {\n\n /**\n * @param array $data\n */\n public function __construct(array $data) {\n $key = $data['Key'];\n ...
php
chosen
[ { "from": "system", "value": "Change active to a boolean" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateInstallationsTable extends Migration\n{\n ...
php
chosen
[ { "from": "system", "value": "Make sure jQuery is always included\n" }, { "from": "human", "value": "<?php\nclass FrontEndGridField extends GridField {\n /**\r\n * Returns the whole gridfield rendered with all the attached components\r\n * @return string\r\n */\r\n public funct...
php
chosen
[ { "from": "system", "value": "Put the content type here.\n\n\ngit-svn-id: 3b6cb4556d214d66df54bca2662d7ef408f367bf@3330 46e82423-29d8-e211-989e-002590a4cdd4\n" }, { "from": "human", "value": "<?php\n\t#\n\t# $Id: news.php,v 1.1.2.18 2004-11-26 14:57:20 dan Exp $\n\t#\n\t# Copyright (c) 1998-2003...
php
chosen