<commit_before><?php

class ArrghStaticTest extends PHPUnit_Framework_TestCase
{
    static private $simple_array = [1, 2, 3, 4, 5];
    static private $simple_array_negative = [
    static private $simple_assoc_array = [
        "banana" => 1,
        "lemon"  => 2,
        "zealot" => 42
    ];

    public function testMap()
    {
        $map_function = function ($item) { return -1 * $item; };

        $simple_array = self::$simple_array;
        $native_result = array_map($map_function, $simple_array);

        $simple_array = self::$simple_array;
        $arrgh_result = Arrgh::map($simple_array, $map_function);

        $this->assertNotEmpty($native_result);
        $this->assertNotEmpty($arrgh_result);
        $this->assertEquals($native_result, $arrgh_result);
    }

    /* Tests the case of multiple arrays */<commit_msg>Fixed unittests<commit_after><?php

class ArrghStaticTest extends PHPUnit_Framework_TestCase
{
    static private $simple_array = [1, 2, 3, 4, 5];
    static private $simple_array_negative = [-1, -2, -3 ,-4, -5];
    static private $simple_assoc_array = [
        "banana" => 1,
        "lemon"  => 2,
        "zealot" => 42
    ];

    public function testMap()
    {
        $map_function = function ($item) { return -1 * $item; };

        $simple_array = self::$simple_array;
        $native_result = array_map($map_function, $simple_array);

        $simple_array = self::$simple_array;
        $arrgh_result = Arrgh::map($simple_array, $map_function);

        $this->assertNotEmpty($native_result);
        $this->assertNotEmpty($arrgh_result);
        $this->assertEquals($native_result, $arrgh_result);
    }

    /* Tests the case of multiple arrays */
{'fraction_non_alphanumeric': 0.13572267920094008, 'fraction_numerical': 0.014688601645123384, 'mean_word_length': 2.988290398126464, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '5970790', 'n_tokens_mistral': 556, 'n_tokens_neox': 539, 'n_words': 114}