conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Fix leak of control on user view\n" }, { "from": "human", "value": "<?php\n\nnamespace Fabfoto\\GalleryBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Sensio\\...
php
chosen
[ { "from": "system", "value": "Add UT on standard family unit\n" }, { "from": "human", "value": "<?php\n\nnamespace Akeneo\\Bundle\\MeasureBundle\\Tests\\Unit\\Manager;\n\nuse Akeneo\\Bundle\\MeasureBundle\\Manager\\MeasureManager;\n\nclass MeasureManagerTest extends \\PHPUnit_Framework_TestCase\...
php
chosen
[ { "from": "system", "value": "Fix responsiveness of the customized config component\n" }, { "from": "human", "value": "<div class=\"border-2 border-smoke rounded mb-8\">\n <div class=\"md:flex\">\n <div class=\"w-1/2 bg-smoke-lighter border-b-2 border-smoke md:border-b-0 md:border-r-2 ...
php
chosen
[ { "from": "system", "value": "Send editied file back to phoenix\n" }, { "from": "human", "value": "<?php\n\nnamespace Rogue\\Jobs;\n\nuse Illuminate\\Queue\\SerializesModels;\nuse Illuminate\\Queue\\InteractsWithQueue;\nuse Illuminate\\Contracts\\Queue\\ShouldQueue;\nuse Rogue\\Services\\Phoenix...
php
chosen
[ { "from": "system", "value": "Fix meny redirect in installer\n" }, { "from": "human", "value": "<?php\n$installDir = dirname(__FILE_) . '/install';\nif (is_dir($installDir))\n{\n\theader('Location: install/');\n\texit;\n}\n\n$yii = dirname(__FILE__) . '/../../yii/yii.php';\n$config = dirname(__F...
php
chosen
[ { "from": "system", "value": "Remove chamadas desnecessárias da classe `App`\n" }, { "from": "human", "value": "<?php\n/**\n* Alf CMS\n*\n* PHP 5\n*\n* Alf CMS\n* Copyright 2013-2013, Tonight Systems, Inc. (https://github.com/tonightsystems)\n*\n* Licensed under The MIT License\n* Redistribution...
php
chosen
[ { "from": "system", "value": "Replace calls to SimpleSAML_Utilities::fatalError with throwing an exception.\n\nAlso remove those instances of the $session variable that became unused.\n\ngit-svn-id: a243b28a2a52d65555a829a95c8c333076d39ae1@2479 44740490-163a-0410-bde0-09ae8108e29a\n" }, { "from": "h...
php
chosen
[ { "from": "system", "value": "Clean out string from redundant spaces and trim to valid length\n" }, { "from": "human", "value": "<?php\n\nclass CRM_Speakcivi_Tools_Helper {\n\n /**\n * Clean out string from unicode special chars.\n * Those unicode chars invoke bugs during insert/update on d...
php
chosen
[ { "from": "system", "value": "[2.8] Fix issues reported by static analyse\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 the LICEN...
php
chosen
[ { "from": "system", "value": "Fix case issue on class name." }, { "from": "human", "value": "<?php\n\nnamespace Travis;\n\nclass Inline {\n\n /**\n * Return HTML w/ inline CSS.\n *\n * @param string $html\n * @return string\n */\n public static function run($html)\n...
php
chosen
[ { "from": "system", "value": "Fix wrong path for fallback case.\n" }, { "from": "human", "value": "<?php\r\n\r\n// Try to find the application root directory.\r\n$appRoot = \"E:\\approot\";\r\nif (isset($_SERVER['ApplicationPath'])) {\r\n $appRoot = $_SERVER['ApplicationPath'] . '\\app';\r\n}...
php
chosen
[ { "from": "system", "value": "Return user after oauth login\n" }, { "from": "human", "value": "<?php\n\nnamespace Facilis\\Users\\OAuth2;\n\nuse League\\OAuth2\\Client\\Exception\\IDPException;\nuse League\\OAuth2\\Client\\Provider\\ProviderInterface;\nuse Nette\\Object;\n\nclass LoginService ex...
php
chosen
[ { "from": "system", "value": "Add next round, previous round option\n" }, { "from": "human", "value": "<?php\n ?><h1>Game #<?php\n echo $gameid;\n ?></h1>\n <h2>Round #<?php\n echo $round->id;\n ?></h2>\n\n <div class='map' style='position: relative'>\n <?php\n ...
php
chosen
[ { "from": "system", "value": "Delete not need commented code\n" }, { "from": "human", "value": "<?php\r\n\r\nnamespace AppBundle\\Listeners;\r\n\r\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\r\nuse Symfony\\Component\\HttpKernel\\Event\\GetResponseForExceptionEvent;\r\nuse AppBundle\\...
php
chosen
[ { "from": "system", "value": "Return Reformation day as array\n" }, { "from": "human", "value": "<?php\n\nnamespace Kwetal\\Workdays\\Traits;\n\nuse Kwetal\\DateUtils\\DateTime\\DateTime;\n\ntrait ReformationDay\n{\n /**\n * @var string $labelReformationDay\n */\n public $labelRefo...
php
chosen
[ { "from": "system", "value": "Use existing `afterNodeCreate` signal to trigger NodeConfigurator\n" }, { "from": "human", "value": "<?php\nnamespace M12\\Foundation;\n\n/* *\n * This script belongs to the \"M12.Foundation\" pa...
php
chosen
[ { "from": "system", "value": "Align cfg logo right on larger screens\n" }, { "from": "human", "value": "<footer class=\"row\">\n <div class=\"c-footer col-xs-12 col-md-offset-2 col-md-8\">\n <div class=\"row\">\n <div class=\"col-xs-6 col-sm-4\">\n <img\n ...
php
chosen
[ { "from": "system", "value": "Remove warning when no configuration is defined\n" }, { "from": "human", "value": "<?php\n\nnamespace Ontic\\NoFraud\\Utils;\n\nuse Ontic\\NoFraud\\Interfaces\\IPlugin;\nuse Symfony\\Component\\Yaml\\Yaml;\n\nclass PluginUtils\n{\n /**\n * @return IPlugin[]\n...
php
chosen
[ { "from": "system", "value": "system: Fix style issues for webcontroller class\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file contains an abstract WebController class,\n * containing methods specifically targeted for the\n * Web Usage.\n *\n * PHP Version 5.3\n *\n * @category L...
php
chosen
[ { "from": "system", "value": "Add method to retrieve unvalidated evaluations\n" }, { "from": "human", "value": "<?php\n\nnamespace Project\\AppBundle\\Entity;\n\nuse Doctrine\\ORM\\EntityRepository;\n\n/**\n * EvaluationRepository\n *\n * This class was generated by the Doctrine ORM. Add your ow...
php
chosen
[ { "from": "system", "value": "Allow distinguish document generation dates (days)\n" }, { "from": "human", "value": "<?php\n\n/** @var integer $id */\n/** @var array $statistic */\n?>\n\n<div class=\"table-responsive\">\n <table id=\"<?= $id ?>\" class=\"table no-margin\">\n <thead>\n ...
php
chosen
[ { "from": "system", "value": "Fix tabing and remove commented code\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Ignition ignitionpowered.co.uk\n|---------------------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Fix cell number field label.\n" }, { "from": "human", "value": " {{ Form::label('first_name', 'First Name') }}\n {{ form_error('first_name', $errors) }}\n {{ Form::text('first_name', null, ['placeholder' => 'What\\'s your name?']) }}\n\n {{ Form::label('birthdat...
php
chosen
[ { "from": "system", "value": "Add flash messages to master layout.\n" }, { "from": "human", "value": "<!doctype html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <title>Aurora</title>\n <!-- include bootstrap -->\n <!-- @TODO include this with gulp, grunt, etc. -->\n <link rel=...
php
chosen
[ { "from": "system", "value": "Check if a private link points to a folder or file and change text accordingly\n" }, { "from": "human", "value": "<?php\nOCP\\JSON::checkLoggedIn();\nOCP\\JSON::checkAppEnabled('files_sharing');\n$user = OCP\\USER::getUser();\n// TODO translations\n$subject = $user....
php
chosen
[ { "from": "system", "value": "Add some chronopost codes to recognize\n" }, { "from": "human", "value": "<?php\n\nnamespace LWI\\DeliveryTracking\\Behavior;\n\nuse LWI\\DeliveryTracking\\DeliveryStatus;\n\ntrait ChronopostCodesTransformer\n{\n /**\n * @param string $code\n *\n * @r...
php
chosen
[ { "from": "system", "value": "Add list of allowed elements to picture child def\n" }, { "from": "human", "value": "<?php\n\nclass HTMLPurifier_ChildDef_Picture extends HTMLPurifier_ChildDef\n{\n public $type = 'picture';\n\n /**\n * @param array $children\n * @param HTMLPurifier_Co...
php
chosen
[ { "from": "system", "value": "Fix can't translate validation message\n" }, { "from": "human", "value": "<?php namespace Mews\\Captcha;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass CaptchaServiceProvider extends ServiceProvider\n{\n /**\n * Indicates if loading of the provider is ...
php
chosen
[ { "from": "system", "value": "Test that all tests work without annotations\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nrequire dirname(__DIR__) . '/vendor/autoload.php';\narray_map('unlink', (array) glob(__DIR__ . '/tmp/*.php'));\narray_map('unlink', (array) glob(__DI...
php
chosen
[ { "from": "system", "value": "Add support for create cc, bcc and attachment\n" }, { "from": "human", "value": "<?php\nuse \\Psr\\Http\\Message\\ServerRequestInterface as Request;\nuse \\Psr\\Http\\Message\\ResponseInterface as Response;\n\n // POST example api to send mail\n $app->post('/m...
php
chosen
[ { "from": "system", "value": "Add typehints for ServiceRegistryInterface::all() calls\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Sylius package.\n *\n * (c) Paweł Jędrzejewski\n *\n * For the full copyright and license information, please view the LICENSE\n * fil...
php
chosen
[ { "from": "system", "value": "Abort when test is not found.\n" }, { "from": "human", "value": "<?php\nnamespace Criterion\\UI\\Controller;\n\nclass TestController\n{\n public function view(\\Silex\\Application $app)\n {\n $data['test'] = $app['mongo']->tests->findOne(array(\n ...
php
chosen
[ { "from": "system", "value": "Set PHPFramework version to 1.5-dev\n" }, { "from": "human", "value": "<?php\n\nnamespace AppZap\\PHPFramework\\Configuration;\n\nuse AppZap\\PHPFramework\\Mvc\\ApplicationPartMissingException;\n\nclass DefaultConfiguration {\n\n /**\n * @param $application\n *...
php
chosen
[ { "from": "system", "value": "[TASK] Set active to true, because non active scripts shouldn't appear\n" }, { "from": "human", "value": "<?php\n\nnamespace Parabot\\BDN\\BotBundle\\Repository;\n\nuse Doctrine\\ORM\\EntityRepository;\nuse Parabot\\BDN\\BotBundle\\Entity\\Script;\nuse Parabot\\BDN\...
php
chosen
[ { "from": "system", "value": "Remove return types for now\n" }, { "from": "human", "value": "<?php namespace Lecturize\\Taxonomies\\Traits;\n\nuse Lecturize\\Taxonomies\\Models\\Taxonomy;\nuse Lecturize\\Taxonomies\\Models\\Term;\n\n/**\n * Class ModelFinder\n * @package Lecturize\\Taxonomies\\T...
php
chosen
[ { "from": "system", "value": "Fix for markdown handler when using application objects branch\n" }, { "from": "human", "value": "<?php\n\nnamespace Rhubarb\\Website\\UrlHandlers;\n\nuse Rhubarb\\Crown\\UrlHandlers\\UrlHandler;\n\nrequire_once \"vendor/rhubarbphp/rhubarb/src/UrlHandlers/UrlHandler...
php
chosen
[ { "from": "system", "value": "Change the exception with a more sensible one\n" }, { "from": "human", "value": "<?php\n\nnamespace Ojs\\JournalBundle\\Entity;\n\nuse Doctrine\\ORM\\EntityRepository;\nuse Doctrine\\ORM\\NoResultException;\nuse Symfony\\Component\\Security\\Core\\Exception\\Usernam...
php
chosen
[ { "from": "system", "value": "Test asset: interface extending a trait (invalid)\n" }, { "from": "human", "value": "<?php\n\nnamespace BetterReflectionTest\\Fixture\\InvalidInheritances\n{\n interface AInterface {}\n class AClass {}\n trait ATrait {}\n\n interface InterfaceExtendingCl...
php
chosen
[ { "from": "system", "value": "Fix a bad merge conflict resolution\n" }, { "from": "human", "value": "<?php\n\nnamespace Rogue\\Models;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Post extends Model\n{\n /**\n * The attributes that are mass assignable.\n *\n * @var array...
php
chosen
[ { "from": "system", "value": "Use the $extras argument as a $context parameter\n\nUseful for providing dynamic data while keeping the same $message for several events." }, { "from": "human", "value": "<?php\n\nnamespace Guzzle\\Log;\n\nuse Monolog\\Logger;\n\n/**\n * @deprecated\n * @codeCoverag...
php
chosen
[ { "from": "system", "value": "Set schema (http or https) config setting" }, { "from": "human", "value": "<?php namespace GeneaLabs\\Phpgmaps;\n\nuse GeneaLabs\\Phpgmaps\\Facades\\PhpgmapsFacade;\nuse Illuminate\\Foundation\\AliasLoader;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass Phpgmap...
php
chosen
[ { "from": "system", "value": "Add easy random via php\n" }, { "from": "human", "value": "//A file to smooth over any shortcomings of Titanium\n\n// Ti.Codec.decodeBase64 doesn't work as expected. \n// This is a workaround to write encoded binary assets to the disk\nfunction writeBase64Asset($pat...
php
chosen
[ { "from": "system", "value": "Add Widgets and Search Form icon\n" }, { "from": "human", "value": "<?php\n\n/** \n * CUSTOM\n * \n */\n\nfunction enqueue_scripts() {\n\t\n\twp_enqueue_script( 'jquery' );\n\t\n\t// Enqueue application bundles\n \twp_enqueue_style( 'main', get_template_directory_ur...
php
chosen
[ { "from": "system", "value": "Add immutable code to Currency\n[CurrencyBundle] Add AddCodeFormSubscriber to CurrencyType\n[ResourceBundle] Modify AddCodeFormSubscriber to make possible passing type of code field\n[Currency] Introduce code for Currency\n" }, { "from": "human", "value": "<?php\n\n...
php
chosen
[ { "from": "system", "value": "Fix typo in Mediator pattern\n" }, { "from": "human", "value": "<?php\n\nnamespace Mediator;\n\nrequire_once __DIR__ . '/User.php';\nrequire_once __DIR__ . '/Chatroom.php';\n\n/**\n * 発生したトラブルを表すクラス、トラブル番号(number)を持つ\n *\n * @access public\n * @extends \\Mediator\\U...
php
chosen
[ { "from": "system", "value": "Kill switch and check if method exists instead\n" }, { "from": "human", "value": "<?php\n\nnamespace Northstar\\Merge;\n\nclass Merger\n{\n public function __construct()\n {\n }\n\n public function merge($field, $target, $duplicate)\n {\n switc...
php
chosen
[ { "from": "system", "value": "Fix repo update when null is returned (eg, no plugin has modified the repo).\n" }, { "from": "human", "value": "<?php\n# Copyright (C) 2008\tJohn Reese\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Genera...
php
chosen
[ { "from": "system", "value": "Change parseBounce cron from a job (queued) to a command (direct)\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Console;\n\nuse App\\Models\\Draw;\nuse App\\Jobs\\ParseBounces;\nuse Illuminate\\Console\\Scheduling\\Schedule;\nuse Illuminate\\Foundation\...
php
chosen
[ { "from": "system", "value": "Remove foreign keys from paytrail_result table creation migration\n\nThe foreign keys are added through another migration that is run after this one\n" }, { "from": "human", "value": "<?php\n\nclass m131125_152138_create_paytrail_result_table extends CDbMigration\n{...
php
chosen
[ { "from": "system", "value": "Check if property is mapped field in transliteratable annotation driver.\n" }, { "from": "human", "value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2015, Darvin Studio\n * @link https://www.darvin-studio.ru\n *...
php
chosen
[ { "from": "system", "value": "Clarify API doc a smidge.\n" }, { "from": "human", "value": "<?php\n\n/**\n * @file\n * This file documents all available hook functions to manipulate data.\n */\n\n/**\n * Define custom queries to be used when batching through \"children\" of objects.\n *\n * @para...
php
chosen
[ { "from": "system", "value": "Fix asset url error when no base url is set\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of CSBill project.\n *\n * (c) 2013-2015 Pierre du Plessis <info@customscripts.co.za>\n *\n * This source file is subject to the MIT license that is bund...
php
chosen
[ { "from": "system", "value": "Add timestamps column to migration stub.\n\nThis is consistent with the default setting for Eloquent models, having timestamps enabled.\r\n\r\nFixes #865." }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Databas...
php
chosen
[ { "from": "system", "value": "Use compacted lists on fact index page.\n" }, { "from": "human", "value": "<?php\n/**\n * Returns the HTML for Fact Page list.\n *\n * Available Variables\n * - $links: Array of links, keyed by the cause name.\n */\n?>\n\n<section class=\"container container--facts-...
php
chosen
[ { "from": "system", "value": "Fix directory creation by view assistant creator\n" }, { "from": "human", "value": "<?php\n\nnamespace Knp\\RadBundle\\Controller;\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\nclass AssistantController extends Controller\n{\n public function missingView...
php
chosen
[ { "from": "system", "value": "Use navbar for primary theme location\n" }, { "from": "human", "value": "<?php\n\nrequire('wp_bootstrap_navwalker.php');\n\nfunction wp_bootstrap_nav_menu_args($args) {\n \n $args = array_merge($args, array(\n //'container' => 'div',\n //'container_c...
php
chosen
[ { "from": "system", "value": "Return array of renderers by reference.\n\nUpdate documentaion for getRenderer()\n\n\nsvn commit r975\n" }, { "from": "human", "value": "<?php\n\n/**\n * All containers of cell renders must implement this interface\n *\n * @package Swat\n * @copyright 2005 silvero...
php
chosen
[ { "from": "system", "value": "Allow public access to the dev/health url and change response to 500\n" }, { "from": "human", "value": "<?php\n\nclass DevHealthController extends Controller\n{\n /**\n * @var array\n */\n public static $allowed_actions = array(\n 'index'\n )...
php
chosen
[ { "from": "system", "value": "Update for Mailgun v3 API" }, { "from": "human", "value": "<?php\n\n////\tBrowning: A Mailgun Script (v0.25)\n// https://github.com/eustasy/browning-a-mailgun-script\n\n////\tMailgun\n// Sign up at https://mailgun.com/signup\n// First 10,00 mails a month free.\n\n//...
php
chosen
[ { "from": "system", "value": "Add support for customizing the mysql port number\n" }, { "from": "human", "value": "<?php namespace Nord\\Lumen\\Doctrine\\ORM\\Configuration;\n\nuse Nord\\Lumen\\Doctrine\\ORM\\Contracts\\ConfigurationAdapter as ConfigurationAdapterContract;\n\nclass SqlAdapter im...
php
chosen
[ { "from": "system", "value": "Make the `—yes/y` arg set all confirmations to yes\n" }, { "from": "human", "value": "<?php\n\nnamespace Pantheon\\Terminus\\Commands;\n\nuse Pantheon\\Terminus\\Config;\nuse Psr\\Log\\LoggerAwareInterface;\nuse Psr\\Log\\LoggerAwareTrait;\nuse Psr\\Log\\LoggerInter...
php
chosen
[ { "from": "system", "value": "Fix of open shift credentials\n" }, { "from": "human", "value": "<?php\n\tclass Register_model extends CI_Model{\n\t\tpublic function __construct(){\n\t\t\tparent::__construct();\n\t\t\t$this->load->database();\n\t\t\t$this->db->query(\"use test\");\n\t\t}\n\t\tpubl...
php
chosen
[ { "from": "system", "value": "Edit ImportModule class to update all query to QueryBuilder method\n" }, { "from": "human", "value": "<?php\n\tprint_r($_GET);\n\n\t$import_module = new \\core\\modules\\ImportModule();\n\t$import_module->setSupprimerModule($_GET['id_module']);\n\n\techo(\"success\"...
php
chosen
[ { "from": "system", "value": "Correct type hinting for $input_headers.\n" }, { "from": "human", "value": "<?php\n\nnamespace Meng\\Soap;\n\nclass Interpreter\n{\n private $soap;\n private $lastFunction;\n private $lastArguments;\n\n public function __construct($wsdl, array $options =...
php
chosen
[ { "from": "system", "value": "Fix to exclude slug field when is_home option is checked on page save\n" }, { "from": "human", "value": "<?php\n\nnamespace TypiCMS\\Modules\\Pages\\Http\\Requests;\n\nuse TypiCMS\\Modules\\Core\\Http\\Requests\\AbstractFormRequest;\n\nclass FormRequest extends Abst...
php
chosen
[ { "from": "system", "value": "Change Elastic Search extensions repo to gerrit" }, { "from": "human", "value": "\n# Add 2 extensions required for Elastic Search\n$egExtensionLoaderConfig += array(\n\t'Elastica' => array(\n\t\t'git' => 'https://git.wikimedia.org/git/mediawiki/extensions/Elastica.g...
php
chosen
[ { "from": "system", "value": "Upgrade Patch 8.0.0-A10 to 8.0.0-A11\n" }, { "from": "human", "value": "<?php\n bx_import('BxDolLanguagesQuery');\n bx_import('BxDolEmailTemplatesQuery');\n bx_import('BxDolTemplate');\n return true;\n" }, { "from": "gpt", "value": "<?php\n ...
php
chosen
[ { "from": "system", "value": "Update MessageBuilder example to set optional properties\n" }, { "from": "human", "value": "<?php\n\n$client = require __DIR__ . '/client.php';\n$phlack = new \\Crummy\\Phlack\\Phlack($client);\n$message = $phlack->getMessageBuilder()\n ->se...
php
chosen
[ { "from": "system", "value": "Allow user to extends and define how the redirect path/process should work.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php\n\nnamespace Mpociot\\Reauthenticate\\Middleware;\n\nuse Carbon\\Car...
php
chosen
[ { "from": "system", "value": "Hide menu item labels on small screen" }, { "from": "human", "value": "<li class=\"<?= $active ? 'active' : '' ?> <?= $children ? 'dropdown' : '' ?>\">\n\t\n\t<?php if (!$children) : ?>\n\t<a href=\"<?= $menu_item->href ?>\"\n\t\ttarget=\"<?= $menu_item->target ?>\"...
php
chosen
[ { "from": "system", "value": "Fix typo in version number\n" }, { "from": "human", "value": "<?php\r\n\r\n\tClass extension_markdown_typography extends Extension {\n\t\r\n\t\t/**\n\t\t * @see http://symphony-cms.com/learn/api/2.2/toolkit/extension/#about\n\t\t */\n\t\tpublic function about() {\r\...
php
chosen
[ { "from": "system", "value": "Debug some errors with handler\n" }, { "from": "human", "value": "<?php\n\n/**\n * PHP-OOP wrapper for libevent functionality\n *\n * @author Igor Makarov <doomsmile@gmail.com>\n *\n * @link http://www.wangafu.net/~nickm/libevent-book/\n * @link http://php.net/manua...
php
chosen
[ { "from": "system", "value": "Use redis-replica instead of redis-slave in GUI\n" }, { "from": "human", "value": "<?php\n\nerror_reporting(E_ALL);\nini_set('display_errors', 1);\n\nrequire 'Predis/Autoloader.php';\n\nPredis\\Autoloader::register();\n\nif (isset($_GET['cmd']) === true) {\n $host ...
php
chosen
[ { "from": "system", "value": "[BlockStorage] Attach Volume\nAdd the type.\n" }, { "from": "human", "value": "<?php\n\nnamespace wappr\\digitalocean\\Requests\\BlockStorageActions;\n\nuse wappr\\digitalocean\\Helpers\\RegionsHelper;\nuse wappr\\digitalocean\\RequestContract;\n\n/**\n * Class Atta...
php
chosen
[ { "from": "system", "value": "Change factory, set input stream only when given\n" }, { "from": "human", "value": "<?php\n\nnamespace Aedart\\Scaffold\\Console\\Style;\n\nuse Aedart\\Scaffold\\Contracts\\Console\\Style\\Factory;\nuse Aedart\\Scaffold\\Testing\\Console\\Style\\ExtendedStyle;\nuse ...
php
chosen
[ { "from": "system", "value": "Support fatal errors in converter" }, { "from": "human", "value": "<?php\n/**\n * Converts any PHP Error to ErrbitException\n * Extracted from the Errbit Error Handler, in case you want to use your own errorhandler, and convert errors to Exceptions.\n * @author deat...
php
chosen
[ { "from": "system", "value": "Fix formatting, add missing boot/register functions\n" }, { "from": "human", "value": "<?php\n\n namespace CachetHQ\\Segment;\n\n use Illuminate\\Support\\ServiceProvider;\n\n class SegmentServiceProvider extends ServiceProvider\n {\n\n }\n" }, { ...
php
chosen
[ { "from": "system", "value": "Fix PHPDoc wrong type annotation\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the PhpTabs package.\n *\n * Copyright (c) landrok at github.com/landrok\n *\n * For the full copyright and license information, please see\n * <https://github.c...
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\\Resources;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse Illuminate...
php
chosen
[ { "from": "system", "value": "Add ascii art to home page." }, { "from": "human", "value": "@extends('laravelerator::layouts.master')\n\n@section('content')\n <div class=\"row\">\n <div class=\"col-md-12\">\n <div class=\"page-header\">\n <h1>Home</h1>\n ...
php
chosen
[ { "from": "system", "value": "Remove the ajax login... It was a nice idea, but wasn't working out\nso well." }, { "from": "human", "value": "<script type=\"text/javascript\">\n$(function(){\n $('#logindiv').hide();\n $('#login').click(function() {\n if ($('#logindiv').is(\":visible...
php
chosen
[ { "from": "system", "value": "Fix tests for PHP 5.3\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the league/markua package.\n *\n * (c) Davey Shafik <me@daveyshafik.com>\n *\n * Original code based on the CommonMark JS reference parser (http://bitly.com/commonmarkjs)\n...
php
chosen
[ { "from": "system", "value": "Add custom glossary support to template variable.\n" }, { "from": "human", "value": "<?php namespace Craft;\n\nclass GlossaryVariable\n{\n /**\n * Builds a glossary of the given items, grouped by the specified field.\n *\n * @param array|ElementCriter...
php
chosen
[ { "from": "system", "value": "Remove dead code for the language server\n\n(We aren't requesting file contents from the client right now)\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types = 1);\n\nnamespace Phan\\LanguageServer\\Client;\n\nuse Phan\\LanguageServer\\ClientHandler;\nus...
php
chosen
[ { "from": "system", "value": "Fix bug in beforeaction method\n" }, { "from": "human", "value": "<?php\n\n/**\n * @author José Lorente <jose.lorente.martin@gmail.com>\n * @license The MIT License (MIT)\n * @copyright José Lorente\n * @version 1.0\n */\n\nnamespace jlorente\\notific...
php
chosen
[ { "from": "system", "value": "Make swimlane filter compatible with numeric title\n\nFixes #3940\n" }, { "from": "human", "value": "<?php\n\nnamespace Kanboard\\Filter;\n\nuse Kanboard\\Core\\Filter\\FilterInterface;\nuse Kanboard\\Model\\ProjectModel;\nuse Kanboard\\Model\\SwimlaneModel;\nuse Ka...
php
chosen
[ { "from": "system", "value": "Load autoload.php regardless of cwd.\n" }, { "from": "human", "value": "<?php\n\n/*\n * Configuration file for all examples.\n */\n\nrequire_once('../vendor/autoload.php');\n\n// U2FVAL Configuration - Using API token authentication:\n$u2fval = U2fVal\\Client::withA...
php
chosen
[ { "from": "system", "value": "Set a type for deleteSession()\n" }, { "from": "human", "value": "<?php\n\ninterface OAuth2ServerDatabase\n{\n public function validateClient(\n string $clientId,\n string $clientSecret = null,\n string $redirectUri = null\n );\n\n publ...
php
chosen
[ { "from": "system", "value": "Check for username existence in validation\n" }, { "from": "human", "value": "<?php namespace Lossendae\\PreviouslyOn\\Services\\Validators;\n\nclass User extends Validator\n{\n public static $rules = array(\n 'create' => array(\n 'email' => arr...
php
chosen
[ { "from": "system", "value": "Use Zoltan's type of fix\n" }, { "from": "human", "value": "<?php\n\n/**\n * Decoded bencode string, representing an ordered set of bytes.\n *\n * @package PHPTracker\n * @subpackage Bencode\n */\nclass PHPTracker_Bencode_Value_String extends PHPTracker_Bencode_Valu...
php
chosen
[ { "from": "system", "value": "Fix use statement for SequentialCommandBus\n" }, { "from": "human", "value": "<?php\n\nnamespace LiteCQRS\\Plugin\\SymfonyBundle;\n\nuse LiteCQRS\\Bus\\CommandBus;\n\nuse Symfony\\Component\\DependencyInjection\\ContainerInterface;\n\nclass ContainerCommandBus exten...
php
chosen
[ { "from": "system", "value": "Use constants for model configuration\n" }, { "from": "human", "value": "<?php\n\n/**\n * This class manages content in the \"nails_comment\" table.\n *\n * @package Nails\n * @subpackage module-comment\n * @category Model\n * @author Nails Dev Team\n *...
php
chosen
[ { "from": "system", "value": "Align media form with displayed media link info\n\nThe issue was that if you have a media link and click ad media link\nthe form had a different order or type and uri.\n" }, { "from": "human", "value": "<?php\n\nnamespace Talk;\n\nuse Event\\EventEntity;\nuse Symfon...
php
chosen
[ { "from": "system", "value": "Add debug info on error call\n" }, { "from": "human", "value": "<?php\n\nnamespace Soil\\QueueHttpEndpointBundle\\Controller;\n\nuse Soilby\\EventComponent\\Service\\GearmanClient;\nuse Symfony\\Component\\HttpFoundation\\JsonResponse;\nuse Symfony\\Component\\HttpF...
php
chosen
[ { "from": "system", "value": "Test for controller_map key in config once.\n\nAlso, ensure that controller_map is an array as the parameter to\nsetControllerMap() is type hinted.\n" }, { "from": "human", "value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http:...
php
chosen
[ { "from": "system", "value": "Downgrade code to PHP 5.3 syntax level\n" }, { "from": "human", "value": "<?php\n\nclass RailsQueryAggregatorTest extends Delighted\\TestCase {\n\n public function testAggregate()\n {\n $value = [\n 'num' => ['a', 'b', 'c'],\n 'ass...
php
chosen
[ { "from": "system", "value": "Add random() function to allow displaying of one random quote author.\n\nSigned-off-by: Wilson Lau <51ca10b964eb3f90521acbc5ab4d054ef62a94b4@gmail.com>\n" }, { "from": "human", "value": "<?php\n\ndefined('BASEPATH') OR exit('No direct script access allowed');\n\ncla...
php
chosen
[ { "from": "system", "value": "Remove debugging code from controller\n" }, { "from": "human", "value": "<?php namespace Watson\\Autologin;\n\nuse Auth, Redirect;\nuse Illuminate\\Routing\\Controller;\nuse Watson\\Autologin\\Interfaces\\AutologinInterface;\n\n\nclass AutologinController extends Co...
php
chosen
[ { "from": "system", "value": "Add test to controller factory when not found controller.\n" }, { "from": "human", "value": "<?php\n\nnamespace Ouzo;\n\n\nuse Ouzo\\Routing\\RouteRule;\n\nclass SimpleTestController extends Controller\n{\n\n}\n\nclass ControllerFactoryTest extends \\PHPUnit_Framewo...
php
chosen
[ { "from": "system", "value": "Add RSS & Atom autodiscovery URLs\n" }, { "from": "human", "value": "<!DOCTYPE HTML>\n<!--[if IEMobile 7 ]><html class=\"no-js iem7\" manifest=\"default.appcache?v=1\"><![endif]-->\n<!--[if lt IE 7 ]><html class=\"no-js ie6\" lang=\"en\"><![endif]-->\n<!--[if IE 7 ]...
php
chosen