<commit_before># Import the version
# from version import __version__
#
#

from .sources.point_source import PointSource
from .sources.extended_source import ExtendedSource
from .sources.particle_source import ParticleSource
from .core.parameter import Parameter, IndependentVariable, SettingOutOfBounds
from .functions.functions import *
from .functions.functions_2D import *
from .functions.functions_3D import *
from .functions.template_model import *
from .functions. dark_matter.dm_models import *
from .functions.function import list_functions, get_function_class
from .core.model import Model
from .core.parameter import Parameter
from .core.spectral_component import SpectralComponent
from .core.model_parser import load_model, clone_model
from .core.units import get_units
from .core.memoization import use_astromodels_memoization
import astropy.units as u

astromodels_units = get_units()

# if has_xspec:
#
#     from .xspec.factory import *
#     from .xspec.xspec_settings import *<commit_msg>Added a debug mode where names are not imported (to be used in tests)<commit_after># Import the version
# from version import __version__
#
#

import os

if os.environ.get("ASTROMODELS_DEBUG", None) is None:

    from .sources.point_source import PointSource
    from .sources.extended_source import ExtendedSource
    from .sources.particle_source import ParticleSource
    from .core.parameter import Parameter, IndependentVariable, SettingOutOfBounds
    from .functions.functions import *
    from .functions.functions_2D import *
    from .functions.functions_3D import *
    from .functions.template_model import *
    from .functions. dark_matter.dm_models import *
    from .functions.function import list_functions, get_function_class
    from .core.model import Model
    from .core.parameter import Parameter
    from .core.spectral_component import SpectralComponent
    from .core.model_parser import load_model, clone_model
    from .core.units import get_units
    from .core.memoization import use_astromodels_memoization

    astromodels_units = get_units()


import astropy.units as u

# if has_xspec:
#
#     from .xspec.factory import *
#     from .xspec.xspec_settings import *
{'fraction_non_alphanumeric': 0.06261343012704174, 'fraction_numerical': 0.0018148820326678765, 'mean_word_length': 4.6106870229007635, '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': '5074120', 'n_tokens_mistral': 620, 'n_tokens_neox': 610, 'n_words': 192}