<commit_before>const fs = require('fs')
const rollup = require('rollup')
const uglify = require('uglify-js')
const babel = require('rollup-plugin-babel')
const npm = require('rollup-plugin-babel')
const replace = require('rollup-plugin-npm')
const pack = require('../package.json')
const banner = require('./banner')

const main = fs.readFileSync('src/index.js', 'utf-8')
    // NOTE! replace 'boily' with current name on the library
    .replace(/boily\.version = '[\d\.]+'/, "boily.version = '" + pack.version + "'")
fs.writeFileSync('src/index.js', main)


rollup.rollup({
        entry: 'src/index.js',
        plugins: [
            babel()
        ]
    })
    // Standalone Dev Build
    .then(function() {
        return rollup.rollup({
                entry: 'src/index.js',
                plugins: [
                    replace({
                        'process.env.NODE_ENV': "'development'"
                    }),
                    npm({
                        //	  jsnext: true,
                        //	  main: true,
                        //	  builtins: false
                    }),
                    babel()
                ]
            })
            .then(function(bundle) {
                return write('dist/' + pack.name + '.js', bundle.generate({
                    format: 'umd',
                    banner: banner,
                    moduleName: 'redric'
                }).code)
            })
    })
    .then(function() {
        // Standalone Production Build
        return rollup.rollup({
                entry: 'src/index.js',
                plugins: [
                    replace({
                        'process.env.NODE_ENV': "'production'"
                    }),
                    babel()<commit_msg>typo fix<commit_after>const fs = require('fs')
const rollup = require('rollup')
const uglify = require('uglify-js')
const babel = require('rollup-plugin-babel')
const npm = require('rollup-plugin-babel')
const replace = require('rollup-plugin-npm')
const pack = require('../package.json')
const banner = require('./banner')

const main = fs.readFileSync('src/index.js', 'utf-8')
    // NOTE! replace 'boily' with current name on the library
    .replace(/boily\.version = '[\d\.]+'/, "boily.version = '" + pack.version + "'")
fs.writeFileSync('src/index.js', main)


rollup.rollup({
        entry: 'src/index.js',
        plugins: [
            babel()
        ]
    })
    // Standalone Dev Build
    .then(function() {
        return rollup.rollup({
                entry: 'src/index.js',
                plugins: [
                    replace({
                        'process.env.NODE_ENV': "'development'"
                    }),
                    npm({
                        //	  jsnext: true,
                        //	  main: true,
                        //	  builtins: false
                    }),
                    babel()
                ]
            })
            .then(function(bundle) {
                return write('dist/' + pack.name + '.js', bundle.generate({
                    format: 'umd',
                    banner: banner,
                    moduleName: 'boily'
                }).code)
            })
    })
    .then(function() {
        // Standalone Production Build
        return rollup.rollup({
                entry: 'src/index.js',
                plugins: [
                    replace({
                        'process.env.NODE_ENV': "'production'"
                    }),
                    babel()
{'fraction_non_alphanumeric': 0.1414717626925271, 'fraction_numerical': 0.0005704506560182544, 'mean_word_length': 1.248076923076923, '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': '1841671', 'n_tokens_mistral': 981, 'n_tokens_neox': 908, 'n_words': 188}