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
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/api/views/test_profile.py
test_retrieve_ok
assert_*
complex_expr
32
import pytest from rest_framework import status from rest_framework.test import force_authenticate from tests.helpers.api_views import assert_response_is_ok from tests.helpers.views import ViewProvider from .base import APIViewTestCase class ProfileViewTestCase(APIViewTestCase): VIEW_NAME = 'profile' USERNAM...
status.HTTP_200_OK)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/auth_token_managers/test_rest_framework.py
test_when_token_created_then_revoke_token_succeeds
assert_*
collection
14
import pytest from rest_framework.authtoken.models import Token from rest_registration.auth_token_managers import RestFrameworkAuthTokenManager from rest_registration.exceptions import AuthTokenError def auth_token_manager(): return RestFrameworkAuthTokenManager() def test_when_token_created_then_revoke_token_su...
[])
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/auth_token_managers/test_rest_framework.py
test_when_token_created_then_revoke_token_fails_with_another_token
assert_*
collection
17
import pytest from rest_framework.authtoken.models import Token from rest_registration.auth_token_managers import RestFrameworkAuthTokenManager from rest_registration.exceptions import AuthTokenError def auth_token_manager(): return RestFrameworkAuthTokenManager() def test_when_token_created_then_revoke_token_fa...
[token_key])
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/auth_token_managers/test_rest_framework.py
test_when_no_token_then_revoke_token_fails
pytest.raises
variable
13
import pytest from rest_framework.authtoken.models import Token from rest_registration.auth_token_managers import RestFrameworkAuthTokenManager from rest_registration.exceptions import AuthTokenError def auth_token_manager(): return RestFrameworkAuthTokenManager() def test_when_no_token_then_revoke_token_fails( ...
AuthTokenError)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/auth_token_managers/test_rest_framework.py
assert_token_keys_equals
assert
variable
12
import pytest from rest_framework.authtoken.models import Token from rest_registration.auth_token_managers import RestFrameworkAuthTokenManager from rest_registration.exceptions import AuthTokenError def auth_token_manager(): return RestFrameworkAuthTokenManager() def assert_token_keys_equals(user, expected_toke...
expected_token_keys
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/contrib/verification_redirects/test_register.py
test_ok
self.assertEqual
numeric_literal
21
from django.test.utils import override_settings from rest_registration.api.views.register import RegisterSigner from .base import ViewTestCase VERIFICATION_URL = '/accounts/verify-account/' SUCCESS_URL = '/accounts/verify-account/success/' FAILURE_URL = '/accounts/verify-account/failure/' class VerifyRegistrationTe...
302)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/contrib/verification_redirects/test_register.py
test_ok
self.assertEqual
variable
22
from django.test.utils import override_settings from rest_registration.api.views.register import RegisterSigner from .base import ViewTestCase VERIFICATION_URL = '/accounts/verify-account/' SUCCESS_URL = '/accounts/verify-account/success/' FAILURE_URL = '/accounts/verify-account/failure/' class VerifyRegistrationTe...
SUCCESS_URL)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/contrib/verification_redirects/test_register.py
test_tampered_signature
self.assertEqual
variable
23
from django.test.utils import override_settings from rest_registration.api.views.register import RegisterSigner from .base import ViewTestCase VERIFICATION_URL = '/accounts/verify-account/' SUCCESS_URL = '/accounts/verify-account/success/' FAILURE_URL = '/accounts/verify-account/failure/' class VerifyRegistrationTe...
FAILURE_URL)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/contrib/verification_redirects/test_register.py
test_ok
self.assertFalse
complex_expr
17
from django.test.utils import override_settings from rest_registration.api.views.register import RegisterSigner from .base import ViewTestCase VERIFICATION_URL = '/accounts/verify-account/' SUCCESS_URL = '/accounts/verify-account/success/' FAILURE_URL = '/accounts/verify-account/failure/' class VerifyRegistrationTe...
user.is_active)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/contrib/verification_redirects/test_register_email.py
test_ok
self.assertEqual
numeric_literal
28
from django.test.utils import override_settings from rest_registration.api.views.register_email import RegisterEmailSigner from .base import ViewTestCase VERIFICATION_URL = '/accounts/verify-email/' SUCCESS_URL = '/accounts/verify-email/success/' FAILURE_URL = '/accounts/verify-email/failure/' class VerifyEmailTest...
302)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/contrib/verification_redirects/test_register_email.py
test_tampered_signature
self.assertEqual
complex_expr
32
from django.test.utils import override_settings from rest_registration.api.views.register_email import RegisterEmailSigner from .base import ViewTestCase VERIFICATION_URL = '/accounts/verify-email/' SUCCESS_URL = '/accounts/verify-email/success/' FAILURE_URL = '/accounts/verify-email/failure/' class VerifyEmailTest...
self.email)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/contrib/verification_redirects/test_register_email.py
test_ok
self.assertEqual
variable
29
from django.test.utils import override_settings from rest_registration.api.views.register_email import RegisterEmailSigner from .base import ViewTestCase VERIFICATION_URL = '/accounts/verify-email/' SUCCESS_URL = '/accounts/verify-email/success/' FAILURE_URL = '/accounts/verify-email/failure/' class VerifyEmailTest...
SUCCESS_URL)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/contrib/verification_redirects/test_register_email.py
test_tampered_signature
self.assertEqual
variable
30
from django.test.utils import override_settings from rest_registration.api.views.register_email import RegisterEmailSigner from .base import ViewTestCase VERIFICATION_URL = '/accounts/verify-email/' SUCCESS_URL = '/accounts/verify-email/success/' FAILURE_URL = '/accounts/verify-email/failure/' class VerifyEmailTest...
FAILURE_URL)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/contrib/verification_redirects/test_register_email.py
test_ok
self.assertEqual
complex_expr
31
from django.test.utils import override_settings from rest_registration.api.views.register_email import RegisterEmailSigner from .base import ViewTestCase VERIFICATION_URL = '/accounts/verify-email/' SUCCESS_URL = '/accounts/verify-email/success/' FAILURE_URL = '/accounts/verify-email/failure/' class VerifyEmailTest...
self.new_email)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/contrib/verification_redirects/test_reset_password.py
test_ok
self.assertEqual
numeric_literal
23
from django.test.utils import override_settings from rest_registration.api.views.reset_password import ResetPasswordSigner from .base import ViewTestCase VERIFICATION_URL = '/accounts/reset-password/' SUCCESS_URL = '/accounts/reset-password/success/' FAILURE_URL = '/accounts/reset-password/failure/' class ResetPass...
302)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/contrib/verification_redirects/test_reset_password.py
test_ok
self.assertEqual
variable
24
from django.test.utils import override_settings from rest_registration.api.views.reset_password import ResetPasswordSigner from .base import ViewTestCase VERIFICATION_URL = '/accounts/reset-password/' SUCCESS_URL = '/accounts/reset-password/success/' FAILURE_URL = '/accounts/reset-password/failure/' class ResetPass...
SUCCESS_URL)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/contrib/verification_redirects/test_reset_password.py
test_tampered_signature
self.assertEqual
variable
25
from django.test.utils import override_settings from rest_registration.api.views.reset_password import ResetPasswordSigner from .base import ViewTestCase VERIFICATION_URL = '/accounts/reset-password/' SUCCESS_URL = '/accounts/reset-password/success/' FAILURE_URL = '/accounts/reset-password/failure/' class ResetPass...
FAILURE_URL)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/contrib/verification_redirects/test_reset_password.py
test_ok
self.assertTrue
func_call
26
from django.test.utils import override_settings from rest_registration.api.views.reset_password import ResetPasswordSigner from .base import ViewTestCase VERIFICATION_URL = '/accounts/reset-password/' SUCCESS_URL = '/accounts/reset-password/success/' FAILURE_URL = '/accounts/reset-password/failure/' class ResetPass...
user.check_password(new_password))
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/contrib/verification_redirects/test_reset_password.py
test_tampered_signature
self.assertTrue
func_call
27
from django.test.utils import override_settings from rest_registration.api.views.reset_password import ResetPasswordSigner from .base import ViewTestCase VERIFICATION_URL = '/accounts/reset-password/' SUCCESS_URL = '/accounts/reset-password/success/' FAILURE_URL = '/accounts/reset-password/failure/' class ResetPass...
user.check_password(old_password))
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/decorators/test_api_view_serializer_class_getter.py
test_coreapi_autoschema_success
assert
numeric_literal
37
from collections.abc import Callable import pytest from rest_framework import renderers from rest_framework import request as rest_request from rest_framework import serializers from rest_framework.compat import uritemplate from rest_framework.decorators import api_view from rest_framework.response import Response fro...
1
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/decorators/test_api_view_serializer_class_getter.py
test_browsable_renderer_put_render
assert
collection
46
from collections.abc import Callable import pytest from rest_framework import renderers from rest_framework import request as rest_request from rest_framework import serializers from rest_framework.compat import uritemplate from rest_framework.decorators import api_view from rest_framework.response import Response fro...
{}
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/decorators/test_api_view_serializer_class_getter.py
test_coreapi_autoschema_success
assert
none_literal
35
from collections.abc import Callable import pytest from rest_framework import renderers from rest_framework import request as rest_request from rest_framework import serializers from rest_framework.compat import uritemplate from rest_framework.decorators import api_view from rest_framework.response import Response fro...
None
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/decorators/test_api_view_serializer_class_getter.py
test_not_a_view
pytest.raises
variable
28
from collections.abc import Callable import pytest from rest_framework import renderers from rest_framework import request as rest_request from rest_framework import serializers from rest_framework.compat import uritemplate from rest_framework.decorators import api_view from rest_framework.response import Response fro...
Exception)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/decorators/test_api_view_serializer_class_getter.py
test_coreapi_autoschema_success
assert
string_literal
38
from collections.abc import Callable import pytest from rest_framework import renderers from rest_framework import request as rest_request from rest_framework import serializers from rest_framework.compat import uritemplate from rest_framework.decorators import api_view from rest_framework.response import Response fro...
'test_field'
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/decorators/test_api_view_serializer_class_getter.py
test_success
assert
variable
31
from collections.abc import Callable import pytest from rest_framework import renderers from rest_framework import request as rest_request from rest_framework import serializers from rest_framework.compat import uritemplate from rest_framework.decorators import api_view from rest_framework.response import Response fro...
ExampleSerializer
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/decorators/test_api_view_serializer_class_getter.py
test_default_schema_success
assert
variable
43
from collections.abc import Callable import pytest from rest_framework import renderers from rest_framework import request as rest_request from rest_framework import serializers from rest_framework.compat import uritemplate from rest_framework.decorators import api_view from rest_framework.response import Response fro...
expected_operation_schema
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/helpers/api_views.py
assert_response_is_ok
assert_*
variable
27
from textwrap import dedent import rest_framework from django.contrib.sessions.middleware import SessionMiddleware from rest_framework import status from rest_framework.test import APIRequestFactory from .views import ViewProvider rest_framework_version_info = tuple( int(s) for s in rest_framework.__version__.sp...
response)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/helpers/api_views.py
_assert_response
assert
variable
72
from textwrap import dedent import rest_framework from django.contrib.sessions.middleware import SessionMiddleware from rest_framework import status from rest_framework.test import APIRequestFactory from .views import ViewProvider rest_framework_version_info = tuple( int(s) for s in rest_framework.__version__.sp...
status_code
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/helpers/api_views.py
_assert_response
assert
variable
70
from textwrap import dedent import rest_framework from django.contrib.sessions.middleware import SessionMiddleware from rest_framework import status from rest_framework.test import APIRequestFactory from .views import ViewProvider rest_framework_version_info = tuple( int(s) for s in rest_framework.__version__.sp...
expected_status_code
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/helpers/common.py
assert_len_equals
assert
variable
39
from django.contrib.auth import get_user_model def shallow_merge_dicts(dictionary, *other_dicts): result = {} result.update(dictionary) for other_dict in other_dicts: result.update(other_dict) return result def create_test_user(**kwargs): password = kwargs.pop('password', None) user_m...
expected_len
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/helpers/email.py
_assert_emails_sent
assert
variable
31
import contextlib from collections.abc import Sequence from django.core import mail def assert_one_email_sent(sent_emails): _assert_emails_sent(sent_emails, 1) return sent_emails[0] def assert_no_email_sent(sent_emails): _assert_emails_sent(sent_emails, 0) def capture_sent_emails(): sent_emails = Em...
expected_num
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/helpers/testcases.py
_assert_mails_sent
self.assertEqual
variable
68
import contextlib import re from django.contrib.auth import get_user_model from django.test import TestCase as DjangoTestCase from django.urls import reverse from rest_registration.utils.signers import get_current_timestamp from .common import create_test_user from .email import capture_sent_emails from .timer impor...
expected_num)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/helpers/text.py
_assert_urls_in_text
assert
variable
29
import re def assert_no_url_in_text(text): _assert_urls_in_text(text, 0, r'https?://.*') def assert_one_url_line_in_text(text): url_lines = _assert_urls_in_text(text, 1, r'^(?P<url>https?://.*)$') return url_lines[0] def assert_one_url_in_brackets_in_text(text): urls = _assert_urls_in_text(text, 1, r...
expected_num
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/helpers/timer.py
start_time
assert
none_literal
24
import contextlib from rest_registration.utils.signers import get_current_timestamp def capture_time(current_timestamp_getter=get_current_timestamp): timer = Timer(current_timestamp_getter=current_timestamp_getter) timer.set_start_time() try: yield timer finally: timer.set_end_time() ...
None
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/helpers/verification.py
assert_valid_verification_url
assert
variable
26
from typing import Callable, Dict, Iterable, Optional, Tuple, Type from urllib.parse import parse_qs, urlparse import pytest from rest_registration.utils.signers import URLParamsSigner from tests.helpers.timer import Timer def assert_valid_verification_url( url: str, expected_path: Optional[str] = No...
expected_path
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/helpers/verification.py
assert_valid_verification_url
assert
variable
32
from typing import Callable, Dict, Iterable, Optional, Tuple, Type from urllib.parse import parse_qs, urlparse import pytest from rest_registration.utils.signers import URLParamsSigner from tests.helpers.timer import Timer def assert_valid_verification_url( url: str, expected_path: Optional[str] = No...
url_sig_timestamp
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/helpers/verification.py
assert_valid_verification_url
assert
func_call
28
from typing import Callable, Dict, Iterable, Optional, Tuple, Type from urllib.parse import parse_qs, urlparse import pytest from rest_registration.utils.signers import URLParamsSigner from tests.helpers.timer import Timer def assert_valid_verification_url( url: str, expected_path: Optional[str] = No...
set(expected_fields)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/signers/test_register.py
test_signer_with_different_secret_keys
assert
complex_expr
26
from django.test.utils import override_settings from rest_registration.signers.register import RegisterSigner from tests.helpers.constants import REGISTER_VERIFICATION_URL, VERIFICATION_FROM_EMAIL from tests.helpers.settings import override_rest_registration_settings from tests.helpers.testcases import TestCase class...
signatures[1]
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/signers/test_register_email.py
test_signer_with_different_secret_keys
assert
complex_expr
33
from django.test.utils import override_settings from rest_registration.api.views.register_email import RegisterEmailSigner from tests.helpers.constants import ( REGISTER_EMAIL_VERIFICATION_URL, VERIFICATION_FROM_EMAIL ) from tests.helpers.settings import override_rest_registration_settings from tests.helpers.t...
signatures[1]
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/signers/test_reset_password.py
test_signer_with_different_secret_keys
assert
complex_expr
29
from django.test.utils import override_settings from rest_registration.api.views.reset_password import ResetPasswordSigner from tests.helpers.constants import ( RESET_PASSWORD_VERIFICATION_URL, VERIFICATION_FROM_EMAIL ) from tests.helpers.settings import override_rest_registration_settings from tests.helpers.t...
signatures[1]
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/test_checks.py
test_when_one_unique_login_field_then_check_succeeds
assert_*
collection
29
from django.apps import apps from django.core.checks.registry import registry from django.test import TestCase from django.test.utils import override_settings from rest_registration.auth_token_managers import AbstractAuthTokenManager from rest_registration.checks import ErrorCode, WarningCode from rest_registration.se...
[])
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/test_checks.py
test_when_authtokenmanager_does_not_implement_methods_then_check_fails
assert
variable
37
from django.apps import apps from django.core.checks.registry import registry from django.test import TestCase from django.test.utils import override_settings from rest_registration.auth_token_managers import AbstractAuthTokenManager from rest_registration.checks import ErrorCode, WarningCode from rest_registration.se...
expected_messages
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/test_checks.py
assert_error_codes_match
assert
variable
36
from django.apps import apps from django.core.checks.registry import registry from django.test import TestCase from django.test.utils import override_settings from rest_registration.auth_token_managers import AbstractAuthTokenManager from rest_registration.checks import ErrorCode, WarningCode from rest_registration.se...
expected_error_ids
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/test_checks.py
assert_error_codes_match
assert_*
variable
27
from django.apps import apps from django.core.checks.registry import registry from django.test import TestCase from django.test.utils import override_settings from rest_registration.auth_token_managers import AbstractAuthTokenManager from rest_registration.checks import ErrorCode, WarningCode from rest_registration.se...
expected_error_codes)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/test_checks.py
test_deprecated_login_serializer_check_fails
assert_*
collection
29
from django.apps import apps from django.core.checks.registry import registry from django.test import TestCase from django.test.utils import override_settings from rest_registration.auth_token_managers import AbstractAuthTokenManager from rest_registration.checks import ErrorCode, WarningCode from rest_registration.se...
[ WarningCode.DEPRECATION, ])
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/test_checks.py
test_checks_preferred_setup_missing_sender_email
assert_*
collection
35
from django.apps import apps from django.core.checks.registry import registry from django.test import TestCase from django.test.utils import override_settings from rest_registration.auth_token_managers import AbstractAuthTokenManager from rest_registration.checks import ErrorCode, WarningCode from rest_registration.se...
[ ErrorCode.NO_VER_FROM_EMAIL, ])
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/test_checks.py
test_checks_missing_auth_installed
assert_*
collection
45
from django.apps import apps from django.core.checks.registry import registry from django.test import TestCase from django.test.utils import override_settings from rest_registration.auth_token_managers import AbstractAuthTokenManager from rest_registration.checks import ErrorCode, WarningCode from rest_registration.se...
[ ErrorCode.NO_AUTH_INSTALLED, ])
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/test_checks.py
test_checks_missing_token_auth_config
assert_*
collection
37
from django.apps import apps from django.core.checks.registry import registry from django.test import TestCase from django.test.utils import override_settings from rest_registration.auth_token_managers import AbstractAuthTokenManager from rest_registration.checks import ErrorCode, WarningCode from rest_registration.se...
[ ErrorCode.NO_TOKEN_AUTH_CONFIG, ])
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/test_settings.py
test_user_settings
self.assertEqual
numeric_literal
21
from django.test import TestCase from django.test.utils import override_settings from rest_registration.utils.nested_settings import NestedSettings class RegistrationSettingsTestCase(TestCase): def setUp(self): self.defaults = { 'A': 2, 'B': 3, } def test_user_setting...
1)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/test_settings.py
test_user_settings
self.assertEqual
numeric_literal
22
from django.test import TestCase from django.test.utils import override_settings from rest_registration.utils.nested_settings import NestedSettings class RegistrationSettingsTestCase(TestCase): def setUp(self): self.defaults = { 'A': 2, 'B': 3, } def test_user_setting...
3)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/test_settings.py
test_django_settings
self.assertEqual
numeric_literal
23
from django.test import TestCase from django.test.utils import override_settings from rest_registration.utils.nested_settings import NestedSettings class RegistrationSettingsTestCase(TestCase): def setUp(self): self.defaults = { 'A': 2, 'B': 3, } @override_settings( ...
5)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/utils/test_html.py
test_convert_html_to_text_fails
pytest.raises
variable
16
from textwrap import dedent import pytest from rest_registration.utils.html import convert_html_to_text @pytest.mark.parametrize('html,kwargs', [ pytest.param( '<![spam]><html><body>eggs</body><html>', {'preserve_urls': True}, id='invalid declaration', ), ]) def test_convert_html_to_t...
ValueError)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/utils/test_html.py
test_convert_html_to_text_succeeds
assert
variable
145
from textwrap import dedent import pytest from rest_registration.utils.html import convert_html_to_text @pytest.mark.parametrize('html,kwargs,expected_text', [ pytest.param( dedent('''\ <!DOCTYPE html> <html><body> Look &amp; click <a href="https://...
expected_text
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/utils/test_signers.py
test_get_url
self.assertIn
variable
28
import datetime import time from unittest.mock import patch from urllib.parse import urlencode from django.core.signing import BadSignature, SignatureExpired from django.test import TestCase from rest_framework.test import APIRequestFactory from rest_registration.utils.signers import DataSigner, URLParamsSigner clas...
url)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/utils/test_signers.py
test_verify_tamper_email
self.assertRaises
variable
27
import datetime import time from unittest.mock import patch from urllib.parse import urlencode from django.core.signing import BadSignature, SignatureExpired from django.test import TestCase from rest_framework.test import APIRequestFactory from rest_registration.utils.signers import DataSigner, URLParamsSigner clas...
BadSignature)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/utils/test_signers.py
test_verify_expired
self.assertRaises
variable
28
import datetime import time from unittest.mock import patch from urllib.parse import urlencode from django.core.signing import BadSignature, SignatureExpired from django.test import TestCase from rest_framework.test import APIRequestFactory from rest_registration.utils.signers import DataSigner, URLParamsSigner clas...
SignatureExpired)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/utils/test_signers.py
test_signer_timestamp_present
self.assertSetEqual
collection
21
import datetime import time from unittest.mock import patch from urllib.parse import urlencode from django.core.signing import BadSignature, SignatureExpired from django.test import TestCase from rest_framework.test import APIRequestFactory from rest_registration.utils.signers import DataSigner, URLParamsSigner clas...
{'email', 'timestamp', 'signature'})
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/utils/test_users.py
test_authenticate_by_login_data_fails
pytest.raises
variable
36
import pytest from rest_registration.exceptions import UserNotFound from rest_registration.utils.users import ( authenticate_by_login_data, get_user_field_names, get_user_public_field_names ) from tests.helpers.constants import USER_PASSWORD, USERNAME from tests.helpers.settings import override_rest_regist...
UserNotFound)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/utils/test_users.py
test_get_user_field_names
assert
variable
32
import pytest from rest_registration.exceptions import UserNotFound from rest_registration.utils.users import ( authenticate_by_login_data, get_user_field_names, get_user_public_field_names ) from tests.helpers.constants import USER_PASSWORD, USERNAME from tests.helpers.settings import override_rest_regist...
expected_fields
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/utils/test_validation.py
test_run_validators_fails
pytest.raises
variable
65
import pytest from rest_framework.exceptions import ValidationError from rest_registration.utils.validation import run_validators def fake_validator_raising_with_text(value): raise ValidationError('Some message') def fake_validator_raising_with_list(value): raise ValidationError(['Some message 1', 'Some mess...
ValidationError)
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
apragacz/django-rest-registration
52412821c560e0e32e5189f0fedfde28027a6e12
128
train
train
tests/utils/test_validation.py
test_run_validators_fails
assert
variable
68
import pytest from rest_framework.exceptions import ValidationError from rest_registration.utils.validation import run_validators def fake_validator_raising_with_text(value): raise ValidationError('Some message') def fake_validator_raising_with_list(value): raise ValidationError(['Some message 1', 'Some mess...
expected_exc_detail
52412821c560e0e32e5189f0fedfde28027a6e12
128
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/integration/verify_tbv_download.py
verify_log_map
assert
numeric_literal
160
import logging import sys from pathlib import Path from typing import Final, Tuple import click from rich.progress import track import av2.utils.io as io_utils from av2.datasets.sensor.av2_sensor_dataloader import AV2SensorDataLoader from av2.datasets.sensor.constants import RingCameras from av2.datasets.tbv.splits i...
1
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/integration/verify_tbv_download.py
verify_log_contents
assert
collection
72
import logging import sys from pathlib import Path from typing import Final, Tuple import click from rich.progress import track import av2.utils.io as io_utils from av2.datasets.sensor.av2_sensor_dataloader import AV2SensorDataLoader from av2.datasets.sensor.constants import RingCameras from av2.datasets.tbv.splits i...
(775, 1024, 3)
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/integration/verify_tbv_download.py
verify_logs_using_dataloader
assert
variable
228
import logging import sys from pathlib import Path from typing import Final, Tuple import click from rich.progress import track import av2.utils.io as io_utils from av2.datasets.sensor.av2_sensor_dataloader import AV2SensorDataLoader from av2.datasets.sensor.constants import RingCameras from av2.datasets.tbv.splits i...
AV2_CITY_NAMES
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/integration/verify_tbv_download.py
verify_log_contents
assert
collection
70
import logging import sys from pathlib import Path from typing import Final, Tuple import click from rich.progress import track import av2.utils.io as io_utils from av2.datasets.sensor.av2_sensor_dataloader import AV2SensorDataLoader from av2.datasets.sensor.constants import RingCameras from av2.datasets.tbv.splits i...
(2048, 1550, 3)
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/integration/verify_tbv_download.py
verify_log_contents
assert
variable
77
import logging import sys from pathlib import Path from typing import Final, Tuple import click from rich.progress import track import av2.utils.io as io_utils from av2.datasets.sensor.av2_sensor_dataloader import AV2SensorDataLoader from av2.datasets.sensor.constants import RingCameras from av2.datasets.tbv.splits i...
MIN_NUM_SWEEPS_PER_LOG
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/integration/verify_tbv_download.py
run_verify_all_tbv_logs
assert
variable
271
import logging import sys from pathlib import Path from typing import Final, Tuple import click from rich.progress import track import av2.utils.io as io_utils from av2.datasets.sensor.av2_sensor_dataloader import AV2SensorDataLoader from av2.datasets.sensor.constants import RingCameras from av2.datasets.tbv.splits i...
EXPECTED_NUM_TBV_IMAGES
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/integration/verify_tbv_download.py
run_verify_all_tbv_logs
assert
variable
275
import logging import sys from pathlib import Path from typing import Final, Tuple import click from rich.progress import track import av2.utils.io as io_utils from av2.datasets.sensor.av2_sensor_dataloader import AV2SensorDataLoader from av2.datasets.sensor.constants import RingCameras from av2.datasets.tbv.splits i...
EXPECTED_NUM_TBV_SWEEPS
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/integration/verify_tbv_download.py
verify_log_contents
assert
variable
57
import logging import sys from pathlib import Path from typing import Final, Tuple import click from rich.progress import track import av2.utils.io as io_utils from av2.datasets.sensor.av2_sensor_dataloader import AV2SensorDataLoader from av2.datasets.sensor.constants import RingCameras from av2.datasets.tbv.splits i...
MIN_NUM_IMAGES_PER_CAMERA
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/integration/verify_tbv_download.py
verify_log_map
assert
variable
183
import logging import sys from pathlib import Path from typing import Final, Tuple import click from rich.progress import track import av2.utils.io as io_utils from av2.datasets.sensor.av2_sensor_dataloader import AV2SensorDataLoader from av2.datasets.sensor.constants import RingCameras from av2.datasets.tbv.splits i...
EXPECTED_LANE_SEGMENT_ATTRIB_KEYS
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/integration/verify_tbv_download.py
verify_log_contents
assert
func_call
118
import logging import sys from pathlib import Path from typing import Final, Tuple import click from rich.progress import track import av2.utils.io as io_utils from av2.datasets.sensor.av2_sensor_dataloader import AV2SensorDataLoader from av2.datasets.sensor.constants import RingCameras from av2.datasets.tbv.splits i...
extrinsics_df["sensor_name"].tolist()
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/integration/verify_tbv_download.py
verify_log_map
assert
collection
176
import logging import sys from pathlib import Path from typing import Final, Tuple import click from rich.progress import track import av2.utils.io as io_utils from av2.datasets.sensor.av2_sensor_dataloader import AV2SensorDataLoader from av2.datasets.sensor.constants import RingCameras from av2.datasets.tbv.splits i...
[ "pedestrian_crossings", "lane_segments", "drivable_areas", ]
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/datasets/motion_forecasting/eval/test_metrics.py
test_compute_ade
assert_*
variable
66
from contextlib import AbstractContextManager from contextlib import nullcontext as does_not_raise from typing import Final import numpy as np import pytest import av2.datasets.motion_forecasting.eval.metrics as metrics from av2.utils.typing import NDArrayFloat test_N: Final[int] = 10 _STATIONARY_GT_TRAJ = np.zeros(...
expected_ade)
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/datasets/motion_forecasting/eval/test_metrics.py
test_compute_is_missed_prediction
assert
complex_expr
83
from contextlib import AbstractContextManager from contextlib import nullcontext as does_not_raise from typing import Final import numpy as np import pytest import av2.datasets.motion_forecasting.eval.metrics as metrics from av2.utils.typing import NDArrayFloat test_N: Final[int] = 10 _STATIONARY_GT_TRAJ = np.zeros(...
forecasted_trajectories.shape[:1]
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/datasets/motion_forecasting/test_scenario_serialization.py
test_parquet_scenario_serialization_roundtrip
assert
variable
68
from pathlib import Path from typing import List import numpy as np from av2.datasets.motion_forecasting import scenario_serialization from av2.datasets.motion_forecasting.data_schema import ( ArgoverseScenario, ObjectState, ObjectType, Track, TrackCategory, ) _TEST_OBJECT_STATES: List[ObjectStat...
_TEST_SCENARIO
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/datasets/motion_forecasting/test_scenario_serialization.py
test_load_argoverse_scenario_parquet
assert
variable
64
from pathlib import Path from typing import List import numpy as np from av2.datasets.motion_forecasting import scenario_serialization from av2.datasets.motion_forecasting.data_schema import ( ArgoverseScenario, ObjectState, ObjectType, Track, TrackCategory, ) _TEST_OBJECT_STATES: List[ObjectStat...
test_scenario_id
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/datasets/sensor/test_av2_sensor_dataloader.py
test_get_subsampled_ego_trajectory
assert
collection
30
from pathlib import Path import numpy as np from av2.datasets.sensor.av2_sensor_dataloader import AV2SensorDataLoader from av2.geometry.se3 import SE3 from av2.utils.typing import NDArrayFloat def test_get_subsampled_ego_trajectory(test_data_root_dir: Path) -> None: """Ensure we can sample the poses at a specifi...
(16, 2)
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/datasets/sensor/test_av2_sensor_dataloader.py
test_get_subsampled_ego_trajectory
assert
collection
24
from pathlib import Path import numpy as np from av2.datasets.sensor.av2_sensor_dataloader import AV2SensorDataLoader from av2.geometry.se3 import SE3 from av2.utils.typing import NDArrayFloat def test_get_subsampled_ego_trajectory(test_data_root_dir: Path) -> None: """Ensure we can sample the poses at a specifi...
(2637, 2)
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/datasets/sensor/test_sensor_dataloader.py
test_sensor_data_loader_milliseconds
assert
none_literal
95
import tempfile from pathlib import Path from typing import Dict, Final, List from av2.datasets.sensor.av2_sensor_dataloader import AV2SensorDataLoader from av2.datasets.sensor.constants import RingCameras from av2.datasets.sensor.sensor_dataloader import SensorDataloader SENSOR_TIMESTAMPS_MS_DICT: Final[Dict[str, Li...
None
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/datasets/sensor/test_sensor_dataloader.py
test_sensor_data_loader_milliseconds
assert
variable
150
import tempfile from pathlib import Path from typing import Dict, Final, List from av2.datasets.sensor.av2_sensor_dataloader import AV2SensorDataLoader from av2.datasets.sensor.constants import RingCameras from av2.datasets.sensor.sensor_dataloader import SensorDataloader SENSOR_TIMESTAMPS_MS_DICT: Final[Dict[str, Li...
bf_result
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/detection/test_eval.py
test_compute_objects_in_roi_mask
assert_*
variable
122
import math from pathlib import Path from typing import Final, List import numpy as np import pandas as pd from scipy.spatial.transform import Rotation from av2.evaluation.detection.constants import AffinityType, DistanceType from av2.evaluation.detection.eval import evaluate from av2.evaluation.detection.utils impor...
mask_)
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/detection/test_eval.py
test_compute_evaluated_dts_mask
assert_*
variable
144
import math from pathlib import Path from typing import Final, List import numpy as np import pandas as pd from scipy.spatial.transform import Rotation from av2.evaluation.detection.constants import AffinityType, DistanceType from av2.evaluation.detection.eval import evaluate from av2.evaluation.detection.utils impor...
dts_mask_)
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/detection/test_eval.py
test_compute_evaluated_gts_mask
assert_*
variable
151
import math from pathlib import Path from typing import Final, List import numpy as np import pandas as pd from scipy.spatial.transform import Rotation from av2.evaluation.detection.constants import AffinityType, DistanceType from av2.evaluation.detection.eval import evaluate from av2.evaluation.detection.utils impor...
gts_mask_)
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/detection/test_eval.py
test_affinity_center
assert
variable
94
import math from pathlib import Path from typing import Final, List import numpy as np import pandas as pd from scipy.spatial.transform import Rotation from av2.evaluation.detection.constants import AffinityType, DistanceType from av2.evaluation.detection.eval import evaluate from av2.evaluation.detection.utils impor...
expected_result
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/detection/test_eval.py
test_translation_error
assert
variable
93
import math from pathlib import Path from typing import Final, List import numpy as np import pandas as pd from scipy.spatial.transform import Rotation from av2.evaluation.detection.constants import AffinityType, DistanceType from av2.evaluation.detection.eval import evaluate from av2.evaluation.detection.utils impor...
expected_result_det
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/detection/test_eval.py
test_translation_error
assert
variable
89
import math from pathlib import Path from typing import Final, List import numpy as np import pandas as pd from scipy.spatial.transform import Rotation from av2.evaluation.detection.constants import AffinityType, DistanceType from av2.evaluation.detection.eval import evaluate from av2.evaluation.detection.utils impor...
expected_result_identity
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/detection/test_eval.py
test_compute_evaluated_dts_mask_2
assert
complex_expr
95
import math from pathlib import Path from typing import Final, List import numpy as np import pandas as pd from scipy.spatial.transform import Rotation from av2.evaluation.detection.constants import AffinityType, DistanceType from av2.evaluation.detection.eval import evaluate from av2.evaluation.detection.utils impor...
detection_cfg.max_num_dts_per_category
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/scene_flow/test_sf_eval.py
test_true_positives
assert
numeric_literal
54
import tempfile from pathlib import Path import numpy as np import av2.evaluation.scene_flow.constants as constants import av2.evaluation.scene_flow.eval as eval from av2.evaluation.scene_flow.make_annotation_files import write_annotation from av2.evaluation.scene_flow.utils import write_output_file from av2.utils.ty...
2
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/scene_flow/test_sf_eval.py
test_true_negatives
assert
numeric_literal
54
import tempfile from pathlib import Path import numpy as np import av2.evaluation.scene_flow.constants as constants import av2.evaluation.scene_flow.eval as eval from av2.evaluation.scene_flow.make_annotation_files import write_annotation from av2.evaluation.scene_flow.utils import write_output_file from av2.utils.ty...
3
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/scene_flow/test_sf_eval.py
test_metrics
assert
numeric_literal
65
import tempfile from pathlib import Path import numpy as np import av2.evaluation.scene_flow.constants as constants import av2.evaluation.scene_flow.eval as eval from av2.evaluation.scene_flow.make_annotation_files import write_annotation from av2.evaluation.scene_flow.utils import write_output_file from av2.utils.ty...
8
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/scene_flow/test_sf_eval.py
test_metrics
assert
numeric_literal
93
import tempfile from pathlib import Path import numpy as np import av2.evaluation.scene_flow.constants as constants import av2.evaluation.scene_flow.eval as eval from av2.evaluation.scene_flow.make_annotation_files import write_annotation from av2.evaluation.scene_flow.utils import write_output_file from av2.utils.ty...
5
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/scene_flow/test_sf_eval.py
test_average_metrics
assert
numeric_literal
121
import tempfile from pathlib import Path import numpy as np import av2.evaluation.scene_flow.constants as constants import av2.evaluation.scene_flow.eval as eval from av2.evaluation.scene_flow.make_annotation_files import write_annotation from av2.evaluation.scene_flow.utils import write_output_file from av2.utils.ty...
0
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/scene_flow/test_sf_eval.py
test_average_metrics
assert
numeric_literal
117
import tempfile from pathlib import Path import numpy as np import av2.evaluation.scene_flow.constants as constants import av2.evaluation.scene_flow.eval as eval from av2.evaluation.scene_flow.make_annotation_files import write_annotation from av2.evaluation.scene_flow.utils import write_output_file from av2.utils.ty...
38
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/scene_flow/test_sf_eval.py
test_average_metrics
assert
numeric_literal
99
import tempfile from pathlib import Path import numpy as np import av2.evaluation.scene_flow.constants as constants import av2.evaluation.scene_flow.eval as eval from av2.evaluation.scene_flow.make_annotation_files import write_annotation from av2.evaluation.scene_flow.utils import write_output_file from av2.utils.ty...
16
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/scene_flow/test_sf_eval.py
test_average_metrics
assert
numeric_literal
100
import tempfile from pathlib import Path import numpy as np import av2.evaluation.scene_flow.constants as constants import av2.evaluation.scene_flow.eval as eval from av2.evaluation.scene_flow.make_annotation_files import write_annotation from av2.evaluation.scene_flow.utils import write_output_file from av2.utils.ty...
18
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/scene_flow/test_sf_submission_pipeline.py
test_submission
assert
numeric_literal
79
import tempfile from pathlib import Path from typing import Final from zipfile import ZipFile import numpy as np import pandas as pd import av2.evaluation.scene_flow.eval as eval from av2.evaluation.scene_flow.example_submission import example_submission from av2.evaluation.scene_flow.make_annotation_files import mak...
0
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/scene_flow/test_sf_submission_pipeline.py
test_submission
assert
numeric_literal
72
import tempfile from pathlib import Path from typing import Final from zipfile import ZipFile import numpy as np import pandas as pd import av2.evaluation.scene_flow.eval as eval from av2.evaluation.scene_flow.example_submission import example_submission from av2.evaluation.scene_flow.make_annotation_files import mak...
1e-4
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/scene_flow/test_sf_submission_pipeline.py
test_submission
assert
numeric_literal
69
import tempfile from pathlib import Path from typing import Final from zipfile import ZipFile import numpy as np import pandas as pd import av2.evaluation.scene_flow.eval as eval from av2.evaluation.scene_flow.example_submission import example_submission from av2.evaluation.scene_flow.make_annotation_files import mak...
0.06
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/evaluation/scene_flow/test_sf_submission_pipeline.py
test_submission
assert
func_call
134
import tempfile from pathlib import Path from typing import Final from zipfile import ZipFile import numpy as np import pandas as pd import av2.evaluation.scene_flow.eval as eval from av2.evaluation.scene_flow.example_submission import example_submission from av2.evaluation.scene_flow.make_annotation_files import mak...
str(e)
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor
argoverse/av2-api
4f91795fec1f73634f1c806c29faf525f40b9b38
18
train
train
tests/unit/geometry/test_geometry.py
test_crop_points
assert_*
variable
131
from pathlib import Path from typing import Any, Callable, Tuple import numpy as np import pytest from scipy.spatial.transform import Rotation import av2.geometry.geometry as geometry_utils from av2.datasets.sensor.constants import AnnotationCategories from av2.geometry.geometry import mat_to_xyz, xyz_to_mat from av2...
mask)
4f91795fec1f73634f1c806c29faf525f40b9b38
18
v2_extractor_at_anchor