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
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_poolmanager.py
test_many_urls
assert
numeric_literal
46
from __future__ import annotations import gc import socket from test import resolvesLocalhostFQDN from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import LocationVa...
5
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_poolmanager.py
test_manager_clear
assert
numeric_literal
30
from __future__ import annotations import gc import socket from test import resolvesLocalhostFQDN from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import LocationVa...
1
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_poolmanager.py
test_manager_clear
assert
numeric_literal
33
from __future__ import annotations import gc import socket from test import resolvesLocalhostFQDN from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import LocationVa...
0
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_poolmanager.py
test_pool_kwargs_socket_options
assert
collection
40
from __future__ import annotations import gc import socket from test import resolvesLocalhostFQDN from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import LocationVa...
[]
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_poolmanager.py
test_connection_from_context_strict_param
assert
variable
46
from __future__ import annotations import gc import socket from test import resolvesLocalhostFQDN from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import LocationVa...
msg
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_poolmanager.py
test_thread_safty
assert
none_literal
39
from __future__ import annotations import gc import socket from test import resolvesLocalhostFQDN from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import LocationVa...
None
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_poolmanager.py
test_same_url
assert
variable
31
from __future__ import annotations import gc import socket from test import resolvesLocalhostFQDN from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import LocationVa...
conn2
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_poolmanager.py
test_custom_pool_key
assert
variable
42
from __future__ import annotations import gc import socket from test import resolvesLocalhostFQDN from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import LocationVa...
pool3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_poolmanager.py
test_custom_pool_key
assert
variable
43
from __future__ import annotations import gc import socket from test import resolvesLocalhostFQDN from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import LocationVa...
pool2
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_poolmanager.py
test_pool_manager_no_url_absolute_form
assert
bool_literal
29
from __future__ import annotations import gc import socket from test import resolvesLocalhostFQDN from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import LocationVa...
False
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_poolmanager.py
test_merge_pool_kwargs
assert
variable
30
from __future__ import annotations import gc import socket from test import resolvesLocalhostFQDN from unittest import mock from unittest.mock import MagicMock, patch import pytest from urllib3 import connection_from_url from urllib3.connectionpool import HTTPSConnectionPool from urllib3.exceptions import LocationVa...
merged
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_proxymanager.py
test_default_port
assert
numeric_literal
18
from __future__ import annotations import pytest from urllib3.exceptions import MaxRetryError, NewConnectionError, ProxyError from urllib3.poolmanager import ProxyManager from urllib3.util.retry import Retry from urllib3.util.url import parse_url from .port_helpers import find_unused_port class TestProxyManager: ...
80
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_proxymanager.py
test_default_port
assert
numeric_literal
21
from __future__ import annotations import pytest from urllib3.exceptions import MaxRetryError, NewConnectionError, ProxyError from urllib3.poolmanager import ProxyManager from urllib3.util.retry import Retry from urllib3.util.url import parse_url from .port_helpers import find_unused_port class TestProxyManager: ...
443
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_proxymanager.py
test_default_port
assert
none_literal
17
from __future__ import annotations import pytest from urllib3.exceptions import MaxRetryError, NewConnectionError, ProxyError from urllib3.poolmanager import ProxyManager from urllib3.util.retry import Retry from urllib3.util.url import parse_url from .port_helpers import find_unused_port class TestProxyManager: ...
None
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_proxymanager.py
test_proxy_tunnel
assert
bool_literal
20
from __future__ import annotations import pytest from urllib3.exceptions import MaxRetryError, NewConnectionError, ProxyError from urllib3.poolmanager import ProxyManager from urllib3.util.retry import Retry from urllib3.util.url import parse_url from .port_helpers import find_unused_port class TestProxyManager: ...
False
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_proxymanager.py
test_proxy_connect_retry
pytest.raises
variable
19
from __future__ import annotations import pytest from urllib3.exceptions import MaxRetryError, NewConnectionError, ProxyError from urllib3.poolmanager import ProxyManager from urllib3.util.retry import Retry from urllib3.util.url import parse_url from .port_helpers import find_unused_port class TestProxyManager: ...
ProxyError)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_proxymanager.py
test_invalid_scheme
pytest.raises
variable
18
from __future__ import annotations import pytest from urllib3.exceptions import MaxRetryError, NewConnectionError, ProxyError from urllib3.poolmanager import ProxyManager from urllib3.util.retry import Retry from urllib3.util.url import parse_url from .port_helpers import find_unused_port class TestProxyManager: ...
ValueError)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_proxymanager.py
test_proxy_connect_retry
pytest.raises
variable
25
from __future__ import annotations import pytest from urllib3.exceptions import MaxRetryError, NewConnectionError, ProxyError from urllib3.poolmanager import ProxyManager from urllib3.util.retry import Retry from urllib3.util.url import parse_url from .port_helpers import find_unused_port class TestProxyManager: ...
MaxRetryError)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_proxymanager.py
test_proxy_headers
assert
variable
23
from __future__ import annotations import pytest from urllib3.exceptions import MaxRetryError, NewConnectionError, ProxyError from urllib3.poolmanager import ProxyManager from urllib3.util.retry import Retry from urllib3.util.url import parse_url from .port_helpers import find_unused_port class TestProxyManager: ...
default_headers
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_proxymanager.py
test_invalid_scheme
pytest.raises
variable
16
from __future__ import annotations import pytest from urllib3.exceptions import MaxRetryError, NewConnectionError, ProxyError from urllib3.poolmanager import ProxyManager from urllib3.util.retry import Retry from urllib3.util.url import parse_url from .port_helpers import find_unused_port class TestProxyManager: ...
AssertionError)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_proxymanager.py
test_proxy_headers
assert
variable
33
from __future__ import annotations import pytest from urllib3.exceptions import MaxRetryError, NewConnectionError, ProxyError from urllib3.poolmanager import ProxyManager from urllib3.util.retry import Retry from urllib3.util.url import parse_url from .port_helpers import find_unused_port class TestProxyManager: ...
provided_headers
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_proxymanager.py
test_proxy_headers
assert
variable
42
from __future__ import annotations import pytest from urllib3.exceptions import MaxRetryError, NewConnectionError, ProxyError from urllib3.poolmanager import ProxyManager from urllib3.util.retry import Retry from urllib3.util.url import parse_url from .port_helpers import find_unused_port class TestProxyManager: ...
expected_headers
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_queue_monkeypatch.py
test_queue_monkeypatching
pytest.raises
variable
18
from __future__ import annotations import queue from unittest import mock import pytest from urllib3 import HTTPConnectionPool from urllib3.exceptions import EmptyPoolError class TestMonkeypatchResistance: def test_queue_monkeypatching(self) -> None: with mock.patch.object(queue, "Empty", BadError): ...
EmptyPoolError)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_response.py
test_single_chunk
assert
numeric_literal
43
from __future__ import annotations import contextlib import http.client as httplib import socket import ssl import sys import typing import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotl...
0
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_response.py
test_multiple_chunks
assert
numeric_literal
47
from __future__ import annotations import contextlib import http.client as httplib import socket import ssl import sys import typing import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotl...
9
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_response.py
test_multiple_chunks
assert
numeric_literal
50
from __future__ import annotations import contextlib import http.client as httplib import socket import ssl import sys import typing import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotl...
8
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_response.py
test_multiple_chunks
assert
numeric_literal
52
from __future__ import annotations import contextlib import http.client as httplib import socket import ssl import sys import typing import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotl...
4
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_response.py
test_length_w_valid_header
assert
numeric_literal
52
from __future__ import annotations import contextlib import http.client as httplib import socket import ssl import sys import typing import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotl...
5
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_response.py
test_length_after_read
assert
numeric_literal
67
from __future__ import annotations import contextlib import http.client as httplib import socket import ssl import sys import typing import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotl...
3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_response.py
test_reference_read
assert
string_literal
53
from __future__ import annotations import contextlib import http.client as httplib import socket import ssl import sys import typing import zlib from base64 import b64decode from http.client import IncompleteRead as httplib_IncompleteRead from io import BufferedReader, BytesIO, TextIOWrapper from test import onlyBrotl...
b""
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_retry.py
test_backoff
assert
numeric_literal
28
from __future__ import annotations from test import DUMMY_POOL from unittest import mock import freezegun # type: ignore[import] import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib3.respons...
0
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_retry.py
test_retry_default
assert
numeric_literal
26
from __future__ import annotations from test import DUMMY_POOL from unittest import mock import freezegun # type: ignore[import] import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib3.respons...
10
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_retry.py
test_backoff
assert
numeric_literal
35
from __future__ import annotations from test import DUMMY_POOL from unittest import mock import freezegun # type: ignore[import] import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib3.respons...
98
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_retry.py
test_backoff
assert
numeric_literal
34
from __future__ import annotations from test import DUMMY_POOL from unittest import mock import freezegun # type: ignore[import] import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib3.respons...
0.2
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_retry.py
test_backoff
assert
numeric_literal
36
from __future__ import annotations from test import DUMMY_POOL from unittest import mock import freezegun # type: ignore[import] import pytest from urllib3.exceptions import ( ConnectTimeoutError, InvalidHeader, MaxRetryError, ReadTimeoutError, ResponseError, SSLError, ) from urllib3.respons...
0.4
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssl.py
test_create_urllib3_context_set_ciphers
assert
numeric_literal
26
from __future__ import annotations import ssl import typing from unittest import mock import pytest from urllib3.exceptions import ProxySchemeUnsupported, SSLError from urllib3.util import ssl_ class TestSSL: def test_create_urllib3_context_set_ciphers( self, monkeypatch: pytest.MonkeyPatch ) -> No...
1
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssl.py
test_wrap_socket_given_ca_certs_no_load_default_certs
assert_*
none_literal
28
from __future__ import annotations import ssl import typing from unittest import mock import pytest from urllib3.exceptions import ProxySchemeUnsupported, SSLError from urllib3.util import ssl_ class TestSSL: def test_wrap_socket_given_ca_certs_no_load_default_certs( self, monkeypatch: pytest.MonkeyPat...
None)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssl.py
test_create_urllib3_context_set_ciphers
assert
variable
24
from __future__ import annotations import ssl import typing from unittest import mock import pytest from urllib3.exceptions import ProxySchemeUnsupported, SSLError from urllib3.util import ssl_ class TestSSL: def test_create_urllib3_context_set_ciphers( self, monkeypatch: pytest.MonkeyPatch ) -> No...
context
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssl.py
test_assert_fingerprint_raises_exception_on_none_cert
pytest.raises
variable
16
from __future__ import annotations import ssl import typing from unittest import mock import pytest from urllib3.exceptions import ProxySchemeUnsupported, SSLError from urllib3.util import ssl_ class TestSSL: def test_assert_fingerprint_raises_exception_on_none_cert(self) -> None: with pytest.raises(
SSLError)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssl.py
test_create_urllib3_no_context
pytest.raises
variable
17
from __future__ import annotations import ssl import typing from unittest import mock import pytest from urllib3.exceptions import ProxySchemeUnsupported, SSLError from urllib3.util import ssl_ class TestSSL: def test_create_urllib3_no_context(self) -> None: with mock.patch("urllib3.util.ssl_.SSLContex...
TypeError)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssl.py
test_create_urllib3_context_ssl_version_and_ssl_min_max_version_errors
pytest.raises
variable
36
from __future__ import annotations import ssl import typing from unittest import mock import pytest from urllib3.exceptions import ProxySchemeUnsupported, SSLError from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "kwargs", [ { "ssl_version": ssl...
ValueError)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssl.py
test_create_urllib3_context_pha
assert
variable
32
from __future__ import annotations import ssl import typing from unittest import mock import pytest from urllib3.exceptions import ProxySchemeUnsupported, SSLError from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( ["pha", "expected_pha"], [(None, None), (False, True), (True, True)]...
expected_pha
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssl.py
test_create_urllib3_context_set_ciphers
assert
func_call
27
from __future__ import annotations import ssl import typing from unittest import mock import pytest from urllib3.exceptions import ProxySchemeUnsupported, SSLError from urllib3.util import ssl_ class TestSSL: def test_create_urllib3_context_set_ciphers( self, monkeypatch: pytest.MonkeyPatch ) -> No...
mock.call(ciphers)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssl.py
test_wrap_socket_no_ssltransport
pytest.raises
variable
17
from __future__ import annotations import ssl import typing from unittest import mock import pytest from urllib3.exceptions import ProxySchemeUnsupported, SSLError from urllib3.util import ssl_ class TestSSL: def test_wrap_socket_no_ssltransport(self) -> None: with mock.patch("urllib3.util.ssl_.SSLTran...
ProxySchemeUnsupported)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssl.py
test_create_urllib3_context_ssl_version_and_ssl_min_max_version_errors
assert
string_literal
39
from __future__ import annotations import ssl import typing from unittest import mock import pytest from urllib3.exceptions import ProxySchemeUnsupported, SSLError from urllib3.util import ssl_ class TestSSL: @pytest.mark.parametrize( "kwargs", [ { "ssl_version": ssl...
"Can't specify both 'ssl_version' and either 'ssl_minimum_version' or 'ssl_maximum_version'"
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssltransport.py
validate_peercert
assert
numeric_literal
76
from __future__ import annotations import platform import select import socket import ssl import typing from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util import ssl_ from urllib...
0
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssltransport.py
validate_peercert
assert
string_literal
81
from __future__ import annotations import platform import select import socket import ssl import typing from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util import ssl_ from urllib...
""
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssltransport.py
validate_request
assert
none_literal
49
from __future__ import annotations import platform import select import socket import ssl import typing from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util import ssl_ from urllib...
None
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssltransport.py
validate_peercert
assert
variable
79
from __future__ import annotations import platform import select import socket import ssl import typing from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util import ssl_ from urllib...
dict
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssltransport.py
validate_peercert
assert
variable
80
from __future__ import annotations import platform import select import socket import ssl import typing from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util import ssl_ from urllib...
cert
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssltransport.py
validate_peercert
assert
variable
75
from __future__ import annotations import platform import select import socket import ssl import typing from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util import ssl_ from urllib...
bytes
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssltransport.py
test_ssl_object_attributes
assert
variable
114
from __future__ import annotations import platform import select import socket import ssl import typing from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util import ssl_ from urllib...
tuple
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssltransport.py
test_start_closed_socket
pytest.raises
variable
110
from __future__ import annotations import platform import select import socket import ssl import typing from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util import ssl_ from urllib...
OSError)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssltransport.py
test_constructor_params
assert_*
complex_expr
91
from __future__ import annotations import platform import select import socket import ssl import typing from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util import ssl_ from urllib...
mock.ANY)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_ssltransport.py
test_various_flags_errors
pytest.raises
variable
92
from __future__ import annotations import platform import select import socket import ssl import typing from unittest import mock import pytest from dummyserver.server import DEFAULT_CA, DEFAULT_CERTS from dummyserver.testcase import SocketDummyServerTestCase, consume_socket from urllib3.util import ssl_ from urllib...
ValueError)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_util.py
test_parse_url_only_zeros
assert
numeric_literal
342
from __future__ import annotations import io import logging import socket import ssl import sys import typing import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from unittest import mock from unittest.mock import MagicMock, Mock, patch from...
0
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_util.py
test_timeout
assert
numeric_literal
358
from __future__ import annotations import io import logging import socket import ssl import sys import typing import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from unittest import mock from unittest.mock import MagicMock, Mock, patch from...
3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_util.py
test_timeout
assert
numeric_literal
362
from __future__ import annotations import io import logging import socket import ssl import sys import typing import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from unittest import mock from unittest.mock import MagicMock, Mock, patch from...
2
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_util.py
test_timeout
assert
numeric_literal
372
from __future__ import annotations import io import logging import socket import ssl import sys import typing import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from unittest import mock from unittest.mock import MagicMock, Mock, patch from...
5
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_util.py
test_timeout
assert
numeric_literal
379
from __future__ import annotations import io import logging import socket import ssl import sys import typing import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from unittest import mock from unittest.mock import MagicMock, Mock, patch from...
7
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_util.py
test_disable_warnings
assert
numeric_literal
346
from __future__ import annotations import io import logging import socket import ssl import sys import typing import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from unittest import mock from unittest.mock import MagicMock, Mock, patch from...
1
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_util.py
test_parse_url_remove_leading_zeros
assert
numeric_literal
342
from __future__ import annotations import io import logging import socket import ssl import sys import typing import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from unittest import mock from unittest.mock import MagicMock, Mock, patch from...
80
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_util.py
test_timeout_elapsed
assert
numeric_literal
364
from __future__ import annotations import io import logging import socket import ssl import sys import typing import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from unittest import mock from unittest.mock import MagicMock, Mock, patch from...
37
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_util.py
test_ssl_wrap_socket_creates_new_context
assert_*
numeric_literal
56
from __future__ import annotations import io import logging import socket import ssl import sys import typing import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from unittest import mock from unittest.mock import MagicMock, Mock, patch from...
2)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_util.py
test_rewind_body
assert
string_literal
346
from __future__ import annotations import io import logging import socket import ssl import sys import typing import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from unittest import mock from unittest.mock import MagicMock, Mock, patch from...
b""
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_util.py
test_scheme_host_port
assert
variable
349
from __future__ import annotations import io import logging import socket import ssl import sys import typing import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from unittest import mock from unittest.mock import MagicMock, Mock, patch from...
port
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_util.py
test_encode_invalid_chars_none
assert
none_literal
341
from __future__ import annotations import io import logging import socket import ssl import sys import typing import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from unittest import mock from unittest.mock import MagicMock, Mock, patch from...
None
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_util.py
test_Url_str
assert
complex_expr
342
from __future__ import annotations import io import logging import socket import ssl import sys import typing import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from unittest import mock from unittest.mock import MagicMock, Mock, patch from...
U.url
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_util.py
test_ssl_wrap_socket_loads_the_cert_chain
assert_*
none_literal
56
from __future__ import annotations import io import logging import socket import ssl import sys import typing import warnings from itertools import chain from test import ImportBlocker, ModuleStash, notBrotli, notZstd, onlyBrotli, onlyZstd from unittest import mock from unittest.mock import MagicMock, Mock, patch from...
None)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_wait.py
test_eintr
assert
numeric_literal
59
from __future__ import annotations import signal import threading import time import typing from socket import socket, socketpair from types import FrameType import pytest from urllib3.util.wait import ( _have_working_poll, poll_wait_for_socket, select_wait_for_socket, wait_for_read, wait_for_soc...
0
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_wait.py
test_eintr
assert
variable
55
from __future__ import annotations import signal import threading import time import typing from socket import socket, socketpair from types import FrameType import pytest from urllib3.util.wait import ( _have_working_poll, poll_wait_for_socket, select_wait_for_socket, wait_for_read, wait_for_soc...
dur
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_wait.py
test_wait_for_socket
assert
string_literal
61
from __future__ import annotations import signal import threading import time import typing from socket import socket, socketpair from types import FrameType import pytest from urllib3.util.wait import ( _have_working_poll, poll_wait_for_socket, select_wait_for_socket, wait_for_read, wait_for_soc...
b"x"
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_wait.py
test_wait_for_socket
pytest.raises
variable
71
from __future__ import annotations import signal import threading import time import typing from socket import socket, socketpair from types import FrameType import pytest from urllib3.util.wait import ( _have_working_poll, poll_wait_for_socket, select_wait_for_socket, wait_for_read, wait_for_soc...
Exception)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_wait.py
test_wait_for_socket
pytest.raises
variable
35
from __future__ import annotations import signal import threading import time import typing from socket import socket, socketpair from types import FrameType import pytest from urllib3.util.wait import ( _have_working_poll, poll_wait_for_socket, select_wait_for_socket, wait_for_read, wait_for_soc...
RuntimeError)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/test_wait.py
handler
assert
complex_expr
32
from __future__ import annotations import signal import threading import time import typing from socket import socket, socketpair from types import FrameType import pytest from urllib3.util.wait import ( _have_working_poll, poll_wait_for_socket, select_wait_for_socket, wait_for_read, wait_for_soc...
signal.SIGALRM
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_chunked_transfer.py
test_preserve_chunked_on_retry_after
assert
numeric_literal
87
from __future__ import annotations import socket import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry class TestChunkedTransfer(Sock...
2
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_chunked_transfer.py
test_removes_duplicate_host_header
assert
numeric_literal
69
from __future__ import annotations import socket import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry class TestChunkedTransfer(Sock...
1
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_chunked_transfer.py
test_remove_user_agent_header
assert
numeric_literal
73
from __future__ import annotations import socket import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry class TestChunkedTransfer(Sock...
0
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_chunked_transfer.py
_test_body
assert
variable
46
from __future__ import annotations import socket import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry class TestChunkedTransfer(Sock...
body
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_chunked_transfer.py
_test_body
assert
func_call
51
from __future__ import annotations import socket import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry class TestChunkedTransfer(Sock...
len(bdata)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_chunked_transfer.py
test_chunks
assert
complex_expr
49
from __future__ import annotations import socket import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry class TestChunkedTransfer(Sock...
self.buffer
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_chunked_transfer.py
_test_body
assert
string_literal
53
from __future__ import annotations import socket import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry class TestChunkedTransfer(Sock...
b"0\r\n\r\n"
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_chunked_transfer.py
test_chunks
assert
func_call
58
from __future__ import annotations import socket import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry class TestChunkedTransfer(Sock...
chunk.encode("utf-8")
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_chunked_transfer.py
_test_body
assert
func_call
43
from __future__ import annotations import socket import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry class TestChunkedTransfer(Sock...
header.split(b"\r\n")
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_chunked_transfer.py
test_preserve_user_agent_header
assert
string_literal
77
from __future__ import annotations import socket import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry class TestChunkedTransfer(Sock...
b"user-agent: test-agent"
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_chunked_transfer.py
test_chunks
assert
func_call
57
from __future__ import annotations import socket import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry class TestChunkedTransfer(Sock...
hex(len(chunk))[2:].encode("utf-8")
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_chunked_transfer.py
test_preserve_transfer_encoding_header
assert
string_literal
77
from __future__ import annotations import socket import pytest from dummyserver.testcase import ( ConnectionMarker, SocketDummyServerTestCase, consume_socket, ) from urllib3 import HTTPConnectionPool from urllib3.util import SKIP_HEADER from urllib3.util.retry import Retry class TestChunkedTransfer(Sock...
b"transfer-encoding: test-transfer-encoding"
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_connection.py
test_does_not_release_conn
assert
numeric_literal
32
from __future__ import annotations import typing from http.client import ResponseNotReady import pytest from dummyserver.testcase import HTTPDummyServerTestCase as server from urllib3 import HTTPConnectionPool from urllib3.response import HTTPResponse def pool() -> typing.Generator[HTTPConnectionPool, None, None]: ...
0
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_connection.py
test_releases_conn
assert
numeric_literal
38
from __future__ import annotations import typing from http.client import ResponseNotReady import pytest from dummyserver.testcase import HTTPDummyServerTestCase as server from urllib3 import HTTPConnectionPool from urllib3.response import HTTPResponse def pool() -> typing.Generator[HTTPConnectionPool, None, None]: ...
1
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_connection.py
test_connection_state_properties
assert
numeric_literal
40
from __future__ import annotations import typing from http.client import ResponseNotReady import pytest from dummyserver.testcase import HTTPDummyServerTestCase as server from urllib3 import HTTPConnectionPool from urllib3.response import HTTPResponse def pool() -> typing.Generator[HTTPConnectionPool, None, None]: ...
200
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_connection.py
test_releases_conn
assert
none_literal
23
from __future__ import annotations import typing from http.client import ResponseNotReady import pytest from dummyserver.testcase import HTTPDummyServerTestCase as server from urllib3 import HTTPConnectionPool from urllib3.response import HTTPResponse def pool() -> typing.Generator[HTTPConnectionPool, None, None]: ...
None
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_connection.py
test_connection_state_properties
assert
bool_literal
24
from __future__ import annotations import typing from http.client import ResponseNotReady import pytest from dummyserver.testcase import HTTPDummyServerTestCase as server from urllib3 import HTTPConnectionPool from urllib3.response import HTTPResponse def pool() -> typing.Generator[HTTPConnectionPool, None, None]: ...
True
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_connection.py
test_set_tunnel_is_reset
assert
numeric_literal
33
from __future__ import annotations import typing from http.client import ResponseNotReady import pytest from dummyserver.testcase import HTTPDummyServerTestCase as server from urllib3 import HTTPConnectionPool from urllib3.response import HTTPResponse def pool() -> typing.Generator[HTTPConnectionPool, None, None]: ...
8080
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_connection.py
test_invalid_tunnel_scheme
pytest.raises
variable
24
from __future__ import annotations import typing from http.client import ResponseNotReady import pytest from dummyserver.testcase import HTTPDummyServerTestCase as server from urllib3 import HTTPConnectionPool from urllib3.response import HTTPResponse def pool() -> typing.Generator[HTTPConnectionPool, None, None]: ...
ValueError)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_connection.py
test_double_getresponse
pytest.raises
variable
32
from __future__ import annotations import typing from http.client import ResponseNotReady import pytest from dummyserver.testcase import HTTPDummyServerTestCase as server from urllib3 import HTTPConnectionPool from urllib3.response import HTTPResponse def pool() -> typing.Generator[HTTPConnectionPool, None, None]: ...
ResponseNotReady)
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_connection.py
test_invalid_tunnel_scheme
assert
string_literal
26
from __future__ import annotations import typing from http.client import ResponseNotReady import pytest from dummyserver.testcase import HTTPDummyServerTestCase as server from urllib3 import HTTPConnectionPool from urllib3.response import HTTPResponse def pool() -> typing.Generator[HTTPConnectionPool, None, None]: ...
"Invalid proxy scheme for tunneling: 'socks', must be either 'http' or 'https'"
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_connectionpool.py
test_one_name_multiple_values
assert
numeric_literal
65
from __future__ import annotations import io import socket import time import typing import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT from threading import Event from unittest import mock from urllib.parse import urlencode import pytest from dummyserver.server import HAS_IPV6_AND_DNS, NoIPv6Warning from ...
2
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_connectionpool.py
test_keepalive
assert
numeric_literal
62
from __future__ import annotations import io import socket import time import typing import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT from threading import Event from unittest import mock from urllib.parse import urlencode import pytest from dummyserver.server import HAS_IPV6_AND_DNS, NoIPv6Warning from ...
1
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_connectionpool.py
test_connection_count
assert
numeric_literal
63
from __future__ import annotations import io import socket import time import typing import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT from threading import Event from unittest import mock from urllib.parse import urlencode import pytest from dummyserver.server import HAS_IPV6_AND_DNS, NoIPv6Warning from ...
3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor
urllib3/urllib3
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
train
train
test/with_dummyserver/test_connectionpool.py
test_for_double_release
assert
numeric_literal
61
from __future__ import annotations import io import socket import time import typing import warnings from test import LONG_TIMEOUT, SHORT_TIMEOUT from threading import Event from unittest import mock from urllib.parse import urlencode import pytest from dummyserver.server import HAS_IPV6_AND_DNS, NoIPv6Warning from ...
0
4c4451b51ddb6e482a81a2607bdcdfe58da8651c
610
v2_extractor_at_anchor