conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Update functions in `relation` ns\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace phln\\relation;\n\nuse function phln\\fn\\curry;\nuse const phln\\fn\\nil;\n\nconst equals = '\\\\phln\\\\relation\\\\𝑓equals';\n\n/**\n * Returns `tru...
php
chosen
[ { "from": "system", "value": "Implement replacables: {time_end:absolute}, {time_end:relative}, {time_start:absolute} and {time_start:relative}.\n" }, { "from": "human", "value": "<?php\n\nclass SV_NoticeTime_Listener\n{\n public static function notices_prepare(array &$noticeList, array &$noti...
php
chosen
[ { "from": "system", "value": "Add missing files to the list.\n" }, { "from": "human", "value": "<?php\nif (preg_match('/(?:(?:slave|0626-61E61247-B9AD-43D5-8360-23584D0C904F|question|slide)\\.html|common\\.css|jquery-1\\.9\\.0\\.js|Slides0626\\/.*\\.jpg|php\\/getId\\.php|php\\/getUserID\\.php\\?...
php
chosen
[ { "from": "system", "value": "Remove Unnecessary Code from Model Class\n\nRemove Unnecessary Code from Model Class\n\n`Model::__construct()` does not actually accomplish anything anymore. It\nis just a stub to `ADOdb_Active_Record`\n\n- Pass onto parent class by removing stub constructor\n\n\nFormer-commit-...
php
chosen
[ { "from": "system", "value": "Add fallback to StandardAutoloader in a generic way\n\nThis will make it so developers don't have to constantly keep their classmaps\nup to date, and can defer the classmap generation to deployment.\n" }, { "from": "human", "value": "<?php\n\nnamespace ZendSkeletonM...
php
chosen
[ { "from": "system", "value": "Add commandline input of ciphertext in 1/3\n\nAltered code to allow for ciphertext to be entered on the\ncommandline for set 1 challange 3\n" }, { "from": "human", "value": "<?php\n\nrequire '../../functions/letterScore.php';\n\n$input = hex2bin(\"1b37373331363f7815...
php
chosen
[ { "from": "system", "value": "t527: Add mandatory namespace argument to db dump command\n" }, { "from": "human", "value": "<?php\n\nclass CM_Mysql_Cli extends CM_Cli_Runnable_Abstract {\n\n\t/**\n\t * @param string|null $tablePrefix\n\t */\n\tpublic function dump($tablePrefix = null) {\n\t\t$tab...
php
chosen
[ { "from": "system", "value": "Rename extension option to format in view factory\n" }, { "from": "human", "value": "<?php\r\n\r\nnamespace Perfumer\\MVC\\View;\r\n\r\nuse Perfumer\\MVC\\Bundler\\Bundler;\r\n\r\nclass ViewFactory\r\n{\r\n protected $templating;\r\n\r\n /**\r\n * @var Bun...
php
chosen
[ { "from": "system", "value": "Fix call to deprecated \"convertToHtml\" method\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Twig.\n *\n * (c) Fabien Potencier\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed w...
php
chosen
[ { "from": "system", "value": "Fix for emergent timezone issue\n" }, { "from": "human", "value": "<?php\n// Model configuration/settings file.\n// Edit the values here and then rename the file to settings.php in the same directory\n// See also database.EXAMPLE.php\n\nrequire('database.php'); // p...
php
chosen
[ { "from": "system", "value": "Change to jQuery local if not connect to network at header\n" }, { "from": "human", "value": "\n<script type=\"text/javascript\" src=\"{$static_url}/javascript/bootstrap-dropdown.js\"></script>\n<script type=\"text/javascript\" src=\"{$static_url}/javascript/jquery/...
php
chosen
[ { "from": "system", "value": "Fix class name according to filename." }, { "from": "human", "value": "<?php namespace Pingpong\\Whoops;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass ServiceProvider extends ServiceProvider {\n\n /**\n * Indicates if loading of the provider is deferr...
php
chosen
[ { "from": "system", "value": "Add a missing variable initialisation" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the NelmioApiDocBundle package.\n *\n * (c) Nelmio\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was distribut...
php
chosen
[ { "from": "system", "value": "Add require field on fields\n" }, { "from": "human", "value": "<h1>Novi scripti</h1>\n\n<form id=\"novi_scripti\" action=\"../api.php?s=scriptum\" method=\"post\">\n\n <div class=\"row\">\n <div class=\"col-md-6 form-group\">\n <label for=\"cont...
php
chosen
[ { "from": "system", "value": "Refactor horizontal rule parser to work with new backtracking approach.\n" }, { "from": "human", "value": "<?php\n\nnamespace FluxBB\\Markdown\\Parser;\n\nuse FluxBB\\Markdown\\Common\\Text;\nuse FluxBB\\Markdown\\Node\\HorizontalRule;\n\nclass HorizontalRuleParser ...
php
chosen
[ { "from": "system", "value": "Add logic to actually save the dashboardwidget.\n" }, { "from": "human", "value": "<?php\n\nnamespace Backend\\Modules\\Compression\\Installer;\n\nuse Backend\\Core\\Installer\\ModuleInstaller;\n\n/**\n * Installer for the Compression module\n *\n * @author Jesse Do...
php
chosen
[ { "from": "system", "value": "Adjust default build directory for `elixir`\n" }, { "from": "human", "value": "<?php\n\nif (! function_exists('public_path')) {\n /**\n * Get the path to the public folder.\n *\n * @param string $path\n * @return string\n */\n function pu...
php
chosen
[ { "from": "system", "value": "Add default template for testimonial block\n" }, { "from": "human", "value": "<?php\n\nnamespace Concrete\\Package\\Worldskills\\Theme\\Worldskills;\n\nuse Concrete\\Core\\Page\\Theme\\Theme;\n\nclass PageTheme extends Theme\n{\n public function registerAssets()\...
php
chosen
[ { "from": "system", "value": "Add footer to plain text email\n" }, { "from": "human", "value": "Dear {!! isset($recipientName) ? $recipientName : $recipient->name !!},\n\n{{ strip_tags($body) }}\n" }, { "from": "gpt", "value": "Dear {!! isset($recipientName) ? $recipientName : $reci...
php
chosen
[ { "from": "system", "value": "Improve adding ‘botamp_entity_id’ attribute script\n" }, { "from": "human", "value": "<?php\n\nnamespace Botamp\\Botamp\\Setup;\n\nuse Magento\\Eav\\Setup\\EavSetup;\nuse Magento\\Eav\\Setup\\EavSetupFactory;\nuse Magento\\Framework\\Setup\\InstallDataInterface;\nus...
php
chosen
[ { "from": "system", "value": "Add appIcon, contentImage, and open options for terminal-notfier\n" }, { "from": "human", "value": "<?php\n\nnamespace BryanCrowe\\Growl\\Builder;\n\nclass TerminalNotifierBuilder extends BuilderAbstract\n{\n /**\n * The command's name.\n *\n * @var s...
php
chosen
[ { "from": "system", "value": "Update the Migration ti have accessMask aswell\n" }, { "from": "human", "value": "<?php\n\nuse Phinx\\Migration\\AbstractMigration;\n\nclass ApiKeys extends AbstractMigration\n{\n /**\n * Change Method.\n *\n * More information on this method is avail...
php
chosen
[ { "from": "system", "value": "Fix Static method should not contain $this reference.\n" }, { "from": "human", "value": "<?php\n\nnamespace DigipolisGent\\Robo\\Task\\Deploy\\Scp\\Factory;\n\nuse DigipolisGent\\Robo\\Task\\Deploy\\Scp\\Adapter\\ScpPhpseclibAdapter;\nuse DigipolisGent\\Robo\\Task\\...
php
chosen
[ { "from": "system", "value": "Fix to build mock from DbInterface\n" }, { "from": "human", "value": "<?php\nnamespace Spika\\Controller;\nuse Silex\\WebTestCase;\n\nclass AuthControllerTest extends WebTestCase\n{\n public function createApplication()\n {\n require realpath(__DIR__ . ...
php
chosen
[ { "from": "system", "value": "Use string literals when declaring event listeners\n" }, { "from": "human", "value": "<?php\n\nnamespace NUSWhispers\\Providers;\n\nuse Illuminate\\Foundation\\Support\\Providers\\EventServiceProvider as ServiceProvider;\n\nclass EventServiceProvider extends Service...
php
chosen
[ { "from": "system", "value": "Fix memory cache lookup handling\n" }, { "from": "human", "value": "<?php\n\nnamespace Addr;\n\nclass MemoryCache implements Cache\n{\n /**\n * Mapped names stored in the cache\n *\n * @var array\n */\n private $data = [\n AddressModes::...
php
chosen
[ { "from": "system", "value": "Add sendnotificationmails command to the laravel scheduled jobs\n" }, { "from": "human", "value": "<?php\n\nnamespace Myjob\\Console;\n\nuse Illuminate\\Console\\Scheduling\\Schedule;\nuse Illuminate\\Foundation\\Console\\Kernel as ConsoleKernel;\n\nclass Kernel ext...
php
chosen
[ { "from": "system", "value": "Change the SQL statement to update all fields.\n" }, { "from": "human", "value": "<?php\n\nif(isset($_POST['noteText']) && isset($_POST['noteId']) && $_SERVER['REQUEST_METHOD'] == 'POST' && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {\n\t\n\t$note = $_PO...
php
chosen
[ { "from": "system", "value": "Remove command echo for debug\n" }, { "from": "human", "value": "<?php\n/**\n * html5-video-php - ffmpeg wrapper for HTML5 videos\n *\n * Copyright (c) 2013 Sebastian Felis <sebastian@phtagr.org>\n *\n * Licensed under The MIT License\n * For full copyright and lice...
php
chosen
[ { "from": "system", "value": "Use the timestamp fields in the db\n" }, { "from": "human", "value": "<?php\n\nclass Permission extends Eloquent {\n protected $fillable = array('mapid', 'userid');\n public $timestamps = false;\n public $primaryKey = 'pid';\n \n public function map()\n {\n ...
php
chosen
[ { "from": "system", "value": "Add support for subcontexts too\n" }, { "from": "human", "value": "<?php\n\nnamespace swestcott\\MonologExtension\\Context\\Initializer;\n\nuse Behat\\Behat\\Context\\Initializer\\InitializerInterface,\n Behat\\Behat\\Context\\ContextInterface;\n\nclass MonologIn...
php
chosen
[ { "from": "system", "value": "Add salt to test user\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nuse App\\User as User; // to use Eloquent Model\nuse App\\Http\\Controllers\\AccountsController as AccountsController;\n\n\nclass UsersSeeder extends Seeder {\n p...
php
chosen
[ { "from": "system", "value": "Remove extension of webservice class and update parameters of execute function\n" }, { "from": "human", "value": "<?php\n\nnamespace AppBundle\\API\\Listing;\n\nuse AppBundle\\API\\Webservice;\nuse AppBundle\\Entity\\WebuserData;\nuse AppBundle\\Entity\\FennecUser;\...
php
chosen
[ { "from": "system", "value": "Replace deprecated methods in tests\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types = 1);\n\nnamespace DASPRiD\\FormidableTest\\Mapping;\n\nuse DASPRiD\\Formidable\\Mapping\\Constraint\\ConstraintInterface;\nuse DASPRiD\\Formidable\\Mapping\\MappingIn...
php
chosen
[ { "from": "system", "value": "Remove is_null() calls and use require_once\n\n* Change is_null() in \"=== null\" to be consistant with \"!== null\" in\ncodebase (as a bonus, it's faster (no function call))\n* Use require_once instead of require (also marginally faster)\n* Remove parenthesis from require_once...
php
chosen
[ { "from": "system", "value": "Use assertContains instead of strpos" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\Unit;\n\nuse Tests\\TestCase;\nuse App\\Commands\\HelloCommand;\n\nclass HelloCommandTest extends TestCase\n{\n /** @test */\n public function it_checks_the_hello_c...
php
chosen
[ { "from": "system", "value": "Check for used protocol for preview-url\n" }, { "from": "human", "value": "<?php\nclass Kwf_Controller_Action_Component_PreviewController extends Kwf_Controller_Action\n{\n public function indexAction()\n {\n $this->view->config = array(\n 'r...
php
chosen
[ { "from": "system", "value": "Use PHP5.3 safe syntax in rename_keys\n" }, { "from": "human", "value": "<?php\n/**\n * @package Garp\\Functional\n * @author Harmen Janssen <harmen@grrr.nl>\n * @license https://github.com/grrr-amsterdam/garp-functional/blob/master/LICENSE.md BSD-3-Clause\n */\...
php
chosen
[ { "from": "system", "value": "Add support to define custom messages.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php namespace Orchestra\\Http;\n\nuse Orchestra\\Support\\Traits\\ValidationTrait;\nuse Illuminate\\Foundatio...
php
chosen
[ { "from": "system", "value": "Set the user_agent when doing a request to opennorth.ca (avoid getting blocked).\n" }, { "from": "human", "value": "<?php\n\nfunction _civicrm_api3_regionlookuprepresent_updatefederalridings_spec(&$spec) {\n $spec['contact_sub_type']['api.required'] = 1;\n}\n\nfunc...
php
chosen
[ { "from": "system", "value": "Implement the new getRootPackageName and getRootPackageVersion methods\n" }, { "from": "human", "value": "<?php\n\nnamespace Tests\\Functional;\n\nuse Jean85\\PrettyVersions;\nuse Jean85\\Version;\nuse PackageVersions\\Versions;\nuse PHPUnit\\Framework\\TestCase;\n\...
php
chosen
[ { "from": "system", "value": "Add \"collect something\" and \"other\" action types.\n" }, { "from": "human", "value": "<?php\n\nnamespace Rogue\\Types;\n\nclass ActionType extends Type\n{\n private const HOST_EVENT = 'host-event';\n private const HAVE_CONVERSATION = 'have-a-conversation';...
php
chosen
[ { "from": "system", "value": "Fix service provider for Laravel 5\n" }, { "from": "human", "value": "<?php namespace Ingruz\\Rest;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass RestServiceProvider extends ServiceProvider {\n\n\t/**\n\t * Indicates if loading of the provider is deferred.\n...
php
chosen
[ { "from": "system", "value": "Add support for single files\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Mihaeu\\PhpDependencies\\OS;\n\nclass PhpFileFinder\n{\n public function find(\\SplFileInfo $file) : PhpFileSet\n {\n return $file->isDir()\n ...
php
chosen
[ { "from": "system", "value": "Add missing license header in bundle class.\n" }, { "from": "human", "value": "<?php\n\nnamespace Surfnet\\StepupSelfService\\SelfServiceBundle;\n\nuse Symfony\\Component\\HttpKernel\\Bundle\\Bundle;\n\nclass SurfnetStepupSelfServiceSelfServiceBundle extends Bundle\...
php
chosen
[ { "from": "system", "value": "III-680: Document return type of toArray().\n" }, { "from": "human", "value": "<?php\n\nnamespace CultuurNet\\UDB3\\Offer;\n\nuse TwoDotsTwice\\Collection\\AbstractCollection;\n\nclass OfferIdentifierCollection extends AbstractCollection\n{\n protected function g...
php
chosen
[ { "from": "system", "value": "Append 'humans_time' value to json representations\n\nFor fetching messages by ajax" }, { "from": "human", "value": "<?php\n\nnamespace Nahid\\Talk\\Messages;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Message extends Model\n{\n protected $table = 'me...
php
chosen
[ { "from": "system", "value": "Use random_bytes for call ID\n" }, { "from": "human", "value": "<?php\n\nnamespace WyriHaximus\\React\\ChildProcess\\Messenger;\n\nclass OutstandingCalls\n{\n /**\n * @var OutstandingCall[]\n */\n protected $calls = [];\n\n /**\n * @param calla...
php
chosen
[ { "from": "system", "value": "Fix name is already in use on php5.5.9\n" }, { "from": "human", "value": "<?php\n\nnamespace Metrique\\Meta;\n\nuse Illuminate\\Contracts\\View\\View;\nuse Metrique\\Meta\\Contracts\\MetaRepositoryInterface as MetaRepository;\n\nclass MetaViewComposer\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "Use singleton method instead of share method on service provider registration for Laravel 5.4 support\n" }, { "from": "human", "value": "<?php\n\nnamespace Thomaswelton\\LaravelGravatar;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass LaravelGravatarServicePro...
php
chosen
[ { "from": "system", "value": "Define istället för variabler för inställningar.\n" }, { "from": "human", "value": "<?php\n\nrequire_once 'swedbankJson.php';\n\n$username = 198903060000; // Personnummer\n$password = 'fakePW'; // Personlig kod\n\ntry\n{\n $bankConn = new SwedbankJson(...
php
chosen
[ { "from": "system", "value": "Add the getIncludeCode Method for the Trl\n\nWe need this because of the use of TrlMasterAsChild\n" }, { "from": "human", "value": "<?php\nclass Kwc_Box_TitleEditable_Trl_Component extends Kwc_Chained_Trl_MasterAsChild_Component\n{\n}\n" }, { "from": "gpt", ...
php
chosen
[ { "from": "system", "value": "Add possible fallback for different Database encodes\n" }, { "from": "human", "value": "<?php\n\nnamespace Wdi\\Providers;\n\nuse Carbon\\Carbon;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass AppServiceProvider extends ServiceProvider\n{\n /**\n * Boots...
php
chosen
[ { "from": "system", "value": "Set ssl to false per default\n" }, { "from": "human", "value": "<?php\n\nreturn array(\n\n /*\n |--------------------------------------------------------------------------\n | Settings\n |------------------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Fix errors in code handling\n" }, { "from": "human", "value": "<?php\n\nclass CodesController extends \\BaseController {\n\n\tpublic function process($code)\n\t{\n $code = Code::where('code', '=', $code)->first();\n\n if(is_null($code) || $code->used =...
php
chosen
[ { "from": "system", "value": "Add initial styling to project\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n<head>\n <title>Genesys - Home</title>\n <link rel=\"stylesheet\" type=\"text/css\" href=\"{{ asset('css/main.css') }}\">\n</head>\n<body class=\"home\">\n <div class...
php
chosen
[ { "from": "system", "value": "Fix for wrong path to logo\n" }, { "from": "human", "value": "<?php\n/**\n * @package CherryTea common\n * @category modules\n * @author Nazar Mokrynskyi <nazar@mokrynskyi.com>\n * @copyright Copyright (c) 2015, Nazar Mokrynskyi\n * @license MIT License, see...
php
chosen
[ { "from": "system", "value": "Fix bug on frontpage with video\n" }, { "from": "human", "value": "<?php\nnamespace Drupal\\ga_slide;\n\nuse Drupal\\file\\Entity\\File;\nuse Drupal\\image\\Entity\\ImageStyle;\n\nclass SlideUtils\n{\n public static function getSlides()\n {\n $slideNids = \\Dru...
php
chosen
[ { "from": "system", "value": "Add method to remove logged messages\n" }, { "from": "human", "value": "<?php\n\nnamespace PicoFeed;\n\nuse DateTime;\nuse DateTimeZone;\n\n/**\n * Logging class\n *\n * @author Frederic Guillot\n * @package picofeed\n */\nclass Logging\n{\n /**\n * List of ...
php
chosen
[ { "from": "system", "value": "Allow to get key for serializer.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php\n\nnamespace Orchestra\\Support;\n\nuse Illuminate\\Contracts\\Pagination\\Paginator;\nuse Illuminate\...
php
chosen
[ { "from": "system", "value": "Optimize Performance for long lines (use mb_strcut() instead of pred_split())\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the eluceo/iCal package.\n *\n * (c) Markus Poerschke <markus@eluceo.de>\n *\n * This source file is subject to the ...
php
chosen
[ { "from": "system", "value": "Check if there are encodings before trying to delete them\n" }, { "from": "human", "value": "<?php namespace Bkwld\\Decoy\\Observers;\n\n/**\n * Trigger encoding or delete the encodings rows\n */\nclass Encoding {\n\n\t/**\n\t * Start a new encode if a new encodable...
php
chosen
[ { "from": "system", "value": "Return person that note is about\n" }, { "from": "human", "value": "<?php\nnamespace Scat;\n\nclass Note extends \\Model implements \\JsonSerializable {\n public function txn() {\n if ($this->kind == 'txn') {\n return $this->belongs_to('Txn', 'attach_id')->...
php
chosen
[ { "from": "system", "value": "Update footer for latest version of Jquery\n" }, { "from": "human", "value": " <script src=\"{{ asset('vendor/flare/plugins/jQuery/jQuery-2.1.4.min.js') }}\" type=\"text/javascript\"></script>\n <script src=\"{{ asset('vendor/flare/bootstrap/js/bootstr...
php
chosen
[ { "from": "system", "value": "Add Weather Underground referral URL.\n" }, { "from": "human", "value": "<div class=\"row\">\n\t<div class=\"small-10 columns\">\n\t\t<p><a href=\"http://www.wunderground.com/\">Weather Underground</a> is a registered trademark of <a href=\"http://www.weather.com/\"...
php
chosen
[ { "from": "system", "value": "Throw an critical Exception if maintenance mode could not be disabled\n" }, { "from": "human", "value": "<?php\n/**\n * @link https://github.com/brussens/yii2-maintenance-mode\n * @copyright Copyright (c) since 2015 Dmitry Brusensky\n * @license http://opensource.or...
php
chosen
[ { "from": "system", "value": "Add ability to change how request parser decodes json\n\nCan choose between associative or object\n" }, { "from": "human", "value": "<?php\n/**\n * Created by IntelliJ IDEA.\n * User: mduncan\n * Date: 9/29/15\n * Time: 12:49 PM\n */\n\nnamespace Fulfillment\\Api\\U...
php
chosen
[ { "from": "system", "value": "Add possibility to override available templates list\n" }, { "from": "human", "value": "<?php\n\nnamespace Distilleries\\LayoutManager\\Forms;\n\nuse App\\Helpers\\StaticLabel;\nuse Distilleries\\FormBuilder\\FormValidator;\n\nclass TemplatableForm extends FormValid...
php
chosen
[ { "from": "system", "value": "Fix create action response code\n" }, { "from": "human", "value": "<?php\n/**\n * CreateAction class file.\n * @author Christoffer Lindqvist <christoffer.lindqvist@nordsoftware.com>\n * @copyright Copyright &copy; Nord Software 2014-\n * @license http://www.opensour...
php
chosen
[ { "from": "system", "value": "Create get favorite item route\n" }, { "from": "human", "value": "<?php\nnamespace Dream89\\MainBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse FOS\\RestBundle\\Controller\\Annotations\\View;\nuse Sensio\\Bundle\\FrameworkEx...
php
chosen
[ { "from": "system", "value": "Add more properties to SearchRequest\n" }, { "from": "human", "value": "<?php\n\nnamespace SearchApi\\Models;\n\n/**\n * Class SearchRequest - This will be the class that defines the requests parameters to search on\n */\nclass SearchRequest {\n public $text;\n}\n"...
php
chosen
[ { "from": "system", "value": "Add missed traits for controller\n" }, { "from": "human", "value": "<?php\n\nnamespace GeniusTS\\Preferences\\Controllers;\n\n\nuse GeniusTS\\Preferences\\Models\\Domain;\nuse GeniusTS\\Preferences\\Models\\Element;\nuse GeniusTS\\Preferences\\Models\\Setting;\nuse ...
php
chosen
[ { "from": "system", "value": "Remove post format reference in template call\n" }, { "from": "human", "value": "@extends('layouts.app')\n\n@section('content')\n @include('partials.page-header')\n\n @if (!have_posts())\n <div class=\"alert alert-warning\">\n {{ __('Sorry, no results were...
php
chosen
[ { "from": "system", "value": "Remove author from search results page\n" }, { "from": "human", "value": "<time class=\"published\" datetime=\"<?php echo get_the_time('c'); ?>\"><?php echo get_the_date(); ?></time>\n<p class=\"byline author vcard\"><?php echo __('By', 'roots'); ?> <a href=\"<?php ...
php
chosen
[ { "from": "system", "value": "Add author badge to comments\n" }, { "from": "human", "value": "<ul>\n @foreach($comments as $comment)\n <li>\n <div>\n {{-- Comment owner --}}\n <label class=\"text-info\">{{ $comment->user->name }} </label>\n ...
php
chosen
[ { "from": "system", "value": "Revert \"Create a Serializer in the Constructor of Persistent Drivers\"\n\nThis reverts commit f7f1c77fdf40c1fafa69a80195a19ef932949f8b.\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of PMG\\Queue\n *\n * Copyright (c) PMG <https://www.pmg.com>...
php
chosen
[ { "from": "system", "value": "Make CC link secure (e.g. https)!\n" }, { "from": "human", "value": "<?php ///////////////////////////////////////////////////////\n// ----------------------------------------------------------\n// PARTIAL :: DESKTOP\n// ---------------------------------------------...
php
chosen
[ { "from": "system", "value": "Add globals extension interface to global extensions file\n" }, { "from": "human", "value": "<?php\n\nnamespace Frozzare\\Digster\\Extensions;\n\nclass Global_Extensions extends \\Twig_Extension {\n\n /**\n * Get global variable.\n *\n * @return array...
php
chosen
[ { "from": "system", "value": "Add a lot more tests.\n" }, { "from": "human", "value": "<?php\n\nnamespace Crell\\ApiProblem;\n\n/**\n * Tests for the ApiProblem object.\n *\n * @autor Larry Garfield\n */\nclass ApiProblemTest extends \\PHPUnit_Framework_TestCase\n{\n\n public function testCon...
php
chosen
[ { "from": "system", "value": "Add a test for an unparsable date\n" }, { "from": "human", "value": "<?php\n\nnamespace duncan3dc\\DateTests;\n\nuse duncan3dc\\Dates\\DateParser;\n\nclass DateParserTest extends \\PHPUnit_Framework_TestCase\n{\n protected $dates = [\n \"Y-m-d\" =>...
php
chosen
[ { "from": "system", "value": "Add global 'Phuby()' global function which calls BasicObject::const_get()\n" }, { "from": "human", "value": "<?php\n\ntrait Phuby {\n use Phuby\\Core;\n\n static function initialized($self) {\n while ($superclass = $self->superclass())\n $sel...
php
chosen
[ { "from": "system", "value": "Fix typo causing no name to be serialized for article categories\n" }, { "from": "human", "value": "<?php\n\n\nnamespace rmatil\\CmsBundle\\Mapper;\n\n\nuse rmatil\\CmsBundle\\Entity\\ArticleCategory;\nuse rmatil\\CmsBundle\\Exception\\MapperException;\nuse rmatil\\...
php
chosen
[ { "from": "system", "value": "Add debug logic to test to see if any exceptions are thrown\n" }, { "from": "human", "value": "<?php\n\nnamespace Trafficgate\\Transferer\\Ssh;\n\nuse PHPUnit\\Framework\\TestCase;\n\nclass SshCommandTest extends TestCase\n{\n public function testGetCommandString...
php
chosen
[ { "from": "system", "value": "Remove invalid test cases (they were submitted upstream)\n" }, { "from": "human", "value": "<?php\n\nnamespace igorw\\edn;\n\nclass LexerTest extends \\PHPUnit_Framework_TestCase {\n /**\n * @test\n * @dataProvider provideInvalidEdn\n * @expectedExcep...
php
chosen
[ { "from": "system", "value": "Fix ecu id retrieval ??\n" }, { "from": "human", "value": "<?php\n// Set Logger Def\n$defFile = '../../misc/loggerdefs/' . $_POST['Definition'];\nif(!file_exists($defFile)) {\n\theader($_SERVER['SERVER_PROTOCOL'] . ' 500 Internal Server Error', true, 500);\n\techo \...
php
chosen
[ { "from": "system", "value": "Add video streamchannel archive CLI import task\n" }, { "from": "human", "value": "<?php\n\nclass CM_Stream_Cli extends CM_Cli_Runnable_Abstract {\n\n /**\n * @synchronized\n */\n public function startMessageSynchronization() {\n CM_Stream_Messa...
php
chosen
[ { "from": "system", "value": "Remove table markup for year view\n" }, { "from": "human", "value": "<h1 class=\"year_main\"><?php echo $context->year; ?></h1>\n<div class=\"year_cal\">\n<table>\n<tr>\n<td>\n<?php echo $savvy->render($context->monthwidgets[0]); ?>\n</td>\n<td>\n<?php echo $savvy->...
php
chosen
[ { "from": "system", "value": "Add minimal compatibility with changes in DBAL 2.11 RunSqlCommand\n\nProper fix would be more involved, relying on interfaces in DBAL to not change, which we cannot assume won't happen at this point. Full, proper fix needs to be done once DBAL 2.11 API is stable. Such fix will ...
php
chosen
[ { "from": "system", "value": "Add checkbox for tasks form\n" }, { "from": "human", "value": "<!-- form partial for tasks create and edit views -->\n<!-- form partial for projects create and edit views -->\n<div class=\"form-group\">\n\t{!! Form::label('name', 'Name:') !!}\n\t{!! Form::text('name...
php
chosen
[ { "from": "system", "value": "Allow creation of requests without parameters.\n" }, { "from": "human", "value": "<?php\n\nnamespace FluxBB\\Server;\n\nclass Request\n{\n protected $handler;\n\n protected $parameters = [];\n\n\n public function __construct($handler, array $parameters)\n ...
php
chosen
[ { "from": "system", "value": "Add PhpDoc / Code Standards\n" }, { "from": "human", "value": "<?php\n\n\nnamespace Friendica\\Object\\Search;\n\n\ninterface IResult\n{\n\n}" }, { "from": "gpt", "value": "<?php\n\nnamespace Friendica\\Object\\Search;\n\n/**\n * The default interface fo...
php
chosen
[ { "from": "system", "value": "Fix cancel action in post form" }, { "from": "human", "value": "\n<?php \n $action = empty($post['id']) ? url_for('posts') : url_for('posts', $post['id']);\n $method = empty($post['id']) ? 'POST' : 'PUT';\n?>\n<form action=\"<?=$action?>\" method=\"POST\">\n <fie...
php
chosen
[ { "from": "system", "value": "Add comma after array item" }, { "from": "human", "value": "<?php\n\nnamespace Hackzilla\\Bundle\\TicketBundle\\TwigExtension;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\n\nclass TicketGlobalExtension extends \\Twig_Extension implements \\Tw...
php
chosen
[ { "from": "system", "value": "Use get_feed_link for RSS URL" }, { "from": "human", "value": "<!DOCTYPE html>\n<html class=\"no-js\" <?php language_attributes(); ?>>\n<head>\n <meta charset=\"utf-8\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <title><?php wp_title('|', true...
php
chosen
[ { "from": "system", "value": "[String] Check if function exists before declaring it\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 view...
php
chosen
[ { "from": "system", "value": "Allow port definition for spot2 config\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenCFP\\Provider;\n\nuse Silex\\Application;\nuse Silex\\ServiceProviderInterface;\nuse Spot\\Config as SpotConfig;\nuse Spot\\Locator as SpotLocator;\n\nclass SpotServiceP...
php
chosen
[ { "from": "system", "value": "Travis: Use absolute path instead of relative.\n" }, { "from": "human", "value": "<?php\n\n$server = proc_open(PHP_BINARY . \" PocketMine-MP/PocketMine-MP.phar --no-wizard --disable-readline\", [\n\t0 => ['pipe', 'r'],\n\t1 => ['pipe', 'w'],\n\t2 => ['pipe', 'w'],\n...
php
chosen
[ { "from": "system", "value": "Add Dependent Fixture Interface to fix fixture loading\n" }, { "from": "human", "value": "<?php\nnamespace Soflomo\\Blog\\Fixture;\n\nuse Doctrine\\Common\\Persistence\\ObjectManager;\nuse Doctrine\\Common\\DataFixtures\\AbstractFixture;\n\nuse Faker;\nuse Soflomo\\...
php
chosen
[ { "from": "system", "value": "Update service provider to use bindShared.\n\nSigned-off-by: Mior Muhammad Zaki <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php namespace Orchestra\\Memory;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate\\F...
php
chosen
[ { "from": "system", "value": "Fix text color for account disabled page\n" }, { "from": "human", "value": "{{--\n Copyright (c) ppy Pty Ltd <contact@ppy.sh>.\n\n This file is part of osu!web. osu!web is distributed with the hope of\n attracting more community contributions to the core ec...
php
chosen