<commit_before>"""

GFA representation trough a networkx MulitDiGraph.

"""

import copy
import re
import logging

import networkx as nx

from pygfa.graph_element.parser import header, segment, link, containment, path
from pygfa.graph_element.parser import edge, gap, fragment, group
from pygfa.graph_element import node, edge as ge, subgraph as sg
from pygfa import gfa1_serializer as gs1, gfa2_serializer as gs2


gfa_logger = logging.getLogger(__name__)


class InvalidSearchParameters(Exception): pass
class InvalidElementError(Exception): pass
class GFAError(Exception): pass


class Element:
    """Represent the types of graph a GFA grapg object can have.
    """
    NODE = 0
    EDGE = 1
    SUBGRAPH = 2
<commit_msg>Fix missing dependency<commit_after>"""

GFA representation trough a networkx MulitDiGraph.

"""

import copy
import re
import logging

import networkx as nx

from pygfa.graph_element.parser import header, segment, link, containment, path
from pygfa.graph_element.parser import edge, gap, fragment, group
from pygfa.graph_element.parser import line
from pygfa.graph_element import node, edge as ge, subgraph as sg
from pygfa import gfa1_serializer as gs1, gfa2_serializer as gs2


gfa_logger = logging.getLogger(__name__)


class InvalidSearchParameters(Exception): pass
class InvalidElementError(Exception): pass
class GFAError(Exception): pass


class Element:
    """Represent the types of graph a GFA grapg object can have.
    """
    NODE = 0
    EDGE = 1
    SUBGRAPH = 2

{'fraction_non_alphanumeric': 0.0664451827242525, 'fraction_numerical': 0.009302325581395349, 'mean_word_length': 4.7701149425287355, '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': '1245504', 'n_tokens_mistral': 476, 'n_tokens_neox': 451, 'n_words': 168}