<commit_before>const ecmaVersions = {
  2022: require('./es2022'),
  2021: require('./es2020'), // no change in AST Node level
  2020: require('./es2020'),
  2019: require('./es2018'), // no change in AST Node level
  2018: require('./es2018'),
  2017: require('./es2017'),
  2016: require('./es2015'), // no change in AST Node level
  2015: require('./es2015'),
  5: require('./es5')
};

module.exports = (ecmaVersion) => {
  const version = ecmaVersion || '2020';
  return ecmaVersions[version];
};<commit_msg>feat: set default ecmaVersion to 2022<commit_after>const ecmaVersions = {
  2022: require('./es2022'),
  2021: require('./es2020'), // no change in AST Node level
  2020: require('./es2020'),
  2019: require('./es2018'), // no change in AST Node level
  2018: require('./es2018'),
  2017: require('./es2017'),
  2016: require('./es2015'), // no change in AST Node level
  2015: require('./es2015'),
  5: require('./es5')
};

module.exports = (ecmaVersion) => {
  const version = ecmaVersion || 2022;
  return ecmaVersions[version];
};
{'fraction_non_alphanumeric': 0.19407265774378585, 'fraction_numerical': 0.13766730401529637, 'mean_word_length': 3.8472222222222223, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5540187', 'n_tokens_mistral': 433, 'n_tokens_neox': 327, 'n_words': 97}