<commit_before>'use strict';

var merge = require('merge2');
var del = require('del');
var gulp = require('gulp');
var ts = require('gulp-typescript');
var sourcemaps = require('gulp-sourcemaps');
var tsProject = ts.createProject('tsconfig.json');

gulp.task('build', () => {
    var tsResult = gulp.src('./src/**/*.ts')
        .pipe(sourcemaps.init())
        .pipe(ts(tsProject));

    return merge([
        tsResult.dts.pipe(gulp.dest('./lib')),
        tsResult.js
            .pipe(sourcemaps.write())
            .pipe(gulp.dest('./lib'))
    ]);
});

gulp.task('watch', ['default'], () => {
    gulp.watch('src/**/*.ts', ['build']);
});

gulp.task('clean', del.bind(null, ['lib']));

gulp.task('default', ['build']);<commit_msg>gulpfileでarrow functionを使わないように修正<commit_after>'use strict';

var merge = require('merge2');
var del = require('del');
var gulp = require('gulp');
var ts = require('gulp-typescript');
var sourcemaps = require('gulp-sourcemaps');
var tsProject = ts.createProject('tsconfig.json');

gulp.task('build', function () {
    var tsResult = gulp.src('./src/**/*.ts')
        .pipe(sourcemaps.init())
        .pipe(ts(tsProject));

    return merge([
        tsResult.dts.pipe(gulp.dest('./lib')),
        tsResult.js
            .pipe(sourcemaps.write())
            .pipe(gulp.dest('./lib'))
    ]);
});

gulp.task('watch', ['default'], function () {
    gulp.watch('src/**/*.ts', ['build']);
});

gulp.task('clean', del.bind(null, ['lib']));

gulp.task('default', ['build']);
{'fraction_non_alphanumeric': 0.23638778220451528, 'fraction_numerical': 0.0013280212483399733, 'mean_word_length': 3.4585798816568047, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5027271', 'n_tokens_mistral': 514, 'n_tokens_neox': 510, 'n_words': 84}