<commit_before>"""
Load a shared library.

The following constants are provided in the **msl.loadlib** package.
"""
import os
import sys
#from collections import namedtuple

__author__ = '<NAME>'
__copyright__ = '\xa9 2017, ' + __author__
__version__ = '0.2.4.dev'

#version_info = namedtuple('version_info', 'major minor micro')(*map(int, __version__.split('.')))
#""":py:func:`~collections.namedtuple`: Contains the version information as a (major, minor, micro releaselevel) tuple."""

IS_WINDOWS = sys.platform in ['win32', 'cygwin']
""":obj:`bool`: Whether the Operating System is Windows."""

IS_LINUX = sys.platform.startswith('linux')
""":obj:`bool`: Whether the Operating System is Linux."""

IS_MAC = sys.platform == 'darwin'
""":obj:`bool`: Whether the Operating System is Mac OS X."""

IS_PYTHON_64BIT = sys.maxsize > 2 ** 32
""":obj:`bool`: Whether the Python interpreter is 64-bits."""

IS_PYTHON2 = sys.version_info.major == 2
""":obj:`bool`: Whether Python 2.x is being used."""

IS_PYTHON3 = sys.version_info.major == 3
""":obj:`bool`: Whether Python 3.x is being used."""

if IS_WINDOWS:
    SERVER_FILENAME = 'server32-windows.exe'
elif IS_LINUX:
    SERVER_FILENAME = 'server32-linux'
elif IS_MAC:
    SERVER_FILENAME = 'server32-mac'
else:
    SERVER_FILENAME = 'server32-unknown'

EXAMPLES_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'examples', 'loadlib'))

from .load_library import LoadLibrary
from .server32 import Server32
from .client64 import Client64
<commit_msg>fix version_info bug (remove EXAMPLES_DIR constant)<commit_after>"""
Load a shared library.

The following constants are provided in the **msl.loadlib** package.
"""
import sys
from collections import namedtuple

__author__ = '<NAME>'
__copyright__ = '\xa9 2017, ' + __author__
__version__ = '0.3.0'

version_info = namedtuple('version_info', 'major minor micro')(*map(int, __version__.split('.')[:3]))
""":obj:`~collections.namedtuple`: Contains the version information as a (major, minor, micro) tuple."""

IS_WINDOWS = sys.platform in ['win32', 'cygwin']
""":obj:`bool`: Whether the Operating System is Windows."""

IS_LINUX = sys.platform.startswith('linux')
""":obj:`bool`: Whether the Operating System is Linux."""

IS_MAC = sys.platform == 'darwin'
""":obj:`bool`: Whether the Operating System is Mac OS X."""

IS_PYTHON_64BIT = sys.maxsize > 2 ** 32
""":obj:`bool`: Whether the Python interpreter is 64-bits."""

IS_PYTHON2 = sys.version_info.major == 2
""":obj:`bool`: Whether Python 2.x is being used."""

IS_PYTHON3 = sys.version_info.major == 3
""":obj:`bool`: Whether Python 3.x is being used."""

if IS_WINDOWS:
    SERVER_FILENAME = 'server32-windows.exe'
elif IS_LINUX:
    SERVER_FILENAME = 'server32-linux'
elif IS_MAC:
    SERVER_FILENAME = 'server32-mac'
else:
    SERVER_FILENAME = 'server32-unknown'

from .load_library import LoadLibrary
from .server32 import Server32
from .client64 import Client64

{'fraction_non_alphanumeric': 0.15170068027210884, 'fraction_numerical': 0.02687074829931973, 'mean_word_length': 5.297644539614561, 'pattern_counts': {'":': 14, '<': 5, '<?xml version=': 0, '>': 7, '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': '82241', 'n_tokens_mistral': 1038, 'n_tokens_neox': 954, 'n_words': 284}