<commit_before><?php
    function mergeKeys( $config, $configLocal ) {
        if ( !is_array( $config ) ) {
            return $configLocal;
        }
        foreach ( $config as $key => $value ) {
            if ( isset( $configLocal[ $key ] ) ) {
                $config[ $key ] = mergeKeys( $config[ $key ], $configLocal[ $key ] );
            }
        }
        return $config;
    }
    function getConfig() {
        $config = require 'config/config.php';
        if ( file_exists( 'config/config-local.php' ) ) {
            $configLocal = require 'config/config-local.php';
            $config = mergeKeys( $config, $configLocal );
        }
        return $config;<commit_msg>Add prefixes so config works with migrations<commit_after><?php
    function mergeKeys( $config, $configLocal ) {
        if ( !is_array( $config ) ) {
            return $configLocal;
        }
        foreach ( $config as $key => $value ) {
            if ( isset( $configLocal[ $key ] ) ) {
                $config[ $key ] = mergeKeys( $config[ $key ], $configLocal[ $key ] );
            }
        }
        return $config;
    }
    function getConfig() {
        $pref = '';
        if ( file_exists( '../config/config.php' ) ) {
            $pref = '../';
        }
        $config = require $pref . 'config/config.php';
        if ( file_exists( $pref . 'config/config-local.php' ) ) {
            $configLocal = require $pref . 'config/config-local.php';
            $config = mergeKeys( $config, $configLocal );
        }
        return $config;
{'fraction_non_alphanumeric': 0.14906027219701878, 'fraction_numerical': 0.0, 'mean_word_length': 1.7279151943462898, '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': '66735', 'n_tokens_mistral': 449, 'n_tokens_neox': 450, 'n_words': 103}