<commit_before>(function(a) {
    var input, results, i, len, cur;
    if (!a[0]) {
        print("Usage: csslint-rhino.js file.css"); 
        quit(1);
    }
    input = readFile(a[0]);
    if (!input) {
        print("CSSLint could not open file: '" + a[0] + "'."); 
        quit(1);
    }
    results = CSSLint.verify(input);
    if (results && results.messages && results.messages.length > 0) {
        for (i = 0, len = results.messages.length; i < len; ++i) {
            cur = results.messages[i];
            print(cur["type"] + " at line " + cur["line"] + " character " + cur["col"] + ": " + cur["rule"]["desc"]);
            print(cur["evidence"] + "\n");
        }
    }
    else {
        print("csslint: No problems found in " + a[0]);
    }
})(arguments);
<commit_msg>adapted the turnkey to work with all message formats<commit_after>(function(a) {
    var input, results, i, len, cur;
    if (!a[0]) {
        print("Usage: csslint-rhino.js file.css"); 
        quit(1);
    }
    input = readFile(a[0]);
    if (!input) {
        print("CSSLint could not open file: '" + a[0] + "'."); 
        quit(1);
    }
    results = CSSLint.verify(input);
    if (results && results.messages && results.messages.length > 0) {
        for (i = 0, len = results.messages.length; i < len; ++i) {
            cur = results.messages[i];
            if(cur["rollup"]) {
                print(cur["type"] + ": " + cur["message"]);
            }
            else {
                print(cur["type"] + " at line " + cur["line"] + " character " + cur["col"] + ": " + cur["message"]);
                print(cur["evidence"] + "\n");
            }
        }
    }
    else {
        print("csslint: No problems found in " + a[0]);
    }
})(arguments);

{'fraction_non_alphanumeric': 0.19484240687679083, 'fraction_numerical': 0.009169054441260744, 'mean_word_length': 1.9744463373083476, 'pattern_counts': {'":': 3, '<': 5, '<?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': '188779', 'n_tokens_mistral': 582, 'n_tokens_neox': 567, 'n_words': 128}