<commit_before>/**
 * beautifies css
 * @author: <NAME> <www.markmccann.me>
 * @license: MIT
 */

var cssBeautify = (function(){

    /**
     * extends object
     */
    var extend = function () {
        var a = arguments;
        for( var i = 1; i < a.length; i++ )
            for( var key in a[i] )
                if(a[i].hasOwnProperty(key))
                    a[0][key] = a[i][key];
        return a[0];
    }

    /**
     * default settings for beautifier
     */
    var defaults = {
        indent: '    ',
        afterRule: '\n\n',
        afterSelector: ' ',
        afterCommas: '\n',
        afterComments: '\n\n',
        afterCharset: '\n\n',
        beforeQueryClose: '\n\n',
        afterQueryOpen: '\n\n',
        afterFirstComment: '\n\n',
        lastSemiColon: true
    }

    /**
     * return the beautify function
     */
    return function( styles, options ) {
        // set minifier settings
        var settings = extend( defaults, options || {} );
        // time to do some formatting
        return styles
            // formatting the content for each individual rule
            .replace(/{([^{}]*)}\s*/g,function(contents){
                return contents
                    // get each individual line to format
                    .replace(/([\w\s-]*:([^;'"(}])*(\(["']?[^'")]*['"]?\)|["'][^'"]*['"])?([^;}])*;?( *\/\*((?!\*\/)(.|\n))*\*\/)*|\s*\/\*((?!\*\/)(.|\n))*\*\/)/g, function(line){
                        return line
                            // wrap and indent each declaration
                            .replace(/^\s*([\w-]*)\s*:\s*(.*)/, '\n'+settings.indent+'$1: $2')
                            // wrap and indent stand-alone comments
                            .replace(/^\s*(\/\*(.|\n)*)/, '\n'+settings.indent+'$1')
                            // add a space between the end of a declaration and same-line comment<commit_msg>fixed bug regarding curly braces in quotes<commit_after>/**
 * beautifies css
 * @author: <NAME> <www.markmccann.me>
 * @license: MIT
 */

var cssBeautify = (function(){

    /**
     * extends object
     */
    var extend = function () {
        var a = arguments;
        for( var i = 1; i < a.length; i++ )
            for( var key in a[i] )
                if(a[i].hasOwnProperty(key))
                    a[0][key] = a[i][key];
        return a[0];
    }

    /**
     * default settings for beautifier
     */
    var defaults = {
        indent: '    ',
        afterRule: '\n\n',
        afterSelector: ' ',
        afterCommas: '\n',
        afterComments: '\n\n',
        afterCharset: '\n\n',
        beforeQueryClose: '\n\n',
        afterQueryOpen: '\n\n',
        afterFirstComment: '\n\n',
        lastSemiColon: true
    }

    /**
     * return the beautify function
     */
    return function( styles, options ) {
        // set minifier settings
        var settings = extend( defaults, options || {} );
        // time to do some formatting
        return styles
            // formatting the content for each individual rule
            .replace(/{(([^{}("']*([("'][^\'")]*[\'")])?[^{}("']*)*)}\s*/g,function(contents){
                return contents
                    // get each individual line to format
                    .replace(/([\w\s-]*:([^;'"(}])*(\(["']?[^'")]*['"]?\)|["'][^'"]*['"])?([^;}])*;?( *\/\*((?!\*\/)(.|\n))*\*\/)*|\s*\/\*((?!\*\/)(.|\n))*\*\/)/g, function(line){
                        return line
                            // wrap and indent each declaration
                            .replace(/^\s*([\w-]*)\s*:\s*(.*)/, '\n'+settings.indent+'$1: $2')
                            // wrap and indent stand-alone comments
                            .replace(/^\s*(\/\*(.|\n)*)/, '\n'+settings.indent+'$1')
                            // add a space between the end of a declaration and same-line comment
{'fraction_non_alphanumeric': 0.20909090909090908, 'fraction_numerical': 0.003116883116883117, 'mean_word_length': 1.4765273311897107, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2919481', 'n_tokens_mistral': 1183, 'n_tokens_neox': 1142, 'n_words': 267}