<commit_before>//TODO: make as part of query syntax
define('vendor', [], function () {
    var pfx = ["webkit", "moz", "MS", "o", ""];
    var len = pfx.length;

    function vendor(el, prop, value, vendorfyValue) {
        var p, v;
        for (var i = 0; i < len; i += 1) {
            p = vendorfy(prop, pfx[i]);
            if (vendorfyValue) {
                p = prop;
                v = vendorfyValue ? vendorDashfy(value, pfx[i]) : value;
            } else {
                p = vendorfy(prop, pfx[i]);
                v = value;
            }
            el.style[p] = v;
            //console.log(p, v);
        }
    }

    function vendorfy(prop, prefix) {
        return prefix && prefix + prop.charAt(0).toUpperCase() + prop.substr(1, prop.length) || prop;
    }

    function vendorDashfy(prop, prefix) {
        return (prefix && '-' + prefix + '-' || '') + prop;
    }

    return vendor;
});<commit_msg>fix vendor to be smart enough to handle 'transition' property.<commit_after>//TODO: make as part of query syntax
define('vendor', [], function () {
    var pfx = ["webkit", "moz", "MS", "o", ""];
    var len = pfx.length;

    function vendor(el, prop, value) {
        var p, v, vendorfyValue = prop === 'transition';// smart enough to know transition needs done differently
        for (var i = 0; i < len; i += 1) {
            p = vendorfy(prop, pfx[i]);
            if (vendorfyValue) {
                p = prop;
                v = vendorfyValue ? vendorDashfy(value, pfx[i]) : value;
            } else {
                p = vendorfy(prop, pfx[i]);
                v = value;
            }
            el.style[p] = v;
            //console.log(p, v);
        }
    }

    function vendorfy(prop, prefix) {
        return prefix && prefix + prop.charAt(0).toUpperCase() + prop.substr(1, prop.length) || prop;
    }

    function vendorDashfy(prop, prefix) {
        return (prefix && '-' + prefix + '-' || '') + prop;
    }

    return vendor;
});
{'fraction_non_alphanumeric': 0.15824064711830133, 'fraction_numerical': 0.004044489383215369, 'mean_word_length': 1.7678321678321678, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3496483', 'n_tokens_mistral': 648, 'n_tokens_neox': 611, 'n_words': 169}