<commit_before><?php

/**
 * This test performs test install, it can do it only if script is not installed yet.
 */
class UtilTest extends PHPUnit_Framework_TestCase
{
    /**
     * @dataProvider providerForReturnBytes
     */
    public function testReturnBytes($sInput, $sOutput)
    {
        $this->assertEquals(return_bytes($sInput), $sOutput);
    }

    public function providerForReturnBytes()
    {
        return array(
            array('2k', 2048),
            array('2K', 2048),
            array('2 k', 2048),
            array('2 K', 2048),
            array('1m', 1048576),
            array('1g', 1073741824),
        );
    }
}<commit_msg>#37 - "failed tests" test<commit_after><?php

/**
 * This test performs test install, it can do it only if script is not installed yet.
 */
class UtilTest extends PHPUnit_Framework_TestCase
{
    /**
     * @dataProvider providerForReturnBytes
     */
    public function testReturnBytes($sInput, $sOutput)
    {
        $this->assertEquals(return_bytes($sInput), $sOutput);
    }

    public function providerForReturnBytes()
    {
        return array(
            array('2k', 20480),
            array('2K', 20480),
            array('2 k', 20480),
            array('2 K', 20480),
            array('1m', 10485760),
            array('1g', 10737418240),
        );
    }
}
{'fraction_non_alphanumeric': 0.12743628185907047, 'fraction_numerical': 0.06446776611694154, 'mean_word_length': 2.2246376811594204, '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': '5189828', 'n_tokens_mistral': 445, 'n_tokens_neox': 388, 'n_words': 99}