<commit_before>const path = require('path');
const config = require('hobbes-config');

module.exports = () => {
  const jestConfig = {
    cacheDirectory: '.jest',
    collectCoverageFrom: [
      `${config.get('dir_packages')}/**/*.js`,
    ],
    moduleNameMapper: {
      '^[./a-zA-Z0-9$_-]+\\.(jpg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$': path.resolve(__dirname, 'fileMock.js'),
      '^[./a-zA-Z0-9$_-]+\\.css$': path.resolve(__dirname, 'styleMock.js'),
    },
    scriptPreprocessor: path.resolve(__dirname, 'transform.js'),
    testEnvironment: 'jsdom',

    // These settings are needed because we are putting our source code
    // under /node_modules/ which is normally ignored by default
    testPathDirs: [config.get('dir_packages')],
    coveragePathIgnorePatterns: [],
    preprocessorIgnorePatterns: [],
    testPathIgnorePatterns: [],
    haste: {
      providesModuleNodeModules: ['.*'],
    },
  };

  return jestConfig;
};
<commit_msg>:package: 000000000 111111111 222222222 333333333 444444444 555555555 666666666 777777777 888888888<commit_after>const path = require('path');
const config = require('hobbes-config');

module.exports = () => {
  const jestConfig = {
    cacheDirectory: '.jest',
    collectCoverageFrom: [
      `${config.get('dir_packages')}/**/*.js`,
    ],
    moduleNameMapper: {
      '^[./a-zA-Z0-9$_-]+\\.(jpg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm)$': path.resolve(__dirname, 'fileMock.js'),
      '^[./a-zA-Z0-9$_-]+\\.css$': path.resolve(__dirname, 'styleMock.js'),
    },
    scriptPreprocessor: path.resolve(__dirname, 'transform.js'),
    testEnvironment: 'jsdom',
    testPathDirs: [config.get('dir_packages')]
  };

  return jestConfig;
};

{'fraction_non_alphanumeric': 0.1896149358226371, 'fraction_numerical': 0.05425904317386231, 'mean_word_length': 3.9, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 9, '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': '2539452', 'n_tokens_mistral': 664, 'n_tokens_neox': 595, 'n_words': 91}