<commit_before>/* Installs the necessary packages for the webpack config files to work. */

var child_process = require ('child_process');
var yarn = process.argv.slice (2)[0] === '--yarn';
var packages = [
  'babel-loader',
  'babel-preset-es2015',
  'css-loader',
  'file-loader',
  'less',
  'less-loader',
  'react-hot-loader@next',
  'style-loader',
  'url-loader',
  'webpack@latest',
  'webpack-dev-server@latest'
];

if (yarn) {
  child_process.spawn (
    'yarn', [ 'add', '-D' ].concat (packages),
    { stdio: 'inherit' }
  );
} else {
  child_process.spawn (
    'npm', [ 'i', '-D' ].concat (packages),
    { stdio: 'inherit' }
  );
}
<commit_msg>Added babel-preset-react to webpack-config install.js<commit_after>/* Installs the necessary packages for the webpack config files to work. */

var child_process = require ('child_process');
var yarn = process.argv.slice (2)[0] === '--yarn';
var packages = [
  'babel-loader',
  'babel-preset-es2015',
  'babel-preset-react',
  'css-loader',
  'file-loader',
  'less',
  'less-loader',
  'react-hot-loader@next',
  'style-loader',
  'url-loader',
  'webpack@latest',
  'webpack-dev-server@latest'
];

if (yarn) {
  child_process.spawn (
    'yarn', [ 'add', '-D' ].concat (packages),
    { stdio: 'inherit' }
  );
} else {
  child_process.spawn (
    'npm', [ 'i', '-D' ].concat (packages),
    { stdio: 'inherit' }
  );
}

{'fraction_non_alphanumeric': 0.20043415340086831, 'fraction_numerical': 0.008683068017366137, 'mean_word_length': 3.49025974025974, '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': '4692993', 'n_tokens_mistral': 535, 'n_tokens_neox': 519, 'n_words': 111}