<commit_before>const CONFIG = {
  default: {
    plugins: [
      ['@babel/plugin-proposal-class-properties']
    ],
  },
  es5: {
    presets: [
      ['@babel/preset-env', {
        loose: true,
        useBuiltIns: false,
        targets: 'defaults',
      }]
    ],
  },
  test: {
    presets: [
      ['@babel/preset-env', {
        loose: true,
        targets: {
          node: '10'
        }
      }]
    ],
  }
};

function config(name) {
  if (name === 'default' || !CONFIG[name]) {
    return CONFIG.default;
  }

  const { presets = [], plugins = [] } = CONFIG[name];

  return {
    presets: presets.concat(CONFIG.default.presets || []),
    plugins: plugins.concat(CONFIG.default.plugins || []),
  };
}

module.exports = (api) => {
  let format;
  api.caller(caller => format = caller.output || process.env.NODE_ENV);
  api.cache.using(() => format);
<commit_msg>chore(ci): test docs workflow<commit_after>const CONFIG = {
  default: {
    plugins: [
      ['@babel/plugin-proposal-class-properties']
    ],
  },
  es5: {
    presets: [
      ['@babel/preset-env', {
        loose: true,
        useBuiltIns: false,
        targets: 'defaults',
      }]
    ],
  },
  test: {
    presets: [
      ['@babel/preset-env', {
        loose: true,
        targets: {
          node: '10'
        }
      }]
    ],
  }
};

// comment
function config(name) {
  if (name === 'default' || !CONFIG[name]) {
    return CONFIG.default;
  }

  const { presets = [], plugins = [] } = CONFIG[name];

  return {
    presets: presets.concat(CONFIG.default.presets || []),
    plugins: plugins.concat(CONFIG.default.plugins || []),
  };
}

module.exports = (api) => {
  let format;
  api.caller(caller => format = caller.output || process.env.NODE_ENV);
  api.cache.using(() => format);

{'fraction_non_alphanumeric': 0.18452047111609646, 'fraction_numerical': 0.0033651149747616375, 'mean_word_length': 2.20863309352518, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2325496', 'n_tokens_mistral': 627, 'n_tokens_neox': 612, 'n_words': 102}