<commit_before>/*
 * grunt-tsc
 * https://github.com/enlight/grunt-tsc
 *
 * Copyright (c) 2015 <NAME>
 * Licensed under the MIT license.
 */
'use strict';
var fs = require('fs');
var child_process = require('child_process');
var which = require('which');
function activatePlugin(grunt) {
    grunt.registerMultiTask('tsc', 'Execute TypeScript Compiler', function () {
        var task = this;
        var done = task.async();
        var options = task.options({});
        var cmd = process.execPath;
        var args = [];
        if (options.tscPath) {
            if (fs.existsSync(options.tscPath)) {
                args.push(options.tscPath);
                grunt.log.writeln("Using " + options.tscPath);
            }
            else {
                grunt.log.error("Invalid tscPath: " + options.tscPath);
                done(false);
                return;
            }
        }
        else {
            // if a path to the compiler is not provided use the one from the global typescript package
            cmd = which.sync('tsc');
            grunt.log.writeln("Using " + cmd);
        }
        if (options.project) {
            args.push('-p', options.project);
        }
        args = args.concat(options.tscOptions);
        var child = child_process.spawn(cmd, args);
        child.stdout.on('data', function (data) {
            grunt.log.write(data);
        });
        child.stderr.on('data', function (data) {<commit_msg>Update the generated output after the previous commit<commit_after>/*
 * grunt-tsc
 * https://github.com/enlight/grunt-tsc
 *
 * Copyright (c) 2015 <NAME>
 * Licensed under the MIT license.
 */
'use strict';
var fs = require('fs');
var child_process = require('child_process');
var which = require('which');
function activatePlugin(grunt) {
    grunt.registerMultiTask('tsc', 'Execute TypeScript Compiler', function () {
        var task = this;
        var done = task.async();
        var options = task.options({});
        var cmd = process.execPath;
        var args = [];
        if (options.tscPath) {
            if (fs.existsSync(options.tscPath)) {
                args.push(options.tscPath);
                grunt.log.writeln("Using " + options.tscPath);
            }
            else {
                grunt.log.error("Invalid tscPath: " + options.tscPath);
                done(false);
                return;
            }
        }
        else {
            // if a path to the compiler is not provided use the one from the global typescript package
            cmd = which.sync('tsc');
            grunt.log.writeln("Using " + cmd);
        }
        if (options.project) {
            args.push('-p', options.project);
        }
        if (options.tscOptions) {
            args = args.concat(options.tscOptions);
        }
        var child = child_process.spawn(cmd, args);
        child.stdout.on('data', function (data) {
            grunt.log.write(data);
        });
        child.stderr.on('data', function (data) {
{'fraction_non_alphanumeric': 0.13184245660881175, 'fraction_numerical': 0.0026702269692923898, 'mean_word_length': 1.8734419942473635, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '2792219', 'n_tokens_mistral': 872, 'n_tokens_neox': 853, 'n_words': 201}