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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/max_test.py | test_max_float | 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_float():
assert_equal("\\max(\\pi, 3)", | Max(pi, 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_float | 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_float():
assert_equal("\\max(\\pi, 3)", Max(pi, 3))
assert_equal("\\max(1234.56789, 1234.567890... | Max(-98.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_negative | 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_negative():
assert_equal("\\max(-9, 4)", Max(-9, 4))
assert_equal("\\max(4, -9)", Max(4, -9))
... | Max(-2, -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_float | 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_float():
assert_equal("\\max(\\pi, 3)", Max(pi, 3))
assert_equal("\\max(1234.56789, 1234.567890... | Max(6, 6.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_float | 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_float():
assert_equal("\\max(\\pi, 3)", Max(pi, 3))
assert_equal("\\max(1234.56789, 1234.567890... | Max(7.1, 9)) | 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_expr | 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_expr():
assert_equal("\\max((1+6)/3, 7)", Max(Rational(1 + 6, 3), 7))
assert_equal("\\max(58*9... | Max(58 * 9)) | 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 | 18 | 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(z, 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 | 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_multiarg():
assert_equal("\\max(1,2)", Max(1, 2))
assert_equal("\\max(9,876,543)", Max(9, 876, ... | Max(x, y, z)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_usual | assert_* | func_call | 16 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_usual():
assert_equal("\\min(1, 5)", Min(1, 5))
assert_equal("\\min(12, 4)", Min(12, 4))
as... | Min(1)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_symbol | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_symbol():
assert_equal("\\min(x)", | Min(x)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_negative | assert_* | func_call | 13 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_negative():
assert_equal("\\min(-9, 4)", Min(-9, 4))
assert_equal("\\min(4, -9)", Min(4, -9))
... | Min(-7)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_usual | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_usual():
assert_equal("\\min(1, 5)", | Min(1, 5)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_usual | assert_* | func_call | 14 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_usual():
assert_equal("\\min(1, 5)", Min(1, 5))
assert_equal("\\min(12, 4)", Min(12, 4))
as... | Min(3, 3)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_usual | assert_* | func_call | 15 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_usual():
assert_equal("\\min(1, 5)", Min(1, 5))
assert_equal("\\min(12, 4)", Min(12, 4))
as... | Min(0, 0)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_symbol | assert_* | func_call | 12 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_symbol():
assert_equal("\\min(x)", Min(x), symbolically=True)
assert_equal("\\min(x, y)", | Min(x, y)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_symbol | assert_* | func_call | 13 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_symbol():
assert_equal("\\min(x)", Min(x), symbolically=True)
assert_equal("\\min(x, y)", Min(x... | Min(y, x)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_multiarg | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_multiarg():
assert_equal("\\min(1,2)", | Min(1, 2)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_usual | assert_* | func_call | 12 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_usual():
assert_equal("\\min(1, 5)", Min(1, 5))
assert_equal("\\min(12, 4)", | Min(12, 4)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_negative | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_negative():
assert_equal("\\min(-9, 4)", | Min(-9, 4)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_negative | assert_* | func_call | 12 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_negative():
assert_equal("\\min(-9, 4)", Min(-9, 4))
assert_equal("\\min(4, -9)", | Min(4, -9)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_float | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_float():
assert_equal("\\min(\\pi, 3)", | Min(pi, 3)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_float | assert_* | func_call | 15 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_float():
assert_equal("\\min(\\pi, 3)", Min(pi, 3))
assert_equal("\\min(1234.56789, 1234.567890... | Min(-98.7)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_negative | assert_* | func_call | 14 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_negative():
assert_equal("\\min(-9, 4)", Min(-9, 4))
assert_equal("\\min(4, -9)", Min(4, -9))
... | Min(-2, -2)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_float | assert_* | func_call | 14 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_float():
assert_equal("\\min(\\pi, 3)", Min(pi, 3))
assert_equal("\\min(1234.56789, 1234.567890... | Min(6, 6.2)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_float | assert_* | func_call | 16 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_float():
assert_equal("\\min(\\pi, 3)", Min(pi, 3))
assert_equal("\\min(1234.56789, 1234.567890... | Min(7.1, 9)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_expr | assert_* | func_call | 12 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_expr():
assert_equal("\\min((1+6)/3, 7)", Min(Rational(1 + 6, 3), 7))
assert_equal("\\min(58*9... | Min(58 * 9)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_symbol | assert_* | func_call | 18 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_symbol():
assert_equal("\\min(x)", Min(x), symbolically=True)
assert_equal("\\min(x, y)", Min(x... | Min(z, y, x)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/min_test.py | test_min_multiarg | assert_* | func_call | 13 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Float, Min, sqrt, exp, pi, nsimplify
x = Symbol('x', real=True)
y = Symbol('y', real=True)
z = Symbol('z', real=True)
def test_min_multiarg():
assert_equal("\\min(1,2)", Min(1, 2))
assert_equal("\\min(9,876,543)", Min(9, 876, ... | Min(x, y, z)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_usual | assert_* | func_call | 14 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_usual():
assert_equal("128\\mod 3", Mod(128, 3))
assert_equal("7\\mod 128", Mod(7, 1... | Mod(5, 5)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_usual | assert_* | func_call | 15 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_usual():
assert_equal("128\\mod 3", Mod(128, 3))
assert_equal("7\\mod 128", Mod(7, 1... | Mod(3, 2)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_usual | assert_* | func_call | 16 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_usual():
assert_equal("128\\mod 3", Mod(128, 3))
assert_equal("7\\mod 128", Mod(7, 1... | Mod(0, 6)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_symbol | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_symbol():
assert_equal("x\\mod y", | Mod(x, y)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_usual | assert_* | func_call | 13 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_usual():
assert_equal("128\\mod 3", Mod(128, 3))
assert_equal("7\\mod 128", Mod(7, 1... | Mod(5, 10)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_negative | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_negative():
assert_equal("-1\\mod 2", | Mod(-1, 2)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_negative | assert_* | func_call | 12 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_negative():
assert_equal("-1\\mod 2", Mod(-1, 2))
assert_equal("-3\\mod 3", | Mod(-3, 3)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_usual | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_usual():
assert_equal("128\\mod 3", | Mod(128, 3)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_negative | assert_* | func_call | 14 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_negative():
assert_equal("-1\\mod 2", Mod(-1, 2))
assert_equal("-3\\mod 3", Mod(-3, ... | Mod(-128, 4)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_negative | assert_* | func_call | 15 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_negative():
assert_equal("-1\\mod 2", Mod(-1, 2))
assert_equal("-3\\mod 3", Mod(-3, ... | Mod(9, -213)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_float | assert_* | func_call | 16 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_float():
assert_equal("0.41\\mod 2", Mod(Rational('0.41'), 2))
assert_equal("143E-13... | Mod(987, pi)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_negative | assert_* | func_call | 13 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_negative():
assert_equal("-1\\mod 2", Mod(-1, 2))
assert_equal("-3\\mod 3", Mod(-3, ... | Mod(-12, -12)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_expr | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_expr():
assert_equal("1+1\\mod 2", | 1 + Mod(1, 2)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_symbol | assert_* | func_call | 12 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_symbol():
assert_equal("x\\mod y", Mod(x, y))
assert_equal("2x\\mod y", | Mod(2 * x, y)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_float | assert_* | func_call | 15 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_float():
assert_equal("0.41\\mod 2", Mod(Rational('0.41'), 2))
assert_equal("143E-13... | Mod(sqrt(5), sqrt(2))) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_fraction | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_fraction():
assert_equal("1/2\\mod 3", | Mod(Rational(1, 2), 3)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_fraction | assert_* | func_call | 12 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_fraction():
assert_equal("1/2\\mod 3", Mod(Rational(1, 2), 3))
assert_equal("6/2\\m... | Mod(Rational(6, 2), 3)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_float | assert_* | func_call | 13 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_float():
assert_equal("0.41\\mod 2", Mod(Rational('0.41'), 2))
assert_equal("143E-13... | Mod(-9.80665, 9.80665)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_fraction | assert_* | func_call | 13 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_fraction():
assert_equal("1/2\\mod 3", Mod(Rational(1, 2), 3))
assert_equal("6/2\\mo... | Mod(Rational(-14, 2), 5)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/mod_test.py | test_mod_float | assert_* | func_call | 11 | from .context import assert_equal
import pytest
from sympy import Symbol, Rational, Mod, sqrt, nsimplify, pi, GoldenRatio
from sympy.physics.units import hbar
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_mod_float():
assert_equal("0.41\\mod 2", | Mod(Rational('0.41'), 2)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/overline_test.py | test_overline | assert_* | func_call | 9 | from .context import assert_equal
import pytest
from sympy import sin, Symbol
x = Symbol('x', real=True)
def test_overline():
assert_equal("\\frac{\\sin(x)}{\\overline{x}_n}", | sin(x) / Symbol('xbar_n', real=True)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/pi_test.py | test_pi_arccos | assert_* | variable | 7 | from .context import assert_equal, _Mul, _Pow
import pytest
from sympy import pi, Symbol, acos, cos
def test_pi_arccos():
assert_equal("\\arccos{-1}", | pi) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/pi_test.py | test_pi_frac | assert_* | func_call | 7 | from .context import assert_equal, _Mul, _Pow
import pytest
from sympy import pi, Symbol, acos, cos
def test_pi_frac():
assert_equal("\\frac{\\pi}{3}", | _Mul(pi, _Pow(3, -1))) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/pi_test.py | test_pi_nested | assert_* | func_call | 7 | from .context import assert_equal, _Mul, _Pow
import pytest
from sympy import pi, Symbol, acos, cos
def test_pi_nested():
assert_equal("\\arccos{\\cos{\\frac{\\pi}{3}}}", | acos(cos(_Mul(pi, _Pow(3, -1)), evaluate=False), evaluate=False)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/trig_test.py | test_arcsinh | assert_* | func_call | 7 | from .context import assert_equal
import pytest
from sympy import asinh, Symbol
def test_arcsinh():
assert_equal("\\operatorname{arcsinh}\\left(1\\right)", | asinh(1, evaluate=False)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/variable_test.py | test_variable_bad_name | assert_* | none_literal | 12 | from .context import assert_equal
import pytest
import hashlib
from sympy import UnevaluatedExpr, Symbol, Mul, Pow, Max, Min, gcd, lcm, floor, ceiling
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_variable_bad_name():
with pytest.raises(Exception):
assert_equal("\\variable{\\sin xy}", | None) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/variable_test.py | test_variable_after_subscript_required | pytest.raises | variable | 11 | from .context import assert_equal
import pytest
import hashlib
from sympy import UnevaluatedExpr, Symbol, Mul, Pow, Max, Min, gcd, lcm, floor, ceiling
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_variable_after_subscript_required():
with pytest.raises( | Exception) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/variable_test.py | test_variable_letter | assert_* | func_call | 11 | from .context import assert_equal
import pytest
import hashlib
from sympy import UnevaluatedExpr, Symbol, Mul, Pow, Max, Min, gcd, lcm, floor, ceiling
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_variable_letter():
assert_equal("\\variable{x}", | Symbol('x' + hashlib.md5('x'.encode()).hexdigest(), real=True)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/variable_test.py | test_variable_digit | assert_* | func_call | 11 | from .context import assert_equal
import pytest
import hashlib
from sympy import UnevaluatedExpr, Symbol, Mul, Pow, Max, Min, gcd, lcm, floor, ceiling
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_variable_digit():
assert_equal("\\variable{1}", | Symbol('1' + hashlib.md5('1'.encode()).hexdigest(), real=True)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/variable_test.py | test_variable_after_subscript_required | assert_* | func_call | 12 | from .context import assert_equal
import pytest
import hashlib
from sympy import UnevaluatedExpr, Symbol, Mul, Pow, Max, Min, gcd, lcm, floor, ceiling
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_variable_after_subscript_required():
with pytest.raises(Exception):
assert_equal("\\variabl... | Symbol('x_' + hashlib.md5('x_'.encode()).hexdigest(), real=True)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/variable_test.py | test_variable_before_subscript_required | assert_* | func_call | 12 | from .context import assert_equal
import pytest
import hashlib
from sympy import UnevaluatedExpr, Symbol, Mul, Pow, Max, Min, gcd, lcm, floor, ceiling
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_variable_before_subscript_required():
with pytest.raises(Exception):
assert_equal("\\variab... | Symbol('_x' + hashlib.md5('_x'.encode()).hexdigest(), real=True)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/variable_test.py | test_variable_letter_subscript | assert_* | func_call | 11 | from .context import assert_equal
import pytest
import hashlib
from sympy import UnevaluatedExpr, Symbol, Mul, Pow, Max, Min, gcd, lcm, floor, ceiling
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_variable_letter_subscript():
assert_equal("\\variable{x_y}", | Symbol('x_y' + hashlib.md5('x_y'.encode()).hexdigest(), real=True)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/variable_test.py | test_variable_digit_subscript | assert_* | func_call | 11 | from .context import assert_equal
import pytest
import hashlib
from sympy import UnevaluatedExpr, Symbol, Mul, Pow, Max, Min, gcd, lcm, floor, ceiling
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_variable_digit_subscript():
assert_equal("\\variable{x_1}", | Symbol('x_1' + hashlib.md5('x_1'.encode()).hexdigest(), real=True)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/variable_test.py | test_variable_in_expr | assert_* | func_call | 11 | from .context import assert_equal
import pytest
import hashlib
from sympy import UnevaluatedExpr, Symbol, Mul, Pow, Max, Min, gcd, lcm, floor, ceiling
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_variable_in_expr():
assert_equal("4\\cdot\\variable{x}", | 4 * Symbol('x' + hashlib.md5('x'.encode()).hexdigest(), real=True)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/variable_test.py | test_variable_single_arg_func | assert_* | func_call | 11 | from .context import assert_equal
import pytest
import hashlib
from sympy import UnevaluatedExpr, Symbol, Mul, Pow, Max, Min, gcd, lcm, floor, ceiling
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_variable_single_arg_func():
assert_equal("\\floor(\\variable{x})", | floor(Symbol('x' + hashlib.md5('x'.encode()).hexdigest(), real=True))) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/variable_test.py | test_variable_single_arg_func | assert_* | func_call | 12 | from .context import assert_equal
import pytest
import hashlib
from sympy import UnevaluatedExpr, Symbol, Mul, Pow, Max, Min, gcd, lcm, floor, ceiling
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_variable_single_arg_func():
assert_equal("\\floor(\\variable{x})", floor(Symbol('x' + hashlib.md5('x... | ceiling(Symbol('x' + hashlib.md5('x'.encode()).hexdigest(), real=True))) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/variable_test.py | test_variable_letter_comma_subscript | assert_* | func_call | 11 | from .context import assert_equal
import pytest
import hashlib
from sympy import UnevaluatedExpr, Symbol, Mul, Pow, Max, Min, gcd, lcm, floor, ceiling
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_variable_letter_comma_subscript():
assert_equal("\\variable{x_{i,j}}", | Symbol('x_{i,j}' + hashlib.md5('x_{i,j}'.encode()).hexdigest(), real=True)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | examples/simplelr_math_eval/latex2sympy/tests/variable_test.py | test_variable_greek_letter | assert_* | func_call | 11 | from .context import assert_equal
import pytest
import hashlib
from sympy import UnevaluatedExpr, Symbol, Mul, Pow, Max, Min, gcd, lcm, floor, ceiling
x = Symbol('x', real=True)
y = Symbol('y', real=True)
def test_variable_greek_letter():
assert_equal("\\variable{\\alpha }\\alpha", | Symbol('\\alpha ' + hashlib.md5('\\alpha '.encode()).hexdigest(), real=True) * Symbol('alpha', real=True)) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/checkpoint/test_fsdp_ckpt.py | test_fsdp_ckpt | assert | numeric_literal | 18 | import os
import tempfile
import shutil
import torch
import copy
import torch.distributed
from torch.distributed import init_device_mesh
from verl.utils.distributed import initialize_global_process_group
from verl.utils.checkpoint.fsdp_checkpoint_manager import FSDPCheckpointManager
from transformers import AutoModelFo... | 2 | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/checkpoint/test_fsdp_ckpt.py | test_fsdp_ckpt | assert_* | variable | 104 | import os
import tempfile
import shutil
import torch
import copy
import torch.distributed
from torch.distributed import init_device_mesh
from verl.utils.distributed import initialize_global_process_group
from verl.utils.checkpoint.fsdp_checkpoint_manager import FSDPCheckpointManager
from transformers import AutoModelFo... | logits_after_load) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/e2e/envs/digit_completion/task.py | __init__ | assert | numeric_literal | 19 | import numpy as np
class DigitCompletion(object):
def __init__(self, max_number: int, max_diff: int, max_num_in_response: int, seed=0):
"""
Args:
max_number: the maximum number allowed in the arithmetic sequence
max_diff: the maximum diff. The actual common diff will be sa... | 0 | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/e2e/envs/digit_completion/task.py | __init__ | assert | numeric_literal | 18 | import numpy as np
class DigitCompletion(object):
def __init__(self, max_number: int, max_diff: int, max_num_in_response: int, seed=0):
"""
Args:
max_number: the maximum number allowed in the arithmetic sequence
max_diff: the maximum diff. The actual common diff will be sa... | 10 | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/e2e/envs/digit_completion/task.py | set_state | assert | variable | 36 | import numpy as np
class DigitCompletion(object):
def __init__(self, max_number: int, max_diff: int, max_num_in_response: int, seed=0):
"""
Args:
max_number: the maximum number allowed in the arithmetic sequence
max_diff: the maximum diff. The actual common diff will be sa... | state | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/gpu_utility/test_memory_buffers.py | test_memory_buffers | assert | numeric_literal | 43 | import torch
import gc
from transformers import LlamaModel, LlamaConfig
from verl.utils.memory_buffer import MemoryBufferModuleWrapper
def test_memory_buffers():
llama_config = LlamaConfig(vocab_size=256,
hidden_size=4096,
intermediate_size=11008,
... | 0.01 | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/gpu_utility/test_memory_buffers.py | test_memory_buffers | assert | variable | 46 | import torch
import gc
from transformers import LlamaModel, LlamaConfig
from verl.utils.memory_buffer import MemoryBufferModuleWrapper
def test_memory_buffers():
llama_config = LlamaConfig(vocab_size=256,
hidden_size=4096,
intermediate_size=11008,
... | name2 | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/gpu_utility/test_ops.py | test_flash_attn_cross_entropy | assert_* | variable | 33 | def test_flash_attn_cross_entropy():
from verl.utils.torch_functional import logprobs_from_logits_naive
from verl.utils.debug import log_gpu_memory_usage
from flash_attn.ops.triton.cross_entropy import cross_entropy_loss
import torch
from torch import nn
log_gpu_memory_usage('At start')
... | groundtruth) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/gpu_utility/test_torch_functional.py | test_logprobs_from_logits_v2 | assert_* | variable | 23 | from verl.utils.model import create_random_mask
from flash_attn.bert_padding import unpad_input
import torch
import pytest
@pytest.mark.parametrize("dtype", [torch.float64, torch.float32, torch.float16, torch.bfloat16])
def test_logprobs_from_logits_v2(dtype):
from verl.utils.torch_functional import logprobs_from_... | expected_output) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/gpu_utility/test_torch_functional.py | test_lr_scheduler | assert_* | collection | 21 | from verl.utils.model import create_random_mask
from flash_attn.bert_padding import unpad_input
import torch
import pytest
def test_lr_scheduler():
from torch import nn
model = nn.Linear(10, 10)
optimizer = torch.optim.Adam(model.parameters(), lr=1e-3)
from verl.utils.torch_functional import get_const... | [0.0, 0.0005, 0.001, 0.001, 0.001]) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/gpu_utility/test_torch_functional.py | test_lr_scheduler | assert_* | collection | 36 | from verl.utils.model import create_random_mask
from flash_attn.bert_padding import unpad_input
import torch
import pytest
def test_lr_scheduler():
from torch import nn
model = nn.Linear(10, 10)
optimizer = torch.optim.Adam(model.parameters(), lr=1e-3)
from verl.utils.torch_functional import get_const... | [0.0, 0.0005, 0.001, 0.0007750000000000002, 0.0003250000000000002]) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/model/test_transformer.py | test_hf_value_models | assert_* | func_call | 58 | import torch
from verl.utils.model import create_random_mask, compute_position_id_with_mask
from verl.utils.torch_functional import masked_mean, log_probs_from_logits_all_rmpad, logprobs_from_logits
from flash_attn.bert_padding import unpad_input, pad_input, index_first_axis, rearrange
from transformers import LlamaCo... | masked_mean(origin_logits, attention_mask[:, :, None])) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/model/test_transformer.py | test_hf_casual_models | assert_* | func_call | 69 | import torch
from verl.utils.model import create_random_mask, compute_position_id_with_mask
from verl.utils.torch_functional import masked_mean, log_probs_from_logits_all_rmpad, logprobs_from_logits
from flash_attn.bert_padding import unpad_input, pad_input, index_first_axis, rearrange
from transformers import LlamaCo... | masked_mean(origin_log_probs, attention_mask[:, -response_length - 1:-1])) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/model/test_transformers_ulysses.py | test_hf_casual_fwd | assert | numeric_literal | 35 | import torch
import copy
import torch.distributed
from torch.distributed import init_device_mesh
from verl.utils.distributed import initialize_global_process_group
from verl.utils.model import create_random_mask, compute_position_id_with_mask
from verl.utils.torch_functional import masked_mean, log_probs_from_logits_al... | 2 | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/model/test_transformers_ulysses.py | test_hf_casual_fwd | assert_* | variable | 108 | import torch
import copy
import torch.distributed
from torch.distributed import init_device_mesh
from verl.utils.distributed import initialize_global_process_group
from verl.utils.model import create_random_mask, compute_position_id_with_mask
from verl.utils.torch_functional import masked_mean, log_probs_from_logits_al... | mean_full) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/model/test_transformers_ulysses.py | test_hf_casual_fwd_bwd | assert_* | variable | 118 | import torch
import copy
import torch.distributed
from torch.distributed import init_device_mesh
from verl.utils.distributed import initialize_global_process_group
from verl.utils.model import create_random_mask, compute_position_id_with_mask
from verl.utils.torch_functional import masked_mean, log_probs_from_logits_al... | grad_full) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/ray/test_check_worker_alive.py | test | assert | numeric_literal | 27 | import time
import os
import subprocess
def test():
wait_time = 10
my_env = os.environ.copy()
my_env["WAIT_TIME"] = str(wait_time)
p = subprocess.Popen(["python3", "-u", "./check_worker_alive/main.py"], env=my_env, stdout=subprocess.PIPE)
count = 0
while b"foo started" not in p.stdout.read()... | 0 | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/ray/test_check_worker_alive.py | test | assert | none_literal | 26 | import time
import os
import subprocess
def test():
wait_time = 10
my_env = os.environ.copy()
my_env["WAIT_TIME"] = str(wait_time)
p = subprocess.Popen(["python3", "-u", "./check_worker_alive/main.py"], env=my_env, stdout=subprocess.PIPE)
count = 0
while b"foo started" not in p.stdout.read()... | None | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/ray/test_colocated_workers.py | test_colocated_workers | assert_* | complex_expr | 38 | import ray
from verl.single_controller.base import Worker
from verl.single_controller.base.decorator import register, Dispatch
from verl.single_controller.ray.base import RayResourcePool, RayClassWithInitArgs, RayWorkerGroup, create_colocated_worker_cls
from verl import DataProto
def test_colocated_workers():
ra... | actor_output.batch) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/ray/test_colocated_workers.py | test_colocated_workers | assert_* | complex_expr | 39 | import ray
from verl.single_controller.base import Worker
from verl.single_controller.base.decorator import register, Dispatch
from verl.single_controller.ray.base import RayResourcePool, RayClassWithInitArgs, RayWorkerGroup, create_colocated_worker_cls
from verl import DataProto
def test_colocated_workers():
ra... | critic_output.batch) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/ray/test_driverfunc_to_worker.py | test | assert_* | complex_expr | 51 | import os
import ray
import torch
from verl import DataProto
from tensordict import TensorDict
from verl.single_controller.base.worker import Worker
from verl.single_controller.ray.base import RayResourcePool, RayClassWithInitArgs
from verl.single_controller.ray import RayWorkerGroup
os.environ['RAY_DEDUP_LOGS'] = '0... | ret_proto2.batch["decode_count"]) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/ray/test_high_level_scheduling_api.py | test | assert | numeric_literal | 47 | import time
import ray
from verl.single_controller.ray.base import RayResourcePool, RayClassWithInitArgs, RayWorkerGroup, merge_resource_pool
from verl.single_controller.base.worker import Worker
def test():
ray.init()
# test single-node-no-partition
print(f"test single-node-no-partition")
resource_... | 4 | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/ray/test_high_level_scheduling_api.py | test | assert | numeric_literal | 49 | import time
import ray
from verl.single_controller.ray.base import RayResourcePool, RayClassWithInitArgs, RayWorkerGroup, merge_resource_pool
from verl.single_controller.base.worker import Worker
def test():
ray.init()
# test single-node-no-partition
print(f"test single-node-no-partition")
resource_... | 8 | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/ray/test_high_level_scheduling_api.py | test | assert | collection | 27 | import time
import ray
from verl.single_controller.ray.base import RayResourcePool, RayClassWithInitArgs, RayWorkerGroup, merge_resource_pool
from verl.single_controller.base.worker import Worker
def test():
ray.init()
# test single-node-no-partition
print(f"test single-node-no-partition")
resource_... | [str(i) for i in range(8)] | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/ray/test_ray_local_envs.py | test_basics | assert | collection | 21 | import os
import ray
from verl.single_controller.ray.base import RayResourcePool, RayClassWithInitArgs, RayWorkerGroup
from verl.single_controller.base.worker import Worker
from verl.single_controller.base.decorator import register, Dispatch, collect_all_to_all, Execute
def test_basics():
ray.init()
# create... | ["4", "4", "4", "4"] | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/ray/test_ray_local_envs.py | test_basics | assert | func_call | 24 | import os
import ray
from verl.single_controller.ray.base import RayResourcePool, RayClassWithInitArgs, RayWorkerGroup
from verl.single_controller.base.worker import Worker
from verl.single_controller.base.decorator import register, Dispatch, collect_all_to_all, Execute
def test_basics():
ray.init()
# create... | set(["0", "1", "2", "3"]) | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/ray/test_rvdz.py | test_rvdz | assert | collection | 16 | import ray
def test_rvdz():
ray.init()
group_name = "test_group"
world_size = 2
workers = [TestWorker.options(num_gpus=1).remote(rank, world_size, group_name) for rank in range(world_size)]
ray.get([worker.init.remote() for worker in workers])
ranks = ray.get([worker.test.remote() for worke... | [0, 1] | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/ray/test_worker_group_basics.py | remote_call_wg | assert | numeric_literal | 33 | import torch
import ray
from verl.single_controller.ray.base import RayResourcePool, RayClassWithInitArgs, RayWorkerGroup
from verl.single_controller.base.worker import Worker
from verl.single_controller.base.decorator import register, Dispatch, collect_all_to_all, Execute
def two_to_all_dispatch_fn(worker_group, *ar... | 5 | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/ray/test_worker_group_basics.py | two_to_all_dispatch_fn | assert | numeric_literal | 14 | import torch
import ray
from verl.single_controller.ray.base import RayResourcePool, RayClassWithInitArgs, RayWorkerGroup
from verl.single_controller.base.worker import Worker
from verl.single_controller.base.decorator import register, Dispatch, collect_all_to_all, Execute
def two_to_all_dispatch_fn(worker_group, *ar... | 2 | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/ray/test_worker_group_basics.py | test_basics | assert | collection | 57 | import torch
import ray
from verl.single_controller.ray.base import RayResourcePool, RayClassWithInitArgs, RayWorkerGroup
from verl.single_controller.base.worker import Worker
from verl.single_controller.base.decorator import register, Dispatch, collect_all_to_all, Execute
def two_to_all_dispatch_fn(worker_group, *ar... | [5, 5, 5, 5] | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/ray/test_worker_group_basics.py | test_basics | assert | collection | 63 | import torch
import ray
from verl.single_controller.ray.base import RayResourcePool, RayClassWithInitArgs, RayWorkerGroup
from verl.single_controller.base.worker import Worker
from verl.single_controller.base.decorator import register, Dispatch, collect_all_to_all, Execute
def two_to_all_dispatch_fn(worker_group, *ar... | [6, 6, 6, 6] | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/ray/test_worker_group_basics.py | remote_call_wg | assert | collection | 30 | import torch
import ray
from verl.single_controller.ray.base import RayResourcePool, RayClassWithInitArgs, RayWorkerGroup
from verl.single_controller.base.worker import Worker
from verl.single_controller.base.decorator import register, Dispatch, collect_all_to_all, Execute
def two_to_all_dispatch_fn(worker_group, *ar... | [8, 10, 8, 10] | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/ray/test_worker_group_basics.py | test_basics | assert | collection | 69 | import torch
import ray
from verl.single_controller.ray.base import RayResourcePool, RayClassWithInitArgs, RayWorkerGroup
from verl.single_controller.base.worker import Worker
from verl.single_controller.base.decorator import register, Dispatch, collect_all_to_all, Execute
def two_to_all_dispatch_fn(worker_group, *ar... | [8, 10, 12, 14] | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | v2_extractor_at_anchor |
hkust-nlp/simpleRL-reason | 2204dd1cfb83db4277571af196bdedb73f4d6ea2 | 1 | train | train | tests/ray/test_worker_group_basics.py | test_basics | assert_* | func_call | 74 | import torch
import ray
from verl.single_controller.ray.base import RayResourcePool, RayClassWithInitArgs, RayWorkerGroup
from verl.single_controller.base.worker import Worker
from verl.single_controller.base.decorator import register, Dispatch, collect_all_to_all, Execute
def two_to_all_dispatch_fn(worker_group, *ar... | torch.ones(2, 2) + 1) | 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.