<commit_before>'use strict';

import gulp from 'gulp';
import fs from 'fs';
import browserSync from 'browser-sync';
import browserify from 'browserify';
import eslint from 'gulp-eslint';
import uglify from 'gulp-uglify';
import source from 'vinyl-source-stream';
import vinylBuffer from 'vinyl-buffer';
import gulprun from 'gulp-run';

var browser = browserSync.create();

//ESLint task
gulp.task('eslint', function () {
    return gulp.src('src/**').pipe(eslint({
        'rules': {
            'quotes': [1, 'single']
        }
    }))
        .pipe(eslint.format())
        .pipe(eslint.failOnError());
});


//Browser Test
gulp.task('syncApp', function () {
    browser.init({
        server: {
            baseDir: './src'
        }
    });
    gulp.watch("src/*.{html,/*.js,/*.css}").on('change', browser.reload);
});

gulp.task('tests', function () {
    browser.init({
        server: {
            baseDir: './src'
        }
    });
    gulp.watch('./jasmine/spec/inverted-index-test..js').on('change', browser.reload);
    gulp.watch('./src/scripts/inverted-index-test..js').on('change', browser.reload);
});


gulp.task('browserify', () =>
    browserify('./jasmine/spec/inverted-index-test.js')
        .bundle()
        .pipe(source('app-test.js'))
        .pipe(gulp.dest('./jasmine/spec'))
);

gulp.task('testApp', ['browserify'], () => {
    gulprun('karma start karma.conf.js --single-run').exec();
});
<commit_msg>feature(search):Address coverage issues<commit_after>'use strict';

import gulp from 'gulp';
import fs from 'fs';
import browserSync from 'browser-sync';
import browserify from 'browserify';
import eslint from 'gulp-eslint';
import uglify from 'gulp-uglify';
import source from 'vinyl-source-stream';
import vinylBuffer from 'vinyl-buffer';
import gulprun from 'gulp-run';

var browser = browserSync.create();

//ESLint task
gulp.task('eslint', function () {
    return gulp.src('src/**').pipe(eslint({
            'rules': {
                'quotes': [1, 'single']
            }
        }))
        .pipe(eslint.format())
        .pipe(eslint.failOnError());
});


//Browser Test
gulp.task('syncApp', function () {
    browser.init({
        server: {
            baseDir: './src'
        }
    });
    gulp.watch("src/*.{html,/*.css}").on('change', browser.reload);
});

gulp.task('tests', function () {
    browser.init({
        server: {
            baseDir: './src'
        }
    });
    gulp.watch('./jasmine/spec/inverted-index-test.js').on('change', browser.reload);
    gulp.watch('./src/scripts/inverted-index.js').on('change', browser.reload);
});


gulp.task('browserify', () =>
    browserify('./jasmine/spec/inverted-index-test.js')
    .bundle()
    .pipe(source('app-test.js'))
    .pipe(gulp.dest('./jasmine/spec'))
    .on('error', function (err) {
        this.emit('end');
    });
);

gulp.task('testApp', ['browserify'], () => {
    gulprun('karma start karma.conf.js --single-run').exec();
});
{'fraction_non_alphanumeric': 0.20454545454545456, 'fraction_numerical': 0.0006784260515603799, 'mean_word_length': 2.854901960784314, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5240757', 'n_tokens_mistral': 1000, 'n_tokens_neox': 978, 'n_words': 174}