<commit_before>__doc__ = u"""
#>>> py_identity = lambda x:x
#>>> py_identity(1) == cy_identity(1)
#True

>>> idcall = make_identity()
>>> idcall(1)
1
>>> idcall(2)
2

>>> make_const0(1)()
1

>>> make_const1(1)(2)
1

>>> make_const1(1)(2)
1

>>> make_const_calc0()()
11
>>> make_const_calc1()(2)
11
>>> make_const_calc1_xy(8)(2)
27

>>> make_lambda_lambda(1)(2)(4)
7

>>> make_typed_lambda_lambda(1)(2)(4)
7

>>> partial_lambda = make_typed_lambda_lambda(1)(2)
>>> partial_lambda(4)
7
>>> partial_lambda(5)
8
"""

#cy_identity = lambda x:x

def make_identity():
    return lambda x:x

def make_const0(x):
    return lambda :x

def make_const1(x):
    return lambda _:x


def make_const_calc0():
    return lambda : 1*2*3+5

def make_const_calc1():
    return lambda _: 1*2*3+5

def make_const_calc1_xy(x):
    return lambda y: x*y+(1*2*3+5)

def make_lambda_lambda(x):
    return lambda y : \
           lambda z:x+y+z

def make_typed_lambda_lambda(int x):
    return lambda int y : \
           lambda int z:x+y+z<commit_msg>test cleanup<commit_after>__doc__ = u"""
#>>> py_identity = lambda x:x
#>>> py_identity(1) == cy_identity(1)
#True
"""

#cy_identity = lambda x:x


def make_identity():
    """
    >>> idcall = make_identity()
    >>> idcall(1)
    1
    >>> idcall(2)
    2
    """
    return lambda x:x

def make_const0(x):
    """
    >>> make_const0(1)()
    1
    """
    return lambda :x

def make_const1(x):
    """
    >>> make_const1(1)(2)
    1
    >>> make_const1(1)(2)
    1
    """
    return lambda _:x


def make_const_calc0():
    """
    >>> make_const_calc0()()
    11
    """
    return lambda : 1*2*3+5

def make_const_calc1():
    """
    >>> make_const_calc1()(2)
    11
    """
    return lambda _: 1*2*3+5

def make_const_calc1_xy(x):
    """
    >>> make_const_calc1_xy(8)(2)
    27
    """
    return lambda y: x*y+(1*2*3+5)

def make_lambda_lambda(x):
    """
    >>> make_lambda_lambda(1)(2)(4)
    7
    """
    return lambda y : \
           lambda z:x+y+z

def make_typed_lambda_lambda(int x):
    """
    >>> make_typed_lambda_lambda(1)(2)(4)
    7

    >>> partial_lambda = make_typed_lambda_lambda(1)(2)
    >>> partial_lambda(4)
    7
    >>> partial_lambda(5)
    8
    """
    return lambda int y : \
           lambda int z:x+y+z
{'fraction_non_alphanumeric': 0.1767032967032967, 'fraction_numerical': 0.05274725274725275, 'mean_word_length': 3.078853046594982, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 99, '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': '2612683', 'n_tokens_mistral': 948, 'n_tokens_neox': 933, 'n_words': 174}