<commit_before>import re
from contextlib import contextmanager

from django.utils.safestring import mark_safe
from crispy_forms.bootstrap import FormActions as OriginalFormActions, InlineField, AccordionGroup
from crispy_forms.layout import Field as OldField, LayoutObject
from crispy_forms.utils import render_field, get_template_pack, flatatt
from django.template import Context
from django.template.loader import render_to_string


def _get_offsets(context):
    label_class = context.get('label_class', '')
    return re.sub(r'(sm|md|lg)-', '\g<1>-offset-', label_class)
<commit_msg>update regex to also accept xs as offset<commit_after>import re
from contextlib import contextmanager

from django.utils.safestring import mark_safe
from crispy_forms.bootstrap import FormActions as OriginalFormActions, InlineField, AccordionGroup
from crispy_forms.layout import Field as OldField, LayoutObject
from crispy_forms.utils import render_field, get_template_pack, flatatt
from django.template import Context
from django.template.loader import render_to_string


def _get_offsets(context):
    label_class = context.get('label_class', '')
    return re.sub(r'(xs|sm|md|lg)-', '\g<1>-offset-', label_class)

{'fraction_non_alphanumeric': 0.07890365448504984, 'fraction_numerical': 0.0016611295681063123, 'mean_word_length': 6.7243589743589745, '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': '3486796', 'n_tokens_mistral': 351, 'n_tokens_neox': 345, 'n_words': 101}