<commit_before>'''Default injector configuration, which binds scopes, and the injector.'''
from inject.scopes import ApplicationScope, appscope, \
    NoScope, noscope, \
    RequestScope, reqscope


def default_config(injector):
    from inject.injectors import Injector
    injector.bind(Injector, to=injector)
    
    appscope_instance = ApplicationScope()
    noscope_instance = NoScope()
    reqscope_instance = RequestScope()
    
    injector.bind(ApplicationScope, to=appscope_instance)
    injector.bind(appscope, to=appscope_instance)
    
    injector.bind(NoScope, to=noscope_instance)
    injector.bind(noscope, to=noscope_instance)
    
    injector.bind(RequestScope, to=reqscope_instance)
    injector.bind(reqscope, to=reqscope_instance)<commit_msg>Fixed binding scopes in default configuration.<commit_after>'''Default injector configuration, which binds scopes, and the injector.'''
from inject.scopes import ApplicationScope, appscope, \
    NoScope, noscope, \
    RequestScope, reqscope


def default_config(injector):
    from inject.injectors import Injector
    injector.bind(Injector, to=injector)
    
    appscope_instance = ApplicationScope()
    noscope_instance = NoScope()
    reqscope_instance = RequestScope()
    
    injector.bind_scope(ApplicationScope, to=appscope_instance)
    injector.bind_scope(appscope, to=appscope_instance)
    
    injector.bind_scope(NoScope, to=noscope_instance)
    injector.bind_scope(noscope, to=noscope_instance)
    
    injector.bind_scope(RequestScope, to=reqscope_instance)
    injector.bind_scope(reqscope, to=reqscope_instance)
{'fraction_non_alphanumeric': 0.08546475358702432, 'fraction_numerical': 0.0, 'mean_word_length': 4.832727272727273, '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': '4001993', 'n_tokens_mistral': 485, 'n_tokens_neox': 481, 'n_words': 92}