<commit_before>/*!
 * GitHubColors
 *
 * @name GitHubColors
 * @function
 * @return {undefined}
 */
function GitHubColors() {
    this.colors = null;
    this.extensions = null;
}

/**
 * init
 * Inits the GitHub extensions/colors.
 *
 * @name init
 * @function
 * @param {Boolean} ext If `true`, the extensions will be initialized.
 * @return {Object} The `extensions` or `colors` object.
 */
GitHubColors.prototype.init = function (ext) {
    if (ext) {
        return this.extensions = this.extensions || require("./extensions");
    }

    return this.colors = this.colors || require("./latest");
};

/**
 * get
 * Gets the color object for the provided language.
 *
 * @name get
 * @function
 * @param {String} lang The language to get the color for.
 * @param {Boolean} handleOthers If `false` and the color is not found `null` will be returned. Otherwise a gray color will be returned.
 * @return {Object|null} The color that was found.
 */
GitHubColors.prototype.get = function (lang, handleOthers) {
    this.init();
    var found = this.colors[lang];
    return found || (handleOthers === false ? null : {
        color: "#ccc"
    });
};

/**
 * ext
 * Get the color object for the provided extension.
 *
 * @name ext
 * @function
 * @param {String} ext The extension to get the color for.
 * @param {Boolean} handleOthers If `false` and the color is not found `null` will be returned. Otherwise a gray color will be returned.
 * @return {Object|null} The color that was found.
 */
GitHubColors.prototype.ext = function (ext, handleOthers) {
    this.init(true);
    var found = this.extensions[ext];
    return found || (handleOthers === false ? null : {
        color: "#ccc"
    });
};

module.exports = new GitHubColors();
<commit_msg>Fixed the colors path<commit_after>/*!
 * GitHubColors
 *
 * @name GitHubColors
 * @function
 * @return {undefined}
 */
function GitHubColors() {
    this.colors = null;
    this.extensions = null;
}

/**
 * init
 * Inits the GitHub extensions/colors.
 *
 * @name init
 * @function
 * @param {Boolean} ext If `true`, the extensions will be initialized.
 * @return {Object} The `extensions` or `colors` object.
 */
GitHubColors.prototype.init = function (ext) {
    if (ext) {
        return this.extensions = this.extensions || require("./extensions");
    }

    return this.colors = this.colors || require("./colors");
};

/**
 * get
 * Gets the color object for the provided language.
 *
 * @name get
 * @function
 * @param {String} lang The language to get the color for.
 * @param {Boolean} handleOthers If `false` and the color is not found `null` will be returned. Otherwise a gray color will be returned.
 * @return {Object|null} The color that was found.
 */
GitHubColors.prototype.get = function (lang, handleOthers) {
    this.init();
    var found = this.colors[lang];
    return found || (handleOthers === false ? null : {
        color: "#ccc"
    });
};

/**
 * ext
 * Get the color object for the provided extension.
 *
 * @name ext
 * @function
 * @param {String} ext The extension to get the color for.
 * @param {Boolean} handleOthers If `false` and the color is not found `null` will be returned. Otherwise a gray color will be returned.
 * @return {Object|null} The color that was found.
 */
GitHubColors.prototype.ext = function (ext, handleOthers) {
    this.init(true);
    var found = this.extensions[ext];
    return found || (handleOthers === false ? null : {
        color: "#ccc"
    });
};

module.exports = new GitHubColors();

{'fraction_non_alphanumeric': 0.1345496009122007, 'fraction_numerical': 0.0, 'mean_word_length': 3.24818401937046, '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': '1618682', 'n_tokens_mistral': 1044, 'n_tokens_neox': 1023, 'n_words': 375}