<commit_before>import browserify from 'browserify';
import babelify from 'babelify';
import es2015 from 'babel-preset-es2015';
import react from 'babel-preset-react';
import source from 'vinyl-source-stream';
import buffer from 'vinyl-buffer';

module.exports = {
    fn:function(gulp,configuration){
        const jsSrc = configuration.script.src;
        const jsDest = configuration.script.dest;
        return browserify(jsSrc+"/index.js")
           .transform(babelify, {
              presets: ['es2015', 'react','stage-0']
           })
           .bundle()
           .pipe(source('bundle.js'))
           .pipe(buffer())
           .pipe(jslint({
               predef: [ 'a_global' ],
               global: [ 'a_global' ]
           }))
           .pipe(modernizr())
           .pipe(uglify())
           .pipe(gulp.dest(jsDest))
    }
}<commit_msg>Update script.js<commit_after>import browserify from 'browserify';
import babelify from 'babelify';
import es2015 from 'babel-preset-es2015';
import react from 'babel-preset-react';
import source from 'vinyl-source-stream';
import buffer from 'vinyl-buffer';
import jslint from 'gulp-jslint';
import modernizr from 'gulp-modernizr';

module.exports = {
    fn:function(gulp,configuration){
        return browserify(configuration.script.src+"/index.js")
           .transform(babelify, {
              presets: ['es2015', 'react','stage-0']
           })
           .bundle()
           .pipe(source('bundle.js'))
           .pipe(buffer())
           .pipe(jslint({
               predef: [ 'a_global' ],
               global: [ 'a_global' ]
           }))
           .pipe(modernizr())
           .pipe(uglify())
           .pipe(gulp.dest(configuration.script.dest))
    }
}
{'fraction_non_alphanumeric': 0.14203565267395055, 'fraction_numerical': 0.014951121334100058, 'mean_word_length': 2.2523364485981308, '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': '1519856', 'n_tokens_mistral': 549, 'n_tokens_neox': 512, 'n_words': 101}