<commit_before>from pathlib import Path
from spacy.util import get_lang_class
import pkg_resources


def load_meta():
    with io.open('meta.json', encoding='utf8') as f:
        return json.load(f)


def load(**kwargs):
    version = load_meta()['version']
    data_dir = pkg_resources.resource_filename(__name__, __name__ + '-' + version)
    lang = get_lang_class(about.__lang__)
    return lang(path=Path(data_dir), **kwargs)<commit_msg>Fix typos<commit_after>from pathlib import Path
from spacy.util import get_lang_class
import pkg_resources
import json


def load_meta():
    with (Path(__file__).parent / 'meta.json').open() as f:
        return json.load(f)


def load(**kwargs):
    version = load_meta()
    version = meta['version']
    data_dir = pkg_resources.resource_filename(__name__, __name__ + '-' + version)
    lang = get_lang_class(meta['lang'])
    return lang(path=Path(data_dir), **kwargs)
{'fraction_non_alphanumeric': 0.12691466083150985, 'fraction_numerical': 0.0010940919037199124, 'mean_word_length': 4.545454545454546, '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': '2395543', 'n_tokens_mistral': 299, 'n_tokens_neox': 287, 'n_words': 68}