<commit_before>#!/usr/bin/env python3
from pgmpy.factors import Factor
from functools import reduce


class FactorSet:
    r"""
    Base class of *Factor Sets*.

    A factor set provides a compact representation of  higher dimensial factor
    :math:`\phi_1\cdot\phi_2\cdots\phi_n`

    For example the factor set corresponding to factor :math:`\phi_1\cdot\phi_2` would be the union of the factors
    :math:`\phi_1` and :math:`\phi_2` i.e. factor set :math:`\vec\phi = \phi_1 \cup \phi_2`.
    """
    def __init__(self, *factors_list):
        """<commit_msg>PEP8 Corrections - Order of imports.<commit_after>#!/usr/bin/env python3
from functools import reduce
from pgmpy.factors import Factor


class FactorSet:
    r"""
    Base class of *Factor Sets*.

    A factor set provides a compact representation of  higher dimensial factor
    :math:`\phi_1\cdot\phi_2\cdots\phi_n`

    For example the factor set corresponding to factor :math:`\phi_1\cdot\phi_2` would be the union of the factors
    :math:`\phi_1` and :math:`\phi_2` i.e. factor set :math:`\vec\phi = \phi_1 \cup \phi_2`.
    """
    def __init__(self, *factors_list):
        """
{'fraction_non_alphanumeric': 0.11682650392327812, 'fraction_numerical': 0.016564952048823016, 'mean_word_length': 3.3157894736842106, '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': '1974317', 'n_tokens_mistral': 394, 'n_tokens_neox': 376, 'n_words': 122}