<commit_before>'use strict';

// --------------------------------------------------
// Imports
// --------------------------------------------------

// Required modules
const babelify   = require('babelify');
const browserify = require('browserify');
const colors     = require('colors');
const gulp       = require('gulp');
const clean      = require('gulp-clean');
const source     = require('vinyl-source-stream');

// --------------------------------------------------
// Gulp Tasks
// --------------------------------------------------

// Clean the dist directory
gulp.task('clean', function() {
  return gulp.src('app/dist', { read: false })
    .pipe(clean());
});

// Copy the HTML files into the dist directory
gulp.task('copyHTML', ['clean'], function() {
  return gulp.src(['app/src/index.html'])
    .pipe(gulp.dest('app/dist'));
});

// Copy the CSS files into the dist directory
gulp.task('copyCSS', ['copyHTML'], function() {
  return gulp.src(['app/lib/bootstrap-css/css/bootstrap.min.css', 'app/lib/font-awesome/css/font-awesome.min.css'])
    .pipe(gulp.dest('app/dist'));
});

// Copy the fonts into the dist/fonts directory
gulp.task('copyFonts', ['copyCSS'], function() {
  return gulp.src(['app/lib/font-awesome/fonts/*'])
    .pipe(gulp.dest('app/dist/fonts'));
});

// Bundle the JSX components
gulp.task('bundle', ['copyFonts'], function() {
  return browserify({
    entries: './app/src/main.jsx',
    extensions: ['.jsx'],
    debug: true
  }).transform('babelify', {presets: ['es2015', 'react']})
    .bundle()
    .pipe(source('bundle.js'))
    .pipe(gulp.dest('app/dist'));
});

// Default gulp task to start the toolchain
gulp.task('default', ['bundle']);<commit_msg>Renamed gulp tasks<commit_after>'use strict';

// --------------------------------------------------
// Imports
// --------------------------------------------------

// Required modules
const babelify   = require('babelify');
const browserify = require('browserify');
const colors     = require('colors');
const gulp       = require('gulp');
const clean      = require('gulp-clean');
const source     = require('vinyl-source-stream');

// --------------------------------------------------
// Gulp Tasks
// --------------------------------------------------

// Clean the dist directory
gulp.task('clean', function() {
  return gulp.src('app/dist', { read: false })
    .pipe(clean());
});

// Copy the HTML files into the dist directory
gulp.task('copy_html', ['clean'], function() {
  return gulp.src(['app/src/index.html'])
    .pipe(gulp.dest('app/dist'));
});

// Copy the CSS files into the dist directory
gulp.task('copy_css', ['copy_html'], function() {
  return gulp.src(['app/lib/bootstrap-css/css/bootstrap.min.css', 'app/lib/font-awesome/css/font-awesome.min.css'])
    .pipe(gulp.dest('app/dist'));
});

// Copy the fonts into the dist/fonts directory
gulp.task('copy_fonts', ['copy_css'], function() {
  return gulp.src(['app/lib/font-awesome/fonts/*'])
    .pipe(gulp.dest('app/dist/fonts'));
});

// Bundle the JSX components
gulp.task('bundle_jsx', ['copy_fonts'], function() {
  return browserify({
    entries: './app/src/main.jsx',
    extensions: ['.jsx'],
    debug: true
  }).transform('babelify', {presets: ['es2015', 'react']})
    .bundle()
    .pipe(source('bundle.js'))
    .pipe(gulp.dest('app/dist'));
});

// Default gulp task to start the toolchain
gulp.task('default', ['bundle_jsx']);
{'fraction_non_alphanumeric': 0.298917812225797, 'fraction_numerical': 0.00233986545773618, 'mean_word_length': 2.323615160349854, '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': '4754896', 'n_tokens_mistral': 1034, 'n_tokens_neox': 1008, 'n_words': 219}