<commit_before>"use strict";


var gulp        = require("gulp"),
    tsc         = require("gulp-typescript"),
    runSequence = require("run-sequence"),
    mocha       = require("gulp-mocha"),
    istanbul    = require("gulp-istanbul");

//******** BUILD *************

var tsProject = tsc.createProject("tsconfig.json");

gulp.task("build-source", function() {
    return gulp.src([
        "src/**/**.ts"
    ])
    .pipe(tsTestProject())
    .on("error", function (err) {
        process.exit(1);
    })
    .pipe(gulp.dest("src/"));
});

var tsTestProject = tsc.createProject("tsconfig.json", {
    declaration: false
});

gulp.task("build-test", function() {
    return gulp.src([
        "test/*.ts"
    ])
    .pipe(tsTestProject())
    .on("error", function (err) {
        process.exit(1);<commit_msg>Fixing missing d.ts file from npm package on gulpfile.js<commit_after>"use strict";


var gulp        = require("gulp"),
    tsc         = require("gulp-typescript"),
    runSequence = require("run-sequence"),
    mocha       = require("gulp-mocha"),
    istanbul    = require("gulp-istanbul");

//******** BUILD *************

var tsProject = tsc.createProject("tsconfig.json", {
    declaration: true
});

gulp.task("build-source", function() {
    return gulp.src([
        "src/**/**.ts"
    ])
    .pipe(tsTestProject())
    .on("error", function (err) {
        process.exit(1);
    })
    .pipe(gulp.dest("src/"));
});

var tsTestProject = tsc.createProject("tsconfig.json", {
    declaration: true,
    noResolve: false,
    typescript: require("typescript") 
});

gulp.task("build-test", function() {
    return gulp.src([
        "test/*.ts"
    ])
    .pipe(tsTestProject())
    .on("error", function (err) {
        process.exit(1);
{'fraction_non_alphanumeric': 0.2060330108138873, 'fraction_numerical': 0.0022766078542970974, 'mean_word_length': 2.8217391304347825, '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': '3973970', 'n_tokens_mistral': 592, 'n_tokens_neox': 588, 'n_words': 99}