<commit_before>const BABEL_ENV = process.env.BABEL_ENV;
const building = BABEL_ENV != undefined && BABEL_ENV !== 'cjs';

const plugins = [];

if (BABEL_ENV === 'umd') {
  plugins.push('external-helpers');
}

if (process.env.NODE_ENV === 'production') {
  plugins.push(
    'dev-expression',
    'transform-react-remove-prop-types'
  );
}

module.exports = {
  presets: [
    ['env', {
      'loose': true,
      'modules': building ? false : 'commonjs',
      'uglify': true,
    }],
    'react'
  ],
  plugins: plugins
};
<commit_msg>Update Babel presets to align with new Babel version<commit_after>const BABEL_ENV = process.env.BABEL_ENV;
const building = BABEL_ENV != undefined && BABEL_ENV !== 'cjs';

const plugins = [];

if (process.env.NODE_ENV === 'production') {
  plugins.push(
    'babel-plugin-dev-expression',
    'babel-plugin-transform-react-remove-prop-types'
  );
}

module.exports = () => {
  return {
    presets: [
      ['@babel/preset-env', {
        'loose': true,
        'modules': building ? false : 'commonjs',
      }],
      '@babel/preset-react'
    ],
    plugins: plugins
  };
};

{'fraction_non_alphanumeric': 0.1752021563342318, 'fraction_numerical': 0.0, 'mean_word_length': 3.0955882352941178, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '7621308', 'n_tokens_mistral': 400, 'n_tokens_neox': 400, 'n_words': 73}