<commit_before>/* eslint-disable */
const { spawn } = require('child_process');
var gulp = require('gulp'),
  path = require('path'),
  rollup = require('gulp-better-rollup'),
  sass = require('gulp-sass'),
  cleanCSS = require('gulp-clean-css'),
  replace = require('gulp-replace'),
  rename = require('gulp-rename'),
  fs = require('fs-extra'),
  runSequence = require('run-sequence'),
  inlineResources = require('./tools/gulp/inline-resources');

// Execute the ngc command from command line.
const ngc = function(commands, cb) {
  const child = spawn('ngc', commands);
  child.on('close', cb);
};
const rootFolder = path.join(__dirname);
const srcFolder = path.join(rootFolder, 'src');
const tmpFolder = path.join(rootFolder, '.tmp');
const buildFolder = path.join(rootFolder, 'build');
const distFolder = path.join(rootFolder, 'dist');

gulp.task('package-version', function packageVersion() {
  const pkg = require('./package.json');
  return gulp.src([
    `${distFolder}/package.json`,
    `${distFolder}/auth/package.json`,
    `${distFolder}/resource/package.json`,
    `${distFolder}/grid/package.json`
  ], {base: distFolder})
    .pipe(replace(/"version": ""/, `"version": "${pkg.version}"`))
    .pipe(replace(/"dependencies": {}/, `"dependencies": ${JSON.stringify(pkg.dependencies, null, 2)}`))
    .pipe(replace(/"peerDependencies": {}/, `"peerDependencies": ${JSON.stringify(pkg.peerDependencies, null, 2)}`))
    .pipe(gulp.dest(distFolder));
});

/**
 * 1. Delete /dist folder
 */<commit_msg>Fix ngc call while gulp build task for windows for 4.x<commit_after>/* eslint-disable */
const { spawn } = require('child_process');
var gulp = require('gulp'),
  path = require('path'),
  rollup = require('gulp-better-rollup'),
  sass = require('gulp-sass'),
  cleanCSS = require('gulp-clean-css'),
  replace = require('gulp-replace'),
  rename = require('gulp-rename'),
  fs = require('fs-extra'),
  runSequence = require('run-sequence'),
  inlineResources = require('./tools/gulp/inline-resources');

// Execute the ngc command from command line.
const ngc = function(commands, cb) {
  const isWin = /^win/.test(process.platform);
  const child = spawn(isWin ? 'ngc.cmd' : 'ngc', commands);
  child.on('close', () => cb())
};
const rootFolder = path.join(__dirname);
const srcFolder = path.join(rootFolder, 'src');
const tmpFolder = path.join(rootFolder, '.tmp');
const buildFolder = path.join(rootFolder, 'build');
const distFolder = path.join(rootFolder, 'dist');

gulp.task('package-version', function packageVersion() {
  const pkg = require('./package.json');
  return gulp.src([
    `${distFolder}/package.json`,
    `${distFolder}/auth/package.json`,
    `${distFolder}/resource/package.json`,
    `${distFolder}/grid/package.json`
  ], {base: distFolder})
    .pipe(replace(/"version": ""/, `"version": "${pkg.version}"`))
    .pipe(replace(/"dependencies": {}/, `"dependencies": ${JSON.stringify(pkg.dependencies, null, 2)}`))
    .pipe(replace(/"peerDependencies": {}/, `"peerDependencies": ${JSON.stringify(pkg.peerDependencies, null, 2)}`))
    .pipe(gulp.dest(distFolder));
});

/**
 * 1. Delete /dist folder
 */
{'fraction_non_alphanumeric': 0.20312002546959568, 'fraction_numerical': 0.002228589621139764, 'mean_word_length': 4.8077634011090575, 'pattern_counts': {'":': 12, '<': 3, '<?xml version=': 0, '>': 4, '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': '3890305', 'n_tokens_mistral': 1011, 'n_tokens_neox': 1001, 'n_words': 203}