MonoshiTonmoy/Code_Statement_Prediction_Dataset huggingface dataset:
Project Name: Melevir+flake8-super-mario
Language: Python
Statement Type: API

Source Code:
def run_validator_for_test_file(filename: str) -> List:
    test_file_path = os.path.join(
        os.path.dirname(os.path.abspath(__file__)),
        'test_files',
        filename,
    )
    with open(test_file_path, 'r') as file_handler:
        raw_content = file_handler.read()
    tree = ast.parse(raw_content)
    checker = SuperMarionChecker(tree=tree, filename=test_file_path)

    return list(checker.run())

run_validator_for_test_file(filename='ok_pipe.py')

Selected Statement: with open(test_file_path, 'r') as file_handler:

Function Input:
filename: 'ok_pipe.py'

Variable Values Before Statement:
test_file_path: '/local/rcs/jinjun/code/pytrace-collector/logs/pypibugs/tried/Melevir+flake8-super-mario/Melevir+flake8-super-mario/tests/test_files/ok_pipe.py'

Value After Statement Execution: <_io.TextIOWrapper name

Variable States During Runtime (line, value):
filename: 1
'ok_pipe.py'
test_file_path: 2
'/local/rcs/jinjun/code/pytrace-collector/logs/pypibugs/tried/Melevir+flake8-super-mario/Melevir+flake8-super-mario/tests/test_files/ok_pipe.py'
file_handler: 7
<_io.TextIOWrapper name='/local/rcs/jinjun/code/pytrace-collector/logs/pypibugs/tried/Melevir+flake8-super-mario/Melevir+flake8-super-mario/tests/test_files/ok_pipe.py' mode='r' encoding='UTF-8'>
raw_content: 8
"from super_mario import BasePipeline, process_pipe\n\n\nclass SimplePipeline(BasePipeline):\n    pipeline = [\n        'sum_numbers',\n        'multiply_numbers',\n    ]\n\n    @process_pipe\n    @staticmethod\n    def sum_numbers(a, b):\n        return {'d': a + b}\n\n    @process_pipe\n    def multiply_numbers(c, d):\n        return {'e': c * d}\n"
tree: 9
{body=[<ast.ImportFrom object at 0x7feb90bccfa0>, <ast.ClassDef object at 0x7feb90bcceb0>], type_ignores=[]}
12
{body=[<ast.ImportFrom object at 0x7feb90bccfa0>, <ast.ClassDef object at 0x7feb90bcceb0>], type_ignores=[], parent=None}
checker: 10
{filename='/local/rcs/jinjun/code/pytrace-collector/logs/pypibugs/tried/Melevir+flake8-super-mario/Melevir+flake8-super-mario/tests/test_files/ok_pipe.py', tree=<ast.Module object at 0x7feb90bccfd0>}
Project Name: ccxt+ccxt
Language: Python
Statement Type: API

Source Code:
def append(self, item):
        self._deque.append(item)
        if self._clear_all_updates:
            self._clear_all_updates = False
            self._clear_updates_by_symbol.clear()
            self._all_new_updates = 0
            self._new_updates_by_symbol.clear()
        if self._clear_updates_by_symbol.get(item['symbol']):
            self._clear_updates_by_symbol[item['symbol']] = False
            self._new_updates_by_symbol[item['symbol']] = 0
        self._new_updates_by_symbol[item['symbol']] = self._new_updates_by_symbol.get(item['symbol'], 0) + 1
        self._all_new_updates = (self._all_new_updates or 0) + 1

append(self=[], item={'symbol': 'BTC/USDT', 'data': 1})

Selected Statement: self._deque.append(item)

Function Input:
item: symbol: BTC/USDT
data: 1

Variable Values Before Statement:
item: symbol: BTC/USDT
data: 1

Value After Statement Execution: symbol: BTC/USDT
data: 1

Variable States During Runtime (line, value):
self: 1
2
symbol: BTC/USDT
data: 1
item: 1
symbol: BTC/USDT
data: 1
self[0]: 2
symbol: BTC/USDT
data: 1
Project Name: ccxt+ccxt
Language: Python
Statement Type: API

Source Code:
def bit_length(num):
    # http://docs.python.org/dev/library/stdtypes.html#int.bit_length
    s = bin(num)  # binary representation:  bin(-37) --> '-0b100101'
    s = s.lstrip('-0b')  # remove leading zeros and minus sign
    return len(s)

bit_length(num=115792089237316195423570985008687907852837564279074904382605163141518161494337)

Selected Statement: s = bin(num)  # binary representation:  bin(-37) --> '-0b100101'

Function Input:
num: 115792089237316195423570985008687907852837564279074904382605163141518161494337

Variable Values Before Statement:
num: 115792089237316195423570985008687907852837564279074904382605163141518161494337

Value After Statement Execution: '0b1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111010111010101011101101110011100110101011110100100010100000001110111011111111010010010111101000110011010000001101100100000101000001'

Variable States During Runtime (line, value):
num: 1
115792089237316195423570985008687907852837564279074904382605163141518161494337
s: 3
'0b1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111010111010101011101101110011100110101011110100100010100000001110111011111111010010010111101000110011010000001101100100000101000001'
4
'1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111010111010101011101101110011100110101011110100100010100000001110111011111111010010010111101000110011010000001101100100000101000001'
Project Name: ccxt+ccxt
Language: Python
Statement Type: API

Source Code:
def bits2octets(data, order):
    z1 = bits2int(data, bit_length(order))
    z2 = z1 - order

    if z2 < 0:
        z2 = z1

    return number_to_string_crop(z2, order)

bits2octets(data=b'\xa7?\xcf3\x96@\x92\x92\x07(\x1f\xb8\xe08\x88H\x06\xe2\xeb\x08@\xf2$V\x94\xdb\xba\x1d\\\xc8\x9ee', order=115792089237316195423570985008687907852837564279074904382605163141518161494337)

Selected Statement: z1 = bits2int(data, bit_length(order))

Function Input:
data: b'\xa7?\xcf3\x96@\x92\x92\x07(\x1f\xb8\xe08\x88H\x06\xe2\xeb\x08@\xf2$V\x94\xdb\xba\x1d\\\xc8\x9ee'
order: 115792089237316195423570985008687907852837564279074904382605163141518161494337

Variable Values Before Statement:
order: 115792089237316195423570985008687907852837564279074904382605163141518161494337

Value After Statement Execution: 75648987130760998095283026105289635390775519882394219481699348731002280779365

Variable States During Runtime (line, value):
data: 1
b'\xa7?\xcf3\x96@\x92\x92\x07(\x1f\xb8\xe08\x88H\x06\xe2\xeb\x08@\xf2$V\x94\xdb\xba\x1d\\\xc8\x9ee'
order: 1
115792089237316195423570985008687907852837564279074904382605163141518161494337
z1: 2
75648987130760998095283026105289635390775519882394219481699348731002280779365
z2: 3
-40143102106555197328287958903398272462062044396680684900905814410515880714972
6
75648987130760998095283026105289635390775519882394219481699348731002280779365
Project Name: ccxt+ccxt
Language: Python
Statement Type: API

Source Code:
def __str__(self):
        self.reduce()
        sign = '-' if self.integer < 0 else ''
        integer_array = list(str(abs(self.integer)).rjust(self.decimals, '0'))
        index = len(integer_array) - self.decimals
        if index == 0:
            item = '0.'
        elif self.decimals < 0:
            item = '0' * (-self.decimals)
        elif self.decimals == 0:
            item = ''
        else:
            item = '.'
        integer_array.insert(index, item)
        return sign + ''.join(integer_array)

__str__(self=Precise(1393.938), self.base=10, self.decimals=3, self.integer=1393938)

Selected Statement: index = len(integer_array) - self.decimals

Function Input:
self: Precise(1393.938)
self.base: 10
self.decimals: 3
self.integer: 1393938

Variable Values Before Statement:
integer_array: 1, 3, 9, 3, 9, 3, 8

Value After Statement Execution: 4

Variable States During Runtime (line, value):
self: 1
Precise(1393.938)
self.base: 1
10
self.decimals: 1
3
self.integer: 1
1393938
sign: 3
''
integer_array: 4
1, 3, 9, 3, 9, 3, 8
14
1, 3, 9, 3, ., 9, 3, 8
index: 5
4
item: 13
'.'
Project Name: ccxt+ccxt
Language: Python
Statement Type: API

Source Code:
def div(self, other, precision=18):
        distance = precision - self.decimals + other.decimals
        if distance == 0:
            numerator = self.integer
        elif distance < 0:
            exponent = self.base ** -distance
            numerator = self.integer // exponent
        else:
            exponent = self.base ** distance
            numerator = self.integer * exponent
        result, mod = divmod(numerator, other.integer)
        # python floors negative numbers down instead of truncating
        # if mod is zero it will be floored to itself so we do not add one
        result = result + 1 if result < 0 and mod else result
        return Precise(result, precision)

div(self=Precise(0.00000002), other=Precise(69696900000), precision=1, self.base=10, self.decimals=8, self.integer=2)

Selected Statement: result, mod = divmod(numerator, other.integer)

Function Input:
self: Precise(0.00000002)
other: Precise(69696900000)
precision: 1
self.base: 10
self.decimals: 8
self.integer: 2

Variable Values Before Statement:
numerator: 0

Value After Statement Execution: 0

Variable States During Runtime (line, value):
self: 1
Precise(0.00000002)
other: 1
Precise(69696900000)
precision: 1
1
self.base: 1
10
self.decimals: 1
8
self.integer: 1
2
distance: 2
-12
exponent: 6
1000000000000
numerator: 7
0
result: 11
0
mod: 11
0
Project Name: aws+aws-cli
Language: Python
Statement Type: API

Source Code:
def _import_plugins(plugin_names):
    plugins = []
    for name, path in plugin_names.items():
        log.debug("Importing plugin %s: %s", name, path)
        if '.' not in path:
            plugins.append(__import__(path))
        else:
            package, module = path.rsplit('.', 1)
            module = __import__(path, fromlist=[module])
            plugins.append(module)
    return plugins

_import_plugins(plugin_names={'__builtin__': 'awscli.handlers'})

Selected Statement: plugins.append(module)

Function Input:
plugin_names: __builtin__: awscli.handlers

Variable Values Before Statement:
module: <module 'awscli.handlers' from '/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/aws+aws-cli/aws+aws-cli/awscli/handlers.py'>

Value After Statement Execution: [<module 'awscli.handlers' from '/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/aws+aws-cli/aws+aws-cli/awscli/handlers.py'>]

Variable States During Runtime (line, value):
plugin_names: 1
__builtin__: awscli.handlers
plugins: 2
10
[<module 'awscli.handlers' from '/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/aws+aws-cli/aws+aws-cli/awscli/handlers.py'>]
name: 3
'__builtin__'
path: 3
'awscli.handlers'
package: 8
'awscli'
module: 8
'handlers'
9
<module 'awscli.handlers' from '/local/rcs/jinjun/code/pytrace-collector/logs/self_collected/tried/aws+aws-cli/aws+aws-cli/awscli/handlers.py'>
Project Name: qubvel+segmentation_models.pytorch
Language: Python
Statement Type: API

Source Code:
def test_soft_jaccard_score(y_true, y_pred, expected, eps):
    y_true = torch.tensor(y_true, dtype=torch.float32)
    y_pred = torch.tensor(y_pred, dtype=torch.float32)
    actual = F.soft_jaccard_score(y_pred, y_true, eps=eps)
    assert float(actual) == pytest.approx(expected, eps)

test_soft_jaccard_score(y_true=[1, 1, 1, 1], y_pred=[1, 1, 1, 1], expected=1.0, eps=1e-05)

Selected Statement: y_pred = torch.tensor(y_pred, dtype=torch.float32)

Function Input:
y_true: [1, 1, 1, 1]
y_pred: [1, 1, 1, 1]
expected: 1.0
eps: 1e-05

Variable Values Before Statement:
y_pred: [1, 1, 1, 1]

Value After Statement Execution: tensor([1., 1., 1., 1.])

Variable States During Runtime (line, value):
y_true: 1
[1, 1, 1, 1]
2
tensor([1., 1., 1., 1.])
y_pred: 1
[1, 1, 1, 1]
3
tensor([1., 1., 1., 1.])
expected: 1
1.0
eps: 1
1e-05
actual: 4
tensor(1.)
@py_assert2: 5
None
@py_assert6: 5
None
@py_assert10: 5
None
@py_assert4: 5
None
Project Name: qubvel+segmentation_models.pytorch
Language: Python
Statement Type: API

Source Code:
def test_soft_jaccard_score_2(y_true, y_pred, expected, eps):
    y_true = torch.tensor(y_true, dtype=torch.float32)
    y_pred = torch.tensor(y_pred, dtype=torch.float32)
    actual = F.soft_jaccard_score(y_pred, y_true, dims=[1], eps=eps)
    actual = actual.mean()
    assert float(actual) == pytest.approx(expected, eps)

test_soft_jaccard_score_2(y_true=[[1, 1, 0, 0], [0, 0, 1, 1]], y_pred=[[1, 1, 0, 0], [0, 0, 1, 1]], expected=1.0, eps=1e-05)

Selected Statement: assert float(actual) == pytest.approx(expected, eps)

Function Input:
y_true: [[1, 1, 0, 0], [0, 0, 1, 1]]
y_pred: [[1, 1, 0, 0], [0, 0, 1, 1]]
expected: 1.0
eps: 1e-05

Variable Values Before Statement:
expected: 1.0
eps: 1e-05

Value After Statement Execution: None

Variable States During Runtime (line, value):
y_true: 1
[[1, 1, 0, 0], [0, 0, 1, 1]]
2
tensor([[1., 1., 0., 0.],        [0., 0., 1., 1.]])
y_pred: 1
[[1, 1, 0, 0], [0, 0, 1, 1]]
3
tensor([[1., 1., 0., 0.],        [0., 0., 1., 1.]])
expected: 1
1.0
eps: 1
1e-05
actual: 4
tensor([1., 1.])
5
tensor(1.)
@py_assert2: 6
None
@py_assert6: 6
None
@py_assert10: 6
None
@py_assert4: 6
None
Project Name: qubvel+segmentation_models.pytorch
Language: Python
Statement Type: API

Source Code:
def test_soft_dice_score(y_true, y_pred, expected, eps):
    y_true = torch.tensor(y_true, dtype=torch.float32)
    y_pred = torch.tensor(y_pred, dtype=torch.float32)
    actual = F.soft_dice_score(y_pred, y_true, eps=eps)
    assert float(actual) == pytest.approx(expected, eps)

test_soft_dice_score(y_true=[1, 1, 1, 1], y_pred=[1, 1, 1, 1], expected=1.0, eps=1e-05)

Selected Statement: assert float(actual) == pytest.approx(expected, eps)

Function Input:
y_true: [1, 1, 1, 1]
y_pred: [1, 1, 1, 1]
expected: 1.0
eps: 1e-05

Variable Values Before Statement:
actual: tensor(1.)

Value After Statement Execution: None

Variable States During Runtime (line, value):
y_true: 1
[1, 1, 1, 1]
2
tensor([1., 1., 1., 1.])
y_pred: 1
[1, 1, 1, 1]
3
tensor([1., 1., 1., 1.])
expected: 1
1.0
eps: 1
1e-05
actual: 4
tensor(1.)
@py_assert2: 5
None
@py_assert6: 5
None
@py_assert10: 5
None
@py_assert4: 5
None
Project Name: qubvel+segmentation_models.pytorch
Language: Python
Statement Type: API

Source Code:
def test_soft_tversky_score(y_true, y_pred, expected, eps, alpha, beta):
    y_true = torch.tensor(y_true, dtype=torch.float32)
    y_pred = torch.tensor(y_pred, dtype=torch.float32)
    actual = F.soft_tversky_score(y_pred, y_true, eps=eps, alpha=alpha, beta=beta)
    assert float(actual) == pytest.approx(expected, eps)

test_soft_tversky_score(y_true=[1, 1, 1, 1], y_pred=[1, 1, 1, 1], expected=1.0, eps=1e-05, alpha=0.5, beta=0.5)

Selected Statement: assert float(actual) == pytest.approx(expected, eps)

Function Input:
y_true: [1, 1, 1, 1]
y_pred: [1, 1, 1, 1]
expected: 1.0
eps: 1e-05
alpha: 0.5
beta: 0.5

Variable Values Before Statement:
expected: 1.0
eps: 1e-05

Value After Statement Execution: None

Variable States During Runtime (line, value):
y_true: 1
[1, 1, 1, 1]
2
tensor([1., 1., 1., 1.])
y_pred: 1
[1, 1, 1, 1]
3
tensor([1., 1., 1., 1.])
expected: 1
1.0
eps: 1
1e-05
alpha: 1
0.5
beta: 1
0.5
actual: 4
tensor(1.)
@py_assert2: 5
None
@py_assert6: 5
None
@py_assert10: 5
None
@py_assert4: 5
None
Project Name: PyFilesystem+pyfilesystem2
Language: Python
Statement Type: API

Source Code:
def _to_str(size, suffixes, base):
    # type: (SupportsInt, Iterable[Text], int) -> Text
    try:
        size = int(size)
    except ValueError:
        raise TypeError("filesize requires a numeric value, not {!r}".format(size))
    if size == 1:
        return "1 byte"
    elif size < base:
        return "{:,} bytes".format(size)

    for i, suffix in enumerate(suffixes, 2):
        unit = base ** i
        if size < unit:
            break
    return "{:,.1f} {}".format((base * size / unit), suffix)

_to_str(size=1024, suffixes=('KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB'), base=1024)

Selected Statement: for i, suffix in enumerate(suffixes, 2):

Function Input:
size: 1024
suffixes: ('KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB')
base: 1024

Variable Values Before Statement:
suffixes: ('KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB')

Value After Statement Execution: 2

Variable States During Runtime (line, value):
size: 1
1024
suffixes: 1
('KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB')
base: 1
1024
i: 12
2
suffix: 12
'KiB'
unit: 13
1048576
Project Name: PyFilesystem+pyfilesystem2
Language: Python
Statement Type: API

Source Code:
def _parse_time(t):
    t = " ".join(token.strip() for token in t.lower().split(" "))
    try:
        try:
            _t = time.strptime(t, "%b %d %Y")
        except ValueError:
            _t = time.strptime(t, "%b %d %H:%M")
    except ValueError:
        # Unknown time format
        return None

    year = _t.tm_year if _t.tm_year != 1900 else time.localtime().tm_year
    month = _t.tm_mon
    day = _t.tm_mday
    hour = _t.tm_hour
    minutes = _t.tm_min
    dt = datetime.datetime(year, month, day, hour, minutes, tzinfo=UTC)

    epoch_time = (dt - epoch_dt).total_seconds()
    return epoch_time

_parse_time(t='Jan 18  2006')

Selected Statement: dt = datetime.datetime(year, month, day, hour, minutes, tzinfo=UTC)

Function Input:
t: 'Jan 18  2006'

Variable Values Before Statement:
year: 2006
month: 1
day: 18
hour: 0
minutes: 0

Value After Statement Execution: datetime.datetime(2006, 1, 18, 0, 0, tzinfo

Variable States During Runtime (line, value):
t: 1
'Jan 18  2006'
2
'jan 18  2006'
_t: 5
time.struct_time(tm_year=2006, tm_mon=1, tm_mday=18, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=2, tm_yday=18, tm_isdst=-1)
year: 12
2006
month: 13
1
day: 14
18
hour: 15
0
minutes: 16
0
dt: 17
datetime.datetime(2006, 1, 18, 0, 0, tzinfo=<UTC>)
epoch_time: 19
1137542400.0
Project Name: PyFilesystem+pyfilesystem2
Language: Python
Statement Type: API

Source Code:
def __setitem__(self, key, value):
        # type: (_K, _V) -> None
        """Store a new views, potentially discarding an old value.
        """
        if key not in self:
            if len(self) >= self.cache_size:
                self.popitem(last=False)
        OrderedDict.__setitem__(self, key, value)

__setitem__(self=LRUCache(), key='foo', value=1)

Selected Statement: OrderedDict.__setitem__(self, key, value)

Function Input:
self: LRUCache()
key: 'foo'
value: 1

Variable Values Before Statement:
self: LRUCache()
key: 'foo'
value: 1

Value After Statement Execution: 1

Variable States During Runtime (line, value):
self: 1
LRUCache()
8
LRUCache([('foo', 1)])
key: 1
'foo'
value: 1
1
self['foo']: 8
1
Project Name: YugaByte+cassandra-python-driver
Language: Python
Statement Type: API

Source Code:
def _insert(self, key, value):
        flat_key = self._serialize_key(key)
        i = self._index.get(flat_key, -1)
        if i >= 0:
            self._items[i] = (key, value)
        else:
            self._items.append((key, value))
            self._index[flat_key] = len(self._items) - 1

_insert(self=OrderedMapSerializedKey([]), key='みbob', value=199)

Selected Statement: flat_key = self._serialize_key(key)

Function Input:
self: OrderedMapSerializedKey([])
key: 'みbob'
value: 199

Variable Values Before Statement:
key: 'みbob'

Value After Statement Execution: b'\xe3\x81\xbfbob'

Variable States During Runtime (line, value):
self: 1
OrderedMapSerializedKey([])
7
OrderedMapSerializedKey([('みbob', 199)])
key: 1
'みbob'
value: 1
199
flat_key: 2
b'\xe3\x81\xbfbob'
i: 3
-1
self['みbob']: 8
199
Project Name: pytransitions+transitions
Language: Python
Statement Type: API

Source Code:
def _prep_ordered_arg(desired_length, arguments=None):
    """Ensure list of arguments passed to add_ordered_transitions has the proper length.
    Expands the given arguments and apply same condition, callback
    to all transitions if only one has been given.

    Args:
        desired_length (int): The size of the resulting list
        arguments (optional[str, reference or list]): Parameters to be expanded.
    Returns:
        list: Parameter sets with the desired length.
    """
    arguments = listify(arguments) if arguments is not None else [None]
    if len(arguments) != desired_length and len(arguments) != 1:
        raise ValueError("Argument length must be either 1 or the same length as "
                         "the number of transitions.")
    if len(arguments) == 1:
        return arguments * desired_length
    return arguments

_prep_ordered_arg(desired_length=3, arguments=None)

Selected Statement: arguments = listify(arguments) if arguments is not None else [None]

Function Input:
desired_length: 3
arguments: None

Variable Values Before Statement:
arguments: None

Value After Statement Execution: [None]

Variable States During Runtime (line, value):
desired_length: 1
3
arguments: 1
None
12
[None]
Project Name: binux+pyspider
Language: Python
Statement Type: API

Source Code:
def config(_config=None, **kwargs):
    """
    A decorator for setting the default kwargs of `BaseHandler.crawl`.
    Any self.crawl with this callback will use this config.
    """
    if _config is None:
        _config = {}
    _config.update(kwargs)

    def wrapper(func):
        func._config = _config
        return func
    return wrapper

config(_config=None, kwargs={'age': 864000})

Selected Statement: _config.update(kwargs)

Function Input:
_config: None
kwargs: age: 864000

Variable Values Before Statement:
kwargs: age: 864000

Value After Statement Execution: age: 864000

Variable States During Runtime (line, value):
_config: 1
None
7
8
age: 864000
kwargs: 1
age: 864000
wrapper: 10
<function config.<locals>.wrapper at 0x7f6a10388ee0>
Project Name: Hasenpfote+fpq
Language: Python
Statement Type: API

Source Code:
def quat_from_axis_angle(axis, angle):
        axis_ = np.array(axis, dtype=np.float64)
        half_angle = angle * 0.5
        ret = np.empty(4)
        ret[0] = math.cos(half_angle)
        ret[1:4] = math.sin(half_angle) * axis_
        return ret

quat_from_axis_angle(axis=[1.0, 0.0, 0.0], angle=6.1086523819801535)

Selected Statement: ret[1:4] = math.sin(half_angle) * axis_

Function Input:
axis: [1.0, 0.0, 0.0]
angle: 6.1086523819801535

Variable Values Before Statement:
half_angle: 3.0543261909900767

Value After Statement Execution: array([-0.9961947 ,  0.08715574,  0.        ,  0.        ])

Variable States During Runtime (line, value):
axis: 1
[1.0, 0.0, 0.0]
angle: 1
6.1086523819801535
axis_: 2
array([1., 0., 0.])
half_angle: 3
3.0543261909900767
ret: 4
array([4.65265954e-310, 0.00000000e+000, 1.58101007e-322, 6.90572610e-310])
5
array([-9.96194698e-001,  0.00000000e+000,  1.58101007e-322,        6.90572610e-310])
6
array([-0.9961947 ,  0.08715574,  0.        ,  0.        ])
Project Name: jpadilla+pyjwt
Language: Python
Statement Type: API

Source Code:
def base64url_decode(input: Union[bytes, str]) -> bytes:
    input_bytes = force_bytes(input)

    rem = len(input_bytes) % 4

    if rem > 0:
        input_bytes += b"=" * (4 - rem)

    return base64.urlsafe_b64decode(input_bytes)

base64url_decode(input='hJtXIZ2uSN5kbQfbtTNWbpdmhkV8FJG-Onbc6mxCcYg')

Selected Statement: rem = len(input_bytes) % 4

Function Input:
input: 'hJtXIZ2uSN5kbQfbtTNWbpdmhkV8FJG-Onbc6mxCcYg'

Variable Values Before Statement:
input_bytes: b'hJtXIZ2uSN5kbQfbtTNWbpdmhkV8FJG-Onbc6mxCcYg'

Value After Statement Execution: 3

Variable States During Runtime (line, value):
input: 1
'hJtXIZ2uSN5kbQfbtTNWbpdmhkV8FJG-Onbc6mxCcYg'
input_bytes: 2
b'hJtXIZ2uSN5kbQfbtTNWbpdmhkV8FJG-Onbc6mxCcYg'
7
b'hJtXIZ2uSN5kbQfbtTNWbpdmhkV8FJG-Onbc6mxCcYg='
rem: 4
3
Project Name: jpadilla+pyjwt
Language: Python
Statement Type: API

Source Code:
def to_base64url_uint(val: int) -> bytes:
    if val < 0:
        raise ValueError("Must be a positive integer")

    int_bytes = bytes_from_int(val)

    if len(int_bytes) == 0:
        int_bytes = b"\x00"

    return base64url_encode(int_bytes)

to_base64url_uint(val=0)

Selected Statement: int_bytes = bytes_from_int(val)

Function Input:
val: 0

Variable Values Before Statement:
val: 0

Value After Statement Execution: b''

Variable States During Runtime (line, value):
val: 1
0
int_bytes: 5
b''
8
b'\x00'
Project Name: EntilZha+ScalaFunctional
Language: Python
Statement Type: API

Source Code:
def f(e):
            result.append(e)

f(e=1, result=[])

Selected Statement: result.append(e)

Function Input:
e: 1

Variable Values Before Statement:
e: 1

Value After Statement Execution: [1]

Variable States During Runtime (line, value):
e: 1
1
result: 1
2
[1]