<commit_before>'use strict';

// Borrowed from Angular 2.0 di module

var id = 0;

function isClass(fn) {
    if (!isFunction(fn)) {
        return false;
    }

    if (fn.name) {
        return isUpperCase(fn.name.charAt(0));
    }

    return Object.keys(fn.prototype).length > 0;
}

function isFunction(value) {
    return typeof value === 'function';
}

function getUID() {
    return id += 1;
}

module.exports = {
    isClass: isClass,
    isFunction: isFunction,
    getUID: getUID
};<commit_msg>fix(util): Add missing isUpper case util function<commit_after>'use strict';

// Borrowed from Angular 2.0 di module

var id = 0;

function isClass(fn) {
    if (!isFunction(fn)) {
        return false;
    }

    if (fn.name) {
        return isUpperCase(fn.name.charAt(0));
    }

    return Object.keys(fn.prototype).length > 0;
}

function isFunction(value) {
    return typeof value === 'function';
}

function isUpperCase (value) {
    return value === value.toUpperCase();
}

function getUID() {
    return id += 1;
}

module.exports = {
    isClass: isClass,
    isFunction: isFunction,
    getUID: getUID
};
{'fraction_non_alphanumeric': 0.1357142857142857, 'fraction_numerical': 0.010714285714285714, 'mean_word_length': 2.892361111111111, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6831941', 'n_tokens_mistral': 390, 'n_tokens_neox': 375, 'n_words': 96}