<commit_before><?php

namespace Pinq\Tests;

class TestTimer implements \PHPUnit_Framework_TestListener
{
    private static $log = [];

    public static function getLongRunningTests($amount)
    {
        arsort(Timer::$log);

        return array_slice(Timer::$log, 0, $amount);
    }

    public function endTest(\PHPUnit_Framework_Test $test, $length)
    {
        self::$log[get_class($test) . '::' . $test->getName()] = $length;
    }

    public function startTest(\PHPUnit_Framework_Test $test) {}
    public function addError(\PHPUnit_Framework_Test $test, \Exception $e, $time) {}
    public function addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, $time) {}
    public function addIncompleteTest(\PHPUnit_Framework_Test $test, \Exception $e, $time) {}
    public function addSkippedTest(\PHPUnit_Framework_Test $test, \Exception $e, $time) {}
    public function startTestSuite(\PHPUnit_Framework_TestSuite $suite) { }<commit_msg>Update TestTimer.php<commit_after><?php

namespace Pinq\Tests;

class Timer implements \PHPUnit_Framework_TestListener
{
    private static $log = [];

    public static function getLongRunningTests($amount)
    {
        arsort(Timer::$log);

        return array_slice(Timer::$log, 0, $amount);
    }

    public function endTest(\PHPUnit_Framework_Test $test, $length)
    {
        self::$log[get_class($test) . '::' . $test->getName()] = $length;
    }

    public function startTest(\PHPUnit_Framework_Test $test) {}
    public function addError(\PHPUnit_Framework_Test $test, \Exception $e, $time) {}
    public function addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, $time) {}
    public function addIncompleteTest(\PHPUnit_Framework_Test $test, \Exception $e, $time) {}
    public function addSkippedTest(\PHPUnit_Framework_Test $test, \Exception $e, $time) {}
    public function startTestSuite(\PHPUnit_Framework_TestSuite $suite) { }
{'fraction_non_alphanumeric': 0.12264631043256997, 'fraction_numerical': 0.0010178117048346056, 'mean_word_length': 4.476323119777159, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1733386', 'n_tokens_mistral': 583, 'n_tokens_neox': 583, 'n_words': 127}