conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Move twig ref to $GLOBALS avoiding side-effects on the file\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Siler\\Twig;\n\n$_twigEnv = null;\n\nfunction init($templatesPath, $templatesCachePath = null, $debug = null)\n{\n global $_twigEnv;\n\n if (is_nu... | php | chosen |
[
{
"from": "system",
"value": "Update Preview Frame Tools File\n\nUpdate preview frame tools file with concrete5 library methods\n\n\nFormer-commit-id: bc4bc39ab801025b17230d582670f2d71e8b9996"
},
{
"from": "human",
"value": "<?defined('C5_EXECUTE') or die(_(\"Access Denied.\"));\n\n$url = REL_DI... | php | chosen |
[
{
"from": "system",
"value": "Fix some PHP Strict standards errors in tests.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Mockery as m;\n\nabstract class AcTestCase extends Orchestra\\Testbench\\TestCase\n{\n protected $app;\n protected $router;\n\n public function tearDown()\n {\... | php | chosen |
[
{
"from": "system",
"value": "Fix path encoding in CURL driver"
},
{
"from": "human",
"value": "<?php\n\nnamespace BigFileTools\\Driver;\nuse Brick\\Math\\BigInteger;\n\nclass CurlDriver implements ISizeDriver\n{\n\tpublic function __construct()\n\t{\n\t\t// curl solution - cross platform and re... | php | chosen |
[
{
"from": "system",
"value": "Change default welcome page to include menu\n\n(We'll jettison the welcome page in due course)\n"
},
{
"from": "human",
"value": "<!DOCTYPE html>\n<html>\n <head>\n <title>Laravel</title>\n\n <link href=\"//fonts.googleapis.com/css?family=Lato:100\"... | php | chosen |
[
{
"from": "system",
"value": "MINOR: Change to check for specific return codes.\n\n\n"
},
{
"from": "human",
"value": "<?php\n/*\nCopyright 2010 Olle Johansson. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are\npermitted provided that t... | php | chosen |
[
{
"from": "system",
"value": "Use processConfiguration() instead of process()\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Beanstalkapp\\BeanstalkAPI\\DependencyInjection;\n\nuse Symfony\\Component\\HttpKernel\\DependencyInjection\\Extension;\nuse Symfony\\Component\\DependencyInjection... | php | chosen |
[
{
"from": "system",
"value": "Fix Helper to recognise variables - found with v2.0\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AddressFinder\\Widget\\Helper;\n\nclass Data extends \\Magento\\Framework\\App\\Helper\\AbstractHelper\n{\n private $storeManager;\n private $objectManage... | php | chosen |
[
{
"from": "system",
"value": "Make the regression test feel more welcome\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n/*\n * This file is part of PHPUnit.\n *\n * (c) Sebastian Bergmann <sebastian@phpunit.de>\n *\n * For the full copyright and license information, please v... | php | chosen |
[
{
"from": "system",
"value": "Remove redundant doc block comments\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Functions\n *\n * @package GrottoPress\\Jentil\n * @since 0.1.0\n *\n * @see https://developer.wordpress.org/themes/basics/theme-functions/\n *\n * @author GrottoPress <info@grot... | php | chosen |
[
{
"from": "system",
"value": "Add a register form to register page\n"
},
{
"from": "human",
"value": "<h1>This is a registration site.</h1>\n"
},
{
"from": "gpt",
"value": "<h1>This is a registration site.</h1>\n\n<form action=\"\" method=\"post\">\n<ul>\n \n <li>\n <label for=\... | php | chosen |
[
{
"from": "system",
"value": "Remove unnecessary parentheses around ternary operator\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @title Useful class for managing the system modules.\n *\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n * @copyright (c) 2016-20... | php | chosen |
[
{
"from": "system",
"value": "Fix Upgrade Error with no Administrators Group\n\nFix Upgrade Error with no Administrators Group\n\nUpgrade fails if Administrators group has been deleted.\n\n- Check for Administrato(via ADMIN_GROUP_ID) and if it does not exist do\n not add it to permissions list\n\n\nFormer-... | php | chosen |
[
{
"from": "system",
"value": "Fix a couple of requires\n"
},
{
"from": "human",
"value": "<?php\n/* ------------------------------------------------------------------------ *\\\n * Vendor Imports\n\\* ------------------------------------------------------------------------ */\n\n// include page-... | php | chosen |
[
{
"from": "system",
"value": "Fix code style issues overwriting files instead of creating new ones\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * Copyright 2016 Bitban Technologies, S.L.\n * Todos los derechos reservados.\n */\n\nnamespace Bitban\\PhpCodeQualityTools\\Fixers;\n\n\nuse Bitba... | php | chosen |
[
{
"from": "system",
"value": "Update constants for Laravel 5.2.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Middleware;\n\nuse Illuminate\\Http\\Request;\nuse Fideloper\\Proxy\\TrustProxies as Middleware;\n\nclass TrustProxies extends Middleware\n{\n /**\n * The trust... | php | chosen |
[
{
"from": "system",
"value": "Make entity manager available to all entity services\n"
},
{
"from": "human",
"value": "<?php\nnamespace SimplyTestable\\ApiBundle\\Services;\n\nuse Doctrine\\ORM\\EntityManager;\nuse SimplyTestable\\ApiBundle\\Entity\\WebSite;\nuse webignition\\NormalisedUrl\\Norma... | php | chosen |
[
{
"from": "system",
"value": "Throw exception when defining stage before servers\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace Deployer\\Stage;\n\n\nuse Deployer\\Deployer;\n\nclass StageFactory\n{\n /**\n * @param $name\n * @param array $servers\n * @param bool $default... | php | chosen |
[
{
"from": "system",
"value": "Allow to run in code coverage mode.\n"
},
{
"from": "human",
"value": "<?php\n\nrequire 'vendor/autoload.php';\n\n$server_config_file = json_decode(file_get_contents('box.json'), TRUE);\n$user_config_file = parse_ini_file(\"config.ini\");\n$user_config_file = array_... | php | chosen |
[
{
"from": "system",
"value": "Use baseUrl for CORS header\n"
},
{
"from": "human",
"value": "<?php\n\nabstract class CM_Http_Response_Resource_Abstract extends CM_Http_Response_Abstract {\n\n public function __construct(CM_Http_Request_Abstract $request, CM_Service_Manager $serviceManager) {\... | php | chosen |
[
{
"from": "system",
"value": "Disable template cache if directory is not writable\n"
},
{
"from": "human",
"value": "<?php\n\nClass TemplateParser {\n\n static function find_template($template) {\n if (!file_exists($template)) {\n throw new Exception('\\''.$template.'\\' template not fo... | php | chosen |
[
{
"from": "system",
"value": "Fix object crawl breaking on magic methods.\n"
},
{
"from": "human",
"value": "<?php\n\nfunction ex($object, $coords, $default = null)\n{\n if (!is_array($object) and !is_object($object))\n {\n return $default;\n }\n \n $keys = explode('.', $co... | php | chosen |
[
{
"from": "system",
"value": "Store + Shipping + Menus\n\n* Using new Store feature from Elcodi\n* Added Store management in Admin\n* Changed all definitions that was depending on such implementation\n* Removed under construction logic and tests\n\n* Removed menu fixtures\n* Defined them as dynamic content.... | php | chosen |
[
{
"from": "system",
"value": "Add ability to customize handler\n"
},
{
"from": "human",
"value": "<?php\nnamespace Salesforce;\n\nuse Salesforce\\Version;\nuse Salesforce\\Authentication\\AuthenticationInterface;\nuse GuzzleHttp\\Client as HttpClient;\n\nclass Connection {\n\n /**\n * Arr... | php | chosen |
[
{
"from": "system",
"value": "Convert arrays in site data collection to IterableObjects\n"
},
{
"from": "human",
"value": "<?php namespace TightenCo\\Jigsaw;\n\nclass DataLoader\n{\n private $basePath;\n private $collectionDataLoader;\n\n public function __construct($basePath, $collecti... | php | chosen |
[
{
"from": "system",
"value": "Reduce log level of error wrapped into ClientErrorException\n"
},
{
"from": "human",
"value": "<?php declare(strict_types = 1);\n\nnamespace Apitte\\Core\\ErrorHandler;\n\nuse Apitte\\Core\\Exception\\ApiException;\nuse Apitte\\Core\\Exception\\Runtime\\SnapshotExce... | php | chosen |
[
{
"from": "system",
"value": "Improve problem description for wrong PHP version\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of Flarum.\n *\n * (c) Toby Zerner <toby.zerner@gmail.com>\n *\n * For the full copyright and license information, please view the LICENSE\n * file... | php | chosen |
[
{
"from": "system",
"value": "Revert \"Add <head>-javascripts before <body>-javascripts\"\n\nThis reverts commit 7681ef4f43591af5cae8e3d26935d8efd4632c73.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Oneup\\Contao\\J2B;\n\nuse Contao\\PageModel;\nuse Contao\\LayoutModel;\nuse Contao\\Pa... | php | chosen |
[
{
"from": "system",
"value": "Add new twig extension function\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Twig extension for barcodes \n *\n * @author Philipp A. Mohrenweiser<phiamo@googlemail.com>\n * @copyright 2011 Philipp Mohrenweiser\n * @license http://www.apache.org/licenses/LICENSE... | php | chosen |
[
{
"from": "system",
"value": "Fix for ServiceManager's Di Integration's before/after usage\nAddition of nested configuration of controllers in ControllerLoader\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Zend\\ServiceManager\\Di;\n\nuse Zend\\ServiceManager\\AbstractFactoryInterface,\n... | php | chosen |
[
{
"from": "system",
"value": "Add more clock constants and function doc blocks\n"
},
{
"from": "human",
"value": "<?php\n\ndefine('CLOCK_REALTIME', 0);\n\ndefine('CLOCK_MONOTONIC', 1);\n\ndefine('CLOCK_PROCESS_CPUTIME_ID', 2);\n\ndefine('CLOCK_THREAD_CPUTIME_ID', 3);\n\nfunction clock_gettime (i... | php | chosen |
[
{
"from": "system",
"value": "Update Preview Frame Tools File\n\nUpdate preview frame tools file with concrete5 library methods\n"
},
{
"from": "human",
"value": "<?defined('C5_EXECUTE') or die(_(\"Access Denied.\"));\n\n$url = REL_DIR_FILES_TOOLS_REQUIRED.\"/composer/preview?previewCID=\".$_REQ... | php | chosen |
[
{
"from": "system",
"value": "Add import:images call to ImportAll\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Console\\Commands;\n\nuse Aic\\Hub\\Foundation\\AbstractCommand as BaseCommand;\n\nclass ImportAllCommand extends BaseCommand\n{\n\n protected $signature = 'import:all'... | php | chosen |
[
{
"from": "system",
"value": "Add Undeclared Faker Instance to PhoneNumber Test in en_NG\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Faker\\Test\\Provider\\ng_NG;\n\nuse Faker\\Generator;\nuse Faker\\Provider\\en_NG\\PhoneNumber;\nuse PHPUnit\\Framework\\TestCase;\n\nclass PhoneNumberT... | php | chosen |
[
{
"from": "system",
"value": "Fix critical error - forgot ‘.php’ at the end of the testimonials-cpt.php file call\n"
},
{
"from": "human",
"value": "<?php\n\t\n\t$includes = array(\n\t\t'checks.php', \t\t\t\t\t// Set up options\n\t\t'styles.php', \t\t\t\t\t// Enqueue our styles\n\t\t'scripts.php... | php | chosen |
[
{
"from": "system",
"value": "Add an optional “link” to the image message that will make the image a clickable link\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace actsmart\\actsmart\\Actuators\\WebChat;\n\nclass WebChatImageMessage extends WebChatMessage\n{\n private $imgSrc = null;\n\... | php | chosen |
[
{
"from": "system",
"value": "Add the ability to set the input charset for the iconv extension\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Ddeboer\\DataImport\\ValueConverter;\n\nuse Ddeboer\\DataImport\\Exception\\UnexpectedTypeException;\n\n/**\n * Convert a value in a specific chars... | php | chosen |
[
{
"from": "system",
"value": "Remove trailing line breaks, to adhere to styling requirements\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Couscous\\Module\\Config\\Step;\n\nuse Couscous\\Model\\Project;\nuse Couscous\\Step;\n\n/**\n * Set the default timezone if one is missing, to preve... | php | chosen |
[
{
"from": "system",
"value": "Update route request matcher interface\n"
},
{
"from": "human",
"value": "<?php\nnamespace Pux;\n\ninterface RouteRequestMatcher\n{\n public function matchConstraints(array $constraints);\n\n public function matchPath($pattern, & $matches = array());\n\n pu... | php | chosen |
[
{
"from": "system",
"value": "Add test for Parser::chain which allows for contextual parsing.\n"
},
{
"from": "human",
"value": "<?php\n\nclass ParserTest extends \\PHPUnit_Framework_TestCase\n{\n public function testStrSuccesses() {\n $this->assertTrue(\n Parser::str('abc')->run(... | php | chosen |
[
{
"from": "system",
"value": "Include more information in exceptions\n"
},
{
"from": "human",
"value": "<?php\n\nclass PodioError extends Exception {\n public $body;\n public $status;\n public $url;\n public function __construct($body, $status, $url) {\n $this->body = json_decode($body, T... | php | chosen |
[
{
"from": "system",
"value": "Update @capcha directive to load only the partial view\n"
},
{
"from": "human",
"value": "<?php\nnamespace Anam\\Captcha\\ServiceProvider;\n\nuse Illuminate\\Support\\Facades\\Blade;\nuse Illuminate\\Support\\ServiceProvider;\n\nclass CaptchaServiceProvider extends ... | php | chosen |
[
{
"from": "system",
"value": "Fix login test when application is not installed\n"
},
{
"from": "human",
"value": "<?php\n\ndeclare(strict_types=1);\n\n/*\n * This file is part of SolidInvoice project.\n *\n * (c) Pierre du Plessis <open-source@solidworx.co>\n *\n * This source file is subject to... | php | chosen |
[
{
"from": "system",
"value": "Add group and permission fixtures\n"
},
{
"from": "human",
"value": "<?php\n\n$userClass = $this->container->get('doctrine_user.user_repository')->getObjectClass();\n\n$admin = new $userClass();\n$admin->setUsername('admin');\n$admin->setEmail('admin@site.org');\n$a... | php | chosen |
[
{
"from": "system",
"value": "Tidy up info a little for the PluginModule popup edit form\n\ngit-svn-id: a7fabbc6a7c54ea5c67cbd16bd322330fd10cc35@40389 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 |
[
{
"from": "system",
"value": "Fix wrong testcase this types correctly resolved to /issue/issue/* but should be /issue/*\n"
},
{
"from": "human",
"value": "<?php\n/**\n * test_classes_issue.php\n *\n * @category\n * @author Johannes Brinksmeier <johannes.brinksmeier@googlemail.com>\n * @version $... | php | chosen |
[
{
"from": "system",
"value": "Change function name to log"
},
{
"from": "human",
"value": "<?php\nnamespace BrockReece\\ElasticAnalytics;\n\nclass ElasticAnalytics {\n protected $client;\n\n public function __construct() {\n $this->client = $this->buildClient();\n }\n\n public... | php | chosen |
[
{
"from": "system",
"value": "Add some headers to the default Guzzle config\n"
},
{
"from": "human",
"value": "<?php\n/**\n * This file is part of the CalendArt package\n *\n * For the full copyright and license information, please view the LICENSE file\n * that was distributed with this source ... | php | chosen |
[
{
"from": "system",
"value": "Make sure to run realpath on $file\n\nDo that only when it's local stream.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Avalanche\\Bundle\\ImagineBundle\\Imagine;\n\nuse Avalanche\\Bundle\\ImagineBundle\\Imagine\\Filter\\FilterManager;\n\nclass CacheReloade... | php | chosen |
[
{
"from": "system",
"value": "Make item_properties value of length 1024.\n"
},
{
"from": "human",
"value": "<?php\n\nuse Illuminate\\Support\\Facades\\Schema;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Database\\Migrations\\Migration;\n\nclass CreateItemsProperties extends Mi... | php | chosen |
[
{
"from": "system",
"value": "Add more helpers to the base migration\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Chromabits\\Illuminated\\Database\\Migrations;\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Builder;\n\n/**\n * Class BaseMigration... | php | chosen |
[
{
"from": "system",
"value": "Remove unpopulated tree from git mapping"
},
{
"from": "human",
"value": "<?php\n\nif (Site::getConfig('handle') == 'skeleton-v2') {\n Git::$repositories['emergence-skeleton-v2'] = [\n 'remote' => 'https://github.com/JarvusInnovations/emergence-skeleton-v2... | php | chosen |
[
{
"from": "system",
"value": "Update to v0.2.0 and translate the description.\n"
},
{
"from": "human",
"value": "<?php\n/*********************************************************************\nThe MIT License (MIT)\n\nCopyright (c) 2015 William Hiver\n\nPermission is hereby granted, free of charg... | php | chosen |
[
{
"from": "system",
"value": "Move message to individual language file"
},
{
"from": "human",
"value": "<?php\n\nuse yii\\helpers\\Html;\n\n\n/* @var $this yii\\web\\View */\n/* @var $model yii2mod\\cms\\models\\CmsModel */\n\n$this->title = Yii::t('app', 'Create Page', [\n 'modelClass' => 'C... | php | chosen |
[
{
"from": "system",
"value": "Sort versions in version list by 'version' descending\n"
},
{
"from": "human",
"value": "<?php\n $page = new \\Site\\Page();\n $page->requireRole('package manager');\n \n // @TODO for PHP7 warnings, fix object inheritance Package\\Version::get, Storage\\... | php | chosen |
[
{
"from": "system",
"value": "Drop threadmarks table when uninstalling"
},
{
"from": "human",
"value": "<?php\n\nclass Sidane_Threadmarks_Install\n{\n public static function install($existingAddOn, $addOnData)\n {\n if ($existingAddOn['version_id'] > 1) {\n return;\n }\n\n $db = ... | php | chosen |
[
{
"from": "system",
"value": "Enable 'coosos_tag_category' option in tags transformer\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Coosos\\TagBundle\\Form\\DataTransformer;\n\nuse Coosos\\TagBundle\\Entity\\Tag;\nuse Doctrine\\Common\\Persistence\\ObjectManager;\nuse Symfony\\Component\... | php | chosen |
[
{
"from": "system",
"value": "Fix rss feed not being a service\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Nectary;\n\nclass Rss_Feed {\n private $url;\n private $items;\n private $feed_callback;\n\n public function __construct( $url = '', $feed_callback = null ) {\n $this->url ... | php | chosen |
[
{
"from": "system",
"value": "Fix graphql-php 0.11 breaking change\n"
},
{
"from": "human",
"value": "<?php\n\n\nnamespace GraphQLGen\\Generator\\Interpreters\\Main;\n\n\nuse GraphQL\\Language\\AST\\InterfaceTypeDefinitionNode;\nuse GraphQLGen\\Generator\\InterpretedTypes\\Main\\InterfaceDeclara... | php | chosen |
[
{
"from": "system",
"value": "Change default naming strating to use fixture name with underscore\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the FixtureDumper library.\n *\n * (c) Martin Parsiegla <martin.parsiegla@gmail.com>\n *\n * For the full copyright and license... | php | chosen |
[
{
"from": "system",
"value": "Update twig helper to work with the last version of twig\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Bundle\\GravatarBundle\\Twig\\Extension;\n\nuse Symfony\\Bundle\\TwigBundle\\TokenParser\\HelperTokenParser;\n\n\nclass GravatarTwigExtension extends \\Twi... | php | chosen |
[
{
"from": "system",
"value": "Update tabs data attr and js class.\n"
},
{
"from": "human",
"value": "<div data-cc-collapse=\"one-open\" class=\"tabs\">\n <div class=\"is-active tabs__header\">\n <h3>Tab 1</h3>\n </div>\n <div class=\"is-active tabs__body\">\n <p>tab 1 cont... | php | chosen |
[
{
"from": "system",
"value": "Add icon for apple devices\n"
},
{
"from": "human",
"value": "<meta charset=\"UTF-8\">\n<link rel=\"stylesheet\" type=\"text/css\" href=\"css/style.css\">\n<!-- http://www.sitepoint.com/10-ways-make-website-mobile-friendly/ -->\n<meta name=viewport content='width=48... | php | chosen |
[
{
"from": "system",
"value": "Make email field optional when creating reservation as an admin\n\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Admin\\Requests;\n\nuse System\\Classes\\FormRequest;\n\nclass Reservation extends FormRequest\n{\n protected function useDataFrom()\n {\n ... | php | chosen |
[
{
"from": "system",
"value": "Return setUp and tearDown methods in proper order.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Laracasts\\Integrated;\n\nuse Laracasts\\Integrated\\Str;\nuse ReflectionClass;\n\nclass AnnotationReader\n{\n /**\n * The object to reflect into.\n *... | php | chosen |
[
{
"from": "system",
"value": "Check if allowed_environments is an array.\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Class Google\\Site_Kit\\Core\\Tags\\Guards\\Tag_Environment_Type_Guard\n *\n * @package Google\\Site_Kit\\Core\\Tags\\Guards\n * @copyright 2022 Google LLC\n * @license ... | php | chosen |
[
{
"from": "system",
"value": "Remove unpublished posts from homepage posts list\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Http\\Controllers;\n\nuse App\\Post;\n\nclass PostsController extends Controller\n{\n\tpublic function index()\n\t{\n\t\t$posts = Post::latest()->get();\n\n\... | php | chosen |
[
{
"from": "system",
"value": "Fix the collection used for retrieving survey reports\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\View\\Components;\n\nuse App\\Models\\TestDate;\nuse Illuminate\\View\\Component;\n\nclass SurveyReportLink extends Component\n{\n /**\n * Survey ... | php | chosen |
[
{
"from": "system",
"value": "Adjust test to be specific to mbc-logging-processor\n"
},
{
"from": "human",
"value": "<?php\n\nuse DoSomething\\MBC_LoggingGateway\\MBC_LoggingGateway;\n\n // Including that file will also return the autoloader instance, so you can store\n // the return value of ... | php | chosen |
[
{
"from": "system",
"value": "Initialize admin account on first run with default password of test123\n"
},
{
"from": "human",
"value": "<?php\n\nuse yii\\db\\Migration;\n\n/**\n * Handles adding role to table `user`.\n */\nclass m160902_150209_add_role_to_user extends Migration\n{\n /**\n ... | php | chosen |
[
{
"from": "system",
"value": "Test (Observation): Add call to Translation\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace AppBundle\\TestsService;\n\nuse AppBundle\\Service\\ObservationService;\nuse AppBundle\\Entity\\Observation;\nuse PHPUnit\\Framework\\TestCase;\n\nuse OC\\BookingBundle... | php | chosen |
[
{
"from": "system",
"value": "Add url prefix to generated URL.\n"
},
{
"from": "human",
"value": "@extends ('app')\n\n@section('title', 'Created')\n\n@section('content')\n\t<pre>{{ $secret->uuid4 }}</pre>\n@stop"
},
{
"from": "gpt",
"value": "@extends ('app')\n\n@section('title', 'Cr... | php | chosen |
[
{
"from": "system",
"value": "Rename default PHP log file\n\n`php_error.log` -> `php_errors.log`\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @title All Environment File\n * @desc File for all environments.\n *\n * @author Pierre-Henry Soria <hello@ph7cms.com>\n *... | php | chosen |
[
{
"from": "system",
"value": "Improve the trait - it doesn't have to inherit assertThat\n"
},
{
"from": "human",
"value": "<?php\ndeclare(strict_types=1);\n\nnamespace Asynchronicity\\PHPUnit;\n\nuse PHPUnit\\Framework\\Constraint\\Constraint;\n\n/**\n * @method static assertThat($value, Constra... | php | chosen |
[
{
"from": "system",
"value": "Add body class to body in WP\n"
},
{
"from": "human",
"value": "<?php\n/**\n * The head and header\n *\n * @package _bramework\n */\n ?>\n<!DOCTYPE html>\n<html <?php language_attributes();?> >\n\n\t<head itenmscope itemtype=\"https://schema.org/WebSite\">\n\t\t<?ph... | php | chosen |
[
{
"from": "system",
"value": "Add $gArchive to queries so we can start using page table archive column as a way to do one-off runs.\n\ngit-svn-id: d5a8a4092b1c3eddbe100e0c5fc6446cfb12afd1@894 fc7d47d3-c008-acd5-f51f-d19787b8a02f\n"
},
{
"from": "human",
"value": "<?php\nrequire_once(\"utils.inc\... | php | chosen |
[
{
"from": "system",
"value": "FIX: Remove icon, instead using the correctly re-instated one from the extension\n"
},
{
"from": "human",
"value": "<?php \n\nclass PointOfInterest extends DataObject {\n\tprivate static $description = 'Represents a point of interest on a map, e.g. railway station';... | php | chosen |
[
{
"from": "system",
"value": "Fix bug by adding JWTAuthServiceProvider declaration back to the file\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace WWON\\JwtGuard\\Providers;\n\nuse Illuminate\\Support\\Facades\\Auth;\nuse WWON\\JwtGuard\\Contract\\TokenManager as TokenManagerContract;\nus... | php | chosen |
[
{
"from": "system",
"value": "Add new search availability `typ` filter\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace MssPhp\\Schema\\Request;\n\nuse JMS\\Serializer\\Annotation\\Type;\nuse JMS\\Serializer\\Annotation\\XmlList;\n\nclass SearchAvailability\n{\n /**\n * @Type(\"DateT... | php | chosen |
[
{
"from": "system",
"value": "Add transaction handling in the data Manager\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace PhpAbac\\Manager;\n\nclass DataManager {\n /** @var \\PDO **/\n protected $connection;\n \n /**\n * @param \\PDO $connection\n */\n public funct... | php | chosen |
[
{
"from": "system",
"value": "Allow admins to access Horizon\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace App\\Providers;\n\nuse App\\Models\\Reply;\nuse App\\Models\\Thread;\nuse App\\User;\nuse Illuminate\\Database\\Eloquent\\Relations\\Relation;\nuse Illuminate\\Support\\ServiceProvi... | php | chosen |
[
{
"from": "system",
"value": "Change default (old change not checked in)\n"
},
{
"from": "human",
"value": "<?php // $Id$\n // Do an IP lookup of a user, using selected plugin\n\n require('../config.php');\n\n require_login();\n\n $ip = optional_param('ip', getremoteaddr());\n ... | php | chosen |
[
{
"from": "system",
"value": "Test also body and headers\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace spec\\Http\\Message\\MessageFactory;\n\ntrait MessageFactoryBehavior\n{\n function it_is_a_message_factory()\n {\n $this->shouldImplement('Http\\Message\\MessageFactory');\... | php | chosen |
[
{
"from": "system",
"value": "Remove a useless method from the cluster option class.\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Predis\\Options;\n\nuse Predis\\Network\\IConnectionCluster;\nuse Predis\\Network\\PredisCluster;\n\nclass ClientCluster extends Option {\n protected func... | php | chosen |
[
{
"from": "system",
"value": "Reduce threshold before the wordcount is stored\n"
},
{
"from": "human",
"value": "<?php\n\n// This class is used to encapsulate global state between layers without using $GLOBAL[] or\n// relying on the consumer being loaded correctly by the dynamic class autoloader... | php | chosen |
[
{
"from": "system",
"value": "Revert \"id removed from the form\"\n\nThis reverts commit bcdd4177d55aefa20a3b03149c23c787a5c63804.\n"
},
{
"from": "human",
"value": "@component('core::admin._buttons-form', ['model' => $model])\n@endcomponent\n\n<div class=\"row\">\n\n <div class=\"col-sm-6\">... | php | chosen |
[
{
"from": "system",
"value": "Fix heystack DBClosure loader unit test\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Heystack\\Core\\Loader;\n\nclass DBClosureLoaderTest extends \\PHPUnit_Framework_TestCase\n{\n /**\n * @covers \\Heystack\\Core\\Loader\\DBClosureLoader::__construct... | php | chosen |
[
{
"from": "system",
"value": "Test getStop() and print out data\n"
},
{
"from": "human",
"value": "#!/usr/bin/php -q\n<?php\nrequire_once('../lib/SiriClient.php');\n\n$c=new SiriClient('http://data.foli.fi/siri/');\n\n$c->loadStops();\n$c->loadStop(1170);\n$vmr=$c->loadVehicles();\nif ($vmr===Si... | php | chosen |
[
{
"from": "system",
"value": "Update wrong header copyright date\n"
},
{
"from": "human",
"value": "<?php\n/**\n * @author Pierre-Henry Soria <hi@ph7.me>\n * @copyright (c) 2012-2018, Pierre-Henry Soria. All Rights Reserved.\n * @license GNU General Public License; See ... | php | chosen |
[
{
"from": "system",
"value": "Fix commented PaymentExpress card number\n"
},
{
"from": "human",
"value": "<?php\n\n/*\n * This file is part of the Omnipay package.\n *\n * (c) Adrian Macneil <adrian@adrianmacneil.com>\n *\n * For the full copyright and license information, please view the LICENS... | php | chosen |
[
{
"from": "system",
"value": "Load pagination per_page limit from configuration.\n\nSigned-off-by: crynobone <e1a543840a942eb68427510a8a483282a7bfeddf@gmail.com>\n"
},
{
"from": "human",
"value": "<?php namespace Orchestra\\Story\\Routing;\n\nuse Illuminate\\Routing\\Controllers\\Controller;\nus... | php | chosen |
[
{
"from": "system",
"value": "Store request information in exception\n"
},
{
"from": "human",
"value": "<?php\n\nclass PodioError extends Exception {\n public $body;\n public $status;\n public $url;\n public function __construct($body, $status, $url) {\n $this->body = json_decode($body, T... | php | chosen |
[
{
"from": "system",
"value": "Fix bug with CPU not being collected. Improve CPU accuracy\n"
},
{
"from": "human",
"value": "<?php\n\nfunction collect_cpuUsage($debug, $log) {\n $usage = explode(\" \", exec('vmstat 1 2'));\n\t\n\t// Get CPU usage\n\t$cpu = 100 - $usage[43];\n\t\n\t// Get WA C... | php | chosen |
[
{
"from": "system",
"value": "Add no_timber_caching method to the Mara_Development class\n"
},
{
"from": "human",
"value": "<?php\n\nclass Maera_Development {\n\n\tfunction __construct() {\n\n\t\tif ( self::dev_mode() ) {\n\t\t\t$this->jetpack_dev_mode();\n\t\t}\n\n\t}\n\n\t/**\n\t * Detect if d... | php | chosen |
[
{
"from": "system",
"value": "Allow cron jobs to be long lasting\n"
},
{
"from": "human",
"value": "<?php\n\n/**\n * This class provides some common cron controller functionality\n *\n * @package Nails\n * @subpackage module-cron\n * @category Controller\n * @author Nails Dev Team\n... | php | chosen |
[
{
"from": "system",
"value": "Test itemj overwriting on file driver\n"
},
{
"from": "human",
"value": "<?php\n/**\n * Copyright (c) 2017 Josh P (joshp.xyz).\n */\n\nnamespace J0sh0nat0r\\SimpleCache\\Tests;\n\nuse J0sh0nat0r\\SimpleCache\\Drivers\\File as FileDriver;\n\n/**\n * Tests the File dr... | php | chosen |
[
{
"from": "system",
"value": "Move markup into separate files. Include the new sections.html file\n"
},
{
"from": "human",
"value": "<?php include 'templates/header.php'; ?>\n\t\n<div class=\"col-sm-12 row\">\n\t<div class=\"col-sm-12\">\n\t\t<h2>\n\t\t\tUser Options \n\t\t</h2>\n\t\t\n\t\t<p>\n... | php | chosen |
[
{
"from": "system",
"value": "[BUGFIX] Check for existance of $releasesList[0] before using\n"
},
{
"from": "human",
"value": "<?php\n\nnamespace Deployer;\n\ntask('buffer:stop', function () {\n $releasesList = get('releases_list');\n // Remove lock files also from previous release because... | php | chosen |
[
{
"from": "system",
"value": "Clean up of plugin info\n\ngit-svn-id: 9bac41f8ebc9458fc3e28d41abfab39641e8bd1c@31083 b456876b-0849-0410-b77d-98878d47e9d5\n"
},
{
"from": "human",
"value": "<?php\n// (c) Copyright 2002-2010 by authors of the Tiki Wiki/CMS/Groupware Project\n// \n// All Rights Rese... | php | chosen |
[
{
"from": "system",
"value": "Switch from partial redirect to full redirector\n"
},
{
"from": "human",
"value": "<?php\n\nclass ZFExt_Controller_Plugin_Auth extends Zend_Controller_Plugin_Abstract\n{\n\n public function preDispatch(Zend_Controller_Request_Abstract $request)\n {\n if... | php | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.