<commit_before>/// <binding />
/// <reference path="typings/index.d.ts" />

'use strict';

var config = require('./config.json'),
    fs = require('fs'),
    gulp = require('gulp');

/**
 * gets all tasks
 * @private
 */
var getAllTasks = function() {
    var path = config.paths.tasks;
    var files = fs.readdirSync(path);
    files.forEach(function(file, i) {
        require(path + '/' + file)();
    });
};

/**
 * get external defined tasks
 * @param {string} task Taskname
 * @param {string} [path] Optional path
 * @private
 */
var getTask = function(task, path) {
    if (typeof path === 'undefined') {
        path = config.paths.src + config.paths.tasks;
    }
    require(path + '/' + task)();
};

// load tasks
getAllTasks();

gulp.add('config:watch', function() {
    gulp.watch(['config.json', 'gulpfile.js'], ['default', 'server:reload']);
});

// main tasks
gulp.task('docs', ['sass:docs', 'scripts:docs']);
gulp.task('watch', ['config:watch', 'sass:watch', 'scripts:watch', 'styleguide:watch']);
gulp.task('serve', ['server:start' , 'watch']);
gulp.task('all', ['sass:build', 'sass:docs', 'scripts:build', 'scripts:docs', 'styleguide:build']);
gulp.task('prod', ['sass:build', 'scripts:build']);
gulp.task('default', ['sass:build', 'scripts:build', 'styleguide:build']);<commit_msg>Updated config watch task<commit_after>/// <binding />
/// <reference path="typings/index.d.ts" />

'use strict';

var config = require('./config.json'),
    fs = require('fs'),
    gulp = require('gulp');

/**
 * gets all tasks
 * @private
 */
var getAllTasks = function() {
    var path = config.paths.tasks;
    var files = fs.readdirSync(path);
    files.forEach(function(file, i) {
        require(path + '/' + file)();
    });
};

/**
 * get external defined tasks
 * @param {string} task Taskname
 * @param {string} [path] Optional path
 * @private
 */
var getTask = function(task, path) {
    if (typeof path === 'undefined') {
        path = config.paths.src + config.paths.tasks;
    }
    require(path + '/' + task)();
};

// load tasks
getAllTasks();

gulp.add('config:watch', function() {
    gulp.watch(['config.json', 'package.json', 'gulpfile.js'], ['default', 'server:reload']);
});

// main tasks
gulp.task('docs', ['sass:docs', 'scripts:docs']);
gulp.task('watch', ['config:watch', 'sass:watch', 'scripts:watch', 'styleguide:watch']);
gulp.task('serve', ['server:start' , 'watch']);
gulp.task('all', ['sass:build', 'sass:docs', 'scripts:build', 'scripts:docs', 'styleguide:build']);
gulp.task('prod', ['sass:build', 'scripts:build']);
gulp.task('default', ['sass:build', 'scripts:build', 'styleguide:build']);
{'fraction_non_alphanumeric': 0.228310502283105, 'fraction_numerical': 0.0, 'mean_word_length': 4.279116465863454, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7264774', 'n_tokens_mistral': 887, 'n_tokens_neox': 892, 'n_words': 187}