<commit_before>from vistrails.core.modules.utils import make_modules_dict

from .common import _modules as common_modules
from .convert import _modules as convert_modules
from .read import _modules as read_modules
from .viewer import _modules as viewer_modules


_modules = make_modules_dict(
        common_modules,
        convert_modules,
        read_modules,
        viewer_modules)<commit_msg>Fixes optional tabledata->spreadsheet dependency<commit_after>from vistrails.core.modules.utils import make_modules_dict
from vistrails.core.packagemanager import get_package_manager

from .common import _modules as common_modules
from .convert import _modules as convert_modules
from .read import _modules as read_modules


_modules = [common_modules,
            convert_modules,
            read_modules]

if get_package_manager().has_package('org.vistrails.vistrails.spreadsheet'):
    from .viewer import _modules as viewer_modules
    _modules.append(viewer_modules)

_modules = make_modules_dict(*_modules)
{'fraction_non_alphanumeric': 0.05237154150197629, 'fraction_numerical': 0.0, 'mean_word_length': 4.82183908045977, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5756194', 'n_tokens_mistral': 290, 'n_tokens_neox': 275, 'n_words': 77}