<commit_before>/*
 * AppConstants
 * Each action has a corresponding type, which the reducer knows and picks up on.
 * To avoid weird typos between the reducer and the actions, we save them as
 * constants here. We prefix them with 'yourproject/YourComponent' so we avoid
 * reducers accidentally picking up actions they shouldn't.
 *
 * Follow this format:
 * export const YOUR_ACTION_CONSTANT = 'yourproject/YourContainer/YOUR_ACTION_CONSTANT';
 */

// export const LOAD_REPOS = 'boilerplate/App/LOAD_REPOS';
// export const LOAD_REPOS_SUCCESS = 'boilerplate/App/LOAD_REPOS_SUCCESS';
// export const LOAD_REPOS_ERROR = 'boilerplate/App/LOAD_REPOS_ERROR';

/* default locale from browser */
export const appLocales = [
  'en',
  'es',
  'fr',
  'it',
  'de',
  'af'
]
export const DEFAULT_LOCALE = appLocales.includes(navigator.language) ? navigator.language : 'en'<commit_msg>fix default language as browser language<commit_after>/*
 * AppConstants
 * Each action has a corresponding type, which the reducer knows and picks up on.
 * To avoid weird typos between the reducer and the actions, we save them as
 * constants here. We prefix them with 'yourproject/YourComponent' so we avoid
 * reducers accidentally picking up actions they shouldn't.
 *
 * Follow this format:
 * export const YOUR_ACTION_CONSTANT = 'yourproject/YourContainer/YOUR_ACTION_CONSTANT';
 */

// export const LOAD_REPOS = 'boilerplate/App/LOAD_REPOS';
// export const LOAD_REPOS_SUCCESS = 'boilerplate/App/LOAD_REPOS_SUCCESS';
// export const LOAD_REPOS_ERROR = 'boilerplate/App/LOAD_REPOS_ERROR';

/* default locale from browser */
export const appLocales = ['en', 'es', 'fr', 'it', 'de', 'af']
const navigatorLanguage = navigator.language.split('-')[0] // es-ES get reduced to es
export const DEFAULT_LOCALE = appLocales.includes(navigatorLanguage)
  ? navigatorLanguage
  : 'en'
{'fraction_non_alphanumeric': 0.10177705977382875, 'fraction_numerical': 0.0005385029617662897, 'mean_word_length': 4.770186335403727, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6936010', 'n_tokens_mistral': 567, 'n_tokens_neox': 556, 'n_words': 182}