<commit_before>var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var runSequence = require('run-sequence');
var paths = require('../paths');
var gulpTypescript = require('gulp-typescript');
var concat = require('gulp-concat');
var assign = Object.assign || require('object.assign');
var merge = require('merge2');

var getES6options = function () {
    var options = require('../../tsconfig.json').compilerOptions;
    options['target'] = 'es6';
    options['module'] = 'es6';
    return options;
}
var getCjsOptions = function () {
    var options = require('../../tsconfig.json').compilerOptions;
    options['module'] = 'commonjs';
    options['target'] = 'es5';
    return options;
}

gulp.task('build-es6', function () {
    var options = getES6options();
    var srcResult = gulp.src(paths.source).pipe(sourcemaps.init()).pipe(gulpTypescript(options));
    var indexResult = gulp.src('index.ts').pipe(gulpTypescript(options));
    return merge([
        srcResult.dts.pipe(gulp.dest(paths.esmOutput+'src/')),
        srcResult.js.pipe(sourcemaps.write()).pipe(gulp.dest(paths.esmOutput+'src/')),
        indexResult.dts.pipe(gulp.dest(paths.esmOutput)),
        indexResult.js.pipe(gulp.dest(paths.esmOutput))
    ]);
});

gulp.task('build-commonjs', function () {
    var options = getCjsOptions();
    var srcResult = gulp.src(paths.source).pipe(gulpTypescript(options));
    var indexResult = gulp.src('index.ts').pipe(gulpTypescript(options));
    return merge([
        srcResult.dts.pipe(gulp.dest('src/')),
        srcResult.js.pipe(gulp.dest('src/')),
        indexResult.dts.pipe(gulp.dest('./')),
        indexResult.js.pipe(gulp.dest('./'))
    ]);
});

gulp.task('build', function (callback) {
    return runSequence(<commit_msg>fix(package): sourcemap generation returned<commit_after>var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var runSequence = require('run-sequence');
var paths = require('../paths');
var gulpTypescript = require('gulp-typescript');
var concat = require('gulp-concat');
var assign = Object.assign || require('object.assign');
var merge = require('merge2');

var getES6options = function () {
    var options = require('../../tsconfig.json').compilerOptions;
    options['target'] = 'es6';
    options['module'] = 'es6';
    return options;
}
var getCjsOptions = function () {
    var options = require('../../tsconfig.json').compilerOptions;
    options['module'] = 'commonjs';
    options['target'] = 'es5';
    return options;
}

gulp.task('build-es6', function () {
    var options = getES6options();
    var srcResult = gulp.src(paths.source).pipe(sourcemaps.init()).pipe(gulpTypescript(options));
    var indexResult = gulp.src('index.ts').pipe(gulpTypescript(options));
    return merge([
        srcResult.dts.pipe(gulp.dest(paths.esmOutput+'src/')),
        srcResult.js.pipe(sourcemaps.write()).pipe(gulp.dest(paths.esmOutput+'src/')),
        indexResult.dts.pipe(gulp.dest(paths.esmOutput)),
        indexResult.js.pipe(sourcemaps.write()).pipe(gulp.dest(paths.esmOutput))
    ]);
});

gulp.task('build-commonjs', function () {
    var options = getCjsOptions();
    var srcResult = gulp.src(paths.source).pipe(gulpTypescript(options));
    var indexResult = gulp.src('index.ts').pipe(gulpTypescript(options));
    return merge([
        srcResult.dts.pipe(gulp.dest('src/')),
        srcResult.js.pipe(sourcemaps.write()).pipe(gulp.dest('src/')),
        indexResult.dts.pipe(gulp.dest('./')),
        indexResult.js.pipe(sourcemaps.write()).pipe(gulp.dest('./'))
    ]);
});

gulp.task('build', function (callback) {
    return runSequence(
{'fraction_non_alphanumeric': 0.18847736625514402, 'fraction_numerical': 0.003840877914951989, 'mean_word_length': 4.120786516853933, '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': '7207443', 'n_tokens_mistral': 1169, 'n_tokens_neox': 1171, 'n_words': 178}