<commit_before>#! /usr/bin/env node
import * as path from 'path';
import { build } from './build';
import { startWatch } from './start-watch';
import { runAngularCli } from './run-angular-cli';
import { Configuration } from './shared/configuration';
import { verifySandboxes } from './verify-sandboxes';
import { findFirstFreePort } from './shared/find-port';

(async () => {
    await run();
})();

async function run() {
    const rawArgs = process.argv.slice(2);
    const config = new Configuration(rawArgs);
    let sandboxPort, playgroundConfig;

    let configFile = path.resolve(config.flags.config.value);
    try {
        playgroundConfig = require(configFile.replace(/.json$/, ''));
    } catch (e) {
        process.stdout.write(`[angular-playground]: \x1b[31mFailed to load config file ${configFile}\x1b[0m\n`);
        process.exit(1);
    }

    // Parity between command line arguments and configuration file
    config.applyConfigurationFile(playgroundConfig);
    const sandboxesPath = await build(playgroundConfig.sourceRoot);
    console.log(config)

    if (config.flags.checkErrors.value) {
        // get port dynamically
        const port = await findFirstFreePort('127.0.0.1', 7000, 9000);
        sandboxPort = port;<commit_msg>get rid of unnecessary config log<commit_after>#! /usr/bin/env node
import * as path from 'path';
import { build } from './build';
import { startWatch } from './start-watch';
import { runAngularCli } from './run-angular-cli';
import { Configuration } from './shared/configuration';
import { verifySandboxes } from './verify-sandboxes';
import { findFirstFreePort } from './shared/find-port';

(async () => {
    await run();
})();

async function run() {
    const rawArgs = process.argv.slice(2);
    const config = new Configuration(rawArgs);
    let sandboxPort, playgroundConfig;

    let configFile = path.resolve(config.flags.config.value);
    try {
        playgroundConfig = require(configFile.replace(/.json$/, ''));
    } catch (e) {
        process.stdout.write(`[angular-playground]: \x1b[31mFailed to load config file ${configFile}\x1b[0m\n`);
        process.exit(1);
    }

    // Parity between command line arguments and configuration file
    config.applyConfigurationFile(playgroundConfig);
    const sandboxesPath = await build(playgroundConfig.sourceRoot);

    if (config.flags.checkErrors.value) {
        // get port dynamically
        const port = await findFirstFreePort('127.0.0.1', 7000, 9000);
        sandboxPort = port;
{'fraction_non_alphanumeric': 0.13915470494417864, 'fraction_numerical': 0.01674641148325359, 'mean_word_length': 3.4803571428571427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5646590', 'n_tokens_mistral': 756, 'n_tokens_neox': 724, 'n_words': 185}