<commit_before>'use strict';

var path = require('path');
var gulp = require('gulp');<% if (jade || nunjucks) { %>
var plumber = require('gulp-plumber');
var data = require('gulp-data');<% } %><% if (jade) { %>
var jade = require('gulp-jade');<% } %><% if (nunjucks) { %>
var nunjucks = require('gulp-nunjucks-render');<% } %>
var sequence = require('run-sequence');
var config = require('../config');
var help = require('./help');

gulp.task('markups', [
  'html',<% if (jade) { %>
  'jade',<% } %><% if (nunjucks) { %>
  'nunjucks',<% } %>
]);

gulp.task('watch:markups', function() {
  gulp.watch(path.join(config.paths.src, '**/*.{html,json}'), function() {
    sequence('html', 'inject:compile', 'reload');
  });<% if (jade) { %>
  gulp.watch(path.join(config.paths.src, '**/*.{jade,json}'), function() {
    sequence('jade', 'inject:compile', 'reload');
  });<% } %><% if (nunjucks) { %>
  gulp.watch(path.join(config.paths.src, '**/*.{nunjucks,json}'), function() {
    sequence('nunjucks', 'inject:compile', 'reload');
  });<% } %>
});

gulp.task('html', function() {
  return gulp.src(help.filter(config.paths.src, '.html'))
    .pipe(gulp.dest(config.paths.tmp));
});<% if (jade) { %>

gulp.task('jade', function() {
  return gulp.src(help.filter(config.paths.src, '.jade'))
    .pipe(plumber(help.plumb))
    .pipe(data(function(file) {
      try {
        return help.requireUncached(path.join(path.dirname(file.path), path.basename(file.path, path.extname(file.path)) + '.json'));
      } catch(e) {}
    }))
    .pipe(jade({
      pretty: true,
    }))
    .pipe(gulp.dest(config.paths.tmp));
});<% } %><% if (nunjucks) { %>

gulp.task('nunjucks', function() {<commit_msg>json doesn't update so removed from watch<commit_after>'use strict';

var path = require('path');
var gulp = require('gulp');<% if (jade || nunjucks) { %>
var plumber = require('gulp-plumber');
var data = require('gulp-data');<% } %><% if (jade) { %>
var jade = require('gulp-jade');<% } %><% if (nunjucks) { %>
var nunjucks = require('gulp-nunjucks-render');<% } %>
var sequence = require('run-sequence');
var config = require('../config');
var help = require('./help');

gulp.task('markups', [
  'html',<% if (jade) { %>
  'jade',<% } %><% if (nunjucks) { %>
  'nunjucks',<% } %>
]);

gulp.task('watch:markups', function() {
  gulp.watch(path.join(config.paths.src, '**/*.html'), function() {
    sequence('html', 'inject:compile', 'reload');
  });<% if (jade) { %>
  gulp.watch(path.join(config.paths.src, '**/*.jade'), function() {
    sequence('jade', 'inject:compile', 'reload');
  });<% } %><% if (nunjucks) { %>
  gulp.watch(path.join(config.paths.src, '**/*.nunjucks'), function() {
    sequence('nunjucks', 'inject:compile', 'reload');
  });<% } %>
});

gulp.task('html', function() {
  return gulp.src(help.filter(config.paths.src, '.html'))
    .pipe(gulp.dest(config.paths.tmp));
});<% if (jade) { %>

gulp.task('jade', function() {
  return gulp.src(help.filter(config.paths.src, '.jade'))
    .pipe(plumber(help.plumb))
    .pipe(data(function(file) {
      try {
        return help.requireUncached(path.join(path.dirname(file.path), path.basename(file.path, path.extname(file.path)) + '.json'));
      } catch(e) {}
    }))
    .pipe(jade({
      pretty: true,
    }))
    .pipe(gulp.dest(config.paths.tmp));
});<% } %><% if (nunjucks) { %>

gulp.task('nunjucks', function() {
{'fraction_non_alphanumeric': 0.2604320804971885, 'fraction_numerical': 0.0, 'mean_word_length': 4.192012288786482, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '4605784', 'n_tokens_mistral': 1333, 'n_tokens_neox': 1279, 'n_words': 202}