repo_id stringclasses 400
values | commit_sha stringclasses 400
values | commit_index int32 0 951 | in_repo_split stringclasses 1
value | cross_repo_split stringclasses 1
value | test_file stringlengths 7 121 | test_function stringlengths 1 108 | assertion_type stringclasses 32
values | difficulty stringclasses 8
values | context_lines int32 3 600 | prefix large_stringlengths 44 113k | target large_stringlengths 1 498 | anchor_sha stringclasses 400
values | anchor_index int32 0 951 | qna_source stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/monero/test_monero_from_watch_only.py | test_monero_from_watch_only | assert | complex_expr | 55 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_monero_from_watch_only(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["Monero"]["dumps"]["cryptocurrency"]
... | dump["ecc"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip141/test_bip141_from_private_key.py | test_bip141_from_private_key_compressed | assert | complex_expr | 64 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip141_from_private_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP141"]["compressed"]["cryp... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip141/test_bip141_from_public_key.py | test_bip141_from_public_key_compressed | assert | complex_expr | 68 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip141_from_public_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP141"]["compressed"]["crypt... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip141/test_bip141_from_seed.py | test_bip141_from_seed_compressed | assert | complex_expr | 54 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
from hdwallet.seeds import BIP39Seed
def test_bip141_from_seed_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip141/test_bip141_from_wif.py | test_bip141_from_wif_compressed | assert | complex_expr | 64 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip141_from_wif_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP141"]["compressed"]["cryptocurren... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip141/test_bip141_from_xprivate_key.py | test_bip141_from_xprivate_key_compressed | assert | complex_expr | 53 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
from hdwallet.seeds import BIP39Seed
def test_bip141_from_xprivate_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hd... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip141/test_bip141_from_xpublic_key.py | test_bip141_from_xpublic_key_compressed | assert | complex_expr | 67 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
from hdwallet.seeds import BIP39Seed
def test_bip141_from_xpublic_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdw... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip32/test_bip32_from_private_key.py | test_bip32_from_private_key_compressed | assert | complex_expr | 64 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip32_from_private_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP32"]["compressed"]["crypto... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip32/test_bip32_from_public_key.py | test_bip32_from_public_key_compressed | assert | complex_expr | 68 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip32_from_public_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP32"]["compressed"]["cryptoc... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip32/test_bip32_from_seed.py | test_bip32_from_seed_compressed | assert | complex_expr | 54 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
from hdwallet.seeds import BIP39Seed
def test_bip32_from_seed_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"][... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip32/test_bip32_from_wif.py | test_bip32_from_wif_compressed | assert | complex_expr | 64 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip32_from_wif_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP32"]["compressed"]["cryptocurrency... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip32/test_bip32_from_xprivate_key.py | test_bip32_from_xprivate_key_compressed | assert | complex_expr | 53 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
from hdwallet.seeds import BIP39Seed
def test_bip32_from_xprivate_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdw... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip32/test_bip32_from_xpublic_key.py | test_bip32_from_xpublic_key_compressed | assert | complex_expr | 67 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
from hdwallet.seeds import BIP39Seed
def test_bip32_from_xpublic_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwa... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip44/test_bip44_from_private_key.py | test_bip44_from_private_key_compressed | assert | complex_expr | 64 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip44_from_private_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP44"]["compressed"]["crypto... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip44/test_bip44_from_public_key.py | test_bip44_from_public_key_compressed | assert | complex_expr | 68 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip44_from_public_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP44"]["compressed"]["cryptoc... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip44/test_bip44_from_seed.py | test_bip44_from_seed_compressed | assert | complex_expr | 54 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
from hdwallet.seeds import BIP39Seed
def test_bip44_from_seed_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"][... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip44/test_bip44_from_wif.py | test_bip44_from_wif_compressed | assert | complex_expr | 64 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip44_from_wif_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP44"]["compressed"]["cryptocurrency... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip44/test_bip44_from_xprivate_key.py | test_bip44_from_xprivate_key_compressed | assert | complex_expr | 53 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
from hdwallet.seeds import BIP39Seed
def test_bip44_from_xprivate_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdw... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip49/test_bip49_from_private_key.py | test_bip49_from_private_key_compressed | assert | complex_expr | 64 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip49_from_private_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP49"]["compressed"]["crypto... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip49/test_bip49_from_public_key.py | test_bip49_from_public_key_compressed | assert | complex_expr | 68 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip49_from_public_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP49"]["compressed"]["cryptoc... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip49/test_bip49_from_seed.py | test_bip49_from_seed_compressed | assert | complex_expr | 54 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
from hdwallet.seeds import BIP39Seed
def test_bip49_from_seed_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"][... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip49/test_bip49_from_wif.py | test_bip49_from_wif_compressed | assert | complex_expr | 64 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip49_from_wif_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP49"]["compressed"]["cryptocurrency... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip49/test_bip49_from_xprivate_key.py | test_bip49_from_xprivate_key_compressed | assert | complex_expr | 53 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
from hdwallet.seeds import BIP39Seed
def test_bip49_from_xprivate_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdw... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip84/test_bip84_from_private_key.py | test_bip84_from_private_key_compressed | assert | complex_expr | 64 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip84_from_private_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP84"]["compressed"]["crypto... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip84/test_bip84_from_public_key.py | test_bip84_from_public_key_compressed | assert | complex_expr | 68 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip84_from_public_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP84"]["compressed"]["cryptoc... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip84/test_bip84_from_seed.py | test_bip84_from_seed_compressed | assert | complex_expr | 54 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
from hdwallet.seeds import BIP39Seed
def test_bip84_from_seed_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"][... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip84/test_bip84_from_wif.py | test_bip84_from_wif_compressed | assert | complex_expr | 64 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip84_from_wif_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP84"]["compressed"]["cryptocurrency... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip84/test_bip84_from_xprivate_key.py | test_bip84_from_xprivate_key_compressed | assert | complex_expr | 53 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
from hdwallet.seeds import BIP39Seed
def test_bip84_from_xprivate_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdw... | dump["seed"] | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip141/test_bip141_from_private_key.py | test_bip141_from_private_key_compressed | assert | none_literal | 23 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip141_from_private_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP141"]["compressed"]["cryp... | None | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip141/test_bip141_from_public_key.py | test_bip141_from_public_key_compressed | assert | none_literal | 24 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip141_from_public_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP141"]["compressed"]["crypt... | None | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip141/test_bip141_from_wif.py | test_bip141_from_wif_compressed | assert | none_literal | 23 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip141_from_wif_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP141"]["compressed"]["cryptocurren... | None | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip32/test_bip32_from_private_key.py | test_bip32_from_private_key_compressed | assert | none_literal | 23 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip32_from_private_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP32"]["compressed"]["crypto... | None | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hdwallet-io/python-hdwallet | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | train | train | tests/hdwallet/hdwallet/bip32/test_bip32_from_public_key.py | test_bip32_from_public_key_compressed | assert | none_literal | 24 | from hdwallet import HDWallet
from hdwallet.cryptocurrencies import CRYPTOCURRENCIES
from hdwallet.derivations import DERIVATIONS
from hdwallet.hds import HDS
def test_bip32_from_public_key_compressed(data):
cryptocurrency = CRYPTOCURRENCIES.cryptocurrency(
data["hdwallet"]["BIP32"]["compressed"]["cryptoc... | None | 8eccfcad9b1934b92d193cdc26348ed45c72e8fb | 29 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/abs_test.py | test_abs | assert_* | variable | 17 | from .context import assert_equal, get_simple_examples
import pytest
from sympy import Abs
examples = get_simple_examples(Abs)
delimiter_pairs = {
'|': '|',
'\\vert': '\\vert',
'\\lvert': '\\rvert'
}
@pytest.mark.parametrize('input, output, symbolically', examples)
def test_abs(input, output, symbolicall... | output) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/all_bad_test.py | test_bad_string | pytest.raises | variable | 68 | from .context import assert_equal, process_sympy
import pytest
def pytest_generate_tests(metafunc):
metafunc.parametrize('s', metafunc.cls.BAD_STRINGS)
class TestAllBad(object):
BAD_STRINGS = [
"(",
")",
# "a / b /",
"\\frac{d}{dx}",
"(\\frac{d}{dx})"
"\\sqrt{}... | Exception) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/all_good_test.py | test_good_pair | assert_* | variable | 278 | from .context import assert_equal, process_sympy, _Add, _Mul, _Pow
import pytest
import hashlib
from sympy import (
E, I, oo, pi, sqrt, root, Symbol, Add, Mul, Pow, Abs, factorial, log, Eq, Ne, S, Rational, Integer, UnevaluatedExpr,
sin, cos, tan, sinh, cosh, tanh, asin, acos, atan, asinh, acosh, atanh,
csc... | eq) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/atom_expr_test.py | test_with_supexpr | assert_* | func_call | 27 | from .context import assert_equal
import pytest
from sympy import Symbol, Integer, Pow
symbols = [
('letter', 'x', 'x'),
('greek letter', '\\lambda', 'lambda'),
('greek letter w/ space', '\\alpha ', 'alpha'),
('accented letter', '\\overline{x}', 'xbar')
]
subscripts = [
('2'),
('{23}'),
('... | Pow(Symbol(symbol_text, real=True), Integer(2))) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/atom_expr_test.py | test_with_subexpr | assert_* | func_call | 27 | from .context import assert_equal
import pytest
from sympy import Symbol, Integer, Pow
symbols = [
('letter', 'x', 'x'),
('greek letter', '\\lambda', 'lambda'),
('greek letter w/ space', '\\alpha ', 'alpha'),
('accented letter', '\\overline{x}', 'xbar')
]
subscripts = [
('2'),
('{23}'),
('... | Symbol(symbol_text + '_' + subscript, real=True)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/atom_expr_test.py | test_with_subexpr_before_supexpr | assert_* | func_call | 27 | from .context import assert_equal
import pytest
from sympy import Symbol, Integer, Pow
symbols = [
('letter', 'x', 'x'),
('greek letter', '\\lambda', 'lambda'),
('greek letter w/ space', '\\alpha ', 'alpha'),
('accented letter', '\\overline{x}', 'xbar')
]
subscripts = [
('2'),
('{23}'),
('... | Pow(Symbol(symbol_text + '_' + subscript, real=True), Integer(2))) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/binomial_test.py | test_binomial_symbols | assert_* | func_call | 12 | from .context import assert_equal, _Add, _Mul, _Pow
import pytest
from sympy import binomial, Symbol
x = Symbol('x', real=True)
y = Symbol('y', real=True)
theta = Symbol('theta', real=True)
gamma = Symbol('gamma', real=True)
def test_binomial_symbols():
assert_equal("\\binom{x}{y}", | binomial(x, y)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/binomial_test.py | test_binomial_numeric | assert_* | func_call | 12 | from .context import assert_equal, _Add, _Mul, _Pow
import pytest
from sympy import binomial, Symbol
x = Symbol('x', real=True)
y = Symbol('y', real=True)
theta = Symbol('theta', real=True)
gamma = Symbol('gamma', real=True)
def test_binomial_numeric():
assert_equal("\\binom{16}{2}", | binomial(16, 2)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/binomial_test.py | test_binomial_greek_symbols | assert_* | func_call | 12 | from .context import assert_equal, _Add, _Mul, _Pow
import pytest
from sympy import binomial, Symbol
x = Symbol('x', real=True)
y = Symbol('y', real=True)
theta = Symbol('theta', real=True)
gamma = Symbol('gamma', real=True)
def test_binomial_greek_symbols():
assert_equal("\\binom{\\theta}{\\gamma}", | binomial(theta, gamma)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/binomial_test.py | test_binomial_expr | assert_* | func_call | 12 | from .context import assert_equal, _Add, _Mul, _Pow
import pytest
from sympy import binomial, Symbol
x = Symbol('x', real=True)
y = Symbol('y', real=True)
theta = Symbol('theta', real=True)
gamma = Symbol('gamma', real=True)
def test_binomial_expr():
assert_equal("\\binom{16+2}{\\frac{4}{2}}", | binomial(_Add(16, 2), _Mul(4, _Pow(2, -1)), evaluate=False)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/ceil_test.py | test_ceil_func | assert_* | variable | 10 | from .context import assert_equal, get_simple_examples
import pytest
from sympy import ceiling
examples = get_simple_examples(ceiling)
@pytest.mark.parametrize('input, output, symbolically', examples)
def test_ceil_func(input, output, symbolically):
assert_equal("\\ceil({input})".format(input=input), | output) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/complex_test.py | test_complex | assert_* | complex_expr | 13 | from .context import assert_equal
import pytest
from sympy import Sum, I, Symbol, Integer
a = Symbol('a', real=True)
b = Symbol('b', real=True)
i = Symbol('i', real=True)
n = Symbol('n', real=True)
x = Symbol('x', real=True)
def test_complex():
assert_equal("a+Ib", | a + I * b) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/complex_test.py | test_complex_e | assert_* | func_call | 13 | from .context import assert_equal
import pytest
from sympy import Sum, I, Symbol, Integer
a = Symbol('a', real=True)
b = Symbol('b', real=True)
i = Symbol('i', real=True)
n = Symbol('n', real=True)
x = Symbol('x', real=True)
def test_complex_e():
assert_equal("e^{I\\pi}", | Integer(-1)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/complex_test.py | test_complex_sum | assert_* | func_call | 13 | from .context import assert_equal
import pytest
from sympy import Sum, I, Symbol, Integer
a = Symbol('a', real=True)
b = Symbol('b', real=True)
i = Symbol('i', real=True)
n = Symbol('n', real=True)
x = Symbol('x', real=True)
def test_complex_sum():
assert_equal("\\sum_{i=0}^{n} i \\cdot x", | Sum(i * x, (i, 0, n))) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/context.py | compare | assert | numeric_literal | 61 | from sympy import simplify, srepr, Add, Mul, Pow, Rational, pi, sqrt, Symbol
from latex2sympy.latex2sympy2 import latex2sympy as process_sympy
import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def _Add(a, b):
... | 0 | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/context.py | compare | assert | variable | 66 | from sympy import simplify, srepr, Add, Mul, Pow, Rational, pi, sqrt, Symbol
from latex2sympy.latex2sympy2 import latex2sympy as process_sympy
import sys
import os
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def _Add(a, b):
... | expected_exp_tree | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/exp_test.py | test_exp_letter | assert_* | variable | 10 | from .context import assert_equal
import pytest
from sympy import exp, sin, Symbol, E
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_exp_letter():
assert_equal("e", | E) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/exp_test.py | test_exp_command_symbol_multiplied | assert_* | complex_expr | 13 | from .context import assert_equal
import pytest
from sympy import exp, sin, Symbol, E
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_exp_command_symbol_multiplied():
'''
\\exponentialE is NOT a function, so using the following notation equates to multiplication
'''
assert_equal("\\exp... | E * 3) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/exp_test.py | test_exp_letter | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import exp, sin, Symbol, E
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_exp_letter():
assert_equal("e", E)
assert_equal("e", | exp(1)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/exp_test.py | test_exp_func | assert_* | func_call | 10 | from .context import assert_equal
import pytest
from sympy import exp, sin, Symbol, E
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_exp_func():
assert_equal("\\exp(3)", | exp(3)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/exp_test.py | test_exp_symbol | assert_* | func_call | 10 | from .context import assert_equal
import pytest
from sympy import exp, sin, Symbol, E
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_exp_symbol():
assert_equal("e^x", | exp(x)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/exp_test.py | test_exp_symbol_expr | assert_* | func_call | 10 | from .context import assert_equal
import pytest
from sympy import exp, sin, Symbol, E
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_exp_symbol_expr():
assert_equal("e^{x+y}", | exp(x + y)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/exp_test.py | test_exp_expr | assert_* | func_call | 10 | from .context import assert_equal
import pytest
from sympy import exp, sin, Symbol, E
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_exp_expr():
assert_equal("\\sin(x)*e^x", | sin(x) * exp(x)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/floor_test.py | test_floor_func | assert_* | variable | 10 | from .context import assert_equal, get_simple_examples
import pytest
from sympy import floor
examples = get_simple_examples(floor)
@pytest.mark.parametrize('input, output, symbolically', examples)
def test_floor_func(input, output, symbolically):
assert_equal("\\floor({input})".format(input=input), | output) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/gcd_test.py | test_gcd_usual | assert_* | func_call | 13 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, gcd, igcd, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_gcd_usual():
assert_equal("\\gcd(18, 3)", gcd(18, 3))
assert_equal("\\gcd(3, 18)", gcd(3, 18))
... | gcd(2, 2)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/gcd_test.py | test_gcd_symbol | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, gcd, igcd, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_gcd_symbol():
assert_equal("\\gcd(x, y)", | gcd(x, y)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/gcd_test.py | test_gcd_symbol | assert_* | func_call | 16 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, gcd, igcd, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_gcd_symbol():
assert_equal("\\gcd(x, y)", gcd(x, y), symbolically=True)
assert_equal("\\gcd(y, -x)"... | gcd(y, y)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/gcd_test.py | test_gcd_usual | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, gcd, igcd, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_gcd_usual():
assert_equal("\\gcd(18, 3)", | gcd(18, 3)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/gcd_test.py | test_gcd_usual | assert_* | func_call | 12 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, gcd, igcd, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_gcd_usual():
assert_equal("\\gcd(18, 3)", gcd(18, 3))
assert_equal("\\gcd(3, 18)", | gcd(3, 18)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/gcd_test.py | test_gcd_float | assert_* | func_call | 13 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, gcd, igcd, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_gcd_float():
assert_equal("\\gcd(2.4, 3.6)", gcd(Rational('2.4'), Rational('3.6')))
assert_equal("\... | gcd(pi, 3)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/gcd_test.py | test_gcd_symbol | assert_* | func_call | 12 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, gcd, igcd, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_gcd_symbol():
assert_equal("\\gcd(x, y)", gcd(x, y), symbolically=True)
assert_equal("\\gcd(y, -x)... | gcd(y, -x)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/gcd_test.py | test_gcd_negative | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, gcd, igcd, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_gcd_negative():
assert_equal("\\gcd(-12, 4)", | gcd(-12, 4)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/gcd_test.py | test_gcd_negative | assert_* | func_call | 14 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, gcd, igcd, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_gcd_negative():
assert_equal("\\gcd(-12, 4)", gcd(-12, 4))
assert_equal("\\gcd(219, -9)", gcd(219, ... | gcd(-5, -5)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/gcd_test.py | test_multiple_parameters | assert_* | func_call | 18 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, gcd, igcd, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_multiple_parameters():
assert_equal("\\gcd(830,450)", gcd(830, 450))
assert_equal("\\gcd(6,321,429)... | gcd(32, 32)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/gcd_test.py | test_gcd_negative | assert_* | func_call | 12 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, gcd, igcd, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_gcd_negative():
assert_equal("\\gcd(-12, 4)", gcd(-12, 4))
assert_equal("\\gcd(219, -9)", | gcd(219, -9)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/gcd_test.py | test_gcd_expr | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, gcd, igcd, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_gcd_expr():
assert_equal("\\gcd(1+1, 8)", | gcd(1 + 1, 8)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/greek_test.py | test_greek_varepsilon | assert_* | variable | 11 | from .context import assert_equal
import pytest
from sympy import Symbol
epsilon_upper = Symbol('char"000190', real=True)
epsilon_lower = Symbol('epsilon', real=True)
varepsilon = Symbol('varepsilon', real=True)
def test_greek_varepsilon():
assert_equal('\\varepsilon', | varepsilon) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/greek_test.py | test_greek_epsilon | assert_* | variable | 11 | from .context import assert_equal
import pytest
from sympy import Symbol
epsilon_upper = Symbol('char"000190', real=True)
epsilon_lower = Symbol('epsilon', real=True)
varepsilon = Symbol('varepsilon', real=True)
def test_greek_epsilon():
assert_equal("\\epsilon", | epsilon_lower) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/greek_test.py | test_greek_epsilon_upper | assert_* | variable | 11 | from .context import assert_equal
import pytest
from sympy import Symbol
epsilon_upper = Symbol('char"000190', real=True)
epsilon_lower = Symbol('epsilon', real=True)
varepsilon = Symbol('varepsilon', real=True)
def test_greek_epsilon_upper():
assert_equal('\\char"000190', | epsilon_upper) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/grouping_test.py | test_func_arg_groupings | assert_* | variable | 33 | from .context import assert_equal, _Pow, _Add, _Mul
import pytest
from sympy import Integral, sin, Symbol, Mul, Integer, Pow
from latex2sympy.latex2sympy2 import latex2sympy as process_sympy
a = Symbol('a', real=True)
b = Symbol('b', real=True)
x = Symbol('x', real=True)
theta = Symbol('theta', real=True)
func_arg_ex... | output) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/lcm_test.py | test_lcm_usual | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, lcm, ilcm, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_lcm_usual():
assert_equal("\\lcm(6, 4)", | lcm(6, 4)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/lcm_test.py | test_lcm_usual | assert_* | func_call | 12 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, lcm, ilcm, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_lcm_usual():
assert_equal("\\lcm(6, 4)", lcm(6, 4))
assert_equal("\\lcm(4, 6)", | lcm(4, 6)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/lcm_test.py | test_lcm_usual | assert_* | func_call | 13 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, lcm, ilcm, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_lcm_usual():
assert_equal("\\lcm(6, 4)", lcm(6, 4))
assert_equal("\\lcm(4, 6)", lcm(4, 6))
ass... | lcm(2, 2)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/lcm_test.py | test_lcm_symbol | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, lcm, ilcm, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_lcm_symbol():
assert_equal("\\lcm(x, y)", | lcm(x, y)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/lcm_test.py | test_lcm_symbol | assert_* | func_call | 16 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, lcm, ilcm, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_lcm_symbol():
assert_equal("\\lcm(x, y)", lcm(x, y), symbolically=True)
assert_equal("\\lcm(y, -x)"... | lcm(y, y)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/lcm_test.py | test_lcm_float | assert_* | func_call | 13 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, lcm, ilcm, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_lcm_float():
assert_equal("\\lcm(2.4, 3.6)", lcm(Rational('2.4'), Rational('3.6')))
assert_equal("\... | lcm(pi, 3)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/lcm_test.py | test_lcm_symbol | assert_* | func_call | 12 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, lcm, ilcm, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_lcm_symbol():
assert_equal("\\lcm(x, y)", lcm(x, y), symbolically=True)
assert_equal("\\lcm(y, -x)... | lcm(y, -x)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/lcm_test.py | test_lcm_negative | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, lcm, ilcm, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_lcm_negative():
assert_equal("\\lcm(-12, 4)", | lcm(-12, 4)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/lcm_test.py | test_lcm_negative | assert_* | func_call | 14 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, lcm, ilcm, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_lcm_negative():
assert_equal("\\lcm(-12, 4)", lcm(-12, 4))
assert_equal("\\lcm(219, -9)", lcm(219, ... | lcm(-5, -5)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/lcm_test.py | test_multiple_parameters | assert_* | func_call | 19 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, lcm, ilcm, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_multiple_parameters():
assert_equal("\\lcm(830,450)", lcm(830, 450))
assert_equal("\\lcm(6,321,429)... | lcm(32, 32)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/lcm_test.py | test_lcm_negative | assert_* | func_call | 12 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, lcm, ilcm, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_lcm_negative():
assert_equal("\\lcm(-12, 4)", lcm(-12, 4))
assert_equal("\\lcm(219, -9)", | lcm(219, -9)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/lcm_test.py | test_lcm_expr | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, UnevaluatedExpr, lcm, ilcm, sqrt, pi
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_lcm_expr():
assert_equal("\\lcm(1+1, 8)", | lcm(1 + 1, 8)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/left_right_cdot_test.py | test_left_right_cdot | assert_* | func_call | 9 | from .context import assert_equal
import pytest
from sympy import sin, Symbol
x = Symbol('x', real=True)
def test_left_right_cdot():
assert_equal("\\sin\\left(x\\right)\\cdot x", | sin(x) * x) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/linalg_test.py | test_linalg_placeholder | assert_* | collection | 7 | from .context import assert_equal
import pytest
from sympy import MatMul, Matrix
def test_linalg_placeholder():
assert_equal("\\begin{pmatrix}1&2\\\\3&4\\end{pmatrix}\\cdot\\variable{v}", MatMul(Matrix([[1, 2], [3, 4]]), Matrix([1, 2])), | {'v': Matrix([1, 2])}) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/linalg_test.py | test_linalg_placeholder_multiple | assert_* | collection | 7 | from .context import assert_equal
import pytest
from sympy import MatMul, Matrix
def test_linalg_placeholder_multiple():
assert_equal("\\variable{M}\\cdot\\variable{v}", MatMul(Matrix([[1, 2], [3, 4]]), Matrix([1, 2])), | {'M': Matrix([[1, 2], [3, 4]]), 'v': Matrix([1, 2])}) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/max_test.py | test_max_usual | assert_* | func_call | 16 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Max, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_max_usual():
assert_equal("\\max(1, 5)", Max(1, 5))
assert_equal("\\max(12, 4)", Max(12, 4))
as... | Max(1)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/max_test.py | test_max_symbol | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Max, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_max_symbol():
assert_equal("\\max(x)", | Max(x)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/max_test.py | test_max_negative | assert_* | func_call | 13 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Max, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_max_negative():
assert_equal("\\max(-9, 4)", Max(-9, 4))
assert_equal("\\max(4, -9)", Max(4, -9))
... | Max(-7)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/max_test.py | test_max_usual | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Max, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_max_usual():
assert_equal("\\max(1, 5)", | Max(1, 5)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/max_test.py | test_max_usual | assert_* | func_call | 14 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Max, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_max_usual():
assert_equal("\\max(1, 5)", Max(1, 5))
assert_equal("\\max(12, 4)", Max(12, 4))
as... | Max(3, 3)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/max_test.py | test_max_usual | assert_* | func_call | 15 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Max, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_max_usual():
assert_equal("\\max(1, 5)", Max(1, 5))
assert_equal("\\max(12, 4)", Max(12, 4))
as... | Max(0, 0)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/max_test.py | test_max_symbol | assert_* | func_call | 12 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Max, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_max_symbol():
assert_equal("\\max(x)", Max(x), symbolically=True)
assert_equal("\\max(x, y)", | Max(x, y)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/max_test.py | test_max_symbol | assert_* | func_call | 13 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Max, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_max_symbol():
assert_equal("\\max(x)", Max(x), symbolically=True)
assert_equal("\\max(x, y)", Max(x... | Max(y, x)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/max_test.py | test_max_multiarg | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Max, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_max_multiarg():
assert_equal("\\max(1,2)", | Max(1, 2)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/max_test.py | test_max_usual | assert_* | func_call | 12 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Max, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_max_usual():
assert_equal("\\max(1, 5)", Max(1, 5))
assert_equal("\\max(12, 4)", | Max(12, 4)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/max_test.py | test_max_negative | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Max, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_max_negative():
assert_equal("\\max(-9, 4)", | Max(-9, 4)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/max_test.py | test_max_negative | assert_* | func_call | 12 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Max, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_max_negative():
assert_equal("\\max(-9, 4)", Max(-9, 4))
assert_equal("\\max(4, -9)", | Max(4, -9)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.