<commit_before># Loads extension classes from supported libraries

from __future__ import absolute_import

def unsupported():
    return

from.interface import Interface

from .param import load_param, param_display               # Param is a core dependency
from .numbergen import  load_numbergen, numbergen_display  # Numbergen is included


try:
    import imagen
    from .imagen import load_imagen, imagen_display
except:
    load_imagen = unsupported


try:
    import holoviews
    from .holoviews import load_holoviews
except:
    load_holoviews = unsupported

load_param()
load_numbergen()
load_imagen()
load_holoviews()

__all__ = ['Interface',
           'param_display',
           'imagen_display',
           'numbergen_display']<commit_msg>Simplified conditional import handling<commit_after># Loads extension classes from supported libraries

from __future__ import absolute_import
from.interface import Interface

from .param import load_param, param_display               # Param is a core dependency
from .numbergen import  load_numbergen, numbergen_display  # Numbergen is included


try:
    import imagen
    from .imagen import load_imagen, imagen_display
except:
    load_imagen = None


try:
    import holoviews
    from .holoviews import load_holoviews
except:
    load_holoviews = None

load_param()
load_numbergen()

if load_imagen:
    load_imagen()

if load_holoviews:
    load_holoviews()

__all__ = ['Interface',
           'param_display',
           'imagen_display',
           'numbergen_display']
{'fraction_non_alphanumeric': 0.058018252933507174, 'fraction_numerical': 0.0, 'mean_word_length': 3.6374622356495467, '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': '3601028', 'n_tokens_mistral': 459, 'n_tokens_neox': 450, 'n_words': 133}