<commit_before>""" Dataset """

import numpy as np
from .base import Baseset
from .batch import Batch
from .dsindex import DatasetIndex
from .dsindex import FilesIndex
from .pipeline import Pipeline


class Dataset(Baseset):
    """
    The Dataset holds an index of all data items
    (e.g. customers, transactions, etc)
    and a specific action class to process a small subset of data (batch).
    ...

    Attributes
    ----------
    index : DatasetIndex or FilesIndex

    indices : class:`numpy.ndarray`
        an array with the indices

    is_split: bool
        True if dataset has been split into train / test / validation subsets

    Methods<commit_msg>corrected docstring in Dataset class and fixed unused inports<commit_after>""" Dataset """

import numpy as np
from .base import Baseset
from .batch import Batch
from .dsindex import DatasetIndex
from .pipeline import Pipeline


class Dataset(Baseset):
    """
    The Dataset holds an index of all data items
    (e.g. customers, transactions, etc)
    and a specific action class to process a small subset of data (batch).
    ...

    Attributes
    ----------
    index : DatasetIndex or FilesIndex

    indices : class:`numpy.ndarray`
        an array with the indices

    is_split: bool
        True if dataset has been split into train / test / validation subsets

    Methods
{'fraction_non_alphanumeric': 0.07470414201183433, 'fraction_numerical': 0.0, 'mean_word_length': 2.7583333333333333, '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': '469825', 'n_tokens_mistral': 372, 'n_tokens_neox': 355, 'n_words': 163}