<commit_before>const gulp = require('gulp'),
      eventStream = require('event-stream'),
      gulpLoadPlugins = require('gulp-load-plugins'),
      fs = require('fs'),
      del = require('del'),
      path = require('path'),
      size = require('gulp-size'),
      uri = require('urijs'),
      urljoin = require('url-join'),
      s = require('underscore.string'),
      stringifyObject = require('stringify-object'),
      argv = require('yargs').argv,
      hawtio = require('hawtio-node-backend');

const package = require('./package.json');
const plugins = gulpLoadPlugins({});

var config = {
  main: '.',
  ts: ['plugins/**/*.ts'],
  dist: argv.out || './dist/',
  js: 'hawtio-kubernetes-api.js',
  dts: 'hawtio-kubernetes-api.d.ts',
  sourceMap: argv.sourcemap
};

const tsProject = plugins.typescript.createProject('tsconfig.json');

var normalSizeOptions = {
    showFiles: true
}, gZippedSizeOptions  = {
    showFiles: true,
    gzip: true
};

gulp.task('clean-defs', () => del(config.dist + '*.d.ts'));

gulp.task('tsc', function() {
    const tsResult = tsProject.src()
    .pipe(plugins.if(config.sourceMap, plugins.sourcemaps.init()))
    .pipe(tsProject())
    .on('error', plugins.notify.onError({
      onLast : true,
      message: '<%= error.message %>',
      title  : 'Typescript compilation error'
    }));<commit_msg>Remove unused TS definitions clean task<commit_after>const gulp = require('gulp'),
      eventStream = require('event-stream'),
      gulpLoadPlugins = require('gulp-load-plugins'),
      fs = require('fs'),
      del = require('del'),
      path = require('path'),
      size = require('gulp-size'),
      uri = require('urijs'),
      urljoin = require('url-join'),
      s = require('underscore.string'),
      stringifyObject = require('stringify-object'),
      argv = require('yargs').argv,
      hawtio = require('hawtio-node-backend');

const package = require('./package.json');
const plugins = gulpLoadPlugins({});

var config = {
  main: '.',
  ts: ['plugins/**/*.ts'],
  dist: argv.out || './dist/',
  js: 'hawtio-kubernetes-api.js',
  dts: 'hawtio-kubernetes-api.d.ts',
  sourceMap: argv.sourcemap
};

const tsProject = plugins.typescript.createProject('tsconfig.json');

var normalSizeOptions = {
    showFiles: true
}, gZippedSizeOptions  = {
    showFiles: true,
    gzip: true
};

gulp.task('tsc', function() {
    const tsResult = tsProject.src()
    .pipe(plugins.if(config.sourceMap, plugins.sourcemaps.init()))
    .pipe(tsProject())
    .on('error', plugins.notify.onError({
      onLast : true,
      message: '<%= error.message %>',
      title  : 'Typescript compilation error'
    }));
{'fraction_non_alphanumeric': 0.18253669552126459, 'fraction_numerical': 0.0, 'mean_word_length': 3.3717105263157894, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '558483', 'n_tokens_mistral': 859, 'n_tokens_neox': 849, 'n_words': 162}