<commit_before># -*- coding: utf-8 -*-

# Copyright (c) 2018 shmilee

VERSION = (0, 3, 9)

__description__ = "Gyrokinetic Toroidal Code Data Processing tools written in python3"
__url__ = "https://github.com/shmilee/gdpy3.git"
__version__ = '.'.join(map(str, VERSION))
__status__ = "alpha"
__author__ = "shmilee"
__email__ = "<EMAIL>"
__license__ = "MIT"
__copyright__ = 'Copyright (c) 2018 shmilee'
<commit_msg>pre __data_path__  for non-py files<commit_after># -*- coding: utf-8 -*-

# Copyright (c) 2018 shmilee

VERSION = (0, 3, 9)

__description__ = "Gyrokinetic Toroidal Code Data Processing tools written in python3"
__url__ = "https://github.com/shmilee/gdpy3.git"
__version__ = '.'.join(map(str, VERSION))
__status__ = "alpha"
__author__ = "shmilee"
__email__ = "<EMAIL>"
__license__ = "MIT"
__copyright__ = 'Copyright (c) 2018 shmilee'


def _get_data_path(name):
    '''Get the path to *name*.'''
    import os
    import sys

    path = os.path.join(os.path.dirname(os.path.abspath(__file__)), name)
    if os.path.isdir(path):
        return path

    # pyinstaller frozen check
    if getattr(sys, 'frozen', None):
        path = os.path.join(sys._MEIPASS, name)
        if os.path.isdir(path):
            return path

        path = os.path.join(os.path.dirname(sys.executable), name)
        if os.path.isdir(path):
            return path

        path = os.path.join(sys.path[0], name)
        if os.path.isdir(path):
            return path

    raise RuntimeError("Can't find the %s files!" % name)


__data_path__ = _get_data_path('gdpy3-data')

{'fraction_non_alphanumeric': 0.14039566049776644, 'fraction_numerical': 0.01914486279514997, 'mean_word_length': 3.319559228650138, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '7082944', 'n_tokens_mistral': 591, 'n_tokens_neox': 557, 'n_words': 137}