<commit_before><?php

/***** Config *****/
if (! file_exists(APP_DIR.'/configs/global.php')) {
    exit('No global config file found. Please create one (app/configs/global.php)!');
}

$app->register(
    new Igorw\Silex\ConfigServiceProvider(
        APP_DIR.'/configs/global.php'
    )
);

if (file_exists(APP_DIR.'/configs/global-local.php')) {
    $app->register(
        new Igorw\Silex\ConfigServiceProvider(
                APP_DIR.'/configs/global-local.php'<commit_msg>local congif should only work locally<commit_after><?php

/***** Config *****/
if (! file_exists(APP_DIR.'/configs/global.php')) {
    exit('No global config file found. Please create one (app/configs/global.php)!');
}

$app->register(
    new Igorw\Silex\ConfigServiceProvider(
        APP_DIR.'/configs/global.php'
    )
);

// This local file should only work on localhost
if (
    file_exists(APP_DIR.'/configs/global-local.php')
    && in_array(
        @$_SERVER['REMOTE_ADDR'],
        array(
            '127.0.0.1',
            'fe80::1',
            '::1'
        )
    )
) {
    $app->register(
        new Igorw\Silex\ConfigServiceProvider(
                APP_DIR.'/configs/global-local.php'
{'fraction_non_alphanumeric': 0.1676545300592718, 'fraction_numerical': 0.00846740050804403, 'mean_word_length': 2.6369230769230767, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '1642182', 'n_tokens_mistral': 420, 'n_tokens_neox': 403, 'n_words': 64}