<commit_before>/******************************************************************************
 * Gulpfile
 * Be sure to run `npm install` for `gulp` and the following tasks to be
 * available from the command line. All tasks are run using `gulp taskName`.
 ******************************************************************************/
var gulp = require('gulp');
var del = require('del');
var path = require('path');
var config = require('./ionic.config');
var ts = require('gulp-typescript');
var tslint = require('gulp-tslint');
var karma = require('karma').Server;
var mkdirp = require('mkdirp');

// typescript files are compiled individually and saved to www/build/test/ - delete them here
gulp.task('test.clean', function() {
  // You can use multiple globbing patterns as you would with `gulp.src`
  return del([config.paths.test.dest]);
});

// run tslint against all typescript
gulp.task('test.lint', function () {
  gulp.src(config.paths.test.app)
    .pipe(tslint())
    .pipe(tslint.report('verbose'));
});

gulp.task('test.copyHTML', ['test.clean'], function() {
  // need to manually make a directoy for admin atm as there is no *.ts inside
  mkdirp(config.paths.test.dest + '/admin', function(err) {
    if (err) {
      console.log(err);
      throw err;
    }
    gulp.src(config.paths.html.src)
      .pipe(gulp.dest(config.paths.test.dest));
  });
});

// compile typescript into indivudal files, project directoy structure is replicated under www/build/test
gulp.task('test.compile', ['test.clean'], function () {
  // tsconfig options basically copy pasta from tsconfig.json
  var tsOptions = {
    "target": "es5",<commit_msg>Removing mkdir for admin not needed<commit_after>/******************************************************************************
 * Gulpfile
 * Be sure to run `npm install` for `gulp` and the following tasks to be
 * available from the command line. All tasks are run using `gulp taskName`.
 ******************************************************************************/
var gulp = require('gulp');
var del = require('del');
var path = require('path');
var config = require('./ionic.config');
var ts = require('gulp-typescript');
var tslint = require('gulp-tslint');
var karma = require('karma').Server;

// typescript files are compiled individually and saved to www/build/test/ - delete them here
gulp.task('test.clean', function() {
  // You can use multiple globbing patterns as you would with `gulp.src`
  return del([config.paths.test.dest]);
});

// run tslint against all typescript
gulp.task('test.lint', function () {
  gulp.src(config.paths.test.app)
    .pipe(tslint())
    .pipe(tslint.report('verbose'));
});

gulp.task('test.copyHTML', ['test.clean'], function() {
  gulp.src(config.paths.html.src)
    .pipe(gulp.dest(config.paths.test.dest));
});

// compile typescript into indivudal files, project directoy structure is replicated under www/build/test
gulp.task('test.compile', ['test.clean'], function () {
  // tsconfig options basically copy pasta from tsconfig.json
  var tsOptions = {
    "target": "es5",
{'fraction_non_alphanumeric': 0.2382343395001623, 'fraction_numerical': 0.0006491398896462187, 'mean_word_length': 4.593466424682395, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '3454577', 'n_tokens_mistral': 895, 'n_tokens_neox': 872, 'n_words': 264}