<commit_before>// Include gulp
var gulp = require('gulp'),
  fs = require('fs'),
  pkg = JSON.parse(fs.readFileSync('./package.json')),
  beep = require('beepbeep'),
  onError = function (err) { beep(); }
;

// Include Our Plugins
var appcache = require('gulp-appcache'),
  clone      = require('gulp-clone'),
  concat     = require('gulp-concat'),
  imageResize= require('gulp-image-resize'),
  jshint     = require('gulp-jshint'),
  livereload = require('gulp-livereload'),
  plumber    = require('gulp-plumber'),
  postcss    = require('gulp-postcss'),
  rename     = require("gulp-rename"),
  replace    = require('gulp-replace'),
  sass       = require('gulp-sass'),
  shell      = require('gulp-shell'),
  sourcemaps = require('gulp-sourcemaps'),
  uglify     = require('gulp-uglify')
;

// Lint Task
gulp.task('jshint', function() {
  return gulp.src([
      pkg.directories.js_src + '/**/*.js',
      '!' + pkg.directories.js_src + '/vendor/*.js'
    ])
    .pipe(plumber({errorHandler: onError}))
    .pipe(jshint({ // see https://github.com/jshint/jshint/blob/master/examples/.jshintrc
      browser: true,
      jquery: true,
      strict: true,
      curly: true,
      undef: true
    }))
    .pipe(jshint.reporter('default'))
    .pipe(jshint.reporter('fail'))
  ;
});

// Concatenate & Minify JS
gulp.task('uglify', function() {
  return gulp.src([
      pkg.directories.js_src + '/vendor/*.js', // disable this line by prepending '!' - in case of errors
      pkg.directories.js_src + '/modules/*.js',
      pkg.directories.js_src + '/main.js'
    ])
    .pipe(concat('scripts.js'))
    .pipe(uglify({output: {
      max_line_len: 9000<commit_msg>Changing writing of variables for better sorting.<commit_after>// Include gulp
var gulp = require('gulp');
var fs = require('fs');
var pkg = JSON.parse(fs.readFileSync('./package.json'));
var beep = require('beepbeep');
var onError = function (err) { beep(); };

// Include Our Plugins
var appcache = require('gulp-appcache');
var clone      = require('gulp-clone');
var concat     = require('gulp-concat');
var imageResize= require('gulp-image-resize');
var jshint     = require('gulp-jshint');
var livereload = require('gulp-livereload');
var plumber    = require('gulp-plumber');
var postcss    = require('gulp-postcss');
var rename     = require("gulp-rename");
var replace    = require('gulp-replace');
var sass       = require('gulp-sass');
var shell      = require('gulp-shell');
var sourcemaps = require('gulp-sourcemaps');
var uglify     = require('gulp-uglify');

// Lint Task
gulp.task('jshint', function() {
  return gulp.src([
      pkg.directories.js_src + '/**/*.js',
      '!' + pkg.directories.js_src + '/vendor/*.js'
    ])
    .pipe(plumber({errorHandler: onError}))
    .pipe(jshint({ // see https://github.com/jshint/jshint/blob/master/examples/.jshintrc
      browser: true,
      jquery: true,
      strict: true,
      curly: true,
      undef: true
    }))
    .pipe(jshint.reporter('default'))
    .pipe(jshint.reporter('fail'))
  ;
});

// Concatenate & Minify JS
gulp.task('uglify', function() {
  return gulp.src([
      pkg.directories.js_src + '/vendor/*.js', // disable this line by prepending '!' - in case of errors
      pkg.directories.js_src + '/modules/*.js',
      pkg.directories.js_src + '/main.js'
    ])
    .pipe(concat('scripts.js'))
    .pipe(uglify({output: {
      max_line_len: 9000
{'fraction_non_alphanumeric': 0.18120212139068945, 'fraction_numerical': 0.002357100766057749, 'mean_word_length': 3.186189889025894, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3973973', 'n_tokens_mistral': 1216, 'n_tokens_neox': 1182, 'n_words': 224}