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

import os
import sys
from datetime import datetime

sys.path.insert(0, os.path.abspath(os.pardir))

import bana


class Mock(object):

    __all__ = []

    def __init__(self, signature, *args, **kwargs):
        self._signature = signature

    def __repr__(self):
        return self._signature

    def __call__(self, *args, **kwargs):
        return Mock('%s()' % (self._signature,))

    def __getattr__(self, name):
        if name in ('__file__', '__path__'):
            return '/dev/null'
        else:
            return Mock('%s.%s' % (self._signature, name))


MOCK_MODULES = ['maya']
for module in MOCK_MODULES:
    sys.modules[module] = Mock(module)<commit_msg>Import bana after mocking maya's module<commit_after># -*- coding: utf-8 -*-

import os
import sys
from datetime import datetime

sys.path.insert(0, os.path.abspath(os.pardir))

class Mock(object):

    __all__ = []

    def __init__(self, signature, *args, **kwargs):
        self._signature = signature

    def __repr__(self):
        return self._signature

    def __call__(self, *args, **kwargs):
        return Mock('%s()' % (self._signature,))

    def __getattr__(self, name):
        if name in ('__file__', '__path__'):
            return '/dev/null'
        else:
            return Mock('%s.%s' % (self._signature, name))

MOCK_MODULES = ['maya']
for module in MOCK_MODULES:
    sys.modules[module] = Mock(module)

import bana
{'fraction_non_alphanumeric': 0.1437414030261348, 'fraction_numerical': 0.002751031636863824, 'mean_word_length': 2.890374331550802, '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': '6556316', 'n_tokens_mistral': 485, 'n_tokens_neox': 469, 'n_words': 122}