<commit_before>'use strict';

var config = require('./config');
if(config.writeFilesSimultaneously) {
  var isProduction = process.argv.length >= 3 && process.argv[2] == 'prod';
  if(isProduction) {
    config.paths.destEndpoint = config.paths.dest;
    config.paths.dest +=  '_' + (+new Date());
  }
}
if(!config.paths.destEndpoint) {
  config.paths.destEndpoint = config.paths.dest;
}

var gulp = require('gulp'),
    fs = require('fs'),
    path = require('path'),
    runSequence = require('run-sequence');

global.isProduction = false;
global.isWatch = false;

fs.readdirSync(__dirname + '/tasks/')
  // tasks scripts
  .filter(function(name) {
    return /(\.(js)$)/i.test(path.extname(name));
  })
  // load
  .forEach(function(task) {
    require('./tasks/' + task);
  });

gulp.task('build-assets', function(cb) {
  runSequence(['images', 'fonts'], 'styles', ['templates', 'scripts-vendor'], cb)
})

gulp.task('default', ['clean-all'], function(cb) {
  runSequence('build-assets', 'scripts-watch', 'watch', 'server', cb)
});

<commit_msg>update base task<commit_after>'use strict';

var config = require('./config');
if(config.writeFilesSimultaneously) {
  var isProduction = process.argv.length >= 3 && process.argv[2] == 'prod';
  if(isProduction) {
    config.paths.destEndpoint = config.paths.dest;
    config.paths.dest +=  '_' + (+new Date());
  }
}
if(!config.paths.destEndpoint) {
  config.paths.destEndpoint = config.paths.dest;
}

var gulp = require('gulp'),
    fs = require('fs'),
    path = require('path'),
    runSequence = require('run-sequence');

global.isProduction = false;
global.isWatch = false;

fs.readdirSync(__dirname + '/tasks/')
  // tasks scripts
  .filter(function(name) {
    return /(\.(js)$)/i.test(path.extname(name));
  })
  // load
  .forEach(function(task) {
    require('./tasks/' + task);
  });

gulp.task('build-assets', function(cb) {
  runSequence(['images', 'fonts', 'sprites'], 'styles', ['templates', 'scripts-vendor'], cb)
})

gulp.task('default', ['clean-all'], function(cb) {
  runSequence('build-assets', 'scripts-watch', 'watch', 'server', cb)
});


{'fraction_non_alphanumeric': 0.20920303605313093, 'fraction_numerical': 0.0018975332068311196, 'mean_word_length': 4.194581280788177, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6907444', 'n_tokens_mistral': 711, 'n_tokens_neox': 699, 'n_words': 125}