<commit_before>/**
 * @author <NAME> <https://github.com/mysticatea>
 * @copyright 2017 <NAME>. All rights reserved.
 * See LICENSE file in root directory for full license.
 */
import resolve from "rollup-plugin-node-resolve"
import sourcemaps from "rollup-plugin-sourcemaps"

const pkg = require("./package.json")
const external = [
    "assert",
    "events",
    "fs", //TODO: remove fs
    "path",
    "eslint/lib/util/node-event-generator",
    "eslint/lib/token-store",
    ...Object.keys(pkg.dependencies),
]

export default {
    entry: ".temp/index.js",
    external,
    dest: "index.js",
    format: "cjs",
    sourceMap: true,
    sourceMapFile: "index.js.map",
    plugins: [
        sourcemaps(),
        resolve({external}),
    ],
    banner: `/**
 * @author <NAME> <https://github.com/mysticatea>
 * @copyright 2017 <NAME>. All rights reserved.
 * See LICENSE file in root directory for full license.
 */`,
}<commit_msg>Fix: build failing on Node.js 4<commit_after>/**
 * @author <NAME> <https://github.com/mysticatea>
 * @copyright 2017 <NAME>. All rights reserved.
 * See LICENSE file in root directory for full license.
 */
import resolve from "rollup-plugin-node-resolve"
import sourcemaps from "rollup-plugin-sourcemaps"

const pkg = require("./package.json")
const external = [
    "assert",
    "events",
    "fs", //TODO: remove fs
    "path",
    "eslint/lib/util/node-event-generator",
    "eslint/lib/token-store",
].concat(Object.keys(pkg.dependencies))

export default {
    entry: ".temp/index.js",
    external,
    dest: "index.js",
    format: "cjs",
    sourceMap: true,
    sourceMapFile: "index.js.map",
    plugins: [
        sourcemaps(),
        resolve({external}),
    ],
    banner: `/**
 * @author <NAME> <https://github.com/mysticatea>
 * @copyright 2017 <NAME>. All rights reserved.
 * See LICENSE file in root directory for full license.
 */`,
}
{'fraction_non_alphanumeric': 0.1601479915433404, 'fraction_numerical': 0.008985200845665961, 'mean_word_length': 3.115217391304348, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 4, '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': '6134845', 'n_tokens_mistral': 623, 'n_tokens_neox': 600, 'n_words': 159}