<commit_before>from spinsys import constructors
from spinsys import exceptions
from spinsys import half
from spinsys import hamiltonians
from spinsys import quantities
from spinsys import state_generators
from spinsys import tests
from spinsys import utils

__all__ = [
    "constructors",
    "exceptions",
    "half",
    "hamiltonians",
    "quantities",
    "state_generators",
    "tests",
    "utils"
]<commit_msg>Set better defaults for numpy's print function<commit_after>from spinsys import constructors
from spinsys import exceptions
from spinsys import half
from spinsys import hamiltonians
from spinsys import quantities
from spinsys import state_generators
from spinsys import tests
from spinsys import utils
import shutil
import numpy

__all__ = [
    "constructors",
    "exceptions",
    "half",
    "hamiltonians",
    "quantities",
    "state_generators",
    "tests",
    "utils"
]

# set default print options for better display of data on screen
term_width = tuple(shutil.get_terminal_size())[0]
numpy.set_printoptions(precision=5, suppress=True, linewidth=term_width)
{'fraction_non_alphanumeric': 0.06978879706152434, 'fraction_numerical': 0.0018365472910927456, 'mean_word_length': 4.923913043478261, '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': '1939086', 'n_tokens_mistral': 328, 'n_tokens_neox': 308, 'n_words': 108}