<commit_before>import py

from pytest_benchmark.utils import slugify, TIME_UNITS

try:
    from pygal.graph.box import Box
    from pygal.graph.box import is_list_like
    from pygal.style import DefaultStyle
except ImportError as exc:
    raise ImportError(exc.args, "Please install pygal and pygaljs or pytest-benchmark[histogram]")


class CustomBox(Box):
    def __init__(self, annotations, *args, **kwargs):
        super(CustomBox, self).__init__(*args, **kwargs)
        self.annotations = annotations

    def _box_points(self, serie, _):<commit_msg>Sort imports.<commit_after>import py

from .utils import TIME_UNITS
from .utils import slugify

try:
    from pygal.graph.box import Box
    from pygal.graph.box import is_list_like
    from pygal.style import DefaultStyle
except ImportError as exc:
    raise ImportError(exc.args, "Please install pygal and pygaljs or pytest-benchmark[histogram]")


class CustomBox(Box):
    def __init__(self, annotations, *args, **kwargs):
        super(CustomBox, self).__init__(*args, **kwargs)
        self.annotations = annotations

    def _box_points(self, serie, _):
{'fraction_non_alphanumeric': 0.09033989266547406, 'fraction_numerical': 0.0, 'mean_word_length': 4.2046511627906975, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5755357', 'n_tokens_mistral': 347, 'n_tokens_neox': 341, 'n_words': 100}