<commit_before>"""Functionality to parse representations of particles into standard form."""

from plasmapy.utils import roman
import numpy as np
import re
import warnings
from typing import (Union, Dict)
import numbers

from .elements import (_atomic_numbers_to_symbols, _element_names_to_symbols, _Elements)
from .isotopes import _Isotopes
from .special_particles import _Particles, ParticleZoo

from ..utils import (AtomicWarning,
                     InvalidElementError,
                     InvalidParticleError)


def _create_alias_dicts(Particles: dict) -> (Dict[str, str], Dict[str, str]):
    """
    Create dictionaries for case sensitive aliases and case
    insensitive aliases of special particles and antiparticles.

    The keys of these dictionaries are the aliases, and the values
    are the corresponding standardized symbol for the particle or
    antiparticle.
    """<commit_msg>Change relative to absolute imports (#550)<commit_after>"""Functionality to parse representations of particles into standard form."""

import numpy as np
import re
import warnings
from typing import (Union, Dict)
import numbers

from plasmapy.atomic.elements import (_atomic_numbers_to_symbols, _element_names_to_symbols, _Elements)
from plasmapy.atomic.isotopes import _Isotopes
from plasmapy.atomic.special_particles import _Particles, ParticleZoo

from plasmapy.utils import (
                     AtomicWarning,
                     InvalidElementError,
                     InvalidParticleError,
                     roman)


def _create_alias_dicts(Particles: dict) -> (Dict[str, str], Dict[str, str]):
    """
    Create dictionaries for case sensitive aliases and case
    insensitive aliases of special particles and antiparticles.

    The keys of these dictionaries are the aliases, and the values
    are the corresponding standardized symbol for the particle or
    antiparticle.
    """
{'fraction_non_alphanumeric': 0.057308096740273394, 'fraction_numerical': 0.0015772870662460567, 'mean_word_length': 3.675675675675676, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3278053', 'n_tokens_mistral': 511, 'n_tokens_neox': 479, 'n_words': 186}