<commit_before>/* global rm, mkdir, cp, exec, cat */
require('shelljs/global');
var _ = require('lodash');

var gulp = require('gulp');
var browserify = require('gulp-browserify');
var less = require('gulp-less');
var rename = require('gulp-rename');
var gutil = require('gulp-util');
var runSequence = require('run-sequence');
var testem = require('gulp-testem');
var webpack = require('webpack');
var webpackConfig = require('./webpack.config');

gulp.task('example', function(callback) {
  webpack(webpackConfig, function(err, stats) {
      if(err) throw new gutil.PluginError('webpack', err);
      gutil.log('[webpack]', stats.toString({}));
      callback();
    });
});

gulp.task('pack-for-tests', function(callback) {
  var config = _.clone(webpackConfig);
  _.assign(config, {
    entry: './test/entry.js',
    output: {
      path: __dirname + '/test',
      filename: 'bundle.js'
    }
  });
  webpack(config, function(err, stats) {
      if(err) throw new gutil.PluginError('webpack', err);
      gutil.log('[webpack]', stats.toString({}));
      callback();
    });
});

gulp.task('tideline', function() {
  return gulp.src('js/index.js')
    .pipe(browserify({
      bundleExternal: false,
      standalone: 'tideline'
    }))
    .pipe(rename('tideline.js'))
    .pipe(gulp.dest('dist'));<commit_msg>add pack-for-ghpages task (for updating current progress page)<commit_after>/* global rm, mkdir, cp, exec, cat */
require('shelljs/global');
var _ = require('lodash');

var gulp = require('gulp');
var browserify = require('gulp-browserify');
var less = require('gulp-less');
var rename = require('gulp-rename');
var gutil = require('gulp-util');
var runSequence = require('run-sequence');
var testem = require('gulp-testem');
var webpack = require('webpack');
var webpackConfig = require('./webpack.config');

gulp.task('example', function(callback) {
  webpack(webpackConfig, function(err, stats) {
      if(err) throw new gutil.PluginError('webpack', err);
      gutil.log('[webpack]', stats.toString({}));
      callback();
    });
});

gulp.task('pack-for-tests', function(callback) {
  var config = _.clone(webpackConfig);
  _.assign(config, {
    entry: './test/entry.js',
    output: {
      path: __dirname + '/test',
      filename: 'bundle.js'
    }
  });
  webpack(config, function(err, stats) {
      if(err) throw new gutil.PluginError('webpack', err);
      gutil.log('[webpack]', stats.toString({}));
      callback();
    });
});

gulp.task('pack-for-ghpages', function(callback) {
  webpack(webpackConfig, function(err, stats) {
    if(err) throw new gutil.PluginError('webpack', err);
    gutil.log('[webpack]', stats.toString({}));
    callback();
  });
});

gulp.task('tideline', function() {
  return gulp.src('js/index.js')
    .pipe(browserify({
      bundleExternal: false,
      standalone: 'tideline'
    }))
    .pipe(rename('tideline.js'))
    .pipe(gulp.dest('dist'));
{'fraction_non_alphanumeric': 0.19423472889498972, 'fraction_numerical': 0.0, 'mean_word_length': 4.0432525951557095, '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': '2424538', 'n_tokens_mistral': 955, 'n_tokens_neox': 946, 'n_words': 191}