conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Mark empty test as incomplete\n\nTo make things more explicit.\n" }, { "from": "human", "value": "<?php\n/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */\n// +---------------------------------------------------------------------------...
php
chosen
[ { "from": "system", "value": "Disable calendar command test, need a better way to test time based things\n" }, { "from": "human", "value": "<?php\n$I = new AcceptanceTester($scenario);\n$I->wantTo('process tweets looking for beers');\n$I->runShellCommand('php artisan nerds:cal test');\n$I->seeIn...
php
chosen
[ { "from": "system", "value": "Fix a bug in bug reporting when not joined to a game.\n" }, { "from": "human", "value": "<?\n\n$steps = $_REQUEST['steps'];\n$subject = $_REQUEST['subject'];\n$error_msg = $_REQUEST['error_msg'];\n$description = $_REQUEST['description'];\n$new_sub = '[Bug] '.$subjec...
php
chosen
[ { "from": "system", "value": "Correct namespace zone service trait\n" }, { "from": "human", "value": "<?php\n\nnamespace Heystack\\Ecommerce\\Zone\\Traits;\n\nuse Heystack\\Ecommerce\\Locale\\Interfaces\\ZoneServiceInterface;\n\n/**\n * Class HasZoneServiceTrait\n * @package Heystack\\Ecommerce\...
php
chosen
[ { "from": "system", "value": "Replace deprecated \"empty_value\" form option with \"placeholder\".\n" }, { "from": "human", "value": "<?php\n/**\n * @author Igor Nikolaev <igor.sv.n@gmail.com>\n * @copyright Copyright (c) 2016, Darvin Studio\n * @link https://www.darvin-studio.ru\n *\n *...
php
chosen
[ { "from": "system", "value": "Convert to new bindShared method on container.\n\n" }, { "from": "human", "value": "<?php namespace Illuminate\\Validation;\r\n\r\nuse Illuminate\\Support\\ServiceProvider;\r\n\r\nclass ValidationServiceProvider extends ServiceProvider {\r\n\r\n\t/**\r\n\t * Indicat...
php
chosen
[ { "from": "system", "value": "Add new string & array methods.\n" }, { "from": "human", "value": "<?php\n/**\n * ZN PHP Web Framework\n * \n * \"Simplicity is the ultimate sophistication.\" ~ Da Vinci\n * \n * @package ZN\n * @license MIT [http://opensource.org/licenses/MIT]\n * @author Ozan UYK...
php
chosen
[ { "from": "system", "value": "Change Path of Smarty cache (-> ($WEB_UI_ROOT)/cache)\n" }, { "from": "human", "value": "<?php\n\nglobal $WEB_UI_ROOT;\nrequire_once($WEB_UI_ROOT . '/app/vendor/Smarty-3.1.18/Smarty.class.php');\n\n/**\n * SmartyEx subclasses Smarty, and does CIRCUS-specific initial...
php
chosen
[ { "from": "system", "value": "Allow for null user agents in sessions.\n" }, { "from": "human", "value": "<?php\nnamespace Entity;\n\nuse \\Doctrine\\Common\\Collections\\ArrayCollection;\n\n/**\n * @Table(name=\"sessions\", indexes={\n * @index(name=\"cleanup_idx\", columns={\"expires\"})\n * ...
php
chosen
[ { "from": "system", "value": "Add Content-Security-Policy-Report-Only header to HTML responses\n" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\n$app = require_once('bootstrap.php');\n\n$app->mount('...
php
chosen
[ { "from": "system", "value": "Make sure the weight column is specific.\n" }, { "from": "human", "value": "<?php\n\nnamespace AbleCore;\n\nclass TaxonomyTerm extends EntityExtension {\n\n\t/**\n\t * Gets the entity type of the current class.\n\t *\n\t * @return string The entity type.\n\t */\n\ts...
php
chosen
[ { "from": "system", "value": "Change a way to add constants into twig globals\n" }, { "from": "human", "value": "<?php\n\n/*\n * 이 컨트롤러를 상속받아 구현하는 컨트롤러는 Twig 템플릿 엔진을 기본으로 로드함\n */\n\nclass MY_Controller extends CI_Controller {\n public function __construct() {\n parent::__construct();\...
php
chosen
[ { "from": "system", "value": "Fix path to the config file\n" }, { "from": "human", "value": "<?php\n setlocale(LC_ALL, 'it_IT.UTF-8');\n\n $fname = 'config/config.json';\n\n $data = @file_get_contents($fname);\n $config = (array)json_decode($data);\n\n $start_date = strtotime($config['first...
php
chosen
[ { "from": "system", "value": "Rename 'category' to 'level' and update filters\n\n" }, { "from": "human", "value": "<?php\n\nclass Vocabulary extends Model {\n public function get_set() {\n return $this->belongs_to('Set');\n }\n\n /**\n * Filters\n */\n\n public static ...
php
chosen
[ { "from": "system", "value": "Add a forward-compatibility wrapper for phpunit8 assertions\n\nWhile doctrine still supports php7.2 the test cases need to run\nunder phpunit8 as well. However some assertion methods produce\ndeprecation warnings in the test output with phpunit >= 9.\n\nThis commit adds a thin ...
php
chosen
[ { "from": "system", "value": "Add test to make sure permissions table is populated\n\nCloses #1801\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Tests\\Feature;\n\nuse Spatie\\Permission\\Models\\Permission;\nuse Spatie\\Permission\\Models\\Role;\nuse Tests\\T...
php
chosen
[ { "from": "system", "value": "Fix: Use 5.3 array syntax in tests\n" }, { "from": "human", "value": "<?php\n\nnamespace AdamBrett\\ShellWrapper\\Tests\\Command;\n\nuse AdamBrett\\ShellWrapper\\Command\\Argument;\n\nclass ArgumentTest extends \\PHPUnit_Framework_TestCase\n{\n public function te...
php
chosen
[ { "from": "system", "value": "Rename wrapper to fix woocommerce conflict\n" }, { "from": "human", "value": "<!doctype html>\n\n<html <?php language_attributes(); ?> class=\"no-js\" data-logo-width=\"<?php echo get_theme_mod('logo_width'); ?>\";>\n\t<head>\n\t\t<meta charset=\"<?php bloginfo('cha...
php
chosen
[ { "from": "system", "value": "Fix PHP notice on notify action" }, { "from": "human", "value": "<?php\n\n/**\n * @package Billing\n * @copyright Copyright (C) 2012-2017 BillRun Technologies Ltd. All rights reserved.\n * @license GNU Affero General Public License Version 3; s...
php
chosen
[ { "from": "system", "value": "Speed up non-existent class detection by not using exceptions\n" }, { "from": "human", "value": "<?php\n\n\tclass PostgresDbWrapper extends PostgresDb {\n\t\t/**\n\t\t * Execute where method with the specified episode and season numbers\n\t\t *\n\t\t * @param string...
php
chosen
[ { "from": "system", "value": "Fix of Latte directory localization\n" }, { "from": "human", "value": "<?php\n\nnamespace Shopeca\\XML\\Feed;\n\nuse Shopeca\\XML\\Generators\\BaseGenerator;\n\nclass FeedGenerator extends BaseGenerator {\n\n\t/**\n\t * @param $name\n\t * @return string\n\t */\n\tpr...
php
chosen
[ { "from": "system", "value": "Make twig extension compatible with twig 1\n" }, { "from": "human", "value": "<?php\n\nnamespace Perfumer\\Contracts;\n\nclass TwigExtension extends \\Twig_Extension\n{\n /**\n * @return array\n */\n public function getFilters()\n {\n return ...
php
chosen
[ { "from": "system", "value": "Send exception message with 500 error response\n" }, { "from": "human", "value": "<?php\n\n// load Tonic\nrequire_once '../src/Tonic/Autoloader.php';\n\n$config = array(\n 'load' => array('../*.php', '../src/Tyrell/*.php'), // load example resources\n #'mount'...
php
chosen
[ { "from": "system", "value": "Add possibility to delete a job\n" }, { "from": "human", "value": "<?php\n/**\n * Created by mcfedr on 21/03/2014 14:19\n */\n\nnamespace mcfedr\\Queue\\JobManagerBundle\\Manager;\n\nuse mcfedr\\Queue\\QueueManagerBundle\\Manager\\QueueManager;\nuse mcfedr\\Queue\\Q...
php
chosen
[ { "from": "system", "value": "Remove requirement for IP addresses\n" }, { "from": "human", "value": "<?php\n\nnamespace Aegir\\Hostmaster\\Form;\n\nuse Symfony\\Component\\Form\\AbstractType;\nuse Symfony\\Component\\Form\\FormBuilderInterface;\nuse Symfony\\Component\\OptionsResolver\\OptionsRe...
php
chosen
[ { "from": "system", "value": "Add new failed status for items that can't be fetched.\n" }, { "from": "human", "value": "<?php namespace App;\n\nuse Illuminate\\Database\\Eloquent\\Model;\n\nclass Items extends Model {\n\n const STATUS_NEW = 'new';\n const STATUS_BEING_FETCHED...
php
chosen
[ { "from": "system", "value": "Fix broken newsflow on launch\n\n\nFormer-commit-id: 3edc20d576b57a0e30ed53d61c3ff960cb891853" }, { "from": "human", "value": "<?\ndefined('C5_EXECUTE') or die(\"Access Denied.\");\n$this->inc('elements/header.php', array('enableEditing' => true)); \n?>\n\n<div clas...
php
chosen
[ { "from": "system", "value": "Update para esconder o botão de cadastrar uma vez que o usuário fizer o logon.\n" }, { "from": "human", "value": "<?php\n\n/* @var $this yii\\web\\View */\n\nuse yii\\helpers\\Html;\n\n$this->title = 'Trinket';\n?>\n\n\n<div class=\"site-index\">\n\n \n\n <div...
php
chosen
[ { "from": "system", "value": "Allow DEV access in De Pinte\n" }, { "from": "human", "value": "<?php\n\n// if you don't want to setup permissions the proper way, just uncomment the following PHP line\n// read http://symfony.com/doc/current/book/installation.html#configuration-and-setup for more i...
php
chosen
[ { "from": "system", "value": "Remove lockout code to test IP whitelisting from remote places\n" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\HttpFoundation\\Request;\n\n// If you don't want to setup permissions the proper way, just uncomment the following PHP line\n// read ht...
php
chosen
[ { "from": "system", "value": "Use get_the_archive_title() for archive pages\n" }, { "from": "human", "value": "<?php\n\n$page_title = '';\n$page_subtitle = '';\n\nif (is_author()) :\n $page_title = __('Content by:', 'keitaro');\n\nelseif (is_search()):\n global $wp_query;\n $page_title ...
php
chosen
[ { "from": "system", "value": "Allow to call wordpress functions using WP helper\n" }, { "from": "human", "value": "<?php\n\nnamespace Ampersand;\nuse Ampersand\\Config;\nuse Ampersand\\Http\\Session;\nuse Ampersand\\Helpers\\URL;\n\nclass Render {\n\n private static $twig;\n\n public static fu...
php
chosen
[ { "from": "system", "value": "[TASK] Include fields should start with no inclusion at all\n" }, { "from": "human", "value": "<?php\nnamespace Netlogix\\JsonApiOrg\\Schema\\Traits;\n\n/*\n * This file is part of the Netlogix.JsonApiOrg package.\n *\n * This package is Open Source Software. For th...
php
chosen
[ { "from": "system", "value": "Improve security by creating a much stronger secret by default\n\nWebs using vkwf are not effected by this as they use hashPrivatePart config setting\n" }, { "from": "human", "value": "<?php\nclass Kwf_Util_Hash\n{\n public static function getPrivatePart()\n {...
php
chosen
[ { "from": "system", "value": "Add bbcode for all shares, rename functions\n" }, { "from": "human", "value": "<?php\n/**\n * Add BBCodes\n */\n\n// BBCode Facebook\nfunction bbcode_facebook() {\n global $post;\n\t$shares = get_post_meta($post->ID, 'sharecount_facebook', true);\n\n return em...
php
chosen
[ { "from": "system", "value": "Fix XSS on API Integrations H1 1753684" }, { "from": "human", "value": "<?php defined('C5_EXECUTE') or die(\"Access Denied.\");\n\n/**\n * @var \\Concrete\\Core\\Search\\Pagination\\Pagination $pagination\n */\nif ($pagination->getTotalResults() > 0) { ?>\n\n <ta...
php
chosen
[ { "from": "system", "value": "Add possibility of custom country list.\n" }, { "from": "human", "value": "<?php\nsession_start();\nerror_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);\ndefine(\"DOC_ROOT\", str_replace(\"/core/inc\", \"\", str_replace(\"\\\\\", \"/\", __DIR__)));\n\nrequire_once(DOC_RO...
php
chosen
[ { "from": "system", "value": "Fix searchBox-trl getting the correct form\n\nThe old searchBox-trl code was deprecated. Now it's searching for the search-trl component and getting it's form to display.\n" }, { "from": "human", "value": "<?php\nclass Kwc_FulltextSearch_Box_Trl_Component extends Kw...
php
chosen
[ { "from": "system", "value": "Correct file name check for multimedia validator\n" }, { "from": "human", "value": "<?php\nclass MultimediaFileValidatorSchema extends sfValidatorSchema\n{\n protected function configure($options = array(), $messages = array())\n {\n $this->addMessage('invalid_...
php
chosen
[ { "from": "system", "value": "Make sure modified artists cascade the album's artist_id field\n" }, { "from": "human", "value": "<?php\n\nuse App\\Models\\Artist;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateVariousArtists extends Migration\n{\n /**\n * Create the \"Var...
php
chosen
[ { "from": "system", "value": "Add script to shift the music\n" }, { "from": "human", "value": "<?php\n\nuse Symfony\\Component\\Console\\Application;\nuse Symfony\\Component\\Console\\Input\\InputInterface;\nuse Symfony\\Component\\Console\\Output\\OutputInterface;\n\n$console = new Application(...
php
chosen
[ { "from": "system", "value": "BB-4508: Add is null operator to search index\n - add missed phpdocs\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\SearchBundle\\Query\\Criteria;\n\nuse Doctrine\\Common\\Collections\\Expr\\Value;\nuse Doctrine\\Common\\Collections\\ExpressionBu...
php
chosen
[ { "from": "system", "value": "Change the initial bootstrap file\n" }, { "from": "human", "value": "<?php\n\n/**\n * Laravel - A PHP Framework For Web Artisans\n *\n * @package Laravel\n * @author Taylor Otwell <taylorotwell@gmail.com>\n */\n\n/*\n|---------------------------------------------...
php
chosen
[ { "from": "system", "value": "Allow empty strings in Match validator (set the \"require\" validator explicitly)\n" }, { "from": "human", "value": "<?php\n\nclass MatchValidator extends Validator\n{\n\tpublic function validate()\n\t{\n\t\t$allok = true;\n\t\tforeach($this->keys as $key) {\n\t\t\t...
php
chosen
[ { "from": "system", "value": "Fix Choice Admin listing and adding/editing\n" }, { "from": "human", "value": "<?php\n// src/Effi/QCMBundle/Admin/ChoiceAdmin.php\n\nnamespace Effi\\QCMBundle\\Admin;\n\nuse Sonata\\AdminBundle\\Admin\\Admin;\nuse Sonata\\AdminBundle\\Datagrid\\ListMapper;\nuse Sona...
php
chosen
[ { "from": "system", "value": "Use --path instead of deprecated --package.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n" }, { "from": "human", "value": "<?php namespace Orchestra\\Extension\\Console;\n\nclass MigrateCommand extends BaseCommand\n{\n /**\n ...
php
chosen
[ { "from": "system", "value": "Fix phpstan error about return value of void being used\n" }, { "from": "human", "value": "<?php\n\nnamespace CultuurNet\\UDB3\\Media\\Properties;\n\nuse InvalidArgumentException;\nuse ValueObjects\\Exception\\InvalidNativeArgumentException;\nuse ValueObjects\\Strin...
php
chosen
[ { "from": "system", "value": "Create new container when not pulled from container\n" }, { "from": "human", "value": "<?php\n\nnamespace League\\Route\\Strategy;\n\nuse RuntimeException;\nuse Symfony\\Component\\HttpFoundation\\Response;\n\nclass RequestResponseStrategy extends AbstractStrategy i...
php
chosen
[ { "from": "system", "value": "Add tests for finding a country using code or name\n" }, { "from": "human", "value": "<?php\n\nuse Galahad\\LaravelAddressing\\Entity\\Country;\nuse Galahad\\LaravelAddressing\\LaravelAddressing;\n\n/**\n * Class LaravelAddressingTest\n *\n * @author Junior Grossi <...
php
chosen
[ { "from": "system", "value": "Replace singleton to bind main class.\nBind Class name instead hardcoding a string.\n" }, { "from": "human", "value": "<?php\n\nnamespace Edujugon\\Skeleton\\Providers;\n\nuse Edujugon\\Skeleton\\Skeleton;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass Skeleton...
php
chosen
[ { "from": "system", "value": "Return result sub-tasks to expose exit code for CI\n" }, { "from": "human", "value": "<?php\n\nuse Robo\\Tasks;\n\nrequire_once 'vendor/autoload.php';\n\nclass RoboFile extends Tasks\n{\n function build()\n {\n $this->fixCodeStyle();\n $this->tes...
php
chosen
[ { "from": "system", "value": "Clean unused default values for properties\n" }, { "from": "human", "value": "<?php\n/*\n * Go! AOP framework\n *\n * @copyright Copyright 2013, Lisachenko Alexander <lisachenko.it@gmail.com>\n *\n * This source file is subject to the license that is bundled\n * wit...
php
chosen
[ { "from": "system", "value": "Integrate response factory into the deck controller.\"\n" }, { "from": "human", "value": "<?php\r\n\r\nnamespace MoFlashCards\\DeckBundle\\Controller;\r\n\r\nuse JMS\\Serializer\\SerializationContext;\r\nuse Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller;\...
php
chosen
[ { "from": "system", "value": "Fix migration when tracker is not being used\n" }, { "from": "human", "value": "<?php\n\nuse PragmaRX\\Support\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\n\nclass UpdateTrackerIds extends Migration {\n\n\t/**\n\t * Run the migrations.\n\t *\n\t * @ret...
php
chosen
[ { "from": "system", "value": "Use default module with a required instead of own subclass, this enables NOT routing /\n\ngit-svn-id: e77a8db410fc7e53f700994083f7980387c3a882@657 528793b8-127e-4309-9901-b74759c7208d\n" }, { "from": "human", "value": "<?php\n/**\n * SURFconext EngineBlock\n *\n * L...
php
chosen
[ { "from": "system", "value": "Revert \"Security-checker - fix tls issue at travis.ci\"\n\nThis reverts commit 4c483c163b8e9c49eaca5cc34a9e74dc866b1a45.\n" }, { "from": "human", "value": "<?php\n\nnamespace Edge\\QA\\Tools\\Analyzer;\n\nuse Edge\\QA\\OutputMode;\n\nclass SecurityChecker extends \...
php
chosen
[ { "from": "system", "value": "Remove a reference to an empty file\n" }, { "from": "human", "value": "<?php\n/**\n * Plugin Name: Airstory\n * Plugin URI: http://www.airstory.co/integrations/\n * Description: Publish content from Airstory to WordPress.\n * Version: 0.1.0\n * Author: Liq...
php
chosen
[ { "from": "system", "value": "Add more descriptive attribute methods.\n" }, { "from": "human", "value": "<?php\n\nnamespace Enzyme\\Axiom\\Models;\n\ninterface ModelInterface\n{\n /**\n * Get the unique identity for this mode.\n *\n * @return int\n */\n public function iden...
php
chosen
[ { "from": "system", "value": "Use the materialize CSS markup\n" }, { "from": "human", "value": "<?php\n\nnamespace fieldwork\\components;\n\nclass TextField extends Field\n{\n\n const ON_ENTER_NEXT = 'next';\n const ON_ENTER_SUBMIT = 'submit';\n\n private $onEnter = '',\n $mask...
php
chosen
[ { "from": "system", "value": "Fix advanced rule saving bug" }, { "from": "human", "value": "<?php\nfinal class DVRUI_Vars \n{\n\tconst DVRUI_version\t=\"0.4.3\";\n\tconst DVRUI_name\t=\"HDHomeRun DVR UI\";\n\tconst DVRUI_git\t\t=\"https://github.com/demonrik/HDHR-DVRUI.git\";\n\t\n\t/* Set TZ to...
php
chosen
[ { "from": "system", "value": "Clean POST data after validation\n" }, { "from": "human", "value": "<?php\n\n/**\n * FormSafe\n *\n * PHP version 5\n *\n * @category Library\n * @package PyritePHP\n * @author Stéphane Lavergne <lis@imars.com>\n * @copyright 2016 Stéphane Lavergne\n * @licens...
php
chosen
[ { "from": "system", "value": "Rename theme param name for configuration resolver\n" }, { "from": "human", "value": "<?php\n\nnamespace At\\Theme\\Resolver;\n\n/**\n * Class ConfigurationResolver\n * @package Theme\\Resolver\n */\nclass ConfigurationResolver implements ResolverInterface\n{\n /...
php
chosen
[ { "from": "system", "value": "Add function skeletons for future work\n" }, { "from": "human", "value": "<?php\n//Connect to database\nrequire('db.php');\n\n$connection = getConnection();\n\nfunction sqlToJson($sql) {\n\t$json = array();\n\twhile ($row = mysqli_fetch_assoc($sql)) {\n\t\t$json[] =...
php
chosen
[ { "from": "system", "value": "FOUN-79: Add reconnect parms when working with ffmpeg aux\n" }, { "from": "human", "value": "<?php\n/**\n * @package Scheduler\n * @subpackage Conversion.engines\n */\nclass KConversionEngineFfmpegAux extends KJobConversionEngine\n{\n\tconst FFMPEG_AUX = \"ffmpeg_a...
php
chosen
[ { "from": "system", "value": "Add function to save pdf file from Document\n" }, { "from": "human", "value": "<?php\n\nnamespace easybill\\SDK\\Model;\n\n/**\n * Class CreateDocument\n *\n * @package easybill\\SDK\\Model\n */\nclass DocumentCreated\n{\n /** @var string */\n public $fileNam...
php
chosen
[ { "from": "system", "value": "Allow updating of pick lock time\n" }, { "from": "human", "value": "<?php\n\nnamespace SofaChamps\\Bundle\\BowlPickemBundle\\Admin;\n\nuse Sonata\\AdminBundle\\Admin\\Admin;\nuse Sonata\\AdminBundle\\Datagrid\\ListMapper;\nuse Sonata\\AdminBundle\\Datagrid\\Datagrid...
php
chosen
[ { "from": "system", "value": "Change the interface phpdoc (resource is returned, not array)\n\n" }, { "from": "human", "value": "<?php\n\nnamespace Jalle19\\CertificateParser\\Provider;\n\n/**\n * Interface ProviderInterface\n * @package Jalle19\\CertificateParser\\Provider\n */\ninterface Provi...
php
chosen
[ { "from": "system", "value": "Add dependency methods for asset decorator\n" }, { "from": "human", "value": "<?php\nclass Kwf_Assets_Dependency_Decorator_Abstract extends Kwf_Assets_Dependency_Abstract\n{\n protected $_dep;\n public function __construct(Kwf_Assets_Dependency_Abstract $dep)\...
php
chosen
[ { "from": "system", "value": "Add type hint on feed service argument\n\n" }, { "from": "human", "value": "<?php\n\nnamespace Nectary\\Services;\n\n/**\n * Feed Services should implement a public\n * get_feed( $url ) to abstract away how a\n * particular feed is retreived.\n */\nabstract class Fe...
php
chosen
[ { "from": "system", "value": "Fix wrong namespace for unit test\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\nnamespace unit\\src\\Hasher;\n\nuse Signature\\Hasher\\Md5Hasher;\n\n/**\n * Tests for {@see Signature\\Hasher\\Md5Hasher}.\n *\n * @group Unitary\n * @author...
php
chosen
[ { "from": "system", "value": "Add missing target annotation definition.\n" }, { "from": "human", "value": "<?php\n\nnamespace EventStore\\Common\\Annotation;\n\n/**\n * @Annotation\n */\nclass EventSourcedAggregate\n{\n\n}\n" }, { "from": "gpt", "value": "<?php\n\nnamespace EventStor...
php
chosen
[ { "from": "system", "value": "Handle GFM line break by default in MD transformer\n" }, { "from": "human", "value": "<?php\n\nnamespace Code16\\Sharp\\Utils\\Transformers\\Attributes;\n\nuse Code16\\Sharp\\Utils\\Transformers\\SharpAttributeTransformer;\n\nclass MarkdownAttributeTransformer imple...
php
chosen
[ { "from": "system", "value": "Change alert color in login page\n" }, { "from": "human", "value": "@extends('theme/main')\n@section('title')\nLogin - Researchew\n@endsection\n@section('content')\n<div class=\"am-container\">\n <div class=\"am-u-sm-8 am-u-sm-centered\">\n @if(Session::ha...
php
chosen
[ { "from": "system", "value": "Make sure we're not blocking secp256k1 tests\n" }, { "from": "human", "value": "<?php\n\nnamespace BitWasp\\Bitcoin\\Tests;\n\nuse BitWasp\\Bitcoin\\Bitcoin;\nuse BitWasp\\Bitcoin\\Crypto\\EcAdapter\\PhpEcc;\nuse BitWasp\\Bitcoin\\Crypto\\EcAdapter\\Secp256k1;\n\ncl...
php
chosen
[ { "from": "system", "value": "Remove \"socialsharing_googleplus\" from Social Sharing Bundle\n\nSigned-off-by: Marius Blüm <38edb439dbcce85f0f597d90d338db16e5438073@lineone.io>" }, { "from": "human", "value": "<?php\n/**\n * @copyright Copyright (c) 2017 Lukas Reschke <lukas@statuscode.ch>\n *\n...
php
chosen
[ { "from": "system", "value": "Revert setting methods as protected" }, { "from": "human", "value": "<?php namespace Tait\\ModelLogging;\n\nuse Tait\\ModelLogging\\ModelLog;\nuse Auth;\n\ntrait LoggableTrait\n{\n /**\n * Get all logs for this object\n *\n * @return collection\n ...
php
chosen
[ { "from": "system", "value": "Add use namespace insteade of use absolute path\n" }, { "from": "human", "value": "<?php\n\n/**\n * @file\n * Init all the data and environment.\n */\n\nrequire_once(__DIR__ . \"/php/lang/ClassLoader.php\");\n\n$default = array();\n\n$default['classloader'] = new \...
php
chosen
[ { "from": "system", "value": "Reduce dependency on core bundle\n" }, { "from": "human", "value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of the Sonata Project package.\n *\n * (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>\n *\n * For the full copyright and license i...
php
chosen
[ { "from": "system", "value": "Fix wrong usage of isset().\n" }, { "from": "human", "value": "<?php\n/**\n * This file is part of the Emperor Norton Commands.\n *\n * Public domain. All rites reversed.\n */\n\nnamespace EmperorNortonCommands\\lib;\n\nuse DateTime;\n\n/**\n * Class Holydays\n * @p...
php
chosen
[ { "from": "system", "value": "Change from array_pop to array_shift for returning the 'default' transformer\n" }, { "from": "human", "value": "<?php\ndeclare(strict_types=1);\n\nnamespace Onion\\REST;\n\nuse \\Onion\\Framework\\Http\\Header\\Accept;\nuse \\Onion\\REST\\Transformers\\Interfaces\\T...
php
chosen
[ { "from": "system", "value": "Revert \"OFFSSET filter uses shorthand syntax when in MySQL\"\n\nThis reverts commit cdd6cb52d2f8646f3da10876f7a9caef56c7cd51.\n" }, { "from": "human", "value": "<?php\n\nnamespace RedBeanPHP\\Plugins\\RedSql\\Filters;\n\nuse R;\nuse RedBean_QueryWriter_Oracle;\nuse...
php
chosen
[ { "from": "system", "value": "Fix lastInsertId for OCI8 adapter\n" }, { "from": "human", "value": "<?php\n/**\n * Copyright (c) 2013 Bart Visscher <bartv@thisnet.nl>\n * This file is licensed under the Affero General Public License version 3 or\n * later.\n * See the COPYING-README file.\n */\n\...
php
chosen
[ { "from": "system", "value": "Fix hidden form partial value\n" }, { "from": "human", "value": "<div class=\"form-group\">\n\t{!! Form::hidden($name, $value ? $value : null, ['placeholder' => (isset($placeholder)) ? $placeholder : null, 'class' => (isset($class)) ? $class : null]) !!}\n</div>" ...
php
chosen
[ { "from": "system", "value": "Fix a misspell in coverage\n" }, { "from": "human", "value": "<?php\nnamespace res\\infrastructure\\String;\n\nuse vsc\\infrastructure\\String;\n\n/**\n * Class encodeEntitiesTest\n * @package res\\infrastructure\\String\n * @covers \\vsc\\infrastructure\\String::en...
php
chosen
[ { "from": "system", "value": "Deploy on push, test 2\n" }, { "from": "human", "value": "<?php\n // Use in the \"Post-Receive URLs\" section of your GitHub repo.\n if ( $_POST['payload'] ) {\n file_put_contents('log/payload.txt', print_r($_POST['payload'], FILE_APPEND);\n\n $e...
php
chosen
[ { "from": "system", "value": "Store behavior settings by model\n" }, { "from": "human", "value": "<?php\nApp::uses('Purifier', 'HtmlPurifier.Lib');\n/**\n * HtmlPurifierBehavior\n *\n * @author Florian Krämer\n * @copyright 2012 Florian Krämer\n * @license MIT\n */\nclass HtmlPurifierBehavior ex...
php
chosen
[ { "from": "system", "value": "BAP-4676: Fix Major issues mentioned in Scrutinizer builds\n - Edit\n" }, { "from": "human", "value": "<?php\n\nnamespace Oro\\Bundle\\EmailBundle\\Model;\n\n/**\n * Represents an email message template\n */\ninterface EmailTemplateInterface\n{\n /**\n * Gets...
php
chosen
[ { "from": "system", "value": "Update due to KnpMenuBundle changes" }, { "from": "human", "value": "<?php\n\nnamespace Admingenerator\\GeneratorBundle\\Menu;\n\nuse Knp\\Menu\\FactoryInterface;\nuse Symfony\\Component\\HttpFoundation\\Request;\nuse Symfony\\Component\\Routing\\Router;\n\nclass De...
php
chosen
[ { "from": "system", "value": "Implement foreign key based naming for has many relations\n" }, { "from": "human", "value": "<?php\n\n/**\n * Created by Cristian.\n * Date: 11/09/16 09:26 PM.\n */\n\nnamespace Reliese\\Coders\\Model\\Relations;\n\nuse Illuminate\\Support\\Str;\nuse Illuminate\\Dat...
php
chosen
[ { "from": "system", "value": "Add back button in forgot password page\n" }, { "from": "human", "value": "@extends(\"layouts/guest-layout\")\n@section(\"content\")\n\n@if (Session::get(\"error\") || Session::get(\"status\"))\n <div class=\"alert alert-danger\" role=\"alert\">\n [[ Session::ge...
php
chosen
[ { "from": "system", "value": "Update ServiceProvider & build tools\n" }, { "from": "human", "value": "<?php namespace JwtAuth;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass JwtAuthServiceProvider extends ServiceProvider\n{\n\n /**\n * Indicates if loading of the provider is deferr...
php
chosen
[ { "from": "system", "value": "Allow null cache object for purge event\n" }, { "from": "human", "value": "<?php\n\nnamespace Itkg\\Core\\Cache\\Event;\n\nuse Itkg\\Core\\CacheableInterface;\nuse Symfony\\Component\\EventDispatcher\\Event;\n\n/**\n * Class CacheEvent\n * @package Itkg\\Cache\\Even...
php
chosen
[ { "from": "system", "value": "Change to a temporary directory before executing pngcrush\n\nPngcrush writes temporary files in the current working directory.\nSometimes the user running PHP does not have write permissions in the\ncurrent working directory, so change to a temporary directory first,\nthen chan...
php
chosen
[ { "from": "system", "value": "Enforce the limit to be reset in get query :\n\n```\n $query = \\Admingenerator\\PropelDemoBundle\\Model\\MovieQuery::create('q')\n $paginator = new Pagerfanta(new PagerAdapter($query));\n $paginator->setMaxPerPage(3);\n $paginator->setCurrentPage($this->getPage(), false, true)...
php
chosen
[ { "from": "system", "value": "Use Carbon instead of DateTime\n\n" }, { "from": "human", "value": "<?php\n\nnamespace HMS\\Traits\\Entities;\n\ntrait SoftDeletable\n{\n /**\n * @var \\DateTime\n */\n protected $deletedAt;\n\n /**\n * Sets deletedAt.\n *\n * @param \\D...
php
chosen
[ { "from": "system", "value": "Add first (useful!) unit test\n" }, { "from": "human", "value": "<?php\n/**\n * Test WP Password bcrypt.\n *\n * @package WP_Password_Bcrypt\n */\n\n/**\n * Testing class for WP Password bcrypt.\n *\n * @package WP_Password_Bcrypt\n */\nclass Tests_WP_Password_Bcryp...
php
chosen
[ { "from": "system", "value": "Hide the label if asked to\n" }, { "from": "human", "value": "<?php\n\nnamespace fieldwork\\components;\n\nclass TextField extends Field\n{\n\n const ON_ENTER_NEXT = 'next';\n const ON_ENTER_SUBMIT = 'submit';\n\n private $onEnter = '',\n $mask = n...
php
chosen
[ { "from": "system", "value": "Add cohort filter for section participants\n" }, { "from": "human", "value": "<?php\n\nnamespace Slate\\Courses;\n\n\nclass SectionParticipantsRequestHandler extends \\RecordsRequestHandler\n{\n public static $recordClass = SectionParticipant::class;\n\n publi...
php
chosen
[ { "from": "system", "value": "Fix APCIterator syntax in \\OC\\Memcache\\APCU::clear\n\nsee http://www.php.net/manual/en/apciterator.construct.php\n" }, { "from": "human", "value": "<?php\n/**\n * Copyright (c) 2012 Bart Visscher <bartv@thisnet.nl>\n * This file is licensed under the Affero Gener...
php
chosen
[ { "from": "system", "value": "Tidy up info a little for the PluginModule popup edit form\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@40394 b456876b-0849-0410-b77d-98878d47e9d5\n" }, { "from": "human", "value": "<?php\n// (c) Copyright 2002-2012 by authors of the Tiki Wiki CMS Groupwa...
php
chosen