<commit_before>// dicss -- directly injected css
(function() {
    'use strict';

    if ( ({})<=8 ) {
        // yeah, you get it...
    }

    var stylesheet, styletag = document.createElement('style');
    styletag.setAttribute('id', 'dicss_wrapper');
    document.body.appendChild(styletag);
    stylesheet = styletag.sheet ? styletag.sheet : styletag.styleSheet;

    function addRule(selector, rule) {
        var rules = '', property, value;
        if (rule.constructor === String) {
            rules += rule;
        } else {
            for (property in rule) {
                if (rule.hasOwnProperty(property)) {
                    value = rule[property];
                    if (value instanceof Object) {
                        property = (/^:|&/.test(property) ? '' : ' ') + property.replace('&', '');
                        addRule(selector + property, value);
                        continue;
                    }
                    rules += property + ':' + value + ';';
                }
            }
        }
        if (!rules) {
            return;
        }
        if (stylesheet.insertRule) {
            stylesheet.insertRule(selector + ' { ' + rules + ' } ', stylesheet.cssRules.length);
        } else {
            // IE <9
            if (stylesheet.addRule) {
                stylesheet.addRule(selector, rules);
            }
        }
    }
<commit_msg>Fix comma-seperated selectors in nesting<commit_after>// dicss -- directly injected css
(function() {
    'use strict';

    if ( ({})<=8 ) {
        // yeah, you get it...
    }

    var stylesheet, styletag = document.createElement('style');
    styletag.setAttribute('id', 'dicss_wrapper');
    document.body.appendChild(styletag);
    stylesheet = styletag.sheet ? styletag.sheet : styletag.styleSheet;

    function addRule(selector, rule) {
        var rules = '', property, value;
        if (rule.constructor === String) {
            rules += rule;
        } else {
            for (property in rule) {
                if (rule.hasOwnProperty(property)) {
                    value = rule[property];
                    if (value instanceof Object) {
                        property = (/^:|&/.test(property) ? '' : ' ') + property.replace('&', '');
                        addRule(selector + property.replace(/,\s?/g, ', ' + selector + ' '), value);
                        continue;
                    }
                    rules += property + ':' + value + ';';
                }
            }
        }
        if (!rules) {
            return;
        }
        if (stylesheet.insertRule) {
            stylesheet.insertRule(selector + ' { ' + rules + ' } ', stylesheet.cssRules.length);
        } else {
            // IE <9
            if (stylesheet.addRule) {
                stylesheet.addRule(selector, rules);
            }
        }
    }

{'fraction_non_alphanumeric': 0.13965698284914246, 'fraction_numerical': 0.001400070003500175, 'mean_word_length': 1.4240882103477523, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2413596', 'n_tokens_mistral': 780, 'n_tokens_neox': 745, 'n_words': 155}