<commit_before># Licensed under a 3-clause BSD style license - see LICENSE.rst
import os
import json
from distutls.version import LooseVersion

import pytest
import six

from ...utils.testing_tools import MockResponse
from ...exceptions import (InvalidQueryError)

from .. import AstrometryNet

_pytest_is_old = LooseVersion(pytest.__version__) < LooseVersion('3.3')

DATA_DIR = os.path.join(os.path.dirname(__file__), 'data')


def data_path(filename):
    return os.path.join(DATA_DIR, filename)


@pytest.mark.skipif(_pytest_is_old,
                    reason='pytest version too old for caplog')<commit_msg>Fix typo<commit_after># Licensed under a 3-clause BSD style license - see LICENSE.rst
import os
import json
from distutils.version import LooseVersion

import pytest
import six

from ...utils.testing_tools import MockResponse
from ...exceptions import (InvalidQueryError)

from .. import AstrometryNet

_pytest_is_old = LooseVersion(pytest.__version__) < LooseVersion('3.3')

DATA_DIR = os.path.join(os.path.dirname(__file__), 'data')


def data_path(filename):
    return os.path.join(DATA_DIR, filename)


@pytest.mark.skipif(_pytest_is_old,
                    reason='pytest version too old for caplog')
{'fraction_non_alphanumeric': 0.09523809523809523, 'fraction_numerical': 0.0049261083743842365, 'mean_word_length': 4.441964285714286, 'pattern_counts': {'":': 0, '<': 5, '<?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': '411959', 'n_tokens_mistral': 388, 'n_tokens_neox': 391, 'n_words': 102}