<commit_before>'use strict';

const util = require('util');
const fs = require('fs');
const _ = require('lodash');
const chalk = require('chalk');
const yargs = require('yargs').argv;

const Config = require('./Libs/Config');
const Log = require('./Libs/Log');
const Queue = require('./Libs/Queue');
const Utils = require('./Libs/Utils');

const ScenarioInputInvalid = require('./Errors/ScenarioInputInvalid');

class Syrup {
    constructor() {
        this._config = new Config;
        this._debugging = false;
        this._globalsFile = false;
        this._logFile = false;
        this._log = new Log;
        this._queue = new Queue;
        this._utils = new Utils;

        if (yargs.debug) {
            this.enableDebug();
        }

        if (yargs.output) {
            this.enableLogToFile(yargs.output);
        }
    }
    enableDebug() {
        this._debugging = true;

        return this;
    }
    enableLogToFile(path) {
        this._logFile = require('path').resolve(path);

        return this;
    }
    registerGlobals(path) {
        this._globalsFile = require('path').resolve(path);

        return this;
    }
    config(path) {
        this._config.load(path);

        return this;
    }
    scenario(scenarioInputOptions) {
        let scenarioOptions = {
            dependsOn: [],
            worker: 'Console',
            config: this._config.data,
            debug: this._debugging,
            globals: this._globalsFile,
        };

        this._queue.add(<commit_msg>Remove unneeded error<commit_after>'use strict';

const util = require('util');
const fs = require('fs');
const _ = require('lodash');
const chalk = require('chalk');
const yargs = require('yargs').argv;

const Config = require('./Libs/Config');
const Log = require('./Libs/Log');
const Queue = require('./Libs/Queue');
const Utils = require('./Libs/Utils');

class Syrup {
    constructor() {
        this._config = new Config;
        this._debugging = false;
        this._globalsFile = false;
        this._logFile = false;
        this._log = new Log;
        this._queue = new Queue;
        this._utils = new Utils;

        if (yargs.debug) {
            this._debugging = true;
        }

        if (yargs.output) {
            this._logFile = require('path').resolve(yargs.output);
        }
    }
    registerGlobals(path) {
        this._globalsFile = require('path').resolve(path);

        return this;
    }
    config(path) {
        this._config.load(path);

        return this;
    }
    scenario(scenarioInputOptions) {
        let scenarioOptions = {
            dependsOn: [],
            worker: 'Console',
            config: this._config.data,
            debug: this._debugging,
            globals: this._globalsFile,
        };

        this._queue.add(
{'fraction_non_alphanumeric': 0.1355507868383405, 'fraction_numerical': 0.0, 'mean_word_length': 2.097452934662237, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4349300', 'n_tokens_mistral': 824, 'n_tokens_neox': 809, 'n_words': 170}