<commit_before><?php

class Utils {

    public static function &arrayMergeRecursiveDistinct(array &$array1, &$array2 = null)
    {
        $merged = $array1;

        if (is_array($array2))
            foreach ($array2 as $key => $val)
                if (is_array($array2[$key]))
                    $merged[$key] = is_array($merged[$key]) ? self::arrayMergeRecursiveDistinct($merged[$key], $array2[$key]) : $array2[$key];
                else
                    $merged[$key] = $val;

        return $merged;
    }
}<commit_msg>undefined index on line 12<commit_after><?php

class Utils {

    public static function &arrayMergeRecursiveDistinct(array &$array1, &$array2 = null)
    {
        $merged = $array1;

        if (is_array($array2))
            foreach ($array2 as $key => $val)
                if (is_array($array2[$key]))
                    $merged[$key] = isset($merged[$key]) && is_array($merged[$key])
                        ? self::arrayMergeRecursiveDistinct($merged[$key], $array2[$key])
                        : $array2[$key];
                else
                    $merged[$key] = $val;

        return $merged;
    }
}
{'fraction_non_alphanumeric': 0.1496953872932985, 'fraction_numerical': 0.015665796344647518, 'mean_word_length': 1.9870129870129871, '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': '4964927', 'n_tokens_mistral': 367, 'n_tokens_neox': 333, 'n_words': 67}