conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Allow route option when creating a table 19" }, { "from": "human", "value": "<script type=\"text/javascript\">\n jQuery(document).ready(function () {\n // dynamic table\n oTable = jQuery('#{{ $id }}').dataTable({\n \"bProcessing\": true,\...
php
chosen
[ { "from": "system", "value": "Add padding to email plaintext footer\n" }, { "from": "human", "value": "---------------\n\n{{#url.viewOnline}}\nTrouble viewing this email? View it online here:\n\n{{url.viewOnline}}\n{{/url.viewOnline}}\n\n{{#url.unsubscribe}}\nRather not receive this type of emai...
php
chosen
[ { "from": "system", "value": "Add fallback for older PHPUnit versions\n" }, { "from": "human", "value": "<?php /** @noinspection PhpUnhandledExceptionInspection */\n\nnamespace Amp\\Redis;\n\nuse Amp\\PHPUnit\\AsyncTestCase;\n\nclass AuthTest extends AsyncTestCase\n{\n public static function ...
php
chosen
[ { "from": "system", "value": "Update 'run tests' method to accept a single test path. Update results view to use 'test' field name (instead of 'tests').\n" }, { "from": "human", "value": "<?=$test_results; ?>\n\n<?=form_open($form_action); ?>\n\t<?php foreach ($tests AS $test): ?>\n\t<?=form_hid...
php
chosen
[ { "from": "system", "value": "Clean up post excerpt on home page.\n" }, { "from": "human", "value": "<?php\n/**\n * @package Victorian Climbing Club\n */\n?>\n\n<article id=\"post-<?php the_ID(); ?>\" <?php post_class(); ?>>\n\t<header class=\"entry-header\">\n\t\t<?php the_title( sprintf( '<h1 ...
php
chosen
[ { "from": "system", "value": "[Notifier][Slack] Remove :void from test methods\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 LI...
php
chosen
[ { "from": "system", "value": "Test suite now requires PHPUnit 3.5+, so test for it.\n\nFixes issue elazar/phergie#148.\n" }, { "from": "human", "value": "<?php\n/**\n * Phergie\n *\n * PHP version 5\n *\n * LICENSE\n *\n * This source file is subject to the new BSD license that is bundled\n * wi...
php
chosen
[ { "from": "system", "value": "Add virtual hook test case\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of CaptainHook.\n *\n * (c) Sebastian Feldmann <sf@sebastian-feldmann.info>\n *\n * For the full copyright and license information, please view the LICENSE\n * file that...
php
chosen
[ { "from": "system", "value": "III-893: Fix kansentarif class name casing\n" }, { "from": "human", "value": "<?php\n/**\n * @file\n */\n\nnamespace CultuurNet\\UDB3\\EventExport\\Format\\HTML\\Uitpas\\DistributionKey;\n\nuse CultureFeed_Uitpas_DistributionKey;\n\nclass KansenTariefForOtherCardSys...
php
chosen
[ { "from": "system", "value": "Send the latest logs by ordering logs descending\n" }, { "from": "human", "value": "<?php\n\nnamespace A3020\\Centry\\Log;\n\nuse A3020\\Centry\\Payload\\PayloadAbstract;\nuse Concrete\\Core\\Config\\Repository\\Repository;\nuse Concrete\\Core\\Database\\Connection\...
php
chosen
[ { "from": "system", "value": "Update iDeal plugin for Symfony 3" }, { "from": "human", "value": "<?php\n\nnamespace Ruudk\\Payment\\MultisafepayBundle\\Plugin;\n\nuse JMS\\Payment\\CoreBundle\\Model\\FinancialTransactionInterface;\nuse JMS\\Payment\\CoreBundle\\Model\\PaymentInstructionInterface...
php
chosen
[ { "from": "system", "value": "Update ServiceProvider & build tools\n" }, { "from": "human", "value": "<?php namespace Anwendungen\\Applications;\n\nuse ReflectionClass;\nuse Illuminate\\Foundation\\AliasLoader;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass ApplicationsServiceProvider exten...
php
chosen
[ { "from": "system", "value": "Set default date to current\n" }, { "from": "human", "value": "<?php\n\nclass Denkmal_Form_EventAdd extends CM_Form_Abstract {\n\n\tpublic function setup () {\n\t\t$this->registerField(new Denkmal_FormField_Venue('venue'));\n\t\t$this->registerField(new CM_FormField...
php
chosen
[ { "from": "system", "value": "Add showModal to notification widget\n" }, { "from": "human", "value": "<div class=\"col-lg-4 col-md-6\">\n\n\t<div class=\"panel panel-default\" id=\"notification-widget\">\n\n\t\t<div class=\"panel-heading\" data-container=\"body\">\n\n <span data-i18n=...
php
chosen
[ { "from": "system", "value": "Use is_null to check if a state isn't available.\n" }, { "from": "human", "value": "<?php \n/**\n * @version $Id: default_filter.php 1696 2011-06-10 16:00:55Z tomjanssens $\n * @category\tNooku\n * @package Nooku_Server\n * @subpackage Banners\n * @copyrigh...
php
chosen
[ { "from": "system", "value": "Update service provider for 5.3.\n" }, { "from": "human", "value": "<?php\n\nnamespace LaravelColors;\n\nuse Illuminate\\Contracts\\Events\\Dispatcher as DispatcherContract;\nuse Illuminate\\Foundation\\Support\\Providers\\EventServiceProvider as ServiceProvider;\n\...
php
chosen
[ { "from": "system", "value": "Change to all uppercase hex\n" }, { "from": "human", "value": "<?php\n\n$sitewide['title'] = 'elementary OS Freya';\n$sitewide['author'] = 'elementary LLC';\n$sitewide['description'] = 'A fast and open replacement for Windows and OS X. Pay what you want or download ...
php
chosen
[ { "from": "system", "value": "Change letter from capitalize to lowercase\n" }, { "from": "human", "value": "<?php\n\n/*\n* BlueCloud PHP MVC\n* Bluecloud is a simple PHP MVC app made using PHP\n* MIT Licensed Project\n* Copyright (c) 2017 Kel Novi\n* github.com/novhex\n*/\n\nuse Router\\Router;\...
php
chosen
[ { "from": "system", "value": "Fix double \"implements\" in TimeDatabaseTableColumn\n" }, { "from": "human", "value": "<?php\n\nnamespace wcf\\system\\database\\table\\column;\n\n/**\n * Represents a `time` database table column.\n *\n * @author Matthias Schmidt\n * @copyright 2001-2019 WoltLa...
php
chosen
[ { "from": "system", "value": "Add a slug scope for topics\n" }, { "from": "human", "value": "<?php namespace App\\Data;\n\nuse Str;\nuse Eloquent;\nuse Laracasts\\Presenter\\PresentableTrait;\nuse Illuminate\\Database\\Eloquent\\SoftDeletes;\n\nclass Topic extends Eloquent\n{\n\tuse SoftDeletes,...
php
chosen
[ { "from": "system", "value": "Test parsing of .env.example file\n" }, { "from": "human", "value": "<?php\nnamespace Tests\\Unit;\n/**\n * Dotenv Test\n * \n * @author Leonid Mamchenkov <l.mamchenkov@qobo.biz>\n */\nclass DotenvTest extends \\PHPUnit_Framework_TestCase {\n\n\t/**\n\t * Check that...
php
chosen
[ { "from": "system", "value": "Replace form type name with FQCN in getParent() methods.\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 *\n * For the ful...
php
chosen
[ { "from": "system", "value": "Correct was->were in plural version of error message\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of PhpSpec, A php toolset to drive emergent\n * design by specification.\n *\n * (c) Marcello Duarte <marcello.duarte@gmail.com>\n * (c) Konstan...
php
chosen
[ { "from": "system", "value": "Change test to note compatibility\n" }, { "from": "human", "value": "<?php\n\nclass SimplePie_First_Item_Content_Test_RSS_090_Description extends SimplePie_First_Item_Content_Test\n{\n\tfunction data()\n\t{\n\t\t$this->data = \n'<rdf:RDF xmlns:rdf=\"http://www.w3.or...
php
chosen
[ { "from": "system", "value": "Fix service provider kernel detection\n" }, { "from": "human", "value": "<?php\n\nnamespace SebastiaanLuca\\Router;\n\nuse Illuminate\\Contracts\\Http\\Kernel as AppKernel;\nuse Illuminate\\Foundation\\Support\\Providers\\RouteServiceProvider;\nuse Illuminate\\Routi...
php
chosen
[ { "from": "system", "value": "Add @methods to object doc bloc\n" }, { "from": "human", "value": "<?php\n\nnamespace Telegram\\Bot\\Objects;\n\n/**\n * Class Update\n *\n * @package Telegram\\Bot\\Objects\n */\nclass Update extends BaseObject\n{\n /**\n * @inheritdoc\n */\n public f...
php
chosen
[ { "from": "system", "value": "Add amount to payment at creation\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 * file that was distributed...
php
chosen
[ { "from": "system", "value": "Implement setter methods for optional params\n" }, { "from": "human", "value": "<?php\n\nnamespace FullyBaked\\Pslackr\\Messages;\n\nclass CustomMessage implements Message\n{\n protected $text;\n\n public function asJson()\n {\n $message = [\n ...
php
chosen
[ { "from": "system", "value": "Refactor the code a bit\n" }, { "from": "human", "value": "<?php\n\n/**\n * Returns the absolute URL of a theme asset.\n *\n * @param string $relative_url If the URL starts with `@bower/`, the prefix will be the value of\n * $GLOBALS['b...
php
chosen
[ { "from": "system", "value": "Update Swiftmailer to 3.0 as 2.x has security risks\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of CarcelUserBundle.\n *\n * Copyright (c) 2016 Damien Carcel <damien.carcel@gmail.com>\n *\n * For the full copyright and license information, p...
php
chosen
[ { "from": "system", "value": "Fix Call to undefined method DOMNodeList::getElementsByTagName()\n" }, { "from": "human", "value": "<?php\n\nnamespace Omnipay\\SecureTrading\\Message;\n\nuse DOMDocument;\n\n/**\n * ThreeDSecure Request\n *\n * @method ThreeDSecureResponse send()\n */\nclass ThreeD...
php
chosen
[ { "from": "system", "value": "[Statie] Return missing layout to file params\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n\nnamespace Symplify\\Statie\\Templating;\n\nuse Symplify\\Statie\\Configuration\\Configuration;\nuse Symplify\\Statie\\Renderable\\File\\AbstractFile;\n...
php
chosen
[ { "from": "system", "value": "Tag an image based on detected visual content which mean running a CNN on top of it" }, { "from": "human", "value": "<?php\n/*\n * PixLab PHP Client which is just a single class PHP file without any dependency that you can get from Github\n * https://github.com/symi...
php
chosen
[ { "from": "system", "value": "Load snippet only when page content not empty and clean code\n" }, { "from": "human", "value": "<article id=\"post-<?php the_ID(); ?>\" <?php post_class(); ?>>\n\t<div class=\"row\">\n\t\t<div class=\"col-md-8\">\n\t\t\t<?php\n\n\t\t\tget_template_part( SNIPPETS_DIR...
php
chosen
[ { "from": "system", "value": "Clone the parameters too since they are an object\n\nWe need to clone the parameters for this query or the parameters could change if the original query's parameters are changed.\r\nThis is how doctrine does it. \r\nhttps://github.com/doctrine/doctrine2/blob/master/lib/Doctrine...
php
chosen
[ { "from": "system", "value": "Fix: Add to assertion count from Mockery\n" }, { "from": "human", "value": "<?php declare(strict_types = 1);\n\nnamespace Churn\\Tests;\n\nuse PHPUnit\\Framework\\TestCase;\n\nabstract class BaseTestCase extends TestCase\n{\n\n}\n" }, { "from": "gpt", "v...
php
chosen
[ { "from": "system", "value": "Add featured tag to featured challenges\n" }, { "from": "human", "value": "<tr>\n\t<td>\n\t\t<a class=\"\" title=\"\" href=\"{{ route('quizzes.quiz', $challenge->id) }}\">\n\t\t\t<figure>\n\t\t\t\t<img src=\"{{ !empty($pages[$challenge->content_page]->logo) ? $pages...
php
chosen
[ { "from": "system", "value": "Add a user agent identifier to the integration test client\n" }, { "from": "human", "value": "<?php\nnamespace Aws\\Test\\Integ;\n\ntrait IntegUtils\n{\n private static function getSdk(array $args = [])\n {\n return new \\Aws\\Sdk($args + [\n ...
php
chosen
[ { "from": "system", "value": "Test setting of the configuration class in the SwarmProcess\n" }, { "from": "human", "value": "<?php\nuse Afrihost\\SwarmProcess\\SwarmProcess;\n\n/**\n * User: sarel\n * Date: 2015/12/29\n * Time: 17:51\n */\nclass SwarmProcessTest extends PHPUnit\\Framework\\TestC...
php
chosen
[ { "from": "system", "value": "Allow retrieval of the listings by the friends of the current user.\n" }, { "from": "human", "value": "<?php\nApp::uses('AppModel', 'Model');\n\n/**\n * Person model\n */\nclass Person extends AppModel\n{\n\tpublic $primaryKey = 'facebook_id';\n\n\tpublic $hasMany =...
php
chosen
[ { "from": "system", "value": "Remove redundant \"defined or exit()\" code\n" }, { "from": "human", "value": "<?php\n/***************************************************************************\n * @author Pierre-Henry Soria <ph7software@gmail.com>\n * @category PH7 Template Eng...
php
chosen
[ { "from": "system", "value": "FIX method POST on login_check\n" }, { "from": "human", "value": "<?php\nnamespace AppBundle\\Controller;\n\nuse Sensio\\Bundle\\FrameworkExtraBundle\\Configuration\\Route;\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpF...
php
chosen
[ { "from": "system", "value": "Revert deprecated function to support PHP 7.3\n" }, { "from": "human", "value": "<?php\n\nnamespace Illuminate\\Http\\Client;\n\nuse GuzzleHttp\\Psr7\\Message;\n\nclass RequestException extends HttpClientException\n{\n /**\n * The response instance.\n *\n...
php
chosen
[ { "from": "system", "value": "Add identifier relation popout to grants and projects\n" }, { "from": "human", "value": "<div class=\"related-grants-and-projects\">\n <h4>Related Grants and Projects</h4>\n <ul class=\"list-unstyled\">\n @foreach($related['grants_projects']['docs'] as ...
php
chosen
[ { "from": "system", "value": "Fix showing deleted user in forum\n\nApparently assigning default instance variable using function requires using constructor and stuff. Reverting it for now.\n" }, { "from": "human", "value": "<?php\n\n/**\n * Copyright 2015 ppy Pty. Ltd.\n *\n * This file is...
php
chosen
[ { "from": "system", "value": "Improve static analysis opportunities of Identity find().\n" }, { "from": "human", "value": "<?php\n\n/**\n * Copyright 2014 SURFnet bv\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with ...
php
chosen
[ { "from": "system", "value": "Add default config for tracing\n" }, { "from": "human", "value": "<?php\n\treturn [\n\t\t\"info\" => true,\n\t\t\"warning\" => true,\n\t\t\"error\" => true,\n\t\t\"infoDisplay\" => false,\n\t\t\"warningDisplay\" => true,\n\t\t\"errorDisplay\" => true\n\t];\n?>" },...
php
chosen
[ { "from": "system", "value": "Make sure \"yaml\" files are compatible too\n" }, { "from": "human", "value": "<?php\n\nnamespace Orbitale\\Bundle\\EasyImpressBundle\\DependencyInjection\\Compiler;\n\nuse Orbitale\\Bundle\\EasyImpressBundle\\Configuration\\ConfigProcessor;\nuse Symfony\\Component\...
php
chosen
[ { "from": "system", "value": "Add a param check to be able to boot with an old cache\n\nThe parameter is always defined in the bundle. However, in non-debug\nmode, the kernel needs to be able to boot with the old cache to clear\nthe cache, so we need the parameter check.\ncloses #260\n" }, { "from":...
php
chosen
[ { "from": "system", "value": "Add getter for roles to ensure Permissions::ROLE_EVERYONE always exists." }, { "from": "human", "value": "<?php\nnamespace Bolt\\Storage\\Entity;\n\n/**\n * Entity for User.\n */\nclass Users extends Entity\n{\n protected $id;\n protected $username;\n prote...
php
chosen
[ { "from": "system", "value": "Fix username validation lowercase only\n" }, { "from": "human", "value": "<?php\n/**\n * Created by PhpStorm.\n * User: rahman\n * Date: 11/4/14\n * Time: 5:09 AM\n */\n\nValidator::extend('must_alpha_num', function($attribute, $value, $parameters)\n{\n $ret = FA...
php
chosen
[ { "from": "system", "value": "Fix non abstract test case\n" }, { "from": "human", "value": "<?php\nnamespace Janitor\\TestCases;\n\nuse Illuminate\\Container\\Container;\nuse Janitor\\JanitorServiceProvider;\nuse PHPUnit_Framework_TestCase;\n\nclass JanitorTestCase extends PHPUnit_Framework_Test...
php
chosen
[ { "from": "system", "value": "Revert \"[from now] 2011年 3月27日 日曜日 08時04分41秒 JST\"\n\nThis reverts commit 888ad7d68908ec2651068eefbb0541b26700a52e.\n" }, { "from": "human", "value": "<?php\n//require_once 'PHPUnit/Autoload.php';\n//require_once 'PHPUnit/Framework/Assert/Functions.php';\n\nclass T...
php
chosen
[ { "from": "system", "value": "Add a addChild method to container block\n" }, { "from": "human", "value": "<?php\n\nnamespace Symfony\\Cmf\\Bundle\\BlockBundle\\Document;\n\nuse Doctrine\\ODM\\PHPCR\\Mapping\\Annotations as PHPCRODM;\nuse Doctrine\\ODM\\PHPCR\\ChildrenCollection;\n\n/**\n * Block...
php
chosen
[ { "from": "system", "value": "Add application/javascript header to prevent MIME type checking issue\n" }, { "from": "human", "value": "<?php\n\nuse Movim\\Controller\\Ajax;\n\nclass System extends \\Movim\\Widget\\Base\n{\n function load()\n {\n }\n\n function display()\n {\n ...
php
chosen
[ { "from": "system", "value": "Change a position of the entry meta template\n" }, { "from": "human", "value": "<article <?php post_class(); ?>>\n <header>\n <h2 class=\"entry-title\"><a href=\"<?php the_permalink(); ?>\"><?php the_title(); ?></a></h2>\n <?php get_template_part('templates/e...
php
chosen
[ { "from": "system", "value": "Test sur les exceptions réussi\n" }, { "from": "human", "value": "<?php\n// src/Acme/TestBundle/Controller/TestController.php\n\nnamespace Acme\\TestBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\HttpFou...
php
chosen
[ { "from": "system", "value": "Update Google Place ID to grab from new meta box rather than title.\n\n" }, { "from": "human", "value": "<?php\n/**\n * Single Re Google Review\n *\n * @package Google Review\n */\n\n?>\n<?php get_header(); ?>\n<div class=\"open-review\">\n\t<h2>Use <span>Google</sp...
php
chosen
[ { "from": "system", "value": "Remove unused method from test double\n" }, { "from": "human", "value": "<?php\n\nnamespace Bauhaus\\DI;\n\nclass FakeService\n{\n public function pokemon()\n {\n return 'Charmander';\n }\n\n public function pirate()\n {\n return 'Barboss...
php
chosen
[ { "from": "system", "value": "Use CSS classes and hide line numbers for code blocks in kramdown filter\n" }, { "from": "human", "value": "<?php\n\nnamespace Horne\\OutputFilter;\n\nuse Horne\\MetaBag;\nuse Horne\\OutputFilter\\AbstractOutputFilter;\n\nclass KramdownOutputFilter extends AbstractO...
php
chosen
[ { "from": "system", "value": "Return null if nothing found in case if find()\n" }, { "from": "human", "value": "<?php namespace Picqer\\Carriers\\SendCloud\\Query;\n\ntrait FindOne {\n\n public function find($id)\n {\n $result = $this->connection()->get($this->url . '/' . urlencode(...
php
chosen
[ { "from": "system", "value": "Set name of method to render templates\n" }, { "from": "human", "value": "<?php\n namespace MVC\\Controller;\n \n use Attw\\Controller\\AbstractController;\n\n class Index extends AbstractController{\n public function index(){\n\t\t$vars = [ 'mess...
php
chosen
[ { "from": "system", "value": "Add all available plugins by default\n" }, { "from": "human", "value": "<?php\n\nnamespace WyriHaximus\\Pimple;\n\nuse League\\Flysystem\\Filesystem;\n\ntrait FlysystemServiceProviderTrait\n{\n /**\n * Register this service provider with the Application.\n ...
php
chosen
[ { "from": "system", "value": "Fix repository interface generator bug that ignores their namespace\n" }, { "from": "human", "value": "<?php\n\nnamespace Graze\\Dal\\Generator;\n\nclass RepositoryGenerator extends AbstractClassGenerator implements GeneratorInterface\n{\n /**\n * @var array\...
php
chosen
[ { "from": "system", "value": "Correct the names of the default modules\n" }, { "from": "human", "value": "<?php\n\nnamespace duncan3dc\\MetaAudio;\n\nuse duncan3dc\\MetaAudio\\Modules\\ModuleInterface;\n\n/**\n * Manage which modules are active and their priority sequence.\n */\ntrait ModuleMana...
php
chosen
[ { "from": "system", "value": "Fix access level fatal error.\n" }, { "from": "human", "value": "<?php\n\nclass MenuAdmin extends ModelAdmin {\n\t\n\tprivate static $url_segment = 'menus';\n private static $menu_title = 'Menus';\n private static $managed_models = array('Menu');\n\t\n\tprivat...
php
chosen
[ { "from": "system", "value": "Fix cache duration to work on 32-bit systems\n\nFixes #107\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of the GeocoderLaravel library.\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed...
php
chosen
[ { "from": "system", "value": "Add shadow to header on all pages.\n" }, { "from": "human", "value": "<?php get_template_part('templates/head'); ?>\n<body <?php body_class(); ?>>\n\n <!--[if lt IE 7]><div class=\"alert\">Your browser is <em>ancient!</em> <a href=\"http://browsehappy.com/\">Upgrad...
php
chosen
[ { "from": "system", "value": "Fix test failing on PHP 5.4 because of ::class keyword name resolution\n" }, { "from": "human", "value": "<?php\n\nnamespace Ramsey\\Uuid\\Test\\Generator;\n\nuse Ramsey\\Uuid\\Test\\TestCase;\nuse Ramsey\\Uuid\\Generator\\SodiumRandomGenerator;\n\nclass SodiumRando...
php
chosen
[ { "from": "system", "value": "Replace $this->container->get() with $this->get() in controllers extending abstract controller.\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://w...
php
chosen
[ { "from": "system", "value": "Update form_results link in submission email template\n\ngit-svn-id: http://svn.concrete5.org/svn/concrete5@476 b0551a0c-1e16-4222-a7d5-975db1aca215\n\nFormer-commit-id: 239b2c07b4639a4e2801f0a312baee64b0316781" }, { "from": "human", "value": "<? \ndefined('C5_EXECU...
php
chosen
[ { "from": "system", "value": "Return IDs if sent the object\n" }, { "from": "human", "value": "<?php namespace Anomaly\\RelationshipFieldType;\n\nuse Anomaly\\Streams\\Platform\\Addon\\FieldType\\FieldTypeModifier;\nuse Anomaly\\Streams\\Platform\\Model\\EloquentModel;\n\n/**\n * Class Relations...
php
chosen
[ { "from": "system", "value": "Use \\Page instead of Concrete\\Core\\Page\\Page\n\n\nFormer-commit-id: 5f27527c65b9ed3815ca1a37eef8d3e6dccee225\nFormer-commit-id: 5b239b1afa020bcaebcb90fa58cc461a91098c82" }, { "from": "human", "value": "<?php\n\nnamespace Concrete\\Core\\Page\\Type\\Composer\\Con...
php
chosen
[ { "from": "system", "value": "Fix content attribute decoding into an object\n" }, { "from": "human", "value": "<?php namespace Flarum\\Core\\Models;\n\nabstract class ActivityPost extends Post implements MergeableInterface\n{\n use MergeableTrait;\n\n /**\n * Unserialize the content at...
php
chosen
[ { "from": "system", "value": "Add some filters for more compatibility with Jekyll\n" }, { "from": "human", "value": "<?php\n/**\n * SiteFilter.php\n *\n * Created By: jonathan\n * Date: 28/09/2017\n * Time: 13:33\n */\n\nnamespace Stati\\Liquid\\Filter;\n\nclass SiteFilter\n{\n /**\n * Es...
php
chosen
[ { "from": "system", "value": "Use store info template part on single store." }, { "from": "human", "value": "<?php get_header(); ?>\n<div class=\"row\">\n\t<div class=\"small-12 large-8 columns\" role=\"main\">\n\n\t<?php do_action('brewtah_before_content'); ?>\n\n\t<?php while (have_posts()) : ...
php
chosen
[ { "from": "system", "value": "Change default version to \"dev-build\"\n" }, { "from": "human", "value": "<?php\n\nreturn [\n\n /**\n * Displaying project name.\n */\n 'name' => 'Deplink: Dependency Manager for C/C++',\n\n /**\n * CLI version using semantic versioning.\n ...
php
chosen
[ { "from": "system", "value": "Set return with config SentinelBootstraper instance\n" }, { "from": "human", "value": "<?php\n\nif (!function_exists('auth')) {\n function auth()\n {\n return sentinel();\n }\n}\n\nif (!function_exists('sentinel')) {\n function sentinel()\n {\n...
php
chosen
[ { "from": "system", "value": "Update the server-side scripting example to use the current Redis unstable.\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of the Predis package.\n *\n * (c) Daniele Alessandri <suppakilla@gmail.com>\n *\n * For the full copyright and license i...
php
chosen
[ { "from": "system", "value": "Update site URL; update documentation; simplify getSiteUniqueKey()\n" }, { "from": "human", "value": "<?php\n/**\n * Singleton class to manage Sutra-specific cache.\n *\n * @copyright Copyright (c) 2011 Poluza.\n * @author Andrew Udvare [au] <andrew@poluza.com>\n * ...
php
chosen
[ { "from": "system", "value": "Update log to accomidate for web output\n\nIf running on a non-CLI system, print out <br> instead of \\n\n" }, { "from": "human", "value": "<?php\n\nclass Log\n{\n const LOG_ERROR = 'error';\n const LOG_DEBUG = 'debug';\n \n public static function add($l...
php
chosen
[ { "from": "system", "value": "Remove abstract from Koi class\n" }, { "from": "human", "value": "<?php defined('SYSPATH') OR die('No direct script access.');\n\nabstract class Koi extends Kohana_Koi {\n\t// @see Kohana_Koi\n}" }, { "from": "gpt", "value": "<?php defined('SYSPATH') OR ...
php
chosen
[ { "from": "system", "value": "Remove self (not in class scope)\n" }, { "from": "human", "value": "#!/usr/bin/env php\n<?php\n\n\n/*\n * This file is part of the Certificationy CLI application.\n *\n * (c) Vincent Composieux <vincent.composieux@gmail.com>\n *\n * For the full copyright and licens...
php
chosen
[ { "from": "system", "value": "Make path and description fields text fields instead of string fields\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass Creat...
php
chosen
[ { "from": "system", "value": "Add correct project id to projects details webservice. The test fails\n" }, { "from": "human", "value": "<?php\n\nnamespace fennecweb\\ajax\\details;\n\nuse \\PDO as PDO;\n\n/**\n * Web Service.\n * Returns a project according to the project ID.\n */\nclass Projects...
php
chosen
[ { "from": "system", "value": "Write csv line even if msgstr is empty\n" }, { "from": "human", "value": "<?\n\n$file = fopen($argv[1], 'r');\n\n$msgid = false;\n$msgstr = false;\n\nwhile( ($line = fgets($file)) ) {\n \n if(preg_match('/msgid\\s\"(.*)\"/U', $line, $matches)) {\n $msgid ...
php
chosen
[ { "from": "system", "value": "Update page title to match others.\n" }, { "from": "human", "value": "<?php\n include '_templates/sitewide.php';\n $page['name'] = '403';\n $page['title'] = 'Forbidden &sdot; elementary';\n include $template['header'];\n?>\n\n<script>\n ga('send', 'ev...
php
chosen
[ { "from": "system", "value": "Use new user info endpoint.\n" }, { "from": "human", "value": "<?php\n\n/**\n * @file\n * Northstar OpenID Connect client.\n */\n\nclass OpenIDConnectClientNorthstar extends OpenIDConnectClientBase {\n\n /**\n * Overrides OpenIDConnectClientBase::settingsForm().\...
php
chosen
[ { "from": "system", "value": "Update comments & use default output format\n" }, { "from": "human", "value": "<?php\n\nnamespace PhpTabs\\Component;\n\nuse Exception;\n\nuse PhpTabs\\Component\\Tablature;\nuse PhpTabs\\Component\\Dumper\\DumperBase;\nuse PhpTabs\\Component\\Serializer\\Text;\nuse...
php
chosen
[ { "from": "system", "value": "Update broadcast command to use the user's own channel instead of the global channel due to an over whelming number of notifications\n" }, { "from": "human", "value": "<?php\r\n\r\nnamespace Kregel\\Radio\\Commands;\r\n\r\nuse App\\Models\\User;\r\nuse Doctrine\\Ins...
php
chosen
[ { "from": "system", "value": "Use exposed enhance.ctm value instead of repeating the ctm check.\n" }, { "from": "human", "value": "<?php ///////////////////////////////////////////////////////\n// ----------------------------------------------------------\n// SNIPPET\n// ------------------------...
php
chosen
[ { "from": "system", "value": "Simplify usage of tags with name only\n" }, { "from": "human", "value": "<?php declare(strict_types = 1);\n\nnamespace Apitte\\Core\\Annotation\\Controller;\n\nuse Doctrine\\Common\\Annotations\\Annotation\\Target;\nuse Doctrine\\Common\\Annotations\\AnnotationExcep...
php
chosen
[ { "from": "system", "value": "Fix a SQL error in email validation\n" }, { "from": "human", "value": "<?php\n\nuse FelixOnline\\Exceptions;\n\nclass ValidationController extends BaseController\n{\n\tfunction GET($matches)\n\t{\n\t\ttry {\n\t\t\t$code = \\FelixOnline\\Core\\BaseManager::build('Fel...
php
chosen
[ { "from": "system", "value": ":white_check_mark: Update the CanBuildBaseString test trait.\n" }, { "from": "human", "value": "<?php\n\nuse PHPUnit\\Framework\\TestCase;\nuse Risan\\OAuth1\\Signature\\CanBuildBaseString;\nuse Risan\\OAuth1\\Signature\\BaseStringBuilderInterface;\n\nclass CanBuild...
php
chosen
[ { "from": "system", "value": "Update redirect URI for custom provider.\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Seeder;\nuse Northstar\\Models\\Client;\nuse Northstar\\Auth\\Scope;\n\nclass ClientTableSeeder extends Seeder\n{\n /**\n * Run the database seeds.\...
php
chosen
[ { "from": "system", "value": "Add missing upstream bad-request error code\n" }, { "from": "human", "value": "<?php\n/*\n * For the full copyright and license information, please view the LICENSE\n * file that was distributed with this source code.\n */\n\nnamespace Nietonfir\\Google\\ReCaptcha\\...
php
chosen
[ { "from": "system", "value": "Update composer when pulling in a new version\n" }, { "from": "human", "value": "<?php\n// Copyright 2015 Las Venturas Playground. All rights reserved.\n// Use of this source code is governed by the MIT license, a copy of which can\n// be found in the LICENSE file.\...
php
chosen
[ { "from": "system", "value": "Make SiteComment review actions the same as the actions displayed on the comment index.\n\nsvn commit r69356\n" }, { "from": "human", "value": "<?php\n\nrequire_once 'Admin/pages/AdminApproval.php';\nrequire_once 'Site/dataobjects/SiteComment.php';\n\n/**\n * Abstra...
php
chosen
[ { "from": "system", "value": "Remove deprecated calls to prepare for 3.0\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of the Clastic package.\n *\n * (c) Dries De Peuter <dries@nousefreak.be>\n * For the full copyright and license information, please view the LICENSE\n *...
php
chosen
[ { "from": "system", "value": "Set curl ssl verify to false.\n" }, { "from": "human", "value": "<?php\n\nnamespace Yusef\\Channels;\n\nuse GuzzleHttp\\Client;\nuse Illuminate\\Notifications\\Notification;\n\n/**\n * Class FirebaseChannel\n * @package Yusef\\Channels\n */\nclass FirebaseChannel\n{...
php
chosen