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
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
onlinejudge/service/atcoder.py
submit_code
assert
collection
134
import itertools import posixpath import re import urllib.parse from typing import * import bs4 import onlinejudge._implementation.logging as log import onlinejudge._implementation.testcase_zipper import onlinejudge._implementation.utils as utils import onlinejudge.dispatch import onlinejudge.type from onlinejudge.ty...
[language.id for language in self.get_available_languages(session=session)]
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
onlinejudge/service/atcoder.py
iterate_submission_data_where
assert
collection
140
import itertools import posixpath import re import urllib.parse from typing import * import bs4 import onlinejudge._implementation.logging as log import onlinejudge._implementation.testcase_zipper import onlinejudge._implementation.utils as utils import onlinejudge.dispatch import onlinejudge.type from onlinejudge.ty...
(None, 'created', 'score', 'source_length', 'time_consumption', 'memory_consumption')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
onlinejudge/service/atcoder.py
iterate_submission_data_where
assert
collection
139
import itertools import posixpath import re import urllib.parse from typing import * import bs4 import onlinejudge._implementation.logging as log import onlinejudge._implementation.testcase_zipper import onlinejudge._implementation.utils as utils import onlinejudge.dispatch import onlinejudge.type from onlinejudge.ty...
(None, 'AC', 'WA', 'TLE', 'MLE', 'RE', 'CE', 'QLE', 'OLE', 'IE', 'WJ', 'WR', 'Judging')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
onlinejudge/service/codeforces.py
download_sample_cases
assert
numeric_literal
47
import datetime import json import re import string import urllib.parse from typing import * import bs4 import onlinejudge._implementation.logging as log import onlinejudge._implementation.testcase_zipper import onlinejudge._implementation.utils as utils import onlinejudge.dispatch import onlinejudge.type from online...
2
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
onlinejudge/service/codeforces.py
iterate_contest_data
assert
string_literal
80
import datetime import json import re import string import urllib.parse from typing import * import bs4 import onlinejudge._implementation.logging as log import onlinejudge._implementation.testcase_zipper import onlinejudge._implementation.utils as utils import onlinejudge.dispatch import onlinejudge.type from online...
'OK'
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
onlinejudge/service/codeforces.py
download_sample_cases
assert
string_literal
50
import datetime import json import re import string import urllib.parse from typing import * import bs4 import onlinejudge._implementation.logging as log import onlinejudge._implementation.testcase_zipper import onlinejudge._implementation.utils as utils import onlinejudge.dispatch import onlinejudge.type from online...
'pre'
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
onlinejudge/service/codeforces.py
__init__
assert
func_call
24
import datetime import json import re import string import urllib.parse from typing import * import bs4 import onlinejudge._implementation.logging as log import onlinejudge._implementation.testcase_zipper import onlinejudge._implementation.utils as utils import onlinejudge.dispatch import onlinejudge.type from online...
len(index)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
onlinejudge/service/codeforces.py
get_contest
assert
string_literal
122
import datetime import json import re import string import urllib.parse from typing import * import bs4 import onlinejudge._implementation.logging as log import onlinejudge._implementation.testcase_zipper import onlinejudge._implementation.utils as utils import onlinejudge.dispatch import onlinejudge.type from online...
'problemset'
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
onlinejudge/service/codeforces.py
__init__
assert
complex_expr
27
import datetime import json import re import string import urllib.parse from typing import * import bs4 import onlinejudge._implementation.logging as log import onlinejudge._implementation.testcase_zipper import onlinejudge._implementation.utils as utils import onlinejudge.dispatch import onlinejudge.type from online...
string.digits
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
onlinejudge/service/codeforces.py
download_sample_cases
assert
complex_expr
49
import datetime import json import re import string import urllib.parse from typing import * import bs4 import onlinejudge._implementation.logging as log import onlinejudge._implementation.testcase_zipper import onlinejudge._implementation.utils as utils import onlinejudge.dispatch import onlinejudge.type from online...
title.attrs['class']
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
onlinejudge/service/codeforces.py
__init__
assert
complex_expr
25
import datetime import json import re import string import urllib.parse from typing import * import bs4 import onlinejudge._implementation.logging as log import onlinejudge._implementation.testcase_zipper import onlinejudge._implementation.utils as utils import onlinejudge.dispatch import onlinejudge.type from online...
string.ascii_uppercase
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
onlinejudge/service/codeforces.py
__init__
assert
collection
23
import datetime import json import re import string import urllib.parse from typing import * import bs4 import onlinejudge._implementation.logging as log import onlinejudge._implementation.testcase_zipper import onlinejudge._implementation.utils as utils import onlinejudge.dispatch import onlinejudge.type from online...
(None, 'contest', 'gym')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
onlinejudge/service/codeforces.py
__init__
assert
collection
28
import datetime import json import re import string import urllib.parse from typing import * import bs4 import onlinejudge._implementation.logging as log import onlinejudge._implementation.testcase_zipper import onlinejudge._implementation.utils as utils import onlinejudge.dispatch import onlinejudge.type from online...
(None, 'contest', 'gym', 'problemset')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/_implementation/format_utils.py
test_percentformat
self.assertRaises
variable
10
import unittest from onlinejudge._implementation.format_utils import * class PercentFormatTest(unittest.TestCase): def test_percentformat(self): self.assertEqual(percentformat("foo %a%a bar %b", {"a": "AA", "b": "12345"}), 'foo AAAA bar 12345') self.assertEqual(percentformat("foo %%a bar %%%a %b",...
KeyError)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/_implementation/format_utils.py
test_percentformat
self.assertEqual
string_literal
8
import unittest from onlinejudge._implementation.format_utils import * class PercentFormatTest(unittest.TestCase): def test_percentformat(self): self.assertEqual(percentformat("foo %a%a bar %b", {"a": "AA", "b": "12345"}),
'foo AAAA bar 12345')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/_implementation/format_utils.py
test_percentformat
self.assertEqual
string_literal
9
import unittest from onlinejudge._implementation.format_utils import * class PercentFormatTest(unittest.TestCase): def test_percentformat(self): self.assertEqual(percentformat("foo %a%a bar %b", {"a": "AA", "b": "12345"}), 'foo AAAA bar 12345') self.assertEqual(percentformat("foo %%a bar %%%a %b"...
'foo %a bar %%a%b 12345')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/_implementation/format_utils.py
test_percentparse
self.assertEqual
collection
9
import unittest from onlinejudge._implementation.format_utils import * class PercentFormatTest(unittest.TestCase): def test_percentparse(self): self.assertEqual(percentparse("foo AAAA bar 12345", "foo %a%a bar %b", {"a": "AA", "b": "12345"}),
{'a': 'AA', 'b': '12345'})
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/_implementation/format_utils.py
test_percentparse
self.assertEqual
collection
10
import unittest from onlinejudge._implementation.format_utils import * class PercentFormatTest(unittest.TestCase): def test_percentparse(self): self.assertEqual(percentparse("foo AAAA bar 12345", "foo %a%a bar %b", {"a": "AA", "b": "12345"}), {'a': 'AA', 'b': '12345'}) self.assertEqual(percentpa...
{'x': '12345', 'y': '6', 'z': '789'})
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_download.py
snippet_call_download
self.assertEqual
variable
38
import hashlib import os import tests.utils from onlinejudge._implementation.command.download import download from onlinejudge._implementation.main import get_parser def get_files_from_json(samples): files = {} for i, sample in enumerate(samples): for ext in ('in', 'out'): if 'name' in sa...
result)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_download.py
snippet_call_download_twice
self.assertRaises
variable
71
import hashlib import os import tests.utils from onlinejudge._implementation.command.download import download from onlinejudge._implementation.main import get_parser def get_files_from_json(samples): files = {} for i, sample in enumerate(samples): for ext in ('in', 'out'): if 'name' in sa...
FileExistsError)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_download.py
snippet_call_download_raises
self.assertRaises
variable
47
import hashlib import os import tests.utils from onlinejudge._implementation.command.download import download from onlinejudge._implementation.main import get_parser def get_files_from_json(samples): files = {} for i, sample in enumerate(samples): for ext in ('in', 'out'): if 'name' in sa...
expected_exception)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_generate_input.py
snippet_call_generate_input
self.assertEqual
complex_expr
15
import os import unittest import tests.utils class GenerateInputTest(unittest.TestCase): def snippet_call_generate_input(self, args, input_files, expected_values, disallowed_files=None): with tests.utils.sandbox(input_files) as tempdir: tests.utils.run(['generate-input'] + args, check=True) ...
expect['data'])
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_generate_input.py
snippet_call_generate_input
self.assertFalse
func_call
18
import os import unittest import tests.utils class GenerateInputTest(unittest.TestCase): def snippet_call_generate_input(self, args, input_files, expected_values, disallowed_files=None): with tests.utils.sandbox(input_files) as tempdir: tests.utils.run(['generate-input'] + args, check=True) ...
os.path.exists(file))
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_generate_input.py
snippet_call_generate_input
self.assertTrue
func_call
12
import os import unittest import tests.utils class GenerateInputTest(unittest.TestCase): def snippet_call_generate_input(self, args, input_files, expected_values, disallowed_files=None): with tests.utils.sandbox(input_files) as tempdir: tests.utils.run(['generate-input'] + args, check=True) ...
os.path.exists(expect['path']))
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_generate_output.py
snippet_call_generate_output
self.assertEqual
complex_expr
14
import os import unittest import tests.utils from tests.utils import cat class GenerateOutputTest(unittest.TestCase): def snippet_call_generate_output(self, args, input_files, expected_values, disallowed_files=None): with tests.utils.sandbox(input_files) as tempdir: tests.utils.run(['generate-...
expect['data'])
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_generate_output.py
snippet_call_generate_output
self.assertFalse
func_call
17
import os import unittest import tests.utils from tests.utils import cat class GenerateOutputTest(unittest.TestCase): def snippet_call_generate_output(self, args, input_files, expected_values, disallowed_files=None): with tests.utils.sandbox(input_files) as tempdir: tests.utils.run(['generate-...
os.path.exists(file))
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_login.py
snippet_call_login_check_failure
self.assertEqual
numeric_literal
17
import unittest import tests.utils from onlinejudge.service.atcoder import AtCoderService from onlinejudge.service.codeforces import CodeforcesService from onlinejudge.service.hackerrank import HackerRankService from onlinejudge.service.toph import TophService from onlinejudge.service.yukicoder import YukicoderServic...
1)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_submit.py
test_call_submit_atcoder_invalid_url
self.assertRaises
complex_expr
42
import os import time import unittest import requests.exceptions import tests.utils from onlinejudge._implementation.command.submit import submit from onlinejudge._implementation.main import get_parser from onlinejudge.service.atcoder import AtCoderService from onlinejudge.service.codeforces import CodeforcesService ...
requests.exceptions.HTTPError)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_submit.py
test_call_submit_atcoder_practice_1_with_open
self.assertTrue
func_call
42
import os import time import unittest import requests.exceptions import tests.utils from onlinejudge._implementation.command.submit import submit from onlinejudge._implementation.main import get_parser from onlinejudge.service.atcoder import AtCoderService from onlinejudge.service.codeforces import CodeforcesService ...
url.startswith('https://atcoder.jp/contests/practice/submissions/'))
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_test.py
test_call_test_special_judge
assert_*
numeric_literal
52
import json import os import pathlib import random import shutil import sys import unittest import tests.utils from testfixtures import LogCapture from tests.utils import cat, sleep_1sec from onlinejudge._implementation import logging from onlinejudge._implementation.command import test class TestTest(unittest.TestC...
3)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_test.py
test_call_test_large_memory
self.assertGreater
numeric_literal
56
import json import os import pathlib import random import shutil import sys import unittest import tests.utils from testfixtures import LogCapture from tests.utils import cat, sleep_1sec from onlinejudge._implementation import logging from onlinejudge._implementation.command import test class TestTest(unittest.TestC...
100)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_test.py
test_call_test_not_tle
self.assertEqual
string_literal
53
import json import os import pathlib import random import shutil import sys import unittest import tests.utils from testfixtures import LogCapture from tests.utils import cat, sleep_1sec from onlinejudge._implementation import logging from onlinejudge._implementation.command import test class TestTest(unittest.TestC...
'AC')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_test.py
test_call_test_large_memory
self.assertLess
numeric_literal
57
import json import os import pathlib import random import shutil import sys import unittest import tests.utils from testfixtures import LogCapture from tests.utils import cat, sleep_1sec from onlinejudge._implementation import logging from onlinejudge._implementation.command import test class TestTest(unittest.TestC...
1000)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_test.py
test_call_test_tle
self.assertEqual
string_literal
53
import json import os import pathlib import random import shutil import sys import unittest import tests.utils from testfixtures import LogCapture from tests.utils import cat, sleep_1sec from onlinejudge._implementation import logging from onlinejudge._implementation.command import test class TestTest(unittest.TestC...
'TLE')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_test.py
test_call_test_check_no_zombie
self.assertNotIn
func_call
77
import json import os import pathlib import random import shutil import sys import unittest import tests.utils from testfixtures import LogCapture from tests.utils import cat, sleep_1sec from onlinejudge._implementation import logging from onlinejudge._implementation.command import test class TestTest(unittest.TestC...
fh.read())
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_test.py
snippet_call_test
self.assertEqual
complex_expr
34
import json import os import pathlib import random import shutil import sys import unittest import tests.utils from testfixtures import LogCapture from tests.utils import cat, sleep_1sec from onlinejudge._implementation import logging from onlinejudge._implementation.command import test class TestTest(unittest.TestC...
b['status'])
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_test.py
snippet_call_test
self.assertEqual
complex_expr
39
import json import os import pathlib import random import shutil import sys import unittest import tests.utils from testfixtures import LogCapture from tests.utils import cat, sleep_1sec from onlinejudge._implementation import logging from onlinejudge._implementation.command import test class TestTest(unittest.TestC...
b['output'])
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_test.py
check_log_lines
self.assertEqual
func_call
21
import json import os import pathlib import random import shutil import sys import unittest import tests.utils from testfixtures import LogCapture from tests.utils import cat, sleep_1sec from onlinejudge._implementation import logging from onlinejudge._implementation.command import test class TestTestLog(unittest.Te...
len(expect))
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_test.py
check_log_lines
self.assertEqual
variable
27
import json import os import pathlib import random import shutil import sys import unittest import tests.utils from testfixtures import LogCapture from tests.utils import cat, sleep_1sec from onlinejudge._implementation import logging from onlinejudge._implementation.command import test class TestTestLog(unittest.Te...
expect_line)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_test.py
assert_each_line_count
assert_*
variable
45
import json import os import pathlib import random import shutil import sys import unittest import tests.utils from testfixtures import LogCapture from tests.utils import cat, sleep_1sec from onlinejudge._implementation import logging from onlinejudge._implementation.command import test class TestTest(unittest.TestC...
user_output)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_test.py
snippet_call_test
self.assertEqual
func_call
26
import json import os import pathlib import random import shutil import sys import unittest import tests.utils from testfixtures import LogCapture from tests.utils import cat, sleep_1sec from onlinejudge._implementation import logging from onlinejudge._implementation.command import test class TestTest(unittest.TestC...
len(expected))
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_test.py
snippet_call_test
self.assertEqual
complex_expr
33
import json import os import pathlib import random import shutil import sys import unittest import tests.utils from testfixtures import LogCapture from tests.utils import cat, sleep_1sec from onlinejudge._implementation import logging from onlinejudge._implementation.command import test class TestTest(unittest.TestC...
b['exitcode'])
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_test.py
assert_each_line_count
assert_*
variable
45
import json import os import pathlib import random import shutil import sys import unittest import tests.utils from testfixtures import LogCapture from tests.utils import cat, sleep_1sec from onlinejudge._implementation import logging from onlinejudge._implementation.command import test class TestTest(unittest.TestC...
testcase_input)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_test.py
assert_each_line_count
assert_*
variable
45
import json import os import pathlib import random import shutil import sys import unittest import tests.utils from testfixtures import LogCapture from tests.utils import cat, sleep_1sec from onlinejudge._implementation import logging from onlinejudge._implementation.command import test class TestTest(unittest.TestC...
testcase_output)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_test.py
snippet_call_test
self.assertTrue
complex_expr
20
import json import os import pathlib import random import shutil import sys import unittest import tests.utils from testfixtures import LogCapture from tests.utils import cat, sleep_1sec from onlinejudge._implementation import logging from onlinejudge._implementation.command import test class TestTest(unittest.TestC...
result['proc'].stdout)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_test.py
check_log_lines
self.assertTrue
func_call
25
import json import os import pathlib import random import shutil import sys import unittest import tests.utils from testfixtures import LogCapture from tests.utils import cat, sleep_1sec from onlinejudge._implementation import logging from onlinejudge._implementation.command import test class TestTestLog(unittest.Te...
result_line.startswith(expect_line))
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/command_version.py
test_version
self.assertEqual
string_literal
12
import os import unittest import tests.utils import onlinejudge class PrintVersionTest(unittest.TestCase): def test_version(self): result = tests.utils.run_in_sandbox(args=['--version'], files=[]) self.assertEqual(result['proc'].stdout,
'online-judge-tools {}\n'.format(onlinejudge.__version__).replace('\n', os.linesep).encode())
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/dispatch.py
test_problem_from_url
self.assertEqual
string_literal
14
import unittest from onlinejudge import dispatch, service class DispatchAtCoderTest(unittest.TestCase): def test_problem_from_url(self): problem = dispatch.problem_from_url('https://atcoder.jp/contests/arc001/tasks/arc001_1') self.assertIsInstance(problem, service.atcoder.AtCoderProblem) s...
'センター採点')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/dispatch.py
test_submission_from_url
self.assertEqual
string_literal
13
import unittest from onlinejudge import dispatch, service class DispatchAtCoderTest(unittest.TestCase): def test_submission_from_url(self): submission = dispatch.submission_from_url('https://atcoder.jp/contests/agc039/submissions/7874055') self.assertIsInstance(submission, service.atcoder.AtCoder...
"agc039")
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/dispatch.py
test_service_from_url
self.assertEqual
string_literal
11
import unittest from onlinejudge import dispatch, service class DispatchAtCoderTest(unittest.TestCase): def test_service_from_url(self): service1 = dispatch.service_from_url('https://atcoder.jp/') self.assertIsInstance(service1, service.atcoder.AtCoderService) self.assertEqual(service1.g...
'AtCoder')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/dispatch.py
test_submission_from_url
self.assertEqual
string_literal
14
import unittest from onlinejudge import dispatch, service class DispatchAtCoderTest(unittest.TestCase): def test_submission_from_url(self): submission = dispatch.submission_from_url('https://atcoder.jp/contests/agc039/submissions/7874055') self.assertIsInstance(submission, service.atcoder.AtCoder...
"agc039_b")
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/dispatch.py
test_service_from_url
self.assertEqual
string_literal
10
import unittest from onlinejudge import dispatch, service class DispatchCodeForcesTest(unittest.TestCase): def test_service_from_url(self): service1 = dispatch.service_from_url('https://codeforces.com/') self.assertEqual(service1.get_name(),
'Codeforces')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/dispatch.py
test_service_from_url
self.assertEqual
string_literal
12
import unittest from onlinejudge import dispatch, service class DispatchAtCoderTest(unittest.TestCase): def test_service_from_url(self): service1 = dispatch.service_from_url('https://atcoder.jp/') self.assertIsInstance(service1, service.atcoder.AtCoderService) self.assertEqual(service1.ge...
'https://atcoder.jp/login')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/dispatch.py
test_problem_from_url
self.assertIsInstance
complex_expr
9
import unittest from onlinejudge import dispatch, service class DispatchAtCoderTest(unittest.TestCase): def test_problem_from_url(self): problem = dispatch.problem_from_url('https://atcoder.jp/contests/arc001/tasks/arc001_1') self.assertIsInstance(problem,
service.atcoder.AtCoderProblem)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/dispatch.py
test_problem_from_url
self.assertIsInstance
complex_expr
12
import unittest from onlinejudge import dispatch, service class DispatchAtCoderTest(unittest.TestCase): def test_problem_from_url(self): problem = dispatch.problem_from_url('https://atcoder.jp/contests/arc001/tasks/arc001_1') self.assertIsInstance(problem, service.atcoder.AtCoderProblem) s...
service.atcoder.AtCoderService)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/dispatch.py
test_contest_from_url
self.assertIsInstance
complex_expr
10
import unittest from onlinejudge import dispatch, service class DispatchAtCoderTest(unittest.TestCase): def test_contest_from_url(self): contest = dispatch.contest_from_url('https://atcoder.jp/contests/agc030') self.assertIsInstance(contest,
service.atcoder.AtCoderContest)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/dispatch.py
test_service_from_url
self.assertEqual
string_literal
12
import unittest from onlinejudge import dispatch, service class DispatchCodeForcesTest(unittest.TestCase): def test_service_from_url(self): service1 = dispatch.service_from_url('https://codeforces.com/') self.assertEqual(service1.get_name(), 'Codeforces') self.assertIsInstance(service1, s...
'https://codeforces.com/enter')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/dispatch.py
test_submission_from_url
self.assertIsInstance
complex_expr
10
import unittest from onlinejudge import dispatch, service class DispatchAtCoderTest(unittest.TestCase): def test_submission_from_url(self): submission = dispatch.submission_from_url('https://atcoder.jp/contests/agc039/submissions/7874055') self.assertIsInstance(submission,
service.atcoder.AtCoderSubmission)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/dispatch.py
test_problem_from_url
self.assertIsInstance
complex_expr
9
import unittest from onlinejudge import dispatch, service class DispatchCodeForcesTest(unittest.TestCase): def test_problem_from_url(self): problem = dispatch.problem_from_url('https://codeforces.com/contest/1244/problem/C') self.assertIsInstance(problem,
service.codeforces.CodeforcesProblem)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/dispatch.py
test_problem_from_url
self.assertIsInstance
complex_expr
10
import unittest from onlinejudge import dispatch, service class DispatchCodeForcesTest(unittest.TestCase): def test_problem_from_url(self): problem = dispatch.problem_from_url('https://codeforces.com/contest/1244/problem/C') self.assertIsInstance(problem, service.codeforces.CodeforcesProblem) ...
service.codeforces.CodeforcesService)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/dispatch.py
test_contest_from_url
self.assertIsInstance
complex_expr
10
import unittest from onlinejudge import dispatch, service class DispatchCodeForcesTest(unittest.TestCase): def test_contest_from_url(self): contest = dispatch.contest_from_url('https://codeforces.com/contest/1244') self.assertIsInstance(contest,
service.codeforces.CodeforcesContest)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/dispatch.py
test_contest_from_url
self.assertEqual
string_literal
12
import unittest from onlinejudge import dispatch, service class DispatchCodeForcesTest(unittest.TestCase): def test_contest_from_url(self): contest = dispatch.contest_from_url('https://codeforces.com/contest/1244') self.assertIsInstance(contest, service.codeforces.CodeforcesContest) self....
'https://codeforces.com/contest/1244')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/dispatch.py
test_submission_from_url
self.assertIsNone
func_call
9
import unittest from onlinejudge import dispatch, service class InvalidDispatchTest(unittest.TestCase): def test_submission_from_url(self): self.assertIsNone(
dispatch.submission_from_url('https://atcoder.jp/contests/agc039'))
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/implementation_language_guessing.py
test_atcoder_3_gcc
self.assertEqual
variable
179
import pathlib import textwrap import unittest import onlinejudge._implementation.command.submit as submit from onlinejudge.type import Language, LanguageId languages_atcoder_3 = [ Language(id=LanguageId('3001'), name='Bash (GNU bash v4.3.11)'), Language(id=LanguageId('3002'), name='C (GCC 5.4.1)'), Langu...
expected)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/main.py
test_invalid_url
self.assertEqual
numeric_literal
10
import unittest from onlinejudge._implementation import main class RequestExceptionTest(unittest.TestCase): def test_invalid_url(self): with self.assertRaises(SystemExit) as e: main.main(["d", "http://invalid_contest"]) self.assertEqual(e.exception.code,
1)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/main.py
test_invalid_url
self.assertRaises
variable
8
import unittest from onlinejudge._implementation import main class RequestExceptionTest(unittest.TestCase): def test_invalid_url(self): with self.assertRaises(
SystemExit)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_anarchygolf.py
test_from_url
self.assertIsInstance
variable
9
import unittest from onlinejudge.service.anarchygolf import AnarchyGolfProblem, AnarchyGolfService from onlinejudge.type import TestCase class AnarchyGolfServiceTest(unittest.TestCase): def test_from_url(self): self.assertIsInstance(AnarchyGolfService.from_url('http://golf.shinh.org/'),
AnarchyGolfService)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_anarchygolf.py
test_download_sample_cases
self.assertEqual
collection
14
import unittest from onlinejudge.service.anarchygolf import AnarchyGolfProblem, AnarchyGolfService from onlinejudge.type import TestCase class AnarchyGolfProblemTest(unittest.TestCase): def test_download_sample_cases(self): self.assertEqual(AnarchyGolfProblem.from_url('http://golf.shinh.org/p.rb?last+non+...
[ TestCase(name='sample-1', input_name='Sample input', input_data=b'', output_name='Sample output', output_data=b'Hello, world!\n'), TestCase(name='sample-2', input_name='Sample input', input_data=b'golfers', output_name='Sample output', output_data=b'Hello, golfers!\n'), TestCase(name='sample-3', input_name='Sample in...
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_aoj.py
test_from_url
self.assertEqual
string_literal
10
import unittest from onlinejudge.service.aoj import AOJArenaProblem, AOJProblem, AOJService from onlinejudge.type import TestCase class AOJArenaProblemTest(unittest.TestCase): def test_from_url(self): self.assertEqual(AOJArenaProblem.from_url('https://onlinejudge.u-aizu.ac.jp/services/room.html#RitsCamp19...
'A')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_aoj.py
test_from_url
self.assertEqual
string_literal
11
import unittest from onlinejudge.service.aoj import AOJArenaProblem, AOJProblem, AOJService from onlinejudge.type import TestCase class AOJArenaProblemTest(unittest.TestCase): def test_from_url(self): self.assertEqual(AOJArenaProblem.from_url('https://onlinejudge.u-aizu.ac.jp/services/room.html#RitsCamp19...
'D')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_aoj.py
test_from_url
self.assertEqual
string_literal
10
import unittest from onlinejudge.service.aoj import AOJArenaProblem, AOJProblem, AOJService from onlinejudge.type import TestCase class AOJProblemTest(unittest.TestCase): def test_from_url(self): self.assertEqual(AOJProblem.from_url('http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=DSL_1_A').probl...
'0100')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_aoj.py
test_from_url
self.assertEqual
string_literal
11
import unittest from onlinejudge.service.aoj import AOJArenaProblem, AOJProblem, AOJService from onlinejudge.type import TestCase class AOJProblemTest(unittest.TestCase): def test_from_url(self): self.assertEqual(AOJProblem.from_url('http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=DSL_1_A').probl...
'2256')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_aoj.py
test_download_sample_cases
self.assertEqual
collection
16
import unittest from onlinejudge.service.aoj import AOJArenaProblem, AOJProblem, AOJService from onlinejudge.type import TestCase class AOJProblemTest(unittest.TestCase): def test_download_sample_cases(self): self.assertEqual(AOJProblem.from_url('http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=D...
[ TestCase(name='sample-1', input_name='1', input_data=b'2 2 1\n0 1\n2 1\n3 3 1\n1 1\n2 1\n0 0 0\n', output_name='1', output_data=b'0.5000000000\n0.1666666667\n'), ])
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_aoj.py
test_download_sample_cases
self.assertEqual
collection
10
import unittest from onlinejudge.service.aoj import AOJArenaProblem, AOJProblem, AOJService from onlinejudge.type import TestCase class AOJArenaProblemTest(unittest.TestCase): def test_download_sample_cases(self): self.assertEqual(AOJArenaProblem.from_url('https://onlinejudge.u-aizu.ac.jp/services/room....
[ TestCase(name='sample-1', input_name='1', input_data=b'koukyoukoukokukikou\nabrakadabra\nacmicpc\njapaque\nhelloworld\n#\n', output_name='1', output_data=b'0\n2\n4\n5\n7\n'), ])
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_aoj.py
test_download_sample_cases
self.assertEqual
collection
24
import unittest from onlinejudge.service.aoj import AOJArenaProblem, AOJProblem, AOJService from onlinejudge.type import TestCase class AOJProblemTest(unittest.TestCase): def test_download_sample_cases(self): self.assertEqual(AOJProblem.from_url('http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=D...
[ TestCase(name='sample-1', input_name='1', input_data=b'4\n0 0\n10 0\n10 10\n0 10\n3\n0 0\n1 0\n0 1\n0\n', output_name='1', output_data=b'Case 1: 14.142135624\nCase 2: 1.41421356\n'), ])
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_aoj.py
test_download_sample_cases
self.assertEqual
collection
10
import unittest from onlinejudge.service.aoj import AOJArenaProblem, AOJProblem, AOJService from onlinejudge.type import TestCase class AOJProblemTest(unittest.TestCase): def test_download_sample_cases(self): self.assertEqual(AOJProblem.from_url('http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=...
[ TestCase(name='sample-1', input_name='1', input_data=b'5 12\n0 1 4\n0 2 3\n1 1 2\n1 3 4\n1 1 4\n1 3 2\n0 1 3\n1 2 4\n1 3 0\n0 0 4\n1 0 2\n1 3 0\n', output_name='1', output_data=b'0\n0\n1\n1\n1\n0\n1\n1\n'), ])
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_aoj.py
test_download_sample_cases
self.assertEqual
collection
13
import unittest from onlinejudge.service.aoj import AOJArenaProblem, AOJProblem, AOJService from onlinejudge.type import TestCase class AOJProblemTest(unittest.TestCase): def test_download_sample_cases(self): self.assertEqual(AOJProblem.from_url('http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=D...
[ TestCase(name='sample-1', input_name='1', input_data=b'4\n1001 2000 520\n1002 1800 450\n1003 1600 625\n1001 200 1220\n2\n1001 100 3\n1005 1000 100\n2\n2013 5000 100\n2013 5000 100\n0\n', output_name='1', output_data=b'1001\n1003\nNA\n2013\n'), ])
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_aoj.py
test_download_sample_cases_not_registered
self.assertEqual
collection
11
import unittest from onlinejudge.service.aoj import AOJArenaProblem, AOJProblem, AOJService from onlinejudge.type import TestCase class AOJArenaProblemTest(unittest.TestCase): def test_download_sample_cases_not_registered(self): # see: https://github.com/kmyk/online-judge-tools/issues/207 self.a...
[ TestCase(name='sample-1', input_name='入力例1', input_data=b'4\n2 0 -2 1\n', output_name='出力例1', output_data=b'1\n1\n'), TestCase(name='sample-2', input_name='入力例2', input_data=b'3\n2 -2 -2\n', output_name='出力例2', output_data=b'3\n1\n2\n3\n'), TestCase(name='sample-3', input_name='入力例3', input_data=b'2\n-1 0\n', output_...
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_atcoder.py
test_iterate_contests
self.assertEqual
numeric_literal
20
import unittest import requests from onlinejudge.service.atcoder import AtCoderContest, AtCoderProblem, AtCoderProblemDetailedData, AtCoderService, AtCoderSubmission from onlinejudge.type import TestCase class AtCoderSerivceTest(unittest.TestCase): def test_iterate_contests(self): contests = list(AtCode...
3)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_atcoder.py
test_iterate_contests
self.assertEqual
numeric_literal
21
import unittest import requests from onlinejudge.service.atcoder import AtCoderContest, AtCoderProblem, AtCoderProblemDetailedData, AtCoderService, AtCoderSubmission from onlinejudge.type import TestCase class AtCoderSerivceTest(unittest.TestCase): def test_iterate_contests(self): contests = list(AtCode...
2)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_atcoder.py
test_load_details
self.assertEqual
numeric_literal
17
import unittest import requests from onlinejudge.service.atcoder import AtCoderContest, AtCoderProblem, AtCoderProblemDetailedData, AtCoderService, AtCoderSubmission from onlinejudge.type import TestCase class AtCoderContestTest(unittest.TestCase): def test_load_details(self): contest = AtCoderContest.f...
1)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_atcoder.py
test_load_details
self.assertEqual
numeric_literal
30
import unittest import requests from onlinejudge.service.atcoder import AtCoderContest, AtCoderProblem, AtCoderProblemDetailedData, AtCoderService, AtCoderSubmission from onlinejudge.type import TestCase class AtCoderContestTest(unittest.TestCase): def test_load_details(self): contest = AtCoderContest.f...
6)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_atcoder.py
test_list_problems
self.assertEqual
numeric_literal
14
import unittest import requests from onlinejudge.service.atcoder import AtCoderContest, AtCoderProblem, AtCoderProblemDetailedData, AtCoderService, AtCoderSubmission from onlinejudge.type import TestCase class AtCoderContestTest(unittest.TestCase): def test_list_problems(self): contest = AtCoderContest....
7)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_atcoder.py
test_list_problems_memory_limit_is_zero
self.assertEqual
numeric_literal
15
import unittest import requests from onlinejudge.service.atcoder import AtCoderContest, AtCoderProblem, AtCoderProblemDetailedData, AtCoderService, AtCoderSubmission from onlinejudge.type import TestCase class AtCoderContestTest(unittest.TestCase): def test_list_problems_memory_limit_is_zero(self): cont...
0)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_atcoder.py
test_submission_info_compile_error
self.assertEqual
numeric_literal
15
import unittest import requests from onlinejudge.service.atcoder import AtCoderContest, AtCoderProblem, AtCoderProblemDetailedData, AtCoderService, AtCoderSubmission from onlinejudge.type import TestCase class AtCoderSubmissionTest(unittest.TestCase): def test_submission_info_compile_error(self): submis...
4)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_codechef.py
test_from_url
self.assertEqual
string_literal
10
import unittest from onlinejudge.service.codechef import CodeChefProblem, CodeChefService from onlinejudge.type import SampleParseError, TestCase class CodeChefProblemTest(unittest.TestCase): def test_from_url(self): self.assertEqual(CodeChefProblem.from_url('https://www.codechef.com/COOK113A/problems/DAN...
'DAND')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_codechef.py
test_from_url
self.assertEqual
string_literal
9
import unittest from onlinejudge.service.codechef import CodeChefProblem, CodeChefService from onlinejudge.type import SampleParseError, TestCase class CodeChefProblemTest(unittest.TestCase): def test_from_url(self): self.assertEqual(CodeChefProblem.from_url('https://www.codechef.com/COOK113A/problems/DA...
'COOK113A')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_codechef.py
test_from_url
self.assertIsInstance
variable
9
import unittest from onlinejudge.service.codechef import CodeChefProblem, CodeChefService from onlinejudge.type import SampleParseError, TestCase class CodeChefSerivceTest(unittest.TestCase): def test_from_url(self): self.assertIsInstance(CodeChefService.from_url('https://www.codechef.com/'),
CodeChefService)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_codechef.py
test_download_samples_todo
self.assertRaises
variable
10
import unittest from onlinejudge.service.codechef import CodeChefProblem, CodeChefService from onlinejudge.type import SampleParseError, TestCase class CodeChefProblemTest(unittest.TestCase): def test_download_samples_todo(self): self.assertRaises(
SampleParseError)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_codechef.py
test_from_url
self.assertIsNone
func_call
10
import unittest from onlinejudge.service.codechef import CodeChefProblem, CodeChefService from onlinejudge.type import SampleParseError, TestCase class CodeChefSerivceTest(unittest.TestCase): def test_from_url(self): self.assertIsInstance(CodeChefService.from_url('https://www.codechef.com/'), CodeChefServ...
CodeChefService.from_url('https://www.facebook.com/'))
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_codechef.py
test_download_samples
self.assertEqual
collection
13
import unittest from onlinejudge.service.codechef import CodeChefProblem, CodeChefService from onlinejudge.type import SampleParseError, TestCase class CodeChefProblemTest(unittest.TestCase): def test_download_samples(self): self.assertEqual(CodeChefProblem.from_url('https://www.codechef.com/COOK113A/pro...
[ TestCase(name='sample', input_name='Sample Input', input_data=b'4 2\n', output_name='Sample Output', output_data=b'12\n'), ])
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_codechef.py
test_download_samples
self.assertEqual
collection
10
import unittest from onlinejudge.service.codechef import CodeChefProblem, CodeChefService from onlinejudge.type import SampleParseError, TestCase class CodeChefProblemTest(unittest.TestCase): def test_download_samples(self): self.assertEqual(CodeChefProblem.from_url('https://www.codechef.com/COOK113A/pr...
[ TestCase(name='sample', input_name='Example Input', input_data=b'6\n1 9 3\n4 7 1\n10 75 12\n3 8 3\n5 10 2\n192 913893 3812\n', output_name='Example Output', output_data=b'4\n7\n64\n4\n8\n909312\n'), ])
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_codeforces.py
test_list_problems_data
self.assertEqual
numeric_literal
11
import unittest from onlinejudge.service.codeforces import CodeforcesContest, CodeforcesProblem, CodeforcesService class CodeforcesContestTest(unittest.TestCase): def test_list_problems_data(self): contest = CodeforcesContest.from_url('https://codeforces.com/contest/1157') problems = contest.list...
8)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_codeforces.py
test_from_url
self.assertEqual
numeric_literal
8
import unittest from onlinejudge.service.codeforces import CodeforcesContest, CodeforcesProblem, CodeforcesService class CodeforcesContestTest(unittest.TestCase): def test_from_url(self): self.assertEqual(CodeforcesContest.from_url('http://codeforces.com/contest/542').contest_id,
542)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_codeforces.py
test_from_url
self.assertEqual
numeric_literal
8
import unittest from onlinejudge.service.codeforces import CodeforcesContest, CodeforcesProblem, CodeforcesService class CodeforcesProblemTest(unittest.TestCase): def test_from_url(self): self.assertEqual(CodeforcesProblem.from_url('http://codeforces.com/problemset/problem/700/B').contest_id,
700)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_codeforces.py
test_from_url
self.assertEqual
string_literal
9
import unittest from onlinejudge.service.codeforces import CodeforcesContest, CodeforcesProblem, CodeforcesService class CodeforcesProblemTest(unittest.TestCase): def test_from_url(self): self.assertEqual(CodeforcesProblem.from_url('http://codeforces.com/problemset/problem/700/B').contest_id, 700) ...
'B')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_codeforces.py
test_from_url
self.assertEqual
numeric_literal
10
import unittest from onlinejudge.service.codeforces import CodeforcesContest, CodeforcesProblem, CodeforcesService class CodeforcesProblemTest(unittest.TestCase): def test_from_url(self): self.assertEqual(CodeforcesProblem.from_url('http://codeforces.com/problemset/problem/700/B').contest_id, 700) ...
538)
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_codeforces.py
test_from_url
self.assertEqual
string_literal
11
import unittest from onlinejudge.service.codeforces import CodeforcesContest, CodeforcesProblem, CodeforcesService class CodeforcesProblemTest(unittest.TestCase): def test_from_url(self): self.assertEqual(CodeforcesProblem.from_url('http://codeforces.com/problemset/problem/700/B').contest_id, 700) ...
'H')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_codeforces.py
test_list_problems_data
self.assertEqual
string_literal
17
import unittest from onlinejudge.service.codeforces import CodeforcesContest, CodeforcesProblem, CodeforcesService class CodeforcesContestTest(unittest.TestCase): def test_list_problems_data(self): contest = CodeforcesContest.from_url('https://codeforces.com/contest/1157') problems = contest.list...
'E')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor
online-judge-tools/oj
23a1512fbad971d410c3c71593463a84e4e77dff
134
train
train
tests/service_codeforces.py
test_from_url_corner_cases
self.assertEqual
string_literal
10
import unittest from onlinejudge.service.codeforces import CodeforcesContest, CodeforcesProblem, CodeforcesService class CodeforcesProblemTest(unittest.TestCase): def test_from_url_corner_cases(self): # 0 self.assertEqual(CodeforcesProblem.from_url('https://codeforces.com/contest/1105/problem/0'...
'A')
23a1512fbad971d410c3c71593463a84e4e77dff
134
v2_extractor_at_anchor