<commit_before># -*- coding: utf-8 -*-
import re
import operator
from functools import partial

import sublime
import sublime_plugin

from core.probe import extract
from core.templates import make_template

__all__ = [
    'HayakuCommand',
]

# максимальный размер css properties
MAX_SIZE_CSS = len('-webkit-transition-timing-function')

ABBR_REGEX = re.compile(r'[\s|;|{]([\.:%#a-z-,\d]+!?)$', re.IGNORECASE)

#                                    1     2    3            4    5         6    7     8    9
GUESS_REGEX = re.compile(r'selector(\s*)(\{)?(\s*)property(:)?(\s*)value(;)?(\s*)(\})?(\s*)', re.IGNORECASE)

def get_hayaku_options(self):
    # Autoguessing the options
    settings = self.view.settings()
    options = {}
    match = {}
    if settings.get("hayaku_CSS_syntax_autoguess"):<commit_msg>Removed unneeded imports, modified comments<commit_after># -*- coding: utf-8 -*-
import re
import sublime
import sublime_plugin

from core.probe import extract
from core.templates import make_template

__all__ = [
    'HayakuCommand',
]

# The maximum size of a single propery to limit the lookbehind
MAX_SIZE_CSS = len('-webkit-transition-timing-function')

ABBR_REGEX = re.compile(r'[\s|;|{]([\.:%#a-z-,\d]+!?)$', re.IGNORECASE)

# Guessing the codestyle             1     2    3            4    5         6    7     8    9
GUESS_REGEX = re.compile(r'selector(\s*)(\{)?(\s*)property(:)?(\s*)value(;)?(\s*)(\})?(\s*)', re.IGNORECASE)

def get_hayaku_options(self):
    # Autoguessing the options
    settings = self.view.settings()
    options = {}
    match = {}
    if settings.get("hayaku_CSS_syntax_autoguess"):
{'fraction_non_alphanumeric': 0.16081330868761554, 'fraction_numerical': 0.012322858903265557, 'mean_word_length': 3.0498753117206983, 'pattern_counts': {'":': 0, '<': 3, '<?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': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5947126', 'n_tokens_mistral': 585, 'n_tokens_neox': 566, 'n_words': 121}