<commit_before><?php

Route::get('/js/jstrans.js', function () {
    foreach (\Config::get('jstrans') as $lang) {
        $trans[$lang] = Lang::get($lang);
    }
    
    $json = json_encode($trans);
    
    $js = sprintf(file_get_contents(__DIR__ . '/js/jstrans.js'), $json);
    
    return response($js)->header('Content-Type', 'application/javascript');
});<commit_msg>Default trans array<commit_after><?php

Route::get('/js/jstrans.js', function () {
    $trans = [];
    
    foreach (\Config::get('jstrans') as $file) {
        $trans[$file] = Lang::get($file);
    }
    
    $json = json_encode($trans);
    
    $js = sprintf(file_get_contents(__DIR__ . '/js/jstrans.js'), $json);
    
    return response($js)->header('Content-Type', 'application/javascript');
});
{'fraction_non_alphanumeric': 0.21005154639175258, 'fraction_numerical': 0.0, 'mean_word_length': 3.389830508474576, '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': '4351957', 'n_tokens_mistral': 261, 'n_tokens_neox': 264, 'n_words': 39}