<commit_before># adapted from cython/tests/run/builtin_abs.pyx

"""
>>> _abs = abs_as_name()
>>> _abs(-5)
5

>>> py_abs(-5)
5
>>> py_abs(-5.5)
5.5

>>> long(int32_abs(-5))
10L
>>> long(int_abs(-5))
10L
>>> long(long_abs(-5))
10L
>>> long(ulong_abs(5))
10L

>>> long_long_abs(-(2**33)) == 2**33
True
>>> ulong_long_abs(2**33) == 2 ** 33
True

>>> double_abs(-5)
10.0
>>> double_abs(-5.5)
11.0

>>> float_abs(-5)
10.0
>>> float_abs(-5.5)
11.0

>>> round(complex64_abs(-10-2j), 2)
20.4
>>> round(complex128_abs(-10-2j), 2)
20.4
"""

from numba import *

@jit(backend='ast')
def abs_as_name():
    x = abs
    return x

@autojit(backend='ast')
def _abs(value):
    result = abs(value)
    with nopython:<commit_msg>Fixed error in numba.tests.builtins.test_builtin_abs.<commit_after># adapted from cython/tests/run/builtin_abs.pyx

"""
>>> _abs = abs_as_name()
>>> _abs(-5)
5

>>> py_abs(-5)
5
>>> py_abs(-5.5)
5.5

>>> long(int32_abs(-5))
10L
>>> long(int_abs(-5))
10L
>>> long(long_abs(-5))
10L
>>> long(ulong_abs(5))
10L

>>> long_long_abs(-(2**33)) == 2**34
True
>>> ulong_long_abs(2**33) == 2**34
True

>>> double_abs(-5)
10.0
>>> double_abs(-5.5)
11.0

>>> float_abs(-5)
10.0
>>> float_abs(-5.5)
11.0

>>> round(complex64_abs(-10-2j), 2)
20.4
>>> round(complex128_abs(-10-2j), 2)
20.4
"""

from numba import *

@jit(backend='ast')
def abs_as_name():
    x = abs
    return x

@autojit(backend='ast')
def _abs(value):
    result = abs(value)
    with nopython:
{'fraction_non_alphanumeric': 0.23835616438356164, 'fraction_numerical': 0.09726027397260274, 'mean_word_length': 4.2178571428571425, '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': '5095028', 'n_tokens_mistral': 723, 'n_tokens_neox': 678, 'n_words': 117}