This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// | |
// Measure the time to execute two thousand jobs ten times. | |
// | |
require_once __DIR__.'/../vendor/autoload.php'; | |
function benchmark($resque, $count) { | |
$start = microtime(true); | |
for($i=$count;$i > 0;--$i) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Maintenance script that populates the event_page_id column of echo_event | |
* | |
* @ingroup Maintenance | |
*/ | |
class updateEchoSchemaForSuppression extends Maintenance { | |
public function __construct() { | |
parent::__construct(); | |
$this->mBatchSize = 500; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@mediawiki-vagrant:~/fastcgi$ sudo gdb /usr/bin/hhvm | |
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04 | |
Copyright (C) 2012 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "x86_64-linux-gnu". | |
For bug reporting instructions, please see: | |
<http://bugs.launchpad.net/gdb-linaro/>... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require('src/lightncandy.php'); | |
$template = "{{!-- --}}\n{{#foo}}{{this}}{{/foo}}"; | |
$php = LightnCandy::compile($template, array( | |
'flags' => LightnCandy::FLAG_ERROR_EXCEPTION | LightnCandy::FLAG_THIS | |
)); | |
echo "Rendered PHP code is:\n$php\n\n"; | |
$renderer = LightnCandy::prepare($php); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo "Replace wgMemc\n"; | |
$realMemc = $wgMemc; | |
$wgMemc = new HashBagOStuff; | |
echo "Locate workflow for ", $argv[1], "\n"; | |
$workflow = Flow\Container::get( 'factory.loader.workflow' )->createWorkflowLoader( Title::newFromText( $argv[1] ) )->getWorkflow(); | |
echo "Get list of topics\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Flow\Data; | |
use Flow\Exception\FlowException; | |
use Flow\Model\PostRevision; | |
use Flow\Model\Workflow; | |
use Flow\WatchedTopicItems; | |
use WatchedItem; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Flow\Serializer; | |
use Flow\Data\UserNameBatch; | |
use Flow\Model\AbstractRevision; | |
use Flow\Model\UserTuple; | |
use Flow\Model\UUID; | |
use Flow\Templating; | |
use ArrayIterator; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return function ($in, $debugopt = 1) { | |
return (function() {return 'first';})(); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Autogenerated by Avro | |
* | |
* DO NOT EDIT DIRECTLY | |
*/ | |
package org.wikimedia.mediawiki.search; | |
@SuppressWarnings("all") | |
/** An individual request made between mediawiki and elasticsearch */ | |
@org.apache.avro.specific.AvroGenerated | |
public class CirrusSearchRequest extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"type": "record", | |
"name": "CirrusSearchRequestSet", | |
"namespace": "org.wikimedia.mediawiki.search", | |
"doc": "A set of requests made by CirrusSearch to the elasticsearch user for a single php execution context", | |
"fields": [ | |
{ | |
"name": "wikiId", | |
"doc": "The wiki making this request, such as dewiki or enwiktionary", | |
"type": "string" |
OlderNewer