<commit_before>var gulp     = require('gulp');
var ts       = require('gulp-typescript');
var tsd      = require('gulp-tsd');
var tsconfig = require('gulp-tsconfig-files');
var tslint   = require('gulp-tslint');
var KarmaSrv = require('karma').Server;

gulp.task('tsd', function (callback) {
  tsd({
    command: 'reinstall',
    config: 'tsd.json',
  }, callback);
});


gulp.task('ts', function () {
  var tsProject = ts.createProject('tsconfig.json');
  return tsProject.src()
    .pipe(ts(tsProject))
    .js
    .pipe(gulp.dest('./dest/'));
});

gulp.task('watch', function () {
  gulp.watch('./+(src|test)/**/*.ts', ['ts', 'tslint', 'test']);
});

gulp.task('tsconfig', function () {
  gulp.src(['src/**/*.ts', 'test/**/*.ts'])
    .pipe(tsconfig({newline_eof: true}));
});

gulp.task('tslint', function () {
  gulp.src(['src/**/*.ts', 'test/**/*.ts'])
    .pipe(tslint())
    .pipe(tslint.report('verbose', {emitError: false}));
});

gulp.task('test', function (done) {
  new KarmaSrv({
    configFile: __dirname + '/karma.conf.js',
    singleRun: true,
  }, done).start();
});

gulp.task('default', ['ts', 'tslint', 'test', 'watch']);<commit_msg>Remove karma test from gulpfile.<commit_after>var gulp     = require('gulp');
var ts       = require('gulp-typescript');
var tsd      = require('gulp-tsd');
var tsconfig = require('gulp-tsconfig-files');
var tslint   = require('gulp-tslint');
var KarmaSrv = require('karma').Server;

gulp.task('tsd', function (callback) {
  tsd({
    command: 'reinstall',
    config: 'tsd.json',
  }, callback);
});


gulp.task('ts', function () {
  var tsProject = ts.createProject('tsconfig.json');
  return tsProject.src()
    .pipe(ts(tsProject))
    .js
    .pipe(gulp.dest('./dest/'));
});

gulp.task('watch', function () {
  gulp.watch('./+(src|test)/**/*.ts', ['ts', 'tslint']);
});

gulp.task('tsconfig', function () {
  gulp.src(['src/**/*.ts', 'test/**/*.ts'])
    .pipe(tsconfig({newline_eof: true}));
});

gulp.task('tslint', function () {
  gulp.src(['src/**/*.ts', 'test/**/*.ts'])
    .pipe(tslint())
    .pipe(tslint.report('verbose', {emitError: false}));
});

gulp.task('default', ['ts', 'tslint', 'watch']);
{'fraction_non_alphanumeric': 0.25530932594644506, 'fraction_numerical': 0.0, 'mean_word_length': 3.9588100686498855, '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': '4471099', 'n_tokens_mistral': 810, 'n_tokens_neox': 799, 'n_words': 136}