<commit_before># -*- coding: utf-8 -*-
# Copyright (C) 2015 Cyan, Inc.

import logging
import warnings

from itertools import cycle
from random import randint

log = logging.getLogger(__name__)
log.addHandler(logging.NullHandler())


try:
    import murmur

    def murmur2_hash_c(bytes, seed=0x9747b28c):
        """murmur2_hash_c

        Use the murmur c-extension's string_hash routine
        """
        return murmur.string_hash(str(bytes), seed)

    murmur2_hash = murmur2_hash_c

except ImportError:  # pragma: no cover
    try:
        import __pypy__
    except ImportError:
        warnings.warn(
            "Import of murmur failed, using pure python", ImportWarning,
        )<commit_msg>Fix issue with linting due to unused import<commit_after># -*- coding: utf-8 -*-
# Copyright (C) 2015 Cyan, Inc.

import logging
import warnings

from itertools import cycle
from random import randint

log = logging.getLogger(__name__)
log.addHandler(logging.NullHandler())


try:
    import murmur

    def murmur2_hash_c(bytes, seed=0x9747b28c):
        """murmur2_hash_c

        Use the murmur c-extension's string_hash routine
        """
        return murmur.string_hash(str(bytes), seed)

    murmur2_hash = murmur2_hash_c

except ImportError:  # pragma: no cover
    try:
        import __pypy__
        assert __pypy__
    except ImportError:
        warnings.warn(
            "Import of murmur failed, using pure python", ImportWarning,
        )
{'fraction_non_alphanumeric': 0.08344733242134063, 'fraction_numerical': 0.02188782489740082, 'mean_word_length': 2.932795698924731, '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': '4470674', 'n_tokens_mistral': 476, 'n_tokens_neox': 452, 'n_words': 129}