<commit_before>var gulp = require('gulp');

// for multiple tasks
var rename = require('gulp-rename');

// for the minify task
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');

// for the jsdoc-generate task
var gulpJsdoc2md = require('gulp-jsdoc-to-markdown');
var gutil = require('gulp-util');

/* The current directory in this script is the same as the base directory
   of this project, the one that contains the src folder. */

/* This is a list of all the required source files, 
   in the order that they should appear in the concatenated files. */
var sources = [
  // Dependencies
  './src/scripts/vendor/threejs/build/three.js', // Use the whole thing for now
  './src/scripts/vendor/tween.min.js', // TODO: add the new version
  
  // Utils
  './src/scripts/utils/utils.js',
  './src/scripts/main.js',
  './src/scripts/utils/Array.js',
  './src/scripts/utils/Number.js',
  './src/scripts/utils/String.js',
  
  // Main stuff
  './src/scripts/colors.js',
  './src/scripts/controls.js',
  './src/scripts/cubelets.js',
  './src/scripts/cubes.js',
  './src/scripts/directions.js',
  './src/scripts/folds.js',
  './src/scripts/groups.js',
  './src/scripts/interaction.js',
  './src/scripts/projector.js',
  './src/scripts/queues.js',
  './src/scripts/renderer.js',
  './src/scripts/slices.js',
  './src/scripts/solvers.js',
  './src/scripts/twists.js',
  
  // Extras
  // Just include everything for now
  './src/scripts/extras/controls/locked.js',
  './src/scripts/extras/renderers/iecss3d.js',
  './src/scripts/extras/renderers/ierenderer.js',
  './src/scripts/extras/deviceMotion.js',
  './src/scripts/extras/inspect.js'
];

var projectName = 'ThreeTwist';

/* gulp.task returns the orchestrator, so here's a wrapper that returns the
   task name so that we can define the tasks once and get an ordered task list
   out of the deal that can be used to create the default task. */
var makeTask = function(taskName, task) {
  gulp.task(taskName, task);
  return taskName;
};

var tasks = {
  'minify': function() {
    return gulp.src(sources)
      .pipe(concat(projectName + '.js'))
      .pipe(gulp.dest('./build'))
      .pipe(rename(projectName + '.min.js'))<commit_msg>Remove makeTask in gulpfile.js because it's not needed.<commit_after>var gulp = require('gulp');

// for multiple tasks
var rename = require('gulp-rename');

// for the minify task
var uglify = require('gulp-uglify');
var concat = require('gulp-concat');

// for the jsdoc-generate task
var gulpJsdoc2md = require('gulp-jsdoc-to-markdown');
var gutil = require('gulp-util');

/* The current directory in this script is the same as the base directory
   of this project, the one that contains the src folder. */

/* This is a list of all the required source files, 
   in the order that they should appear in the concatenated files. */
var sources = [
  // Dependencies
  './src/scripts/vendor/threejs/build/three.js', // Use the whole thing for now
  './src/scripts/vendor/tween.min.js', // TODO: add the new version
  
  // Utils
  './src/scripts/utils/utils.js',
  './src/scripts/main.js',
  './src/scripts/utils/Array.js',
  './src/scripts/utils/Number.js',
  './src/scripts/utils/String.js',
  
  // Main stuff
  './src/scripts/colors.js',
  './src/scripts/controls.js',
  './src/scripts/cubelets.js',
  './src/scripts/cubes.js',
  './src/scripts/directions.js',
  './src/scripts/folds.js',
  './src/scripts/groups.js',
  './src/scripts/interaction.js',
  './src/scripts/projector.js',
  './src/scripts/queues.js',
  './src/scripts/renderer.js',
  './src/scripts/slices.js',
  './src/scripts/solvers.js',
  './src/scripts/twists.js',
  
  // Extras
  // Just include everything for now
  './src/scripts/extras/controls/locked.js',
  './src/scripts/extras/renderers/iecss3d.js',
  './src/scripts/extras/renderers/ierenderer.js',
  './src/scripts/extras/deviceMotion.js',
  './src/scripts/extras/inspect.js'
];

var projectName = 'ThreeTwist';

var tasks = {
  'minify': function() {
    return gulp.src(sources)
      .pipe(concat(projectName + '.js'))
      .pipe(gulp.dest('./build'))
      .pipe(rename(projectName + '.min.js'))
{'fraction_non_alphanumeric': 0.17576050217286335, 'fraction_numerical': 0.0009657170449058426, 'mean_word_length': 3.1142005958291956, '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': '3651189', 'n_tokens_mistral': 1423, 'n_tokens_neox': 1461, 'n_words': 326}