<commit_before><?php

/**
 *
 * @author <NAME> <<EMAIL>>
 */
class EhrlichAndreas_Util_Array
{

    /**
     * A recursive array_change_key_case function.
     * 
     * @param array $input            
     * @param integer $case            
     */
    public static function arrayChangeKeyCaseRecursive ($input, $case = null)
    {
        if (! is_array($input))
        {
            trigger_error("Invalid input array '{$input}'", E_USER_NOTICE);
            exit();
        }
        
        // CASE_UPPER|CASE_LOWER
        if (null === $case)
        {
            $case = CASE_LOWER;
        }
        
        if ($case !== CASE_UPPER && $case !== CASE_LOWER)
        {
            trigger_error("Case parameter '{$case}' is invalid.", E_USER_NOTICE);
            exit();
        }
        
        $input = array_change_key_case($input, $case);
        
        foreach ($input as $key => $array)
        {
            if (is_array($array))
            {
                $input[$key] = EhrlichAndreas_Util_Array::arrayChangeKeyCaseRecursive($array, $case);
            }<commit_msg>short update<commit_after><?php

/**
 *
 * @author <NAME> <<EMAIL>>
 */
class EhrlichAndreas_Util_Array
{

    /**
     * A recursive array_change_key_case function.
     * 
     * @param array $input            
     * @param integer $case            
     */
    public static function arrayChangeKeyCaseRecursive ($input, $case = null)
    {
        if (! is_array($input))
        {
            trigger_error("Invalid input array '{$input}'", E_USER_NOTICE);
            exit();
        }
        
        // CASE_UPPER|CASE_LOWER
        if (null === $case)
        {
            $case = CASE_LOWER;
        }
        
        if ($case !== CASE_UPPER && $case !== CASE_LOWER)
        {
            trigger_error("Case parameter '{$case}' is invalid.", E_USER_NOTICE);
            exit();
        }
        
        $input = array_change_key_case($input, $case);
        
        foreach ($input as $key => $array)
        {
            if (is_array($array))
            {
                $input[$key] = self::arrayChangeKeyCaseRecursive($array, $case);
            }
{'fraction_non_alphanumeric': 0.13111726685133887, 'fraction_numerical': 0.0, 'mean_word_length': 1.5736342042755345, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4533574', 'n_tokens_mistral': 655, 'n_tokens_neox': 643, 'n_words': 125}