<commit_before>var gulp = require('gulp');
var gutil = require('gulp-util');
var source = require('vinyl-source-stream');
var browserify = require('browserify');
var watchify = require('watchify');
var reactify = require('reactify');
var streamify = require('gulp-streamify');
var _ = require('lodash');

var config = {
  main: 'js/main.js',
  out: 'bundle.js',
  dest: 'js/dist'
};

// for files that need to be run through browserify and reactify
gulp.task('js', function() {
  var bfy_opts = {
    entries: [config.main],
    transform: [reactify],
    debug: true
  };
  _.assign(bfy_opts, watchify.args);<commit_msg>note helpful sources in gulpfile<commit_after>var gulp = require('gulp');
var gutil = require('gulp-util');
var source = require('vinyl-source-stream');
var browserify = require('browserify');
var watchify = require('watchify');
var reactify = require('reactify');
var streamify = require('gulp-streamify');
var _ = require('lodash');

var config = {
  main: 'js/main.js',
  out: 'bundle.js',
  dest: 'js/dist'
};

// for files that need to be run through browserify and reactify
// Mostly copied from:
// http://tylermcginnis.com/reactjs-tutorial-pt-2-building-react-applications-with-gulp-and-browserify/
// https://github.com/gulpjs/gulp/blob/master/docs/recipes/fast-browserify-builds-with-watchify.md
gulp.task('js', function() {
  var bfy_opts = {
    entries: [config.main],
    transform: [reactify],
    debug: true
  };
  _.assign(bfy_opts, watchify.args);
{'fraction_non_alphanumeric': 0.16610625420309347, 'fraction_numerical': 0.0006724949562878278, 'mean_word_length': 4.5315985130111525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '5371166', 'n_tokens_mistral': 509, 'n_tokens_neox': 503, 'n_words': 116}