conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Reorganize front page markup to include a hero section\n" }, { "from": "human", "value": "<?php\n\nget_header(); ?>\n\n\t<div id=\"primary\" class=\"content-area\">\n\t\t<main id=\"main\" class=\"site-main\" role=\"main\">\n\n\t\t\t<section class=\"site-hero-section...
php
chosen
[ { "from": "system", "value": "Rename write all items class and description\n" }, { "from": "human", "value": "<?php\n/**\n * Loops through all products and Categories, and sets their URL Segments, if\n * they do not already have one\n *\n * @package commerce\n * @subpackage tasks\n */\nclass Com...
php
chosen
[ { "from": "system", "value": "Return lastInsertId of user creation\n" }, { "from": "human", "value": "<?php\nnamespace ZerobRSS\\Dao;\n\nuse \\Doctrine\\DBAL\\Connection as Db;\n\nclass Users\n{\n /** @var Db */\n private $db;\n\n public function __construct(Db $db)\n {\n $thi...
php
chosen
[ { "from": "system", "value": "Fix path for test logs\n" }, { "from": "human", "value": "<?php\n\nnamespace ApiTest;\n\nuse Zend\\Json\\Json;\n\nclass JsonFileIterator extends \\GlobIterator\n{\n\n /**\n * Override parent to force pattern for JSON file\n * @param string $path\n */\...
php
chosen
[ { "from": "system", "value": "Use class notation in config" }, { "from": "human", "value": "<?php\n\nreturn [\n\n /*\n |--------------------------------------------------------------------------\n | Authorization Models\n |-------------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Remove the code to filter user login.\n\n:)\n" }, { "from": "human", "value": "<?php\n\n/*\n * In configuration file\n * ...\n * 'as AccessBehavior' => [\n * 'class' => '\\app\\components\\AccessBehavior'\n * ]\n * ...\n * (c) Artem Voitko <r3verser@gmail.com>\n ...
php
chosen
[ { "from": "system", "value": "Fix caption of quick link in dashboard\n\n" }, { "from": "human", "value": "@extends( 'layouts.master' )\n\n@section( 'title', 'Welcome' )\n\n@section( 'heading', 'Welcome' )\n\n@section( 'main' )\n\n @row\n\n @col( s12 )\n <p>You are logged in....
php
chosen
[ { "from": "system", "value": "Fix Fatal error: Can't use function return value\n" }, { "from": "human", "value": "<?php\nnamespace Aedart\\Scaffold\\Cache;\n\nuse Aedart\\Scaffold\\Containers\\IoC;\nuse Aedart\\Scaffold\\Contracts\\Builders\\IndexBuilder;\nuse Illuminate\\Contracts\\Cache\\Repos...
php
chosen
[ { "from": "system", "value": "Add newline at the end of file\n" }, { "from": "human", "value": "<?php\nnamespace Loct\\Pinger\\Notifier;\n\n/**\n * Notifier Interface\n *\n * @author herloct\n */\ninterface NotifierInterface\n{\n /**\n * Notify all recipients\n *\n * @param array ...
php
chosen
[ { "from": "system", "value": "Use the CSPRNG provided by PHP 7\n\nFor PHP 5 support, see: https://github.com/paragonie/random_compat" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the FOSUserBundle package.\n *\n * (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>...
php
chosen
[ { "from": "system", "value": "Set the internal encoding of mastering.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php namespace Orchestra\\Config\\Bootstrap;\n\nuse Orchestra\\Config\\FileLoader;\nuse Orchestra\\Config\\Re...
php
chosen
[ { "from": "system", "value": "Add return type declarations to \"safe\" methods\n" }, { "from": "human", "value": "<?php\n\nnamespace Kunstmaan\\ArticleBundle\\Tests\\DependencyInjection;\n\nuse Kunstmaan\\ArticleBundle\\DependencyInjection\\Configuration;\nuse Matthias\\SymfonyConfigTest\\PhpUni...
php
chosen
[ { "from": "system", "value": "Add support for Parsedown Extra\n" }, { "from": "human", "value": "<?php\n\nnamespace allejo\\stakx\\Engines;\n\nuse Highlight\\Highlighter;\n\nclass MarkdownEngine extends \\Parsedown\n{\n protected $highlighter;\n\n public function __construct ()\n {\n ...
php
chosen
[ { "from": "system", "value": "Add default value for package name.\n\nIf all else fails assume the name of the current folder is the packoge name.\n" }, { "from": "human", "value": "<?php\nnamespace Respect\\Foundation\\InfoProviders;\n\nuse DirectoryIterator;\n\nclass PackageName extends Abstrac...
php
chosen
[ { "from": "system", "value": "Fix infinite loop for filter\n" }, { "from": "human", "value": "<?php\n\nnamespace Romans\\Filter;\n\nuse Romans\\Grammar\\Grammar;\nuse Romans\\Grammar\\GrammarAwareTrait;\n\n/**\n * Int to Roman\n */\nclass IntToRoman\n{\n use GrammarAwareTrait;\n\n /**\n ...
php
chosen
[ { "from": "system", "value": "Add filter for mail-editable to show only allowed components\n\nThe listing of kwc_mail_components is done this way and not with menuconfig sameclass\nbecause we would get a menu-button for every kwc_mail_component in a web.\n" }, { "from": "human", "value": "<?php\...
php
chosen
[ { "from": "system", "value": "Allow booleans for the envelope\n" }, { "from": "human", "value": "<?php\n\nnamespace M6Web\\Bundle\\AmqpBundle\\Event;\n\nuse AMQPEnvelope;\nuse Symfony\\Component\\EventDispatcher\\Event as SymfonyEvent;\n\n/**\n * Pre retrieve message event\n */\nclass PreRetriev...
php
chosen
[ { "from": "system", "value": "Fix kilikTable for Symfony 5.4\n" }, { "from": "human", "value": "<?php\n\nnamespace Kilik\\TableBundle\\DependencyInjection;\n\nuse Symfony\\Component\\Config\\Definition\\Builder\\TreeBuilder;\nuse Symfony\\Component\\Config\\Definition\\ConfigurationInterface;\n\...
php
chosen
[ { "from": "system", "value": "Work on the CLI scripts\n" }, { "from": "human", "value": "<?php\n\nrequire_once __DIR__ . '/../vendor/PopPHPFramework/src/Pop/Loader/Autoloader.php';\nuse Pop\\Loader\\Autoloader;\n\n// Instantiate the autoloader object.\n$autoloader = Autoloader::factory();\n$auto...
php
chosen
[ { "from": "system", "value": "Use ClassUtils to display RealClass\n\nWhen we build a classMapping, we want to use the real class instead of any class proxies from lazy loaded entities\n" }, { "from": "human", "value": "<?php\n\nnamespace Becklyn\\SearchBundle\\Search\\Result;\n\n\nclass SearchRe...
php
chosen
[ { "from": "system", "value": "Fix issue with \"readonly\" table\n\n- Using getSelect() was leading to an issue against current ZF2 master whereby\n the table was being marked as readonly; this meant that later calling from()\n led to an exception. This patch fixes that issue by pulling the select() from\n...
php
chosen
[ { "from": "system", "value": "Modify Resource for function login true or false\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|---------------------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Fix case insensitivity parameter for inArray" }, { "from": "human", "value": "<?php\n\n/**\n * Validates a value part of a pre-defined list.\n *\n * @param array $list List of values the validated value should belong to\n * @param bool $ignore_case If true, the case...
php
chosen
[ { "from": "system", "value": "Replace underscores to spaces to avoid clobbering searches.\nOtherwise, searching for \"wooden_arrow\" would\nstore an empty result, which will be returned\nwhen searching for \"wooden arrow\"\n" }, { "from": "human", "value": "<?php \nnamespace Repositories;\n\ncla...
php
chosen
[ { "from": "system", "value": "Fix errors in ClosureJs filter.\n\nFixes #250\n" }, { "from": "human", "value": "<?php\nnamespace AssetCompress\\Test\\TestCase\\Filter;\n\nuse AssetCompress\\Filter\\ClosureJs;\nuse Cake\\TestSuite\\TestCase;\n\nclass ClosureJsTest extends TestCase\n{\n\n public...
php
chosen
[ { "from": "system", "value": "Revert \"id removed from the form\"\n\nThis reverts commit deacaaa17285ee642a8888c4a0dad824ade72017.\n" }, { "from": "human", "value": "@push('js')\n <script src=\"{{ asset('components/ckeditor4/ckeditor.js') }}\"></script>\n <script src=\"{{ asset('components...
php
chosen
[ { "from": "system", "value": "Improve finding onElementReady Dependencies autmatically\n" }, { "from": "human", "value": "<?php\nclass Kwf_Assets_Provider_KwfUtils extends Kwf_Assets_Provider_Abstract\n{\n public function getDependenciesForDependency(Kwf_Assets_Dependency_Abstract $dependency...
php
chosen
[ { "from": "system", "value": "Add test to assert TermBuilder does not build empty terms\n" }, { "from": "human", "value": "<?php\n\nnamespace Swis\\LaravelFulltext\\Tests;\n\nuse Swis\\LaravelFulltext\\TermBuilder;\n\nclass TermBuilderTest extends AbstractTestCase\n{\n public function test_te...
php
chosen
[ { "from": "system", "value": "Add new functions to the network data trait\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Modules\\Networkdata\\Traits;\n\ntrait NetworkDataAccount\n{\n /**\n * Fetch all ATC Sessions.\n *\n * @return \\Illuminate\\Database\\Eloquent\\Rel...
php
chosen
[ { "from": "system", "value": "Fix <\\textarea> in codeeditor breaks out of the editors textarea\n\n" }, { "from": "human", "value": "@if ($this->previewMode)\n <div class=\"form-control-static\">{!! $value !!}</div>\n@else\n <div\n class=\"field-codeeditor size-{{ $size }}\"\n ...
php
chosen
[ { "from": "system", "value": "Include de funções genéricas do App\n" }, { "from": "human", "value": "<?php \n\t\n\tif( defined(\"DEBUG\") && DEBUG == true ) \n\t\tini_set('display_errors', 1);\n\n\t/** classe de autoload */\n\trequire \"help/auto_load.class.php\";\n\n\tuse Core\\Controller\\Cont...
php
chosen
[ { "from": "system", "value": "Remove db password from source control\n" }, { "from": "human", "value": "<?php\n # Database variables\n $dbhost = 'localhost:3036';\n $dbuser = 'c0smic_tyro';\n $dbpass = '2$M*k^4!?oDm';\n\n # Read GET variables\n $stime = $_POST['stime'];\n $e...
php
chosen
[ { "from": "system", "value": "Make more cat seeds and reseed\n" }, { "from": "human", "value": "<?php\nuse Illuminate\\Database\\Seeder;\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass CatsSeeder extends Seeder\n{\n /**\n * Run the database seeds.\n *\n * @return void\n *...
php
chosen
[ { "from": "system", "value": "Fix random code coverage decreases\n" }, { "from": "human", "value": "<?php\n\n\nnamespace PhpWorkshop\\PhpWorkshopTest\\Exercise;\n\nuse PHPUnit_Framework_TestCase;\nuse PhpWorkshop\\PhpWorkshop\\Exercise\\BabySteps;\n\n/**\n * Class BabyStepsTest\n * @package PhpW...
php
chosen
[ { "from": "system", "value": "Add Test case with delete Feature\n" }, { "from": "human", "value": "<?php\n\nnamespace Page;\n\n/**\n * Class TasksPage\n * @package Page\n */\nclass ApiPage\n{\n const URL = 'http://localhost:8000/task';\n /**\n *\n * @param \\AcceptanceTester $I Cod...
php
chosen
[ { "from": "system", "value": "Remove module config with emails fixture\n" }, { "from": "human", "value": "<?php\n/**\n * Here you can initialize variables that will be available to your tests.\n */\n\nuse Codeception\\Util\\Fixtures;\n\n// Define a complete, valid configuration identical to that...
php
chosen
[ { "from": "system", "value": "Update dependency injection extension to make use of FileLocator\n" }, { "from": "human", "value": "<?php\n\nnamespace Knplabs\\TimeBundle\\DependencyInjection;\n\nuse Symfony\\Component\\DependencyInjection\\Extension\\Extension;\nuse Symfony\\Component\\Dependency...
php
chosen
[ { "from": "system", "value": "Fix tags and $class treated as string instead of null" }, { "from": "human", "value": "<?php defined('SYSPATH') or die('No direct script access.');\n// Notify module view for Twitter Bootstrap 2.0\nforeach ($msgs as $msg_type => $msgs_of_type):\n $class = NULL;\n...
php
chosen
[ { "from": "system", "value": "Build sources for all flag\n" }, { "from": "human", "value": "<?php\n/**\n * mbp-logging-reports.php\n *\n * A producer to create reports based on logged data in mb-logging-api.\n */\n\nuse DoSomething\\MBP_LoggingReports\\MBP_LoggingReports_Users;\n\ndate_default_t...
php
chosen
[ { "from": "human", "value": "Write the whitespace structure (it's a pretext for testing SVN hooks).\n" }, { "from": "gpt", "value": "<?php\n\n/**\n * Hoa Framework\n *\n *\n * @license\n *\n * GNU General Public License\n *\n * This file is part of Hoa Open Accessibility.\n * Copyright (c) 2007,...
php
chosen
[ { "from": "system", "value": "Fix (or, more workaround) php 5.2 segfault\n\nmany hours wasted in debugging this shit\n" }, { "from": "human", "value": "<?php\nclass Kwc_List_ChildPages_Teaser_Component extends Kwc_Abstract\n{\n public static function getSettings()\n {\n $ret = paren...
php
chosen
[ { "from": "system", "value": "BB-7975: Add to configuration select with segment lists\n- cs fix\n" }, { "from": "human", "value": "<?php\nnamespace Oro\\Bundle\\SegmentBundle\\Tests\\Functional\\Entity\\Repository;\n\nuse Doctrine\\Bundle\\DoctrineBundle\\Registry;\n\nuse Oro\\Bundle\\SegmentBun...
php
chosen
[ { "from": "system", "value": "Return types in manager tests\n" }, { "from": "human", "value": "<?php\n/*\n * WellCommerce Open-Source E-Commerce Platform\n * \n * This file is part of the WellCommerce package.\n *\n * (c) Adam Piotrowski <adam@wellcommerce.org>\n * \n * For the full copyright an...
php
chosen
[ { "from": "system", "value": "Add @throws declarations to method comments.\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Repositories;\n\nuse Illuminate\\Database\\Eloquent\\Collection;\nuse Illuminate\\Database\\Eloquent\\Model;\n\ninterface RepositoryInterface\n{\n\t/**\n\t * Fetc...
php
chosen
[ { "from": "system", "value": "Fix totally screwed code >:-)\n\nBetter run once before push.\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Assetic package, an OpenSky project.\n *\n * (c) 2010-2013 OpenSky Project Inc\n *\n * For the full copyright and license inform...
php
chosen
[ { "from": "system", "value": "UPDATE: Improve cacheing cli controller for clear cache actions\n" }, { "from": "human", "value": "<?php\n\nuse Heyday\\CacheInclude\\Container;\n\n/**\n * Class CacheIncludeController\n */\nclass CacheIncludeController extends CliController\n{\n /**\n * Ensu...
php
chosen
[ { "from": "system", "value": "Make translatable text \"Supprimier\" in image fieldset template\n" }, { "from": "human", "value": " <div class=\"fieldset-media fieldset-image\">\n @if($model->$field)\n <div class=\"fieldset-preview\">\n {!! $model->pres...
php
chosen
[ { "from": "system", "value": "Add shameless pleading for funds.\n\nWe're college students. Our pride is not worth as much as money.\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html>\n <head>\n <?php include(\"include/common.html\"); ?>\n <meta charset=\"utf-8\">\n <title>About...
php
chosen
[ { "from": "system", "value": "Revert \"Works on customizing next/prev page links for posts\"\n\nThis reverts commit 15be4239cfd24dba4e82fd3d0a13bcc1fe8198ab.\n" }, { "from": "human", "value": "<?php\n function get_the_posts_navigation( $args = array() ) {\n $navigation = '';\n\n // Don't ...
php
chosen
[ { "from": "system", "value": "Add uri setting to aliases example alias as required by Drush 8.\n" }, { "from": "human", "value": "<?php\n$home = drush_server_home();\n// Solve the key file to use\n$path = explode('/', dirname(__FILE__));\narray_pop($path);\n$path[] = '/../.vagrant';\n$path = imp...
php
chosen
[ { "from": "system", "value": "Use string post instead of constant\n" }, { "from": "human", "value": "<?php\n\nnamespace Omnipay\\Fasapay\\Message;\n\nuse Omnipay\\Common\\Message\\AbstractResponse;\nuse Omnipay\\Common\\Message\\RedirectResponseInterface;\n\n/**\n * Dummy Response\n */\nclass Pu...
php
chosen
[ { "from": "system", "value": "Increase waitForServerToGive200 timeout to 10s & add debug trace\n" }, { "from": "human", "value": "<?php\n\nnamespace WireMock\\Client;\n\nclass HttpWait\n{\n public function waitForServerToGive200($url, $timeoutSecs = 5)\n {\n $startTime = microtime(t...
php
chosen
[ { "from": "system", "value": "Use MorphMap when there's no instance\n" }, { "from": "human", "value": "<?php\n\n// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.\n// See the LICENCE file in the repository root for full licence text.\n\ndecl...
php
chosen
[ { "from": "system", "value": "Change datetime to timestamp type to make postgresql pass tests\n" }, { "from": "human", "value": "<?php\nnamespace LazyRecord\\Schema\\Mixin;\nuse LazyRecord\\Schema\\MixinDeclareSchema;\nuse LazyRecord\\Schema;\nuse DateTime;\n\nclass RevisionMixinSchema extends M...
php
chosen
[ { "from": "system", "value": "Fix type issue between Application and Container\n\nResourceFactory should take a Container, not an Application.\n" }, { "from": "human", "value": "<?php\n\nnamespace JDesrosiers\\Resourceful\\ResourcefulServiceProvider;\n\nuse Silex\\Application;\nuse Symfony\\Comp...
php
chosen
[ { "from": "system", "value": "Use raw PathInfo for matching urls\n" }, { "from": "human", "value": "<?php\n\n/**\n* ownCloud\n*\n* @author Frank Karlitschek\n* @copyright 2012 Frank Karlitschek frank@owncloud.org\n*\n* This library is free software; you can redistribute it and/or\n* modify it un...
php
chosen
[ { "from": "system", "value": "Add badge to Model Collector" }, { "from": "human", "value": "<?php\n\nnamespace Barryvdh\\Debugbar\\DataCollector;\n\nuse DebugBar\\DataCollector\\DataCollector;\nuse DebugBar\\DataCollector\\DataCollectorInterface;\nuse DebugBar\\DataCollector\\Renderable;\nuse Il...
php
chosen
[ { "from": "system", "value": "Add format null for CPM\n" }, { "from": "human", "value": "<?php\n\n# See application/core/MY_Model for this parent model\nclass Cpm_model extends Crud_model\n{\n\n public function __construct()\n {\n parent::__construct();\n $this->table = 'cpm';\n\n }\n\n...
php
chosen
[ { "from": "system", "value": "Revert \"modified error controller to be cli sensitive\"\n\nThis reverts commit 979ba31da56aa2355294435f28698998d0a96574.\n" }, { "from": "human", "value": "<?php\nnamespace devmo\\controllers;\n/**\n * Default base controller for creating the wrapper around errors\...
php
chosen
[ { "from": "system", "value": "Use high memory when executing unit tests\n" }, { "from": "human", "value": "<?php\ndate_default_timezone_set('Europe/Amsterdam');\ndefine('APPLICATION_ENV', 'testing');\n$rootPath = dirname(__FILE__).'/..';\n\nrequire_once $rootPath.'/application/init.php';\n\n$app...
php
chosen
[ { "from": "system", "value": "Add error handling for missing resources\n" }, { "from": "human", "value": "<?php\n\nuse Ontic\\NoFraud\\Controllers\\IController;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Routing\\Matcher\\UrlMatcher;\nuse Symfony\\Component\\Routi...
php
chosen
[ { "from": "system", "value": "Allow \"Sign with MFA\" to be applied as a comment action without requiring \"CAN_EDIT\"\n\nSummary:\nFixes T13307. We currently require \"CAN_EDIT\" to sign actions, but it's fine to sign a comment with only \"CAN_INTERACT\".\n\nSince the actions like \"Accept Revision\" alrea...
php
chosen
[ { "from": "system", "value": "Include campaign overview page in nav\n" }, { "from": "human", "value": "<nav class=\"navigation -white -floating\">\n <a class=\"navigation__logo\" href=\"/\"><span>DoSomething.org</span></a>\n <div class=\"navigation__menu\">\n @if (Auth::user())\n ...
php
chosen
[ { "from": "system", "value": "Disable taggable tests using the adapter\n" }, { "from": "human", "value": "<?php\n\nnamespace Radebatz\\ACache\\Tests\\Decorators\\Psr;\n\nuse Cache\\IntegrationTests\\TaggableCachePoolTest;\nuse Cache\\Taggable\\TaggablePSR6PoolAdapter;\nuse Radebatz\\ACache\\Arra...
php
chosen
[ { "from": "system", "value": "Make isAdmin method more readable.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Auth\\UserTrait;\nuse Illuminate\\Auth\\UserInterface;\nuse Phragile\\PhabricatorAPI;\n\nclass User extends Eloquent implements UserInterface {\n\n\t// This is used for pa...
php
chosen
[ { "from": "system", "value": "Add IRC on header as pageLink\n" }, { "from": "human", "value": "<?php\nif (!defined('BLARG')) die();\n\n$headerlinks = array\n(\n\tactionLink('irc') => 'IRC', \n);\n\n$sidelinks = array\n(\n\tSettings::get('menuMainName') => array\n\t(\n\t\tactionLink('home') => 'H...
php
chosen
[ { "from": "system", "value": "Test commit for bootcamp ssh\n" }, { "from": "human", "value": "<?php\n\n/**\n * mailer-config.php\n * This file contains your reCAPTCHA keys, and your recipients email addresses.\n *\n * @param string $siteKey your public reCAPTCHA API key\n * @param string $secret...
php
chosen
[ { "from": "system", "value": "Handle empty values for FieldtypeDatetime.\n" }, { "from": "human", "value": "<?php\n\nnamespace ProcessWire\\GraphQL\\Field\\Traits;\n\nuse Youshido\\GraphQL\\Config\\Field\\FieldConfig;\nuse Youshido\\GraphQL\\Execution\\ResolveInfo;\nuse Youshido\\GraphQL\\Field\...
php
chosen
[ { "from": "system", "value": "Add (custom) path to the convert bin.\n\nFor use with ImageMagick (‘im’ thumbs driver) setting. For now in local config only (for testing purposes).\n" }, { "from": "human", "value": "<?php\n\n// direct access protection\nif(!defined('KIRBY')) die('Direct access is ...
php
chosen
[ { "from": "system", "value": "Use eraseEvents method inside releaseEvents()\n" }, { "from": "human", "value": "<?php\n\nnamespace BornFree\\TacticianDomainEvent\\Recorder;\n\n/**\n * Use this trait in classes which implement ContainsRecordedEvents to record and later release events.\n */\ntrait ...
php
chosen
[ { "from": "system", "value": "Allow RSS feed to be cached if user is logged in.\n" }, { "from": "human", "value": "<?php\n\n\n/**\n * @author Andreas Kummer, w3concepts AG\n * @copyright Copyright &copy; 2011, w3concepts AG\n */\n\nclass Module_Syndication_RSS_Reader_Class extends Aitsu_Module_T...
php
chosen
[ { "from": "system", "value": "Index goes to full list url\n" }, { "from": "human", "value": "<?php\nclass IndexController\n{\n\t/**\n\t* @route /\n\t*/\n\tpublic function indexAction()\n\t{\n\t\tif ($this->context->isLoggedIn)\n\t\t{\n\t\t\tBootstrap::forward(\\Chibi\\UrlHelper::route('list', 'v...
php
chosen
[ { "from": "system", "value": "Set novalidate attr for a form by default" }, { "from": "human", "value": "<?php\n\nnamespace Jasny\\FormBuilder;\n\nuse Jasny\\FormBuilder;\n\n/**\n * Render element for use with AngularJS.\n * Optionaly use features from Jasny AngularJS.\n * \n * @link http://getb...
php
chosen
[ { "from": "system", "value": "Fix issue where inteded path was not being used in login form handler\n" }, { "from": "human", "value": "<?php namespace Anomaly\\UsersModule\\User\\Login;\n\nuse Anomaly\\UsersModule\\User\\UserAuthenticator;\n\n/**\n * Class LoginFormHandler\n *\n * @link ...
php
chosen
[ { "from": "system", "value": "Use term end date as timestamp for term reports\n" }, { "from": "human", "value": "<?php\n\nnamespace Slate\\Progress;\n\n\nclass SectionTermReport extends AbstractSectionTermReport\n{\n public static $cssTpl = 'section-term-reports/_css';\n public static $bod...
php
chosen
[ { "from": "system", "value": "Add model transformer for json field\n" }, { "from": "human", "value": "<?php\n\nnamespace Furniture\\ProductBundle\\Form\\Type\\PdpIntellectual;\n\nuse Furniture\\CommonBundle\\Form\\DataTransformer\\ObjectToStringTransformer;\nuse Furniture\\ProductBundle\\Entity\...
php
chosen
[ { "from": "system", "value": "Include expiration time in the email.\n" }, { "from": "human", "value": "@component('mail::message')\n\nRoboJackets' attendance report from {{ $export->start_time->format('l, n/j/Y \\a\\t g:iA') }} to {{ $export->end_time->format('l, n/j/Y \\a\\t g:iA') }} is availa...
php
chosen
[ { "from": "system", "value": "Add import path for sass files on Mac OS\n" }, { "from": "human", "value": "<?php\n/**\n *\n * PHP.Gt (http://php.gt)\n * @copyright Copyright Ⓒ 2014 Bright Flair Ltd. (http://brightflair.com)\n * @license Apache Version 2.0, January 2004. http://www.apache.org/lice...
php
chosen
[ { "from": "system", "value": "Move abstract declaration before visibility declaration\n" }, { "from": "human", "value": "<?php\n/**\n *\n * PHP.Gt (http://php.gt)\n * @copyright Copyright Ⓒ 2014 Bright Flair Ltd. (http://brightflair.com)\n * @license Apache Version 2.0, January 2004. http://www....
php
chosen
[ { "from": "system", "value": "Implement capturing of messages in the sentry handler\n" }, { "from": "human", "value": "<?php\nnamespace Monitor\\Error;\n\nuse Cake\\Core\\Configure;\nuse Exception;\n\nclass SentryHandler\n{\n\n /**\n * Constructor\n *\n */\n public function __c...
php
chosen
[ { "from": "system", "value": "Use HTTP codes as response.\n\nThe code \"$.ajax\" in \"contact_me.js\" do not understand the \"return true\" or \"return false\" from PHP. It only understand the HTTP response code for select between \"success\" or \"error\".\r\n\r\nThis is a quick fix, would be better a JSON ...
php
chosen
[ { "from": "system", "value": "Adjust factory to work with new ZF3" }, { "from": "human", "value": "<?php\nnamespace GoalioForgotPassword\\Form\\Service;\n\nuse GoalioForgotPassword\\Form\\Reset;\nuse GoalioForgotPassword\\Form\\ResetFilter;\nuse Zend\\ServiceManager\\ServiceLocatorInterface;\nus...
php
chosen
[ { "from": "system", "value": "Update controller to new abstract worker controller\n" }, { "from": "human", "value": "<?php\n\nnamespace SlmQueueBeanstalkd\\Controller;\n\nuse Exception;\nuse Zend\\Mvc\\Controller\\AbstractActionController;\n\n/**\n * This controller allow to execute jobs using t...
php
chosen
[ { "from": "system", "value": "Add method to clear all context cache\n" }, { "from": "human", "value": "<?php\n\nnamespace sitkoru\\contextcache;\n\nuse Psr\\Log\\LoggerInterface;\nuse sitkoru\\contextcache\\adwords\\AdWordsProvider;\nuse sitkoru\\contextcache\\common\\ICacheProvider;\nuse sitkor...
php
chosen
[ { "from": "system", "value": "Rename and move view, add config and remove HTML helpers\n" }, { "from": "human", "value": "<?php namespace Aginev\\Datagrid;\n\nuse Collective\\Html\\FormFacade;\nuse Collective\\Html\\HtmlFacade;\nuse Illuminate\\Foundation\\AliasLoader;\nuse Illuminate\\Support\\...
php
chosen
[ { "from": "system", "value": "Upgrade @method to overriden methods\n\n- This enables contextual help in older IDEs (looking at you VSCode)\n" }, { "from": "human", "value": "<?php\n\nnamespace Friendica\\Repository;\n\nuse Friendica\\BaseRepository;\nuse Friendica\\Collection;\nuse Friendica\\Mo...
php
chosen
[ { "from": "system", "value": "Use LANGUAGE config constant as a fallback\n" }, { "from": "human", "value": "<?php\nrequire_once __DIR__ . \"/Translation.class.php\";\n\n/**\n * Shorthand for Translation::translate\n *\n * @param string $message The message to translate\n *\n * @return string The...
php
chosen
[ { "from": "system", "value": "Use correct path to config\n" }, { "from": "human", "value": "<?php\n\nnamespace CedricZiel\\L5Shariff;\n\nuse Illuminate\\Support\\ServiceProvider;\n\n/**\n * Class ShariffServiceProvider\n * Registers the Heise Shariff components to your application.\n *\n * @pack...
php
chosen
[ { "from": "system", "value": "Fix set default notification settings upon registration\n" }, { "from": "human", "value": "<?php\n\nnamespace OpenDominion\\Listeners;\n\nuse OpenDominion\\Events\\UserRegisteredEvent;\nuse OpenDominion\\Helpers\\NotificationHelper;\n\nclass SetUserDefaultSettings\n...
php
chosen
[ { "from": "system", "value": "Send a message to Slack when task is completed\n" }, { "from": "human", "value": "<?php\n\nfunction slack_handle_on_object_completed() {\n\n}\n" }, { "from": "gpt", "value": "<?php\n\nfunction slack_handle_on_object_completed($object) {\n if (defined(...
php
chosen
[ { "from": "system", "value": "Add github repository to auto update" }, { "from": "human", "value": "<?php\r\n\r\n$dir = dirname( __FILE__ );\r\ninclude_once $dir . '/update.php';\r\n\r\nMBTheme_Update::getInstance( array() );\r\n" }, { "from": "gpt", "value": "<?php\r\n\r\n$dir = dir...
php
chosen
[ { "from": "system", "value": "Use call_user_func_array for older PHP functions\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of TwigView.\n *\n ** (c) 2015 Cees-Jan Kiewiet\n *\n * For the full copyright and license information, please view the LICENSE\n * file that was d...
php
chosen
[ { "from": "system", "value": "Fix typo in orm transformer\n" }, { "from": "human", "value": "<?php\n\nnamespace FOQ\\ElasticaBundle\\Doctrine\\ORM;\n\nuse FOQ\\ElasticaBundle\\Doctrine\\AbstractElasticaToModelTransformer;\nuse Elastica_Document;\nuse Doctrine\\ORM\\Query;\n\n/**\n * Maps Elastic...
php
chosen
[ { "from": "system", "value": "Feature: Support for URL hits and last hit.\n" }, { "from": "human", "value": "<?\n\nfunction tt_connect()\n{\n return Tyrant::connect('localhost', 1978);\n}\n\nfunction get_url($key)\n{\n if (!$tt){$tt = tt_connect();}\n\n $data = json_decode($tt->get($key...
php
chosen
[ { "from": "system", "value": "Correct link in backend not logged\n" }, { "from": "human", "value": "<td class=\"header_menu\">\n <div class=\"menu_top\">\n <table>\n <tr>\n <td rowspan=\"2\" style=\"height:90px\">&nbsp;</td>\n </tr>\n <tr>\n <td>\n <ul c...
php
chosen
[ { "from": "system", "value": "Send email to acadoffice when user acknowledge his AWS.\n" }, { "from": "human", "value": "<?php\ninclude_once( \"header.php\" );\ninclude_once( \"methods.php\" );\ninclude_once( 'tohtml.php' );\ninclude_once( \"check_access_permissions.php\" );\nmustHaveAnyOfTheseR...
php
chosen
[ { "from": "system", "value": "Move Set directed helpers to new Algorithm\\Directed" }, { "from": "human", "value": "<?php\n\nuse Fhaculty\\Graph\\Graph;\n\nuse Fhaculty\\Graph\\Loader\\CompleteGraph;\n\nclass CompleteGraphTest extends TestCase\n{\n public function testOne()\n {\n $l...
php
chosen
[ { "from": "system", "value": "Add method for storing translated strings\n" }, { "from": "human", "value": "<?php\n\n/**\n * This is the model for singular posts.\n */\nclass Single extends MiddleModel {\n\n /**\n * This returns the current post\n *\n * @return array|null|WP_Post\n...
php
chosen
[ { "from": "system", "value": "Allow access to the Facebook grant to be revoked\n" }, { "from": "human", "value": "<?php\n\nnamespace Stratedge\\PassportFacebook\\Console;\n\nuse Illuminate\\Console\\Command;\nuse Laravel\\Passport\\Client;\n\nclass FacebookCommand extends Command\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "Change deprecated $app->bindShared() to $app->singleton()" }, { "from": "human", "value": "<?php namespace Bosnadev\\Database;\n\nuse Bosnadev\\Database\\Connectors\\ConnectionFactory;\nuse Illuminate\\Database\\DatabaseManager;\n\n/**\n * Class DatabaseServiceProvi...
php
chosen