<commit_before>from __future__ import absolute_import as _absolute_import

from . import cov
from . import data
from . import func
from . import genetics
from . import inference
from . import math
from . import mean
from . import random
from . import reader
from . import tool
from . import util

from pkg_resources import get_distribution as _get_distribution
from pkg_resources import DistributionNotFound as _DistributionNotFound

try:
    __version__ = _get_distribution('lim').version
except _DistributionNotFound:
    __version__ = 'unknown'


def test():
    import os
    p = __import__('lim').__path__[0]
    src_path = os.path.abspath(p)
    old_path = os.getcwd()
    os.chdir(src_path)

    try:
        return_code = __import__('pytest').main(['-q'])
    finally:
        os.chdir(old_path)

    if return_code == 0:<commit_msg>link on this thing<commit_after>from __future__ import absolute_import as _absolute_import

from . import cov
from . import data
from . import func
from . import genetics
from . import inference
from . import math
from . import mean
from . import random
from . import reader
from . import tool
from . import util
from . import link

from pkg_resources import get_distribution as _get_distribution
from pkg_resources import DistributionNotFound as _DistributionNotFound

try:
    __version__ = _get_distribution('lim').version
except _DistributionNotFound:
    __version__ = 'unknown'


def test():
    import os
    p = __import__('lim').__path__[0]
    src_path = os.path.abspath(p)
    old_path = os.getcwd()
    os.chdir(src_path)

    try:
        return_code = __import__('pytest').main(['-q'])
    finally:
        os.chdir(old_path)

    if return_code == 0:
{'fraction_non_alphanumeric': 0.08147713950762016, 'fraction_numerical': 0.0023446658851113715, 'mean_word_length': 3.7024793388429753, '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': '3897899', 'n_tokens_mistral': 529, 'n_tokens_neox': 506, 'n_words': 159}