<commit_before>var gulp = require('gulp');
var rimraf = require('gulp-rimraf');
var gulpDocs = require('gulp-ngdocs');
var browserSync = require('browser-sync').create();
var ghPages = require('gulp-gh-pages');

gulp.task('clean', function () {
    return gulp
        .src(['dist', 'docs'], {read: false})
        .pipe(rimraf());
});

gulp.task('ngdocs', ['clean'], function () {
    var options = {
        loadDefaults: {
            angular: false,
            angularAnimate: false,
            marked: false,
            prettify: false
        },
        scripts: [
            'node_modules/jquery/dist/jquery.min.js',
            'node_modules/marked/lib/marked.js',
            'node_modules/angular/angular.min.js',
            'node_modules/angular/angular.min.js.map',
            'node_modules/angular-animate/angular-animate.min.js',
            'node_modules/angular-animate/angular-animate.min.js.map',
            'src/focus.js'],
        html5Mode: false
    }

    return gulp
        .src('src/*.js')
        .pipe(gulpDocs.process(options))
        .pipe(gulp.dest('./docs'));
});

gulp.task('deploy', function () {
    return gulp
        .src('docs/**/*')
        .pipe(ghPages());
});

gulp.task('serve', ['ngdocs'], function (done) {
    browserSync.init({
        server: "./docs"
    });

    gulp.watch("src/**/*", ['ngdocs']);
    gulp.watch("docs/**/*").on('change', browserSync.reload);<commit_msg>Watch on docs/index.html only for performance.<commit_after>var gulp = require('gulp');
var rimraf = require('gulp-rimraf');
var gulpDocs = require('gulp-ngdocs');
var browserSync = require('browser-sync').create();
var ghPages = require('gulp-gh-pages');

gulp.task('clean', function () {
    return gulp
        .src(['dist', 'docs'], {read: false})
        .pipe(rimraf());
});

gulp.task('ngdocs', ['clean'], function () {
    var options = {
        loadDefaults: {
            angular: false,
            angularAnimate: false,
            marked: false,
            prettify: false
        },
        scripts: [
            'node_modules/jquery/dist/jquery.min.js',
            'node_modules/marked/lib/marked.js',
            'node_modules/angular/angular.min.js',
            'node_modules/angular/angular.min.js.map',
            'node_modules/angular-animate/angular-animate.min.js',
            'node_modules/angular-animate/angular-animate.min.js.map',
            'src/focus.js'],
        html5Mode: false
    }

    return gulp
        .src('src/*.js')
        .pipe(gulpDocs.process(options))
        .pipe(gulp.dest('./docs'));
});

gulp.task('deploy', function () {
    return gulp
        .src('docs/**/*')
        .pipe(ghPages());
});

gulp.task('serve', ['ngdocs'], function (done) {
    browserSync.init({
        server: "./docs"
    });

    gulp.watch("src/**/*", ['ngdocs']);
    gulp.watch("docs/index.html").on('change', browserSync.reload);
{'fraction_non_alphanumeric': 0.18614270941054809, 'fraction_numerical': 0.0006894174422612892, 'mean_word_length': 2.3394706559263523, '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': '4385023', 'n_tokens_mistral': 933, 'n_tokens_neox': 909, 'n_words': 144}