<commit_before>const gulp = require('gulp');
const inlineNg2Template = require('gulp-inline-ng2-template');
const path = require('path');
const fs = require('fs-extra');
const glob = require('glob');
const exec = require('child_process').exec;

gulp.task('clean', () => {
    return Promise.all([
        fs.remove(path.join(__dirname, './dist/')),
        fs.remove(path.join(__dirname, './build/')),
    ]);
});

gulp.task('inline', ['clean'], () => {
    return gulp.src('./src/**/*.ts')
        .pipe(inlineNg2Template({ base: '/src/app' }))
        .pipe(gulp.dest('./build'));
});

gulp.task('aot', (cb) => {
    exec('ngc -p ./tsconfig.json', (err, stdout, stderr) => {
        console.log(stdout);
        console.log(stderr);
        cb(err);
    });
});

gulp.task('build', ['inline', 'aot']);<commit_msg>fix build<commit_after>const gulp = require('gulp');
const inlineNg2Template = require('gulp-inline-ng2-template');
const path = require('path');
const fs = require('fs-extra');
const glob = require('glob');
const exec = require('child_process').exec;

gulp.task('clean', () => {
    return Promise.all([
        fs.remove(path.join(__dirname, './dist/')),
        fs.remove(path.join(__dirname, './build/')),
    ]);
});

gulp.task('inline', ['clean'], () => {
    return gulp.src('./src/**/*.ts')
        .pipe(inlineNg2Template({ base: '/src/app' }))
        .pipe(gulp.dest('./build'));
});

gulp.task('aot', ['inline'], (cb) => {
    exec('ngc -p ./tsconfig.json', (err, stdout, stderr) => {
        console.log(stdout);
        console.log(stderr);
        cb(err);
    });
});

gulp.task('build', ['aot']);
{'fraction_non_alphanumeric': 0.2457002457002457, 'fraction_numerical': 0.0036855036855036856, 'mean_word_length': 3.3324468085106385, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4456794', 'n_tokens_mistral': 560, 'n_tokens_neox': 559, 'n_words': 94}