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
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_game.py
test_particular_lemke_howson_raises_warning
self.assertEqual
numeric_literal
27
import unittest import warnings import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers import pytest import nashpy as nash import nashpy.learning class TestGame(unittest.TestCase): def test_particular_lemke_howson_raises_warning(self)...
2)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_game.py
test_property_support_enumeration
self.assertAlmostEqual
numeric_literal
35
import unittest import warnings import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers import pytest import nashpy as nash import nashpy.learning class TestGame(unittest.TestCase): @given(A=arrays(np.int8, (3, 4)), B=arrays(np.int8, (...
1)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_game.py
test_is_best_response
assert
bool_literal
26
import unittest import warnings import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers import pytest import nashpy as nash import nashpy.learning class TestGame(unittest.TestCase): def test_is_best_response(self): """Test for ...
True
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_game.py
test_is_best_response
assert
bool_literal
27
import unittest import warnings import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers import pytest import nashpy as nash import nashpy.learning class TestGame(unittest.TestCase): def test_is_best_response(self): """Test for ...
False
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_game.py
test_bi_matrix_init
self.assertEqual
collection
29
import unittest import warnings import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers import pytest import nashpy as nash import nashpy.learning class TestGame(unittest.TestCase): @given(A=arrays(np.int8, (4, 5)), B=arrays(np.int8, (...
(A, B))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_game.py
test_property_support_enumeration
self.assertEqual
collection
38
import unittest import warnings import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers import pytest import nashpy as nash import nashpy.learning class TestGame(unittest.TestCase): @given(A=arrays(np.int8, (3, 4)), B=arrays(np.int8, (...
[3, 4][i])
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_game.py
test_bi_matrix_init
self.assertTrue
complex_expr
31
import unittest import warnings import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers import pytest import nashpy as nash import nashpy.learning class TestGame(unittest.TestCase): @given(A=arrays(np.int8, (4, 5)), B=arrays(np.int8, (...
g.zero_sum)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_integer_pivoting.py
test_find_particular_pivot_row
self.assertEqual
variable
26
import unittest import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.integer_pivoting.integer_pivoting import ( find_pivot_row, make_tableau, non_basic_variables, pivot_tableau, ) class TestPolytope(unittest.TestCase): def test_find_particular_piv...
row)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_integer_pivoting.py
test_particular_pivot
self.assertEqual
func_call
25
import unittest import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.integer_pivoting.integer_pivoting import ( find_pivot_row, make_tableau, non_basic_variables, pivot_tableau, ) class TestPolytope(unittest.TestCase): def test_particular_pivot(se...
set([2]))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_integer_pivoting.py
test_particular_pivot
self.assertEqual
func_call
37
import unittest import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.integer_pivoting.integer_pivoting import ( find_pivot_row, make_tableau, non_basic_variables, pivot_tableau, ) class TestPolytope(unittest.TestCase): def test_particular_pivot(se...
set([0]))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_integer_pivoting.py
test_non_basic_variables
self.assertEqual
func_call
25
import unittest import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.integer_pivoting.integer_pivoting import ( find_pivot_row, make_tableau, non_basic_variables, pivot_tableau, ) class TestPolytope(unittest.TestCase): def test_non_basic_variables...
set([0, 1]))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_integer_pivoting.py
test_non_basic_variables
self.assertEqual
func_call
30
import unittest import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.integer_pivoting.integer_pivoting import ( find_pivot_row, make_tableau, non_basic_variables, pivot_tableau, ) class TestPolytope(unittest.TestCase): def test_non_basic_variables...
set([0, 1, 2]))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_integer_pivoting.py
test_particular_pivot
self.assertTrue
func_call
33
import unittest import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.integer_pivoting.integer_pivoting import ( find_pivot_row, make_tableau, non_basic_variables, pivot_tableau, ) class TestPolytope(unittest.TestCase): def test_particular_pivot(se...
np.array_equal(tableau, next_tableau))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_integer_pivoting.py
test_creationg_of_particular_tableaux
self.assertTrue
func_call
27
import unittest import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.integer_pivoting.integer_pivoting import ( find_pivot_row, make_tableau, non_basic_variables, pivot_tableau, ) class TestPolytope(unittest.TestCase): def test_creationg_of_partic...
np.array_equal(tableau, expected_tableau))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_integer_pivoting.py
test_creation_of_tableaux
self.assertEqual
collection
21
import unittest import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.integer_pivoting.integer_pivoting import ( find_pivot_row, make_tableau, non_basic_variables, pivot_tableau, ) class TestPolytope(unittest.TestCase): @given(M=arrays(np.int8, (4,...
(number_of_strategies, number_of_strategies + dimension + 1))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_integer_pivoting.py
test_creation_of_tableaux
self.assertTrue
func_call
28
import unittest import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.integer_pivoting.integer_pivoting import ( find_pivot_row, make_tableau, non_basic_variables, pivot_tableau, ) class TestPolytope(unittest.TestCase): @given(M=arrays(np.int8, (4,...
np.array_equal(tableau[:, -1], np.ones(number_of_strategies)))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_integer_pivoting.py
test_creation_of_tableaux
self.assertTrue
func_call
25
import unittest import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.integer_pivoting.integer_pivoting import ( find_pivot_row, make_tableau, non_basic_variables, pivot_tableau, ) class TestPolytope(unittest.TestCase): @given(M=arrays(np.int8, (4,...
np.array_equal(tableau[:, dimension:-1], np.eye(number_of_strategies)))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_integer_pivoting_lex.py
test_particular_pivot
self.assertEqual
numeric_literal
22
import unittest import numpy as np from nashpy.integer_pivoting.integer_pivoting_lex import ( find_entering_variable, find_pivot_row_lex, pivot_tableau_lex, ) class TestPolytope(unittest.TestCase): def test_particular_pivot(self): tableau = np.array( [ [3.0, 3.0, ...
2)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_integer_pivoting_lex.py
test_particular_pivot
self.assertEqual
numeric_literal
42
import unittest import numpy as np from nashpy.integer_pivoting.integer_pivoting_lex import ( find_entering_variable, find_pivot_row_lex, pivot_tableau_lex, ) class TestPolytope(unittest.TestCase): def test_particular_pivot(self): tableau = np.array( [ [3.0, 3.0, ...
0)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_integer_pivoting_lex.py
test_particular_pivot
self.assertEqual
numeric_literal
73
import unittest import numpy as np from nashpy.integer_pivoting.integer_pivoting_lex import ( find_entering_variable, find_pivot_row_lex, pivot_tableau_lex, ) class TestPolytope(unittest.TestCase): def test_particular_pivot(self): tableau = np.array( [ [3.0, 3.0, ...
5)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_integer_pivoting_lex.py
test_particular_pivot
self.assertEqual
numeric_literal
101
import unittest import numpy as np from nashpy.integer_pivoting.integer_pivoting_lex import ( find_entering_variable, find_pivot_row_lex, pivot_tableau_lex, ) class TestPolytope(unittest.TestCase): def test_particular_pivot(self): tableau = np.array( [ [3.0, 3.0, ...
3)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_integer_pivoting_lex.py
test_find_particular_pivot_row_lex
self.assertEqual
variable
24
import unittest import numpy as np from nashpy.integer_pivoting.integer_pivoting_lex import ( find_entering_variable, find_pivot_row_lex, pivot_tableau_lex, ) class TestPolytope(unittest.TestCase): def test_find_particular_pivot_row_lex(self): tableau = np.array( [ ...
row)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_integer_pivoting_lex.py
test_find_entering_variable
self.assertEqual
variable
23
import unittest import numpy as np from nashpy.integer_pivoting.integer_pivoting_lex import ( find_entering_variable, find_pivot_row_lex, pivot_tableau_lex, ) class TestPolytope(unittest.TestCase): def test_find_entering_variable(self): tableau = np.array( [ [3.0,...
entering_variable)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_integer_pivoting_lex.py
test_particular_pivot
self.assertTrue
func_call
38
import unittest import numpy as np from nashpy.integer_pivoting.integer_pivoting_lex import ( find_entering_variable, find_pivot_row_lex, pivot_tableau_lex, ) class TestPolytope(unittest.TestCase): def test_particular_pivot(self): tableau = np.array( [ [3.0, 3.0, ...
np.array_equal(tableau, next_tableau))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_is_best_response.py
test_is_best_response_example_1
assert
bool_literal
17
import numpy as np from nashpy.utils.is_best_response import ( is_best_response, ) def test_is_best_response_example_1(): """ This tests an example from the discussion documentation. The second assert checks that the column player strategy is as expected. """ A = np.array(((0, -1, 1), (1, 0, ...
True
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_is_best_response.py
test_is_best_response_example_1
assert
bool_literal
18
import numpy as np from nashpy.utils.is_best_response import ( is_best_response, ) def test_is_best_response_example_1(): """ This tests an example from the discussion documentation. The second assert checks that the column player strategy is as expected. """ A = np.array(((0, -1, 1), (1, 0, ...
False
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_lemke_howson.py
test_particular_lemke_howson_raises_warning
self.assertEqual
numeric_literal
25
import unittest import warnings import numpy as np from nashpy.algorithms.lemke_howson import ( lemke_howson, shift_tableau, tableau_to_strategy, ) class TestLemkeHowson(unittest.TestCase): def test_particular_lemke_howson_raises_warning(self): """ This is a degenerate game so the al...
2)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_lemke_howson.py
test_particular_lemke_howson_raises_warning
self.assertEqual
numeric_literal
26
import unittest import warnings import numpy as np from nashpy.algorithms.lemke_howson import ( lemke_howson, shift_tableau, tableau_to_strategy, ) class TestLemkeHowson(unittest.TestCase): def test_particular_lemke_howson_raises_warning(self): """ This is a degenerate game so the al...
4)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_lemke_howson.py
test_particular_lemke_howson_raises_warning
self.assertGreater
numeric_literal
27
import unittest import warnings import numpy as np from nashpy.algorithms.lemke_howson import ( lemke_howson, shift_tableau, tableau_to_strategy, ) class TestLemkeHowson(unittest.TestCase): def test_particular_lemke_howson_raises_warning(self): """ This is a degenerate game so the al...
0)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_lemke_howson.py
test_particular_lemke_howson_raises_warning
self.assertEqual
variable
28
import unittest import warnings import numpy as np from nashpy.algorithms.lemke_howson import ( lemke_howson, shift_tableau, tableau_to_strategy, ) class TestLemkeHowson(unittest.TestCase): def test_particular_lemke_howson_raises_warning(self): """ This is a degenerate game so the al...
RuntimeWarning)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_lemke_howson.py
test_particular_lemke_howson
self.assertTrue
func_call
26
import unittest import warnings import numpy as np from nashpy.algorithms.lemke_howson import ( lemke_howson, shift_tableau, tableau_to_strategy, ) class TestLemkeHowson(unittest.TestCase): def test_particular_lemke_howson(self): A = np.array([[3, 3], [2, 5], [0, 6]]) B = np.array([[...
all(np.isclose(eq, expected_eq)))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_lemke_howson.py
test_particular_shift_tableau
self.assertTrue
func_call
31
import unittest import warnings import numpy as np from nashpy.algorithms.lemke_howson import ( lemke_howson, shift_tableau, tableau_to_strategy, ) class TestLemkeHowson(unittest.TestCase): def test_particular_shift_tableau(self): tableau = np.array( [ [3.0, 3.0, ...
np.array_equal(shift, expected_shift))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_lemke_howson.py
test_particular_tableau_to_strategy
self.assertTrue
func_call
38
import unittest import warnings import numpy as np from nashpy.algorithms.lemke_howson import ( lemke_howson, shift_tableau, tableau_to_strategy, ) class TestLemkeHowson(unittest.TestCase): def test_particular_tableau_to_strategy(self): tableau = np.array( [ [3.0,...
np.array_equal(strategy, np.array([1, 0])))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_lemke_howson.py
test_particular_lemke_howson
self.assertTrue
func_call
32
import unittest import warnings import numpy as np from nashpy.algorithms.lemke_howson import ( lemke_howson, shift_tableau, tableau_to_strategy, ) class TestLemkeHowson(unittest.TestCase): def test_particular_lemke_howson(self): A = np.array([[3, 3], [2, 5], [0, 6]]) B = np.array([[...
all(np.isclose(eq, np.array([1 / 2, 1 / 2]))))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_lemke_howson.py
test_particular_tableau_to_strategy
self.assertTrue
func_call
26
import unittest import warnings import numpy as np from nashpy.algorithms.lemke_howson import ( lemke_howson, shift_tableau, tableau_to_strategy, ) class TestLemkeHowson(unittest.TestCase): def test_particular_tableau_to_strategy(self): tableau = np.array( [ [3.0,...
np.array_equal(strategy, np.array([2 / 3, 1 / 3])))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_lemke_howson_lex.py
test_particular_lemke_howson_with_lexicographic_ratio_test
self.assertTrue
func_call
24
import unittest import numpy as np from nashpy.algorithms.lemke_howson_lex import lemke_howson_lex class TestLemkeHowsonLex(unittest.TestCase): def test_particular_lemke_howson_with_lexicographic_ratio_test(self): """ Tests for Lemke Howson with lexographical ordering in a non-degenerate case ...
all(np.isclose(eq, expected_eq)))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_lemke_howson_lex.py
test_particular_lemke_howson_with_lexicographic_ratio_test
self.assertTrue
func_call
30
import unittest import numpy as np from nashpy.algorithms.lemke_howson_lex import lemke_howson_lex class TestLemkeHowsonLex(unittest.TestCase): def test_particular_lemke_howson_with_lexicographic_ratio_test(self): """ Tests for Lemke Howson with lexographical ordering in a non-degenerate case ...
all(np.isclose(eq, np.array([1 / 2, 1 / 2]))))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_moran_process.py
test_specific_moran_process_with_already_fixed_initial_population
assert
numeric_literal
19
import numpy as np import pytest from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.egt.moran_process import ( score_all_individuals, update_population, moran_process, fixation_probabilities, ) def test_specific_moran_process_with_already_fixed_initial_population(): ...
1
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_moran_process.py
test_properties_of_scores
assert
numeric_literal
29
import numpy as np import pytest from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.egt.moran_process import ( score_all_individuals, update_population, moran_process, fixation_probabilities, ) @given(M=arrays(np.int8, (3, 3), unique=True)) def test_properties_of_score...
0
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_moran_process.py
test_properties_of_scores
pytest.raises
variable
32
import numpy as np import pytest from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.egt.moran_process import ( score_all_individuals, update_population, moran_process, fixation_probabilities, ) @given(M=arrays(np.int8, (3, 3), unique=True)) def test_properties_of_score...
ValueError)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_moran_process.py
test_moran_process_in_3_by_3_game
assert
collection
35
import numpy as np import pytest from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.egt.moran_process import ( score_all_individuals, update_population, moran_process, fixation_probabilities, ) @given(M=arrays(np.int8, (3, 3), unique=True)) def test_moran_process_in_3_...
({0}, {1}, {2})
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_moran_process.py
test_moran_process_in_3_by_3_game
assert
collection
33
import numpy as np import pytest from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.egt.moran_process import ( score_all_individuals, update_population, moran_process, fixation_probabilities, ) @given(M=arrays(np.int8, (3, 3), unique=True)) def test_moran_process_in_3_...
{len(initial_population)}
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_polytope.py
test_creation_of_non_trivial_vertices
self.assertGreaterEqual
numeric_literal
40
import unittest from types import GeneratorType import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers from nashpy.polytope.polytope import ( build_halfspaces, find_feasible_point, labels, non_trivial_vertices, ) class Test...
0)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_polytope.py
test_creation_of_non_trivial_vertices
self.assertEqual
variable
38
import unittest from types import GeneratorType import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers from nashpy.polytope.polytope import ( build_halfspaces, find_feasible_point, labels, non_trivial_vertices, ) class Test...
dimension)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_polytope.py
test_creation_of_non_trivial_vertices
self.assertIsInstance
variable
36
import unittest from types import GeneratorType import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers from nashpy.polytope.polytope import ( build_halfspaces, find_feasible_point, labels, non_trivial_vertices, ) class Test...
GeneratorType)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_polytope.py
test_creation_of_non_trivial_vertices
self.assertLessEqual
complex_expr
41
import unittest from types import GeneratorType import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers from nashpy.polytope.polytope import ( build_halfspaces, find_feasible_point, labels, non_trivial_vertices, ) class Test...
number_of_strategies + dimension)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_polytope.py
test_creation_of_feasible_point
self.assertTrue
func_call
28
import unittest from types import GeneratorType import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers from nashpy.polytope.polytope import ( build_halfspaces, find_feasible_point, labels, non_trivial_vertices, ) class Test...
all(np.dot(M, feasible_point) <= -b))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_polytope.py
test_labelling_of_particular_vertices
self.assertTrue
func_call
28
import unittest from types import GeneratorType import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers from nashpy.polytope.polytope import ( build_halfspaces, find_feasible_point, labels, non_trivial_vertices, ) class Test...
np.array_equal(label, expected_label))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_polytope.py
test_creation_of_particular_non_trivial_vertices
self.assertTrue
func_call
42
import unittest from types import GeneratorType import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers from nashpy.polytope.polytope import ( build_halfspaces, find_feasible_point, labels, non_trivial_vertices, ) class Test...
all(np.isclose(vertex, expected_vertex)))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_polytope.py
test_creation_of_particular_halfspaces
self.assertTrue
func_call
32
import unittest from types import GeneratorType import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers from nashpy.polytope.polytope import ( build_halfspaces, find_feasible_point, labels, non_trivial_vertices, ) class Test...
np.array_equal(halfspace, expected_halfspace))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_polytope.py
test_creation_of_halfspaces
self.assertEqual
collection
31
import unittest from types import GeneratorType import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers from nashpy.polytope.polytope import ( build_halfspaces, find_feasible_point, labels, non_trivial_vertices, ) class Test...
(number_of_strategies + dimension, dimension + 1))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_polytope.py
test_creation_of_particular_feasible_point
self.assertTrue
func_call
23
import unittest from types import GeneratorType import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers from nashpy.polytope.polytope import ( build_halfspaces, find_feasible_point, labels, non_trivial_vertices, ) class Test...
all(np.isclose(feasible_point, np.array([0.08074176, 0.08074176]))))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_polytope.py
test_creation_of_halfspaces
self.assertTrue
func_call
34
import unittest from types import GeneratorType import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers from nashpy.polytope.polytope import ( build_halfspaces, find_feasible_point, labels, non_trivial_vertices, ) class Test...
np.array_equal(halfspace[number_of_strategies:, :-1], -np.eye(dimension)))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_polytope.py
test_creation_of_particular_feasible_point
self.assertTrue
func_call
30
import unittest from types import GeneratorType import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers from nashpy.polytope.polytope import ( build_halfspaces, find_feasible_point, labels, non_trivial_vertices, ) class Test...
all( np.isclose( feasible_point, np.array([0.06492189, 0.06492189, 0.06492189]), ) ))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_replicator_dynamics.py
test_replicator_dynamics_game_size_3_example_default_timepoints
assert
numeric_literal
24
import numpy as np import pytest from hypothesis import given, settings from hypothesis.strategies import integers from hypothesis.extra.numpy import arrays from nashpy.learning.replicator_dynamics import ( get_derivative_of_fitness, replicator_dynamics, get_derivative_of_asymmetric_fitness, asymmetric...
1000
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_replicator_dynamics.py
test_property_get_derivative_of_fitness
assert
func_call
21
import numpy as np import pytest from hypothesis import given, settings from hypothesis.strategies import integers from hypothesis.extra.numpy import arrays from nashpy.learning.replicator_dynamics import ( get_derivative_of_fitness, replicator_dynamics, get_derivative_of_asymmetric_fitness, asymmetric...
len(x)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_replicator_dynamics.py
test_replicator_dynamics_with_incorrect_inputs
pytest.raises
variable
21
import numpy as np import pytest from hypothesis import given, settings from hypothesis.strategies import integers from hypothesis.extra.numpy import arrays from nashpy.learning.replicator_dynamics import ( get_derivative_of_fitness, replicator_dynamics, get_derivative_of_asymmetric_fitness, asymmetric...
ValueError)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_stochastic_fictitious_play.py
test_property_get_distribution_response_to_play_count
assert
numeric_literal
20
import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.learning.stochastic_fictitious_play import ( get_distribution_response_to_play_count, stochastic_fictitious_play, ) @given(M=arrays(np.int8, (2, 2))) def test_property_get_distribution_response_to_play_count(...
0
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_stochastic_fictitious_play.py
test_get_distribution_response_to_play_count_2
assert
numeric_literal
22
import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.learning.stochastic_fictitious_play import ( get_distribution_response_to_play_count, stochastic_fictitious_play, ) def test_get_distribution_response_to_play_count_2(): np.random.seed(0) M = np.array...
1
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_stochastic_fictitious_play.py
test_stochastic_fictitious_play_given_etha_epsilon
assert
numeric_literal
28
import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.learning.stochastic_fictitious_play import ( get_distribution_response_to_play_count, stochastic_fictitious_play, ) def test_stochastic_fictitious_play_given_etha_epsilon(): np.random.seed(0) iteratio...
2
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_stochastic_fictitious_play.py
test_stochastic_fictitious_play_default_inputs
assert
numeric_literal
24
import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.learning.stochastic_fictitious_play import ( get_distribution_response_to_play_count, stochastic_fictitious_play, ) def test_stochastic_fictitious_play_default_inputs(): np.random.seed(0) iterations =...
4
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_stochastic_fictitious_play.py
test_stochastic_fictitious_play_2x3
assert
variable
31
import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.learning.stochastic_fictitious_play import ( get_distribution_response_to_play_count, stochastic_fictitious_play, ) def test_stochastic_fictitious_play_2x3(): np.random.seed(0) iterations = 3 M = ...
iterations
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_stochastic_fictitious_play.py
test_stochastic_fictitious_play_default_inputs
assert
complex_expr
25
import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.learning.stochastic_fictitious_play import ( get_distribution_response_to_play_count, stochastic_fictitious_play, ) def test_stochastic_fictitious_play_default_inputs(): np.random.seed(0) iterations =...
2 * iterations
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_stochastic_fictitious_play.py
test_stochastic_fictitious_play_2x3
assert
complex_expr
30
import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.learning.stochastic_fictitious_play import ( get_distribution_response_to_play_count, stochastic_fictitious_play, ) def test_stochastic_fictitious_play_2x3(): np.random.seed(0) iterations = 3 M = ...
iterations + 1
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_stochastic_fictitious_play.py
test_property_get_distribution_response_to_play_count
assert
func_call
19
import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from nashpy.learning.stochastic_fictitious_play import ( get_distribution_response_to_play_count, stochastic_fictitious_play, ) @given(M=arrays(np.int8, (2, 2))) def test_property_get_distribution_response_to_play_count(...
len(play_count)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_support_enumeration.py
test_potential_supports
assert
numeric_literal
110
import unittest import numpy as np from nashpy.algorithms.support_enumeration import ( indifference_strategies, is_ne, obey_support, potential_support_pairs, powerset, solve_indifference, ) class TestSupportEnumeration(unittest.TestCase): def test_potential_supports(self): """Test...
225
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_support_enumeration.py
test_powerset
self.assertEqual
collection
19
import unittest import numpy as np from nashpy.algorithms.support_enumeration import ( indifference_strategies, is_ne, obey_support, potential_support_pairs, powerset, solve_indifference, ) class TestUtils(unittest.TestCase): def test_powerset(self): n = 2 powerset_ = list...
[(), (0,), (1,), (0, 1)])
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_support_enumeration.py
test_indifference_strategies
self.assertEqual
func_call
29
import unittest import numpy as np from nashpy.algorithms.support_enumeration import ( indifference_strategies, is_ne, obey_support, potential_support_pairs, powerset, solve_indifference, ) class TestSupportEnumeration(unittest.TestCase): def test_indifference_strategies(self): "...
len(expected_indifference))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_support_enumeration.py
test_indifference_strategies
self.assertTrue
func_call
31
import unittest import numpy as np from nashpy.algorithms.support_enumeration import ( indifference_strategies, is_ne, obey_support, potential_support_pairs, powerset, solve_indifference, ) class TestSupportEnumeration(unittest.TestCase): def test_indifference_strategies(self): "...
np.array_equal(obtained, expected))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_support_enumeration.py
test_obey_support
self.assertFalse
func_call
19
import unittest import numpy as np from nashpy.algorithms.support_enumeration import ( indifference_strategies, is_ne, obey_support, potential_support_pairs, powerset, solve_indifference, ) class TestSupportEnumeration(unittest.TestCase): def test_obey_support(self): """Test for ...
obey_support(False, np.array([0, 1])))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_support_enumeration.py
test_is_ne
self.assertTrue
func_call
24
import unittest import numpy as np from nashpy.algorithms.support_enumeration import ( indifference_strategies, is_ne, obey_support, potential_support_pairs, powerset, solve_indifference, ) class TestSupportEnumeration(unittest.TestCase): def test_is_ne(self): """Test if is ne"""...
is_ne(strategy_pair, support_pair, (A, B)))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_support_enumeration.py
test_is_ne
self.assertTrue
func_call
41
import unittest import numpy as np from nashpy.algorithms.support_enumeration import ( indifference_strategies, is_ne, obey_support, potential_support_pairs, powerset, solve_indifference, ) class TestSupportEnumeration(unittest.TestCase): def test_is_ne(self): """Test if is ne"""...
is_ne(strategy_pair, support_pair, (A, -A)))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_support_enumeration.py
test_obey_support
self.assertTrue
func_call
24
import unittest import numpy as np from nashpy.algorithms.support_enumeration import ( indifference_strategies, is_ne, obey_support, potential_support_pairs, powerset, solve_indifference, ) class TestSupportEnumeration(unittest.TestCase): def test_obey_support(self): """Test for ...
obey_support(np.array([1, 0]), np.array([0])))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_support_enumeration.py
test_obey_support
self.assertFalse
func_call
21
import unittest import numpy as np from nashpy.algorithms.support_enumeration import ( indifference_strategies, is_ne, obey_support, potential_support_pairs, powerset, solve_indifference, ) class TestSupportEnumeration(unittest.TestCase): def test_obey_support(self): """Test for ...
obey_support(np.array([0, 0.5]), np.array([0])))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_support_enumeration.py
test_obey_support
self.assertFalse
func_call
22
import unittest import numpy as np from nashpy.algorithms.support_enumeration import ( indifference_strategies, is_ne, obey_support, potential_support_pairs, powerset, solve_indifference, ) class TestSupportEnumeration(unittest.TestCase): def test_obey_support(self): """Test for ...
obey_support(np.array([0.5, 0]), np.array([1])))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_support_enumeration.py
test_obey_support
self.assertTrue
func_call
25
import unittest import numpy as np from nashpy.algorithms.support_enumeration import ( indifference_strategies, is_ne, obey_support, potential_support_pairs, powerset, solve_indifference, ) class TestSupportEnumeration(unittest.TestCase): def test_obey_support(self): """Test for ...
obey_support(np.array([0, 0.5]), np.array([1])))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_support_enumeration.py
test_obey_support_with_high_tolerance
self.assertFalse
func_call
22
import unittest import numpy as np from nashpy.algorithms.support_enumeration import ( indifference_strategies, is_ne, obey_support, potential_support_pairs, powerset, solve_indifference, ) class TestSupportEnumeration(unittest.TestCase): def test_obey_support_with_high_tolerance(self): ...
obey_support(np.array([1, 0]), np.array([0]), tol=tol))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_version.py
test_bi_matrix_init
self.assertIsInstance
variable
8
import unittest import nashpy as nash class TestVersion(unittest.TestCase): def test_bi_matrix_init(self): self.assertIsInstance(nash.__version__,
str)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_vertex_enumeration.py
test_three_by_two_vertex_enumeration
self.assertTrue
func_call
28
import unittest import numpy as np from nashpy.algorithms.vertex_enumeration import vertex_enumeration class TestVertexEnumeration(unittest.TestCase): def test_three_by_two_vertex_enumeration(self): A = np.array([[3, 3], [2, 5], [0, 6]]) B = np.array([[3, 2], [2, 6], [3, 1]]) expected_e...
all(np.isclose(strategy, expected_strategy)))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_anlz.py
test_anlzfile_getall_tags
assert
numeric_literal
20
import os import numpy as np import pytest from numpy.testing import assert_equal from pyrekordbox import anlz TEST_ROOT = os.path.join(os.path.dirname(os.path.dirname(__file__)), ".testdata") ANLZ_ROOT = os.path.join(TEST_ROOT, "export", "PIONEER", "USBANLZ") ANLZ_DIRS = list(anlz.walk_anlz_paths(ANLZ_ROOT)) ANLZ_F...
1
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_anlz.py
test_ppth_tag_getters
assert
variable
25
import os import numpy as np import pytest from numpy.testing import assert_equal from pyrekordbox import anlz TEST_ROOT = os.path.join(os.path.dirname(os.path.dirname(__file__)), ".testdata") ANLZ_ROOT = os.path.join(TEST_ROOT, "export", "PIONEER", "USBANLZ") ANLZ_DIRS = list(anlz.walk_anlz_paths(ANLZ_ROOT)) ANLZ_F...
p
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_anlz.py
test_pqtz_tag_set_bpms
assert_*
variable
22
import os import numpy as np import pytest from numpy.testing import assert_equal from pyrekordbox import anlz TEST_ROOT = os.path.join(os.path.dirname(os.path.dirname(__file__)), ".testdata") ANLZ_ROOT = os.path.join(TEST_ROOT, "export", "PIONEER", "USBANLZ") ANLZ_DIRS = list(anlz.walk_anlz_paths(ANLZ_ROOT)) ANLZ_F...
bpms)
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_anlz.py
test_pqtz_tag_set_beats
assert_*
variable
22
import os import numpy as np import pytest from numpy.testing import assert_equal from pyrekordbox import anlz TEST_ROOT = os.path.join(os.path.dirname(os.path.dirname(__file__)), ".testdata") ANLZ_ROOT = os.path.join(TEST_ROOT, "export", "PIONEER", "USBANLZ") ANLZ_DIRS = list(anlz.walk_anlz_paths(ANLZ_ROOT)) ANLZ_F...
beats)
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_anlz.py
test_pqtz_tag_set_times
assert_*
variable
22
import os import numpy as np import pytest from numpy.testing import assert_equal from pyrekordbox import anlz TEST_ROOT = os.path.join(os.path.dirname(os.path.dirname(__file__)), ".testdata") ANLZ_ROOT = os.path.join(TEST_ROOT, "export", "PIONEER", "USBANLZ") ANLZ_DIRS = list(anlz.walk_anlz_paths(ANLZ_ROOT)) ANLZ_F...
times)
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_anlz.py
test_ppth_tag_setters
assert
variable
22
import os import numpy as np import pytest from numpy.testing import assert_equal from pyrekordbox import anlz TEST_ROOT = os.path.join(os.path.dirname(os.path.dirname(__file__)), ".testdata") ANLZ_ROOT = os.path.join(TEST_ROOT, "export", "PIONEER", "USBANLZ") ANLZ_DIRS = list(anlz.walk_anlz_paths(ANLZ_ROOT)) ANLZ_F...
extected
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_anlz.py
test_pqtz_tag_getters
assert
func_call
22
import os import numpy as np import pytest from numpy.testing import assert_equal from pyrekordbox import anlz TEST_ROOT = os.path.join(os.path.dirname(os.path.dirname(__file__)), ".testdata") ANLZ_ROOT = os.path.join(TEST_ROOT, "export", "PIONEER", "USBANLZ") ANLZ_DIRS = list(anlz.walk_anlz_paths(ANLZ_ROOT)) ANLZ_F...
len(bpms)
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_anlz.py
test_anlzfile_get
assert
func_call
20
import os import numpy as np import pytest from numpy.testing import assert_equal from pyrekordbox import anlz TEST_ROOT = os.path.join(os.path.dirname(os.path.dirname(__file__)), ".testdata") ANLZ_ROOT = os.path.join(TEST_ROOT, "export", "PIONEER", "USBANLZ") ANLZ_DIRS = list(anlz.walk_anlz_paths(ANLZ_ROOT)) ANLZ_F...
tag.get()
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_anlz.py
test_pqtz_tag_getters
assert
func_call
23
import os import numpy as np import pytest from numpy.testing import assert_equal from pyrekordbox import anlz TEST_ROOT = os.path.join(os.path.dirname(os.path.dirname(__file__)), ".testdata") ANLZ_ROOT = os.path.join(TEST_ROOT, "export", "PIONEER", "USBANLZ") ANLZ_DIRS = list(anlz.walk_anlz_paths(ANLZ_ROOT)) ANLZ_F...
len(times)
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_anlz.py
test_pwav_tag_getters
assert
func_call
21
import os import numpy as np import pytest from numpy.testing import assert_equal from pyrekordbox import anlz TEST_ROOT = os.path.join(os.path.dirname(os.path.dirname(__file__)), ".testdata") ANLZ_ROOT = os.path.join(TEST_ROOT, "export", "PIONEER", "USBANLZ") ANLZ_DIRS = list(anlz.walk_anlz_paths(ANLZ_ROOT)) ANLZ_F...
len(color)
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_anlz.py
test_pwv4_tag_getters
assert
func_call
22
import os import numpy as np import pytest from numpy.testing import assert_equal from pyrekordbox import anlz TEST_ROOT = os.path.join(os.path.dirname(os.path.dirname(__file__)), ".testdata") ANLZ_ROOT = os.path.join(TEST_ROOT, "export", "PIONEER", "USBANLZ") ANLZ_DIRS = list(anlz.walk_anlz_paths(ANLZ_ROOT)) ANLZ_F...
len(blues)
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_anlz.py
test_pwv4_tag_getters
assert
func_call
21
import os import numpy as np import pytest from numpy.testing import assert_equal from pyrekordbox import anlz TEST_ROOT = os.path.join(os.path.dirname(os.path.dirname(__file__)), ".testdata") ANLZ_ROOT = os.path.join(TEST_ROOT, "export", "PIONEER", "USBANLZ") ANLZ_DIRS = list(anlz.walk_anlz_paths(ANLZ_ROOT)) ANLZ_F...
len(colors)
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_anlz.py
test_pqtz_tag_getters
assert_*
collection
26
import os import numpy as np import pytest from numpy.testing import assert_equal from pyrekordbox import anlz TEST_ROOT = os.path.join(os.path.dirname(os.path.dirname(__file__)), ".testdata") ANLZ_ROOT = os.path.join(TEST_ROOT, "export", "PIONEER", "USBANLZ") ANLZ_DIRS = list(anlz.walk_anlz_paths(ANLZ_ROOT)) ANLZ_F...
[1, 2, 3, 4])
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_config.py
test_pioneer_config
assert
variable
84
import json import sys from pathlib import Path import pytest from pyrekordbox.config import get_config, update_config RB_SETTING = """<?xml version="1.0" encoding="UTF-8"?> <PROPERTIES><VALUE name="masterDbDirectory" val="{db_dir}"/></PROPERTIES> """ RB_OPTIONS = {"options": [["db-path", ""]]} def mock_rekordbox_...
pioneer_app_dir
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_config.py
test_rb5_config
assert
variable
95
import json import sys from pathlib import Path import pytest from pyrekordbox.config import get_config, update_config RB_SETTING = """<?xml version="1.0" encoding="UTF-8"?> <PROPERTIES><VALUE name="masterDbDirectory" val="{db_dir}"/></PROPERTIES> """ RB_OPTIONS = {"options": [["db-path", ""]]} def mock_rekordbox_...
expected_version
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_config.py
test_pioneer_config
assert
variable
83
import json import sys from pathlib import Path import pytest from pyrekordbox.config import get_config, update_config RB_SETTING = """<?xml version="1.0" encoding="UTF-8"?> <PROPERTIES><VALUE name="masterDbDirectory" val="{db_dir}"/></PROPERTIES> """ RB_OPTIONS = {"options": [["db-path", ""]]} def mock_rekordbox_...
pioneer_install_dir
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_config.py
test_rb5_config
assert
complex_expr
92
import json import sys from pathlib import Path import pytest from pyrekordbox.config import get_config, update_config RB_SETTING = """<?xml version="1.0" encoding="UTF-8"?> <PROPERTIES><VALUE name="masterDbDirectory" val="{db_dir}"/></PROPERTIES> """ RB_OPTIONS = {"options": [["db-path", ""]]} def mock_rekordbox_...
pioneer_app_dir / "rekordbox"
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_config.py
test_rb6_config
assert
complex_expr
93
import json import sys from pathlib import Path import pytest from pyrekordbox.config import get_config, update_config RB_SETTING = """<?xml version="1.0" encoding="UTF-8"?> <PROPERTIES><VALUE name="masterDbDirectory" val="{db_dir}"/></PROPERTIES> """ RB_OPTIONS = {"options": [["db-path", ""]]} def mock_rekordbox_...
pioneer_app_dir / "rekordbox6"
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_db6.py
test_add_song_to_playlist
assert
numeric_literal
107
import os import re import shutil import tempfile import urllib.request from pathlib import Path import pytest from pytest import mark from sqlalchemy import text from sqlalchemy.orm.query import Query from pyrekordbox import Rekordbox6Database from pyrekordbox.db6 import tables from pyrekordbox.db6.smartlist import ...
1
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_db6.py
test_add_song_to_playlist_trackno_end
assert
numeric_literal
105
import os import re import shutil import tempfile import urllib.request from pathlib import Path import pytest from pytest import mark from sqlalchemy import text from sqlalchemy.orm.query import Query from pyrekordbox import Rekordbox6Database from pyrekordbox.db6 import tables from pyrekordbox.db6.smartlist import ...
2
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor
dylanljones/pyrekordbox
26f73a2262f1871d2400391860c7322d4d3e7779
36
train
train
tests/test_db6.py
test_add_song_to_playlist_trackno_end
assert
numeric_literal
106
import os import re import shutil import tempfile import urllib.request from pathlib import Path import pytest from pytest import mark from sqlalchemy import text from sqlalchemy.orm.query import Query from pyrekordbox import Rekordbox6Database from pyrekordbox.db6 import tables from pyrekordbox.db6.smartlist import ...
3
26f73a2262f1871d2400391860c7322d4d3e7779
36
v2_extractor_at_anchor