<commit_before>var gulpBabel = require('gulp-babel');
var resolve = require('./resolve');
var report = require('./report');

module.exports = function (opts) {
  opts = opts || {};

  var plugins = resolve(
    'babel-plugin-add-module-exports',
    'babel-plugin-syntax-jsx',
    ['babel-plugin-transform-react-jsx', opts.jsx]
  );

  if (opts.umd) {
    plugins.push('babel-plugin-transform-es2015-modules-umd');
  }

  return report(gulpBabel({
    plugins: plugins,
    presets: resolve('babel-preset-es2015')
  }));
};<commit_msg>Respond to PR comments: resolve<commit_after>var gulpBabel = require('gulp-babel');
var resolve = require('./resolve');
var report = require('./report');

module.exports = function (opts) {
  opts = opts || {};

  var plugins = resolve(
    'babel-plugin-add-module-exports',
    'babel-plugin-syntax-jsx',
    ['babel-plugin-transform-react-jsx', opts.jsx]
  );

  if (opts.umd) {
    plugins.push(resolve('babel-plugin-transform-es2015-modules-umd'));
  }

  return report(gulpBabel({
    plugins: plugins,
    presets: resolve('babel-preset-es2015')
  }));
};
{'fraction_non_alphanumeric': 0.1814038286235187, 'fraction_numerical': 0.014585232452142206, 'mean_word_length': 3.7947598253275108, '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': '5643406', 'n_tokens_mistral': 397, 'n_tokens_neox': 365, 'n_words': 64}