<commit_before>const vfs = require('vinyl-fs');
const babel = require('@babel/core');
const through = require('through2');
const chalk = require('chalk');
const rimraf = require('rimraf');
const { readdirSync, readFileSync, writeFileSync, existsSync } = require('fs');
const { join } = require('path');
const chokidar = require('chokidar');

const lib = process.env.ES ? 'es' : 'lib';

const nodeBabelConfig = {
  presets: [
    [
      require.resolve('@babel/preset-env'),
      {
        targets: {
          node: 6,
        },
      },
    ],
    [require.resolve('@babel/preset-stage-0'), { decoratorsLegacy: true }],
  ],
};
const browserBabelConfig = {
  presets: [
    [
      require.resolve('@babel/preset-env'),
      {
        browsers: ['last 2 versions', 'IE 10'],
        modules: process.env.ES ? false : 'commonjs',
      },
    ],
    require.resolve('@babel/preset-react'),
    [require.resolve('@babel/preset-stage-0'), { decoratorsLegacy: true }],
  ],
  plugins: [require.resolve('@babel/plugin-transform-runtime')],
};

const cwd = process.cwd();

function isBrowserTransform(path) {
  return true;
}

function transform(opts = {}) {
  const { content, path } = opts;
  const isBrowser = isBrowserTransform(path);
  console.log(<commit_msg>chore: fix build script, Close #1822<commit_after>const vfs = require('vinyl-fs');
const babel = require('@babel/core');
const through = require('through2');
const chalk = require('chalk');
const rimraf = require('rimraf');
const { readdirSync, readFileSync, writeFileSync, existsSync } = require('fs');
const { join } = require('path');
const chokidar = require('chokidar');

const lib = process.env.ES ? 'es' : 'lib';

const nodeBabelConfig = {
  presets: [
    [
      require.resolve('@babel/preset-env'),
      {
        targets: {
          node: 6,
        },
      },
    ],
    [require.resolve('@babel/preset-stage-0'), { decoratorsLegacy: true }],
  ],
};
const browserBabelConfig = {
  presets: [
    [
      require.resolve('@babel/preset-env'),
      {
        targets: {
          browsers: ['last 2 versions', 'IE 10'],
        },
        modules: process.env.ES ? false : 'commonjs',
      },
    ],
    require.resolve('@babel/preset-react'),
    [require.resolve('@babel/preset-stage-0'), { decoratorsLegacy: true }],
  ],
  plugins: [require.resolve('@babel/plugin-transform-runtime')],
};

const cwd = process.cwd();

function isBrowserTransform(path) {
  return true;
}

function transform(opts = {}) {
  const { content, path } = opts;
  const isBrowser = isBrowserTransform(path);
  console.log(
{'fraction_non_alphanumeric': 0.17382888114595432, 'fraction_numerical': 0.006968641114982578, 'mean_word_length': 3.2995008319467556, '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': '5584175', 'n_tokens_mistral': 867, 'n_tokens_neox': 839, 'n_words': 163}