<commit_before>"""Group base class."""


# --- import --------------------------------------------------------------------------------------


import shutil
import os
import weakref
import tempfile
import posixpath
import warnings

import numpy as np

import h5py


# --- define --------------------------------------------------------------------------------------


wt5_version = '0.0.0'


# --- class ---------------------------------------------------------------------------------------


class Group(h5py.Group):
    """Container of groups and datasets."""

    instances = {}
    class_name = 'Group'<commit_msg>MetaClass<commit_after>"""Group base class."""


# --- import --------------------------------------------------------------------------------------


import shutil
import os
import weakref
import tempfile
import posixpath
import warnings

import numpy as np

import h5py


# --- define --------------------------------------------------------------------------------------


wt5_version = '0.0.0'


# --- class ---------------------------------------------------------------------------------------


class MetaClass(type(h5py.Group)):

    def __call__(cls, *args, **kwargs):
        """Bypass normal construction."""
        return cls.__new__(cls, *args, **kwargs)


class Group(h5py.Group, metaclass=MetaClass):
    """Container of groups and datasets."""

    instances = {}
    class_name = 'Group'
{'fraction_non_alphanumeric': 0.4473314606741573, 'fraction_numerical': 0.009129213483146067, 'mean_word_length': 0.9335142469470827, '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': '3787501', 'n_tokens_mistral': 307, 'n_tokens_neox': 293, 'n_words': 85}