conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Allow lang to be omitted from post\n" }, { "from": "human", "value": "<?php\n\nuse Phalcon\\Text;\n\nclass NewController extends \\Phalcon\\Mvc\\Controller\n{\n public function indexAction()\n {\n // No view needed since this is all backend stuff.\n ...
php
chosen
[ { "from": "system", "value": "Add new page for register to session cleanup.\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of the Stippers project (available here: https://github.com/Stannieman/stippers/).\n * The license and all terms en conditions that apply to Stippers ...
php
chosen
[ { "from": "system", "value": "Revert use rememberToken() because not possible to chain the return value at the moment.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nus...
php
chosen
[ { "from": "system", "value": "Remove duplicate code in the password element\n" }, { "from": "human", "value": "<?php\n/**\n * html-form-validator (https://github.com/xtreamwayz/html-form-validator)\n *\n * @see https://github.com/xtreamwayz/html-form-validator for the canonical source repo...
php
chosen
[ { "from": "system", "value": "Change directory check to prevent PHP warning\n" }, { "from": "human", "value": "<?php namespace NZTim\\Logger\\Handlers;\n\nuse NZTim\\Logger\\Entry;\nuse Monolog\\Logger as MonologLogger;\nuse Monolog\\Handler\\StreamHandler;\n\nclass FileHandler implements Handle...
php
chosen
[ { "from": "system", "value": "Store the fields in array\n\n" }, { "from": "human", "value": "<?php\ndefined('BASEPATH') OR exit('No direct script access allowed');\n\nclass User_model extends CI_Model {\n\n\tpublic function __construct() {\n\t\tparent::__construct();\n\t}\n\n\t// Return user cre...
php
chosen
[ { "from": "system", "value": "Remove PHP 8 only syntax\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace DiContainerBenchmarks\\TestSuite;\n\nfinal class TestSuites\n{\n public static function getTestSuite(int $number): ?TestSuiteInterface\n {\n retur...
php
chosen
[ { "from": "system", "value": "Implement destroy function for category destroy\n" }, { "from": "human", "value": "@if ((int) count($categories) === 0)\n <div class=\"alert alert-info\" role=\"alert\">\n <strong><span class=\"fa fa-info-circle\"></span> Info:</strong>\n Er zijn ge...
php
chosen
[ { "from": "system", "value": "Fix `migrate:reset` args as it doesn't accept --step\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Cortex\\Auth\\Console\\Commands;\n\nuse Illuminate\\Console\\Command;\n\nclass RollbackCommand extends Command\n{\n /**\n * ...
php
chosen
[ { "from": "system", "value": "Add ssl random bytes generator\n" }, { "from": "human", "value": "<?php\n/**\n * Class Csrf\n *\n * @package Faulancer\\Security\n * @author Florian Knapp <office@florianknapp.de>\n */\nnamespace Faulancer\\Security;\n\nuse Faulancer\\Session\\SessionManager;\n\n/**...
php
chosen
[ { "from": "system", "value": "Remove reference to Spanish document ID in pay later\n" }, { "from": "human", "value": "<?php\n\nif ( ! defined( 'ABSPATH' ) ) {\n\texit;\n}\n\n/**\n *\n * @var WC_Aplazame $aplazame\n */\nglobal $aplazame;\nif ( ! $aplazame->enabled ) {\n\treturn;\n}\n\n/**\n *\n *...
php
chosen
[ { "from": "system", "value": "Add X-Frame-Options header, requires review\n" }, { "from": "human", "value": "<?php\n\tclass Controller {\n function view($file,$data=false){\n\t\t\trequire Views_DIR.$file.'.php';\n }\n\t}\n?>" }, { "from": "gpt", "value": "<?php\n\tclass...
php
chosen
[ { "from": "system", "value": "[+] Add return_url for logout action\n" }, { "from": "human", "value": "<?php\n\nnamespace Armd\\UserBundle\\Security;\n\nuse Symfony\\Component\\Security\\Http\\Logout\\DefaultLogoutSuccessHandler;\nuse Symfony\\Component\\DependencyInjection\\ContainerAwareInterfa...
php
chosen
[ { "from": "system", "value": "[MediaBundle] Remove non working method which causes issues\n" }, { "from": "human", "value": "<?php\n\nnamespace Kunstmaan\\MediaBundle\\Repository;\n\nuse Doctrine\\ORM\\EntityNotFoundException;\nuse Doctrine\\ORM\\EntityRepository;\nuse Kunstmaan\\MediaBundle\\En...
php
chosen
[ { "from": "system", "value": "Add check for used invites\n" }, { "from": "human", "value": "<?php\nnamespace mpcmf\\modules\\authex\\controllers;\n\nuse mpcmf\\modules\\authex\\mappers\\inviteMapper;\nuse mpcmf\\modules\\moduleBase\\controllers\\controllerBase;\nuse mpcmf\\modules\\moduleBase\\e...
php
chosen
[ { "from": "system", "value": "Fix ambiguous URI parsing in Youtube Remarkup rule\n\nSummary:\nFixes T12867. Also:\n\n - Simplify the code a little.\n - Stop mutating this on text/mobile -- there's no inherent value in the \"youtu.be\" link so I think this just changes the text the user wrote unnecessarily...
php
chosen
[ { "from": "system", "value": "Comment as to why there is a test for an interface\n" }, { "from": "human", "value": "<?php\n\nnamespace com\\xcitestudios\\Generic\\Test\\Data\\Manipulation\\Interfaces;\n\nclass SerializationInterfaceTest extends \\PHPUnit_Framework_TestCase\n{\n public functio...
php
chosen
[ { "from": "system", "value": "Add curly brackets for better readability\n" }, { "from": "human", "value": "<?php\n/**\n * We made this code.\n * By pH7 (Pierre-Henry SORIA).\n */\n\nnamespace PFBC\\Validation;\n\nuse PH7\\Framework\\Mvc\\Model\\DbConfig;\n\nclass Password extends \\PFBC\\Validat...
php
chosen
[ { "from": "system", "value": "Use namespace and add meta()\n" }, { "from": "human", "value": "<?php\r\n\r\ninterface IPost\r\n{\r\n public function link(): string;\r\n}\r\n\r\n/**\r\n * Class Post\r\n * The Post Model\r\n */\r\nclass Post extends Volcano implements IPost\r\n{\r\n public fu...
php
chosen
[ { "from": "system", "value": "Add compatibility with Magento 2.2" }, { "from": "human", "value": "<?php\n\nnamespace OuterEdge\\Base\\Plugin;\n\nuse Closure;\nuse Magento\\Framework\\App\\FrontController;\nuse Magento\\Framework\\App\\RequestInterface;\nuse Magento\\Framework\\Exception\\Localiz...
php
chosen
[ { "from": "system", "value": "Remove superflous admin section registration.\n\nThis removes the registerAdmin() call in the App initialization. It is\nnot necessary as we already declared the admin class in the\nappinfo/info.xml. Leaving it there causes the settings to appear twice.\n\nThis should finally f...
php
chosen
[ { "from": "system", "value": "feat(shop): Update Interface to Category Index page\n\nUpdate Interface to Category Index page\n\nsee #298\n" }, { "from": "human", "value": "@extends('layouts.admin')\n\n@section('content')\n<div class=\"container\">\n <div class=\"row\">\n <div class=\"c...
php
chosen
[ { "from": "system", "value": "Make the chart bigger and add hook for colours\n" }, { "from": "human", "value": "<!-- resources/views/dashboard/survey_graph.blade.php -->\n@extends('layouts.app')\n@section('content')\n <h2>Survey Count Graphs</h2>\n {{--\n {!! Charts::assets(['google']) !!}\n ...
php
chosen
[ { "from": "system", "value": "[Core] Change ``UnitPercentageDiscountAction`` to count discount on unit\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 th...
php
chosen
[ { "from": "system", "value": "Fix SQL for team filter\n" }, { "from": "human", "value": "<?php\n\nnamespace App\\Nova\\Filters;\n\nuse App\\Team;\nuse Illuminate\\Http\\Request;\nuse Laravel\\Nova\\Filters\\Filter;\n\nclass UserTeam extends Filter\n{\n /**\n * The filter's component.\n ...
php
chosen
[ { "from": "system", "value": "Add an empty array as default to prevent breakage when no filters are passed\n" }, { "from": "human", "value": "<?php\nnamespace CrudJsonApi\\Listener;\n\nuse Cake\\Event\\Event;\nuse Cake\\ORM\\Table;\nuse Crud\\Listener\\BaseListener;\nuse RuntimeException;\n\ncla...
php
chosen
[ { "from": "system", "value": "[WebProfilerBundle] Fix tests about web profiler icons\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 vie...
php
chosen
[ { "from": "system", "value": "Revert asset sort priority so higher numbers have higher priority\n" }, { "from": "human", "value": "<?php\n\nnamespace Bolt\\Asset;\n\n/**\n * Trait for handling queue priority sorting.\n *\n * @author Gawain Lynch <gawain.lynch@gmail.com>\n */\ntrait AssetSortTrai...
php
chosen
[ { "from": "system", "value": "Use different type hint here.\n" }, { "from": "human", "value": "<?php\nnamespace ParagonIE\\Halite\\Asymmetric;\n\nuse ParagonIE\\Halite\\Alerts\\{\n CannotPerformOperation,\n InvalidType\n};\nuse ParagonIE\\Halite\\HiddenString;\nuse ParagonIE\\Halite\\Key;\...
php
chosen
[ { "from": "system", "value": "Add cDatePublic to indexed search result constructor\n\n\nFormer-commit-id: 5c4c6da19612c683470a11ed997e515bed375b7f" }, { "from": "human", "value": "<?\ndefined('C5_EXECUTE') or die(\"Access Denied.\");\nclass Concrete5_Library_IndexedSearchResult {\n\n\tpublic fun...
php
chosen
[ { "from": "system", "value": "Fix broken Yaml fixture dependences parsing\n" }, { "from": "human", "value": "<?php \n\nnamespace MageTest\\Manager\\Attributes\\Provider\\Loader;\n\n\nuse Symfony\\Component\\Yaml\\Yaml;\n\n/**\n * Class YmlLoader\n *\n * @package MageTest\\Manager\\Attributes\\Pr...
php
chosen
[ { "from": "system", "value": "Check if every param is set" }, { "from": "human", "value": "<div class=\"backdrop_box <?php echo isset($medium_backdrop) && $medium_backdrop == 1 ? 'medium' : 'large'; ?>\" id=\"reportissue_container\">\n <div class=\"backdrop_detail_header\">\n <span><?p...
php
chosen
[ { "from": "system", "value": "Convert Trans::trans() to use __() instead" }, { "from": "human", "value": "<?php\n\nnamespace Bolt\\Nut;\n\nuse Symfony\\Component\\Console\\Input\\InputArgument;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\Out...
php
chosen
[ { "from": "system", "value": "Support for loading a config file into a specific key\n" }, { "from": "human", "value": "<?php\n/*\n * This file is part of Yolk - Gamer Network's PHP Framework.\n *\n * Copyright (c) 2015 Gamer Network Ltd.\n * \n * Distributed under the MIT License, a copy of whic...
php
chosen
[ { "from": "system", "value": "Fix issue with WP loading wrong index.php\n" }, { "from": "human", "value": "<?php\n\n/**\n * Do not edit anything in this file unless you know what you're doing\n */\n\n/**\n * Here's what's happening with these hooks:\n * 1. WordPress detects theme in themes/sage\...
php
chosen
[ { "from": "system", "value": "Adjust comments on ConditionalTagCheck to match actual functionality.\n\nThe check returns false, if any of it's tags are true, not vise versa.\n" }, { "from": "human", "value": "<?php\n\nnamespace Roots\\Sage;\n\n/**\n * Utility class which takes an array of condit...
php
chosen
[ { "from": "system", "value": "Walker: Fix character encode to utf8\n" }, { "from": "human", "value": "<?php\nclass Secondary_Walker extends Walker_Nav_Menu{\n // Tell Walker where to inherit it's parent and id values\n var $db_fields = array(\n 'parent' => 'menu_item_parent', \n ...
php
chosen
[ { "from": "system", "value": "Add method to ApplicantsController to send applicants a notification email when their status changed.\n" }, { "from": "human", "value": "<?php\n/**\n * Base controller for all authenticated applicants controllers\n * @author Jon Johnson <jon.johnson@ucsf.edu>\n * @p...
php
chosen
[ { "from": "system", "value": "BB-6622: Create PropertyAccess data provider\n- cs fix\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\LayoutBundle\\Tests\\Unit\\Layout\\DataProvider;\n\nuse Oro\\Bundle\\LayoutBundle\\Layout\\DataProvider\\PropertyAccessDataProvider;\nuse Symfon...
php
chosen
[ { "from": "system", "value": "Remove unseless title/wrong English, etc\n" }, { "from": "human", "value": "<?php\n/**\n * @author Pierre-Henry Soria <ph7software@gmail.com>\n * @copyright (c) 2012-2016, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Public L...
php
chosen
[ { "from": "system", "value": "Add \\Traversable typehint to phpdoc\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 LICENSE\n * ...
php
chosen
[ { "from": "system", "value": "Add code in order to get the current user\n" }, { "from": "human", "value": "<?php\n\nnamespace AppBundle\\Controller;\n\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\nuse Symfony\\Component\\Config\\Definition\\Exception\\Exception;\nuse Symfony\\C...
php
chosen
[ { "from": "system", "value": "Fix disabling KNP translatable event subscriber compiler pass.\n" }, { "from": "human", "value": "<?php declare(strict_types=1);\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2017-2019, Darvin Studio\n * @link https://www....
php
chosen
[ { "from": "system", "value": "FIX: Use new resource loading syntax for javascript\n\nSilverStripe 4 vendormodule types make use of an 'expose' composer\ndirective to allow assets they provide to be accessed by a web request.\nPreviously the javascript for the iFrame resizing business tried to load\nfrom a s...
php
chosen
[ { "from": "system", "value": "Remove RSS and icon links in head.\n" }, { "from": "human", "value": "<!DOCTYPE html>\n<html <?php language_attributes(); ?>>\n <head>\n <link href=\"http://gmpg.org/xfn/11\" rel=\"profile\">\n <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <m...
php
chosen
[ { "from": "system", "value": "Fix threadmark slim search results\n" }, { "from": "human", "value": "<?php\n\nclass SV_OptimizedListQueries_XenForo_Model_Post extends XFCP_SV_OptimizedListQueries_XenForo_Model_Post\n{\n public function preparePostJoinOptions(array $fetchOptions)\n {\n ...
php
chosen
[ { "from": "system", "value": "TASK: Add case for `null|...` type" }, { "from": "human", "value": "<?php\nnamespace Neos\\Flow\\Tests\\Functional\\Reflection\\Fixtures\\Model;\n\n/*\n * This file is part of the Neos.Flow package.\n *\n * (c) Contributors of the Neos Project - www.neos.io\n *\n * ...
php
chosen
[ { "from": "system", "value": "Add content negotiator for ajax\n" }, { "from": "human", "value": "<?php\n\nnamespace haqqi\\storm\\controllers;\n\nuse haqqi\\storm\\Storm;\nuse yii\\web\\Controller;\n\n/**\n * Class StormController\n *\n * Main controller that implements the layout of Storm Templ...
php
chosen
[ { "from": "system", "value": "Add fancy button on navbar\n" }, { "from": "human", "value": "<nav class=\"navbar navbar-expand navbar-dark bg-dark\">\n <a class=\"navbar-brand\" href=\"{{ route(\"home\") }}\">WDI Paste</a>\n <button class=\"navbar-toggler\" aria-expanded=\"false\" aria-cont...
php
chosen
[ { "from": "system", "value": "Remove unused Trending Hashtag placeholder\n" }, { "from": "human", "value": "@if ($trendingHashtags)\n <div class=\"bg-white p-3 mb-3\">\n <h5>United States trends</h5>\n <ul class=\"list-unstyled mb-0\">\n <li class=\"mb-2\">\n ...
php
chosen
[ { "from": "system", "value": "Update CSP report to try and capture offending page\n" }, { "from": "human", "value": "<?php\ntry {\n // Send `204 No Content` status code\n http_response_code(204);\n\n // Get the raw POST data\n $data = file_get_contents('php://input');\n\n // Only ...
php
chosen
[ { "from": "system", "value": "Fix for non-strict token check\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Authentication Filters\n|--------------------------------------------------------------------------\n|\n| Th...
php
chosen
[ { "from": "system", "value": "BB-7487: Add Design section to edit product page\n- added “pageTemplate” Entity fallback field to product\n- added “Design” section\n- added drop-down to set product pageTemplate to product edit page at admin section\n- added pageTemplate to context in Frontend Product View pag...
php
chosen
[ { "from": "system", "value": "Disable parameters for abort actions" }, { "from": "human", "value": "<?php\n/**\n * @package plugins.businessProcessNotification\n * @subpackage model\n */\nclass BusinessProcessStartNotificationTemplate extends BusinessProcessNotificationTemplate\n{\n\tpublic func...
php
chosen
[ { "from": "system", "value": "Use raw output for alert message (so that quotes are not escaped).\n" }, { "from": "human", "value": "</div>\n<!-- end forum container -->\n\n@if (isset($message))\n <script type=\"text/javascript\">\n jQuery(function($) {\n var message = {{ jso...
php
chosen
[ { "from": "system", "value": "Add IP address to CSP alerts. \n\nI hope you've set up this properly for CloudFlare Kashike" }, { "from": "human", "value": "<?php\n\nnamespace Korobi\\WebBundle\\Controller;\n\nuse Korobi\\WebBundle\\Util\\Akio;\nuse Symfony\\Component\\HttpFoundation\\JsonResponse...
php
chosen
[ { "from": "system", "value": "Fix return type in sitemap object type interface\n" }, { "from": "human", "value": "<?php\nnamespace wcf\\system\\sitemap\\object;\nuse wcf\\data\\DatabaseObject;\n\n/**\n * Interface for sitemap objects.\n * \n * @author\tJoshua Ruesweg\n * @copyright\t2001-2017 Wo...
php
chosen
[ { "from": "system", "value": "Switch to singleton method for Laravel 5.2." }, { "from": "human", "value": "<?php\n\nnamespace League\\ColorExtractor\\Laravel;\n\nuse Illuminate\\Support\\ServiceProvider;\nuse League\\ColorExtractor\\Client;\n\n/**\n * @author Antoine Corcy <contact@sbin.dk>\n */...
php
chosen
[ { "from": "system", "value": "Add some docs to register_hooks\n" }, { "from": "human", "value": "<?php\n\n\nclass WPMessagePresenter implements MessagePresenter {\n\n\t/**\n\t * @var string[]\n\t */\n\tprotected $messages;\n\n\tpublic function register_hooks() {\n\t\tadd_action( 'admin_notices',...
php
chosen
[ { "from": "system", "value": "Fix type hint in neon loader trait\n" }, { "from": "human", "value": "<?php\n\n/*\n * This is part of the symfonette/neon-integration package.\n *\n * (c) Martin Hasoň <martin.hason@gmail.com>\n * (c) Webuni s.r.o. <info@webuni.cz>\n *\n * For the full copyright and...
php
chosen
[ { "from": "system", "value": "Delete the unzipped cache file\n" }, { "from": "human", "value": "<?php\n/**\n * Spigot Timings Parser\n *\n * Written by Aikar <aikar@aikar.co>\n *\n * @license MIT\n */\n\nclass Cache {\n\tprivate static $base = '/tmp/timings_';\n\n\tpublic static function get($ke...
php
chosen
[ { "from": "system", "value": "Refactoring: Move code into function for better readability\n" }, { "from": "human", "value": "<?php\n/**\n * @title Birthday Cron Class\n *\n * @author Pierre-Henry Soria <ph7software@gmail.com>\n * @copyright (c) 2013-2018, Pierre-Henry...
php
chosen
[ { "from": "system", "value": "Remove glide, she doesn't even go here\n" }, { "from": "human", "value": "<?php\n\nnamespace Northstar\\Services;\n\nuse DoSomething\\Gateway\\Common\\RestApiClient;\n\nclass Fastly extends RestApiClient\n{\n /**\n * Create a new Fastly API client.\n */\n...
php
chosen
[ { "from": "system", "value": "Bug: Edit ticket attachment and show changes before update\n" }, { "from": "human", "value": "@section('content')\n<div class=\"modal fade\" id=\"modal-attachment-edit\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"modal-attachment-edit-Label\">\n <div class...
php
chosen
[ { "from": "system", "value": "Convert plugin to use Symfony events\n" }, { "from": "human", "value": "<?php\nnamespace Grav\\Plugin;\n\nuse Grav\\Common\\Page\\Collection;\nuse Grav\\Common\\Plugin;\nuse Grav\\Common\\Registry;\nuse Grav\\Common\\Uri;\nuse Grav\\Common\\Taxonomy;\n\nclass Random...
php
chosen
[ { "from": "system", "value": "Add redirection option to swiftmailer config\n" }, { "from": "human", "value": "<?php\n\nnamespace VGMdb\\Component\\Swiftmailer;\n\nuse VGMdb\\Component\\Swiftmailer\\EventListener\\EmailSenderListener;\nuse Silex\\Application;\nuse Silex\\Provider\\SwiftmailerServ...
php
chosen
[ { "from": "system", "value": "Change column type in munkireport migration\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Capsule\\Manager as Capsule;\n\nclass Munkireport extend...
php
chosen
[ { "from": "system", "value": "Revert addition of docblock to test asset\n\n- Broke test, as test was not expecting/generating docblock\n" }, { "from": "human", "value": "<?php\n/**\n * Zend Framework (http://framework.zend.com/)\n *\n * @link http://github.com/zendframework/zf2 for the cano...
php
chosen
[ { "from": "system", "value": "Move the notification on the about page below the text so that when the page loads, the text gets loaded first, then the notification content and then Vue renders it as a notification\n" }, { "from": "human", "value": "@extends('layout')\n\n@section('content')\n ...
php
chosen
[ { "from": "system", "value": "Make it a POST req.\n" }, { "from": "human", "value": "<?php\n\nnamespace Korobi\\WebBundle\\Util;\n\nuse GuzzleHttp\\Client as GuzzleClient;\n\n/**\n * Class to talk to Akio.\n * @package Korobi\\WebBundle\\Util\n */\nclass Akio {\n\n protected $guzzle;\n pri...
php
chosen
[ { "from": "system", "value": "Use Places_location::stream to get/create Places/location stream and use appId as publisherId\n" }, { "from": "human", "value": "<?php\n\t\nfunction Places_areas_response_data()\n{\n\tQ_Valid::requireFields(array('location'), $_REQUEST, true);\n\n\t$location = $_REQ...
php
chosen
[ { "from": "system", "value": "Add contact page to footer\n" }, { "from": "human", "value": "<p>\n <a href=\"https://blog.benspenhorados.pt\">Blogue</a> - \n <a href=\"/politica-de-privacidade\">Política de Privacidade</a>\n</p>\n" }, { "from": "gpt", "value": "<p>\n <a href=\"http...
php
chosen
[ { "from": "system", "value": "Fix typo in database migrations trait" }, { "from": "human", "value": "<?php\n\nnamespace Laravel\\Lumen\\Testing;\n\ntrait DatabaseMigrations\n{\n /**\n * Run the dabase migrations for the application.\n *\n * @return void\n */\n public functi...
php
chosen
[ { "from": "system", "value": "Add avatar to the database schema\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateUsersTable extends Migration\n{\n /**\n * Run the migrations.\n *\n...
php
chosen
[ { "from": "system", "value": "Fix migration to run on mysql 5.6 version\n" }, { "from": "human", "value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateRolesTable extends Migratio...
php
chosen
[ { "from": "system", "value": "Add return type unions to private/internal/final/test methods\n\n" }, { "from": "human", "value": "<?php\n\nnamespace Symfony\\Component\\Cache\\Tests\\Fixtures;\n\nuse Doctrine\\Common\\Cache\\CacheProvider;\n\nclass ArrayCache extends CacheProvider\n{\n private...
php
chosen
[ { "from": "system", "value": "Change path to correct location\n" }, { "from": "human", "value": "<?php\nclass Kwc_Favourites_Box_Component extends Kwc_Abstract\n{\n public static function getSettings()\n {\n $ret = parent::getSettings();\n $ret['assets']['files'][] = 'web/com...
php
chosen
[ { "from": "system", "value": "Update modal creator with new heading markup.\n" }, { "from": "human", "value": "<?php\n/**\n * Snippet for displaying a Campaign's creator property, which is an array.\n *\n * For available variables:\n * @see dosomething_campaign_load().\n */\n?>\n\n<div class=\"p...
php
chosen
[ { "from": "system", "value": "Fix indentation (remove blank line + add blank line after namespace declaration\n" }, { "from": "human", "value": "<?php\n/**\n * @title Import Class\n * @desc Generic Importer Class for the pH7CMS.\n *\n * @author Pierre-Henry Soria...
php
chosen
[ { "from": "system", "value": "Remove doctrine manager clear due to side effect\n" }, { "from": "human", "value": "<?php\n\nnamespace Itkg\\DelayEventBundle\\EventListener;\n\nuse Doctrine\\Common\\Persistence\\ObjectManager;\nuse Itkg\\DelayEventBundle\\Event\\ProcessedEvents;\nuse Symfony\\Comp...
php
chosen
[ { "from": "system", "value": "Fix config path difference (W vs w)\n" }, { "from": "human", "value": "<?php\n\nnamespace Hyperized\\WeFact;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass WefactServiceProvider extends ServiceProvider {\n\n /**\n * Indicates if loading of the provider is ...
php
chosen
[ { "from": "system", "value": "BB-2229: Implement template based loop\n - fixed typo\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\LayoutBundle\\Twig;\n\nuse Symfony\\Bridge\\Twig\\Form\\TwigRendererEngineInterface;\nuse Symfony\\Bridge\\Twig\\Form\\TwigRendererInterface;\n\n...
php
chosen
[ { "from": "system", "value": "Support Symfony Process 2.3 \"process timed-out\" exception message\n" }, { "from": "human", "value": "<?php\n\nnamespace Liip\\RMT\\Tests\\Functional;\n\nuse Exception;\nuse Liip\\RMT\\Context;\nuse Liip\\RMT\\Prerequisite\\TestsCheck;\n\nclass TestsCheckTest exten...
php
chosen
[ { "from": "system", "value": "Add \\Change\\Application injection on TransactionManager\n" }, { "from": "human", "value": "<?php\nnamespace Rbs\\Plugins\\Http\\Rest\\Actions;\n\nuse Change\\Http\\Rest\\Result\\ArrayResult;\nuse Change\\Plugins\\Plugin;\nuse Zend\\Http\\Response as HttpResponse;\...
php
chosen
[ { "from": "system", "value": "Add Types\\Datetime test for empty value\n" }, { "from": "human", "value": "<?php\n\nuse Mdd\\QueryBuilder\\Types;\nuse Mdd\\QueryBuilder\\Tests\\Escapers\\SimpleEscaper;\n\nclass DatetimeTest extends PHPUnit_Framework_TestCase\n{\n protected\n $escaper;\n...
php
chosen
[ { "from": "system", "value": "Fix indentation in PHP example template, now uses 4 spaces consistently\n" }, { "from": "human", "value": "```php\n\n$client = new \\GuzzleHttp\\Client();\n$response = $client->{{ strtolower($route['methods'][0]) }}(\n '{{ rtrim($baseUrl, '/') . '/' . ltrim($route[...
php
chosen
[ { "from": "system", "value": "Update laravel/mvc-basics/step-by-step/03 with down schema\n" }, { "from": "human", "value": "<?php\n// ~/Sites/presentation/mvc-basics/database/migrations/YYYY_MM_DD_HHIISS_create_event_tickets_table.php\n// Use your text editor to edit the migration file and add t...
php
chosen
[ { "from": "system", "value": "Update link to new static front page\n" }, { "from": "human", "value": "<?php\n/**\n * The template for displaying the header\n *\n */\n?><!DOCTYPE html>\n<html <?php language_attributes(); ?> class=\"no-js\">\n<head>\n\t<meta charset=\"<?php bloginfo( 'charset' ); ...
php
chosen
[ { "from": "system", "value": "Add in mars test on the vincenty calculator\n" }, { "from": "human", "value": "<?php\n\nuse Treffynnon\\Navigator as N;\nuse Treffynnon\\Navigator\\Distance\\Calculator as C;\nuse Treffynnon\\Navigator\\CelestialBody as CB;\n\nclass VincentyTest extends PHPUnit_Fram...
php
chosen
[ { "from": "system", "value": "Add newline at end of file\n" }, { "from": "human", "value": "<?php\n/*\n * Copyright 2011 Google Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a...
php
chosen
[ { "from": "system", "value": "Fix phpdocs; Remove unused import\n" }, { "from": "human", "value": "<?php\n\n/*\n * This file is part of Bens Penhorados, an undergraduate capstone project.\n *\n * (c) Fábio Santos <ffsantos92@gmail.com>\n *\n * For the full copyright and license information, plea...
php
chosen
[ { "from": "system", "value": "Add setting user agent to HTTP client\n" }, { "from": "human", "value": "<?php\n\nnamespace Ginger;\n\nuse Ginger\\HttpClient\\CurlHttpClient;\n\nfinal class Ginger\n{\n /**\n * The library version.\n */\n const CLIENT_VERSION = '2.0.0';\n\n /**\n ...
php
chosen
[ { "from": "system", "value": "[CFG] Rename 'format' route to 'accept'\n" }, { "from": "human", "value": "<?php\nreturn [\n 'name_prefix' => 'aura.demo.',\n 'routes' => [\n 'home' => [\n 'path' => '/',\n 'values' => [\n 'controller' => 'aura.demo....
php
chosen
[ { "from": "system", "value": "Use stochastic gradient descent for this test.\n" }, { "from": "human", "value": "<?php\n\nnamespace mcordingley\\Regression\\Tests;\n\nuse mcordingley\\Regression\\Algorithm\\GradientDescent\\Batch;\nuse mcordingley\\Regression\\Algorithm\\GradientDescent\\Gradient...
php
chosen
[ { "from": "system", "value": "other: Add unit test for `Helper\\String::unique()` result' length\n" }, { "from": "human", "value": "<?php\n\nclass FrameworkHelperTest extends PHPUnit_Framework_TestCase {\n\n public function __construct( $name = null, array $data = [ ], $dataName = '' ) {\n \...
php
chosen
[ { "from": "system", "value": "UPDATE: Throw exception if we are going to divide by 0\n" }, { "from": "human", "value": "<?php\n\n/**\n * This file is part of the Statistical Classifier package.\n *\n * (c) Cam Spiers <camspiers@gmail.com>\n *\n * For the full copyright and license information, p...
php
chosen
[ { "from": "system", "value": "Update install dev domain name\n\n" }, { "from": "human", "value": "<?php\n\nnamespace Soda\\Cms\\Foundation\\Setup;\n\nuse Illuminate\\Database\\Seeder;\nuse Soda\\Cms\\Database\\Models\\Application;\nuse Soda\\Cms\\Database\\Models\\ApplicationUrl;\n\nclass SetupA...
php
chosen
[ { "from": "system", "value": "Fix path to settings view in skeleton" }, { "from": "human", "value": "<?php\n\nreturn [\n\n 'main' => '%NAMESPACE_ESC%\\\\%CLASSNAME%',\n\n 'autoload' => [\n\n '%NAMESPACE_ESC%\\\\' => 'src'\n\n ],\n\n 'resources' => [\n\n 'export' => [\n ...
php
chosen
[ { "from": "system", "value": "Add documentation and line Session::set\n" }, { "from": "human", "value": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Application Routes\n|--------------------------------------------------------------------------\n|\...
php
chosen
[ { "from": "system", "value": "Add option inn page test\n" }, { "from": "human", "value": "<?php\n\nrequire 'classes/Tmdb/Tmdb.php';\nrequire 'classes/Tmdb/Movie.php';\nrequire 'classes/Tmdb/TVShow.php';\n\n$api_key = '62dfe9839b8937e595e325a4144702ad';\n\n$VfacTmdb = new Vfac\\Tmdb\\Tmdb($api_ke...
php
chosen