<commit_before># cython: language_level=3, warn.maybe_uninitialized=True
# mode: error
# tag: werror

def list_comp(a):
    r = [i for i in a]
    print(i)
    i = 0
    return r

def dict_comp(a):
    r = {i: j for i, j in a}
    print(i)
    i = 0
    return r


_ERRORS = """
7:11: local variable 'i' referenced before assignment
13:11: local variable 'i' referenced before assignment
"""<commit_msg>Don't use print() inside w_unitialized_py3 test, that doesn't work for python < 2.6<commit_after># cython: language_level=3, warn.maybe_uninitialized=True
# mode: error
# tag: werror

def ref(obj):
    pass

def list_comp(a):
    r = [i for i in a]
    ref(i)
    i = 0
    return r

def dict_comp(a):
    r = {i: j for i, j in a}
    ref(i)
    i = 0
    return r


_ERRORS = """
10:9: local variable 'i' referenced before assignment
16:9: local variable 'i' referenced before assignment
"""
{'fraction_non_alphanumeric': 0.11843575418994413, 'fraction_numerical': 0.024581005586592177, 'mean_word_length': 3.1869158878504673, 'pattern_counts': {'":': 0, '<': 4, '<?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': '5269698', 'n_tokens_mistral': 345, 'n_tokens_neox': 329, 'n_words': 116}