<commit_before>define('hexToRgb', function() {
    var rx = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;
    function RGBA(r, g, b, a) {
        this.r = r && parseInt(r, 16) || 0;
        this.g = g && parseInt(g, 16) || 0;
        this.b = b && parseInt(b, 16) || 0;
        this.a = a !== undefined ? parseFloat(a) : undefined;
        this.toString = function() {
            return 'rgb' + (this.a !== undefined ? 'a' : '') + '(' + this.r + ',' + this.g + ',' + this.b + (this.a !== undefined ? ',' + this.a : '') + ')';
        };
    }

    return function(hex) {
        var result = rx.exec(hex);
        return result ? new RGBA(result[1], result[2], result[3]) : null;
    };
});<commit_msg>add alpha override to rgba<commit_after>define('hexToRgb', function() {
    var rx = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;
    function RGBA(r, g, b, a) {
        this.r = r && parseInt(r, 16) || 0;
        this.g = g && parseInt(g, 16) || 0;
        this.b = b && parseInt(b, 16) || 0;
        this.a = a !== undefined ? parseFloat(a) : undefined;
        this.toString = function() {
            return 'rgb' + (this.a !== undefined ? 'a' : '') + '(' + this.r + ',' + this.g + ',' + this.b + (this.a !== undefined ? ',' + this.a : '') + ')';
        };
    }

    return function(hex, alpha) {
        var result = rx.exec(hex);
        return result ? new RGBA(result[1], result[2], result[3], alpha) : null;
    };
});
{'fraction_non_alphanumeric': 0.24737945492662475, 'fraction_numerical': 0.020964360587002098, 'mean_word_length': 2.203579418344519, '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': '787369', 'n_tokens_mistral': 561, 'n_tokens_neox': 540, 'n_words': 116}