<commit_before>'use strict';

const _ = require('lodash');
const browserify = require('browserify');
const fs = require('fs');
const gulp = require('gulp');
const babel = require('gulp-babel');
const eslint = require('gulp-eslint');
const liveserver = require('gulp-live-server');
const notify = require('gulp-notify');
const plumber = require('gulp-plumber');
const rename = require('gulp-rename');
const sequence = require('gulp-sequence');
const sloc = require('gulp-sloc');
const sourcemaps = require('gulp-sourcemaps');
const uglify = require('gulp-uglify');
const gutil = require('gulp-util');
const jest = require('jest-cli');
const jsonlint = require('jsonlint');
const path = require('path');
const through = require('through2');
const source = require('vinyl-source-stream');
const buffer = require('vinyl-buffer');
const watchify = require('watchify');

const DefaultOptions = {
    browser: true,
    server: true,
    eslint: {
        default: { extends: path.join(__dirname, 'eslint/default.yml') },
        jest: { extends: path.join(__dirname, 'eslint/jest.yml') },
    },
    babel: require('./babel.json'),
    browserify: {
        entries: ['src/browser'],
        debug: true,
        transform: [
            [
                'babelify',
                Object.assign({}, require('./babel.json')),
            ],
        ],
    },
    jest: {
        logHeapUsage: true,
        config: {
            rootDir: path.join(__dirname, '../..'),
            testPathDirs: ['src'],
            collectCoverage: true,
            coverageReporters: ['text', 'lcov', 'clover'],
            scriptPreprocessor: path.join(__dirname, 'preprocessor.js'),
            unmockedModulePathPatterns: [
                '<rootDir>/node_modules/fbjs',
                '<rootDir>/node_modules/react',
                '<rootDir>/node_modules/react-addons-test-utils',
                '<rootDir>/node_modules/react-dom',
            ],
        },
    },
    src: {
        config: 'config/*.json',
        src: 'src/**/*.js',
        tests: 'src/**/__tests__/**/*.js',
        mocks: 'src/**/__mocks__/**/*.js',
        browser: 'src/browser/**/*.js',
        server: 'src/server/**/*.js',
    },
};

const read = (dir) =>
    fs.readdirSync(dir)<commit_msg>Add unmockedModulePathPatterns<commit_after>'use strict';

const _ = require('lodash');
const browserify = require('browserify');
const fs = require('fs');
const gulp = require('gulp');
const babel = require('gulp-babel');
const eslint = require('gulp-eslint');
const liveserver = require('gulp-live-server');
const notify = require('gulp-notify');
const plumber = require('gulp-plumber');
const rename = require('gulp-rename');
const sequence = require('gulp-sequence');
const sloc = require('gulp-sloc');
const sourcemaps = require('gulp-sourcemaps');
const uglify = require('gulp-uglify');
const gutil = require('gulp-util');
const jest = require('jest-cli');
const jsonlint = require('jsonlint');
const path = require('path');
const through = require('through2');
const source = require('vinyl-source-stream');
const buffer = require('vinyl-buffer');
const watchify = require('watchify');

const DefaultOptions = {
    browser: true,
    server: true,
    eslint: {
        default: { extends: path.join(__dirname, 'eslint/default.yml') },
        jest: { extends: path.join(__dirname, 'eslint/jest.yml') },
    },
    babel: require('./babel.json'),
    browserify: {
        entries: ['src/browser'],
        debug: true,
        transform: [
            [
                'babelify',
                Object.assign({}, require('./babel.json')),
            ],
        ],
    },
    jest: {
        logHeapUsage: true,
        config: {
            rootDir: path.join(__dirname, '../..'),
            testPathDirs: ['src'],
            collectCoverage: true,
            coverageReporters: ['text', 'lcov', 'clover'],
            scriptPreprocessor: path.join(__dirname, 'preprocessor.js'),
            unmockedModulePathPatterns: [
                '<rootDir>/node_modules/bluebird',
                '<rootDir>/node_modules/body-parser',
                '<rootDir>/node_modules/depd',
                '<rootDir>/node_modules/fbjs',
                '<rootDir>/node_modules/lodash',
                '<rootDir>/node_modules/react',
                '<rootDir>/node_modules/react-addons-test-utils',
                '<rootDir>/node_modules/react-dom',
            ],
        },
    },
    src: {
        config: 'config/*.json',
        src: 'src/**/*.js',
        tests: 'src/**/__tests__/**/*.js',
        mocks: 'src/**/__mocks__/**/*.js',
        browser: 'src/browser/**/*.js',
        server: 'src/server/**/*.js',
    },
};

const read = (dir) =>
    fs.readdirSync(dir)
{'fraction_non_alphanumeric': 0.17715371621621623, 'fraction_numerical': 0.0004222972972972973, 'mean_word_length': 2.543006731488407, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '427225', 'n_tokens_mistral': 1443, 'n_tokens_neox': 1415, 'n_words': 268}