<commit_before>'use strict';

const _ = require('lodash');

const EventsBus = require('../libs/EventsBus');

module.exports = (done) => {
    global.Runs = (path) => {
        let theSnippet = require(path);

        if (typeof theSnippet === 'function') {
            theSnippet();
        }

        return theSnippet;
    };
    done();
};<commit_msg>Fully resolve path before using in worker<commit_after>'use strict';

const _ = require('lodash');

const EventsBus = require('../libs/EventsBus');

module.exports = (done) => {
    global.Runs = (path) => {
        path = require('path').resolve(path);
        let theSnippet = require(path);

        if (typeof theSnippet === 'function') {
            theSnippet();
        }

        return theSnippet;
    };
    done();
};
{'fraction_non_alphanumeric': 0.1649616368286445, 'fraction_numerical': 0.0, 'mean_word_length': 2.48, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7419234', 'n_tokens_mistral': 242, 'n_tokens_neox': 233, 'n_words': 52}