<commit_before>/**
 * CSS patterns
 *
 * @author <NAME>
 * @version 1.0.1
 */
window.Rainbow = window.Rainbow || {};

Rainbow.extend('css', [
    {
        'name': 'comment',
        'pattern': /\/\*[\s\S]*?\*\//gm
    },
    {
        'name': 'constant.hex-color',
        'pattern': /#([a-fA-F0-9]{3}|[a-fA-F0-9]{6})(?=;|\s)/g
    },
    {
        'matches': {
            1: 'integer',
            2: 'keyword.px'
        },
        'pattern': /(\d+)(px)/g
    },
    {
        'name': 'string',
        'pattern': /('|")(.*?)\1/g
    },
    {
        'name': 'support.css-property',
        'pattern': /[\w-]+(?=\s|:)(?!.*\{)/g
    },
    {
        'matches': {
            1: [
                {
                    'name': 'meta.sass',
                    'pattern': /&amp;/g
                },
                {
                    'name': 'meta.class',
                    'pattern': /\.[\w\-_]+/g
                },
                {
                    'name': 'meta.id',
                    'pattern': /\#[\w\-_]+/g
                },
                {
                    'name': 'meta.pseudo',
                    'pattern': /:[\w\-_]+/g
                },
                {
                    'name': 'meta.tag',
                    'pattern': /\w+/g
                }
            ]
        },
        'pattern': /([a-zA-Z0-9\ ,:\.\#\&\;\-_]+)(?=.*\{)/g
    },
    {
        'matches': {
            2: 'support.vender-prefix',
            3: 'support.value'
        },
        'pattern': /(:|,)\s?(-o-|-moz-|-webkit-|-ms-)?([a-zA-Z-]*)(?=\b)(?!.*\{)/g
    },
    {
        'matches': {
            1: {<commit_msg>Use \w to save some bytes<commit_after>/**
 * CSS patterns
 *
 * @author <NAME>
 * @version 1.0.1
 */
window.Rainbow = window.Rainbow || {};

Rainbow.extend('css', [
    {
        'name': 'comment',
        'pattern': /\/\*[\s\S]*?\*\//gm
    },
    {
        'name': 'constant.hex-color',
        'pattern': /#([a-fA-F0-9]{3}|[a-fA-F0-9]{6})(?=;|\s)/g
    },
    {
        'matches': {
            1: 'integer',
            2: 'keyword.px'
        },
        'pattern': /(\d+)(px)/g
    },
    {
        'name': 'string',
        'pattern': /('|")(.*?)\1/g
    },
    {
        'name': 'support.css-property',
        'pattern': /[\w-]+(?=\s|:)(?!.*\{)/g
    },
    {
        'matches': {
            1: [
                {
                    'name': 'meta.sass',
                    'pattern': /&amp;/g
                },
                {
                    'name': 'meta.class',
                    'pattern': /\.[\w\-_]+/g
                },
                {
                    'name': 'meta.id',
                    'pattern': /\#[\w\-_]+/g
                },
                {
                    'name': 'meta.pseudo',
                    'pattern': /:[\w\-_]+/g
                },
                {
                    'name': 'meta.tag',
                    'pattern': /\w+/g
                }
            ]
        },
        'pattern': /([\w\ ,:\.\#\&\;\-_]+)(?=.*\{)/g
    },
    {
        'matches': {
            2: 'support.vender-prefix',
            3: 'support.value'
        },
        'pattern': /(:|,)\s?(-o-|-moz-|-webkit-|-ms-)?([a-zA-Z-]*)(?=\b)(?!.*\{)/g
    },
    {
        'matches': {
            1: {
{'fraction_non_alphanumeric': 0.25084226646248087, 'fraction_numerical': 0.010413476263399694, 'mean_word_length': 0.8673527730131504, 'pattern_counts': {'":': 0, '<': 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': '7105430', 'n_tokens_mistral': 1178, 'n_tokens_neox': 1102, 'n_words': 139}