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
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_cli.py
test_missing_out
assert
numeric_literal
21
import filecmp import subprocess import pytest from typer.testing import CliRunner import erdantic as erd from erdantic._version import __version__ from erdantic.cli import app, import_object_from_name import erdantic.examples.dataclasses as examples_dataclasses import erdantic.examples.pydantic as examples_pydantic ...
2
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_cli.py
test_no_overwrite
assert
numeric_literal
27
import filecmp import subprocess import pytest from typer.testing import CliRunner import erdantic as erd from erdantic._version import __version__ from erdantic.cli import app, import_object_from_name import erdantic.examples.dataclasses as examples_dataclasses import erdantic.examples.pydantic as examples_pydantic ...
1
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_cli.py
test_import_object_from_name
assert
variable
21
import filecmp import subprocess import pytest from typer.testing import CliRunner import erdantic as erd from erdantic._version import __version__ from erdantic.cli import app, import_object_from_name import erdantic.examples.dataclasses as examples_dataclasses import erdantic.examples.pydantic as examples_pydantic ...
erd
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_cli.py
test_import_object_from_name
assert
variable
19
import filecmp import subprocess import pytest from typer.testing import CliRunner import erdantic as erd from erdantic._version import __version__ from erdantic.cli import app, import_object_from_name import erdantic.examples.dataclasses as examples_dataclasses import erdantic.examples.pydantic as examples_pydantic ...
Party
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_cli.py
test_import_object_from_name
assert
variable
20
import filecmp import subprocess import pytest from typer.testing import CliRunner import erdantic as erd from erdantic._version import __version__ from erdantic.cli import app, import_object_from_name import erdantic.examples.dataclasses as examples_dataclasses import erdantic.examples.pydantic as examples_pydantic ...
Quest
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_cli.py
test_version
assert
variable
23
import filecmp import subprocess import pytest from typer.testing import CliRunner import erdantic as erd from erdantic._version import __version__ from erdantic.cli import app, import_object_from_name import erdantic.examples.dataclasses as examples_dataclasses import erdantic.examples.pydantic as examples_pydantic ...
__version__
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_convenience.py
test_find_models
assert
func_call
22
import pytest from erdantic.convenience import create, find_models from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples import erdantic.examples.pydantic as pydantic_examples from erdantic.exceptions import PluginNotFoundError def test_fi...
set()
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_convenience.py
test_create
assert
variable
15
import pytest from erdantic.convenience import create, find_models from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples import erdantic.examples.pydantic as pydantic_examples from erdantic.exceptions import PluginNotFoundError def test_cr...
expected
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_convenience.py
test_termini
pytest.raises
variable
25
import pytest from erdantic.convenience import create, find_models from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples import erdantic.examples.pydantic as pydantic_examples from erdantic.exceptions import PluginNotFoundError def test_te...
ValueError)
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_convenience.py
test_terminal_models
assert
variable
21
import pytest from erdantic.convenience import create, find_models from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples import erdantic.examples.pydantic as pydantic_examples from erdantic.exceptions import PluginNotFoundError def test_te...
expected_model_keys
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_convenience.py
test_find_models
pytest.raises
variable
32
import pytest from erdantic.convenience import create, find_models from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples import erdantic.examples.pydantic as pydantic_examples from erdantic.exceptions import PluginNotFoundError def test_fi...
PluginNotFoundError)
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_convenience.py
test_find_models
assert
variable
17
import pytest from erdantic.convenience import create, find_models from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples import erdantic.examples.pydantic as pydantic_examples from erdantic.exceptions import PluginNotFoundError def test_fi...
expected_pydantic_models
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_convenience.py
test_find_models
assert
variable
30
import pytest from erdantic.convenience import create, find_models from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples import erdantic.examples.pydantic as pydantic_examples from erdantic.exceptions import PluginNotFoundError def test_fi...
expected_dataclasses_models
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_core.py
test_subclass
assert
numeric_literal
88
import builtins import dataclasses import filecmp import os from pathlib import Path import sys from typing import Any, AnyStr, List, Literal, Optional, TypeVar import IPython.lib.pretty as IPython_pretty import pydantic import pytest import rich from erdantic.core import ( Edge, EntityRelationshipDiagram, ...
1
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_core.py
test_field_info_annotated
assert
variable
42
import builtins import dataclasses import filecmp import os from pathlib import Path import sys from typing import Any, AnyStr, List, Literal, Optional, TypeVar import IPython.lib.pretty as IPython_pretty import pydantic import pytest import rich from erdantic.core import ( Edge, EntityRelationshipDiagram, ...
tp
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_core.py
test_fully_qualified_name_import_object
assert
variable
34
import builtins import dataclasses import filecmp import os from pathlib import Path import sys from typing import Any, AnyStr, List, Literal, Optional, TypeVar import IPython.lib.pretty as IPython_pretty import pydantic import pytest import rich from erdantic.core import ( Edge, EntityRelationshipDiagram, ...
Party
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_core.py
test_field_info_annotated
assert
string_literal
41
import builtins import dataclasses import filecmp import os from pathlib import Path import sys from typing import Any, AnyStr, List, Literal, Optional, TypeVar import IPython.lib.pretty as IPython_pretty import pydantic import pytest import rich from erdantic.core import ( Edge, EntityRelationshipDiagram, ...
"str"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_core.py
test_equality
assert
variable
68
import builtins import dataclasses import filecmp import os from pathlib import Path import sys from typing import Any, AnyStr, List, Literal, Optional, TypeVar import IPython.lib.pretty as IPython_pretty import pydantic import pytest import rich from erdantic.core import ( Edge, EntityRelationshipDiagram, ...
edge2
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_core.py
test_equality
assert
variable
54
import builtins import dataclasses import filecmp import os from pathlib import Path import sys from typing import Any, AnyStr, List, Literal, Optional, TypeVar import IPython.lib.pretty as IPython_pretty import pydantic import pytest import rich from erdantic.core import ( Edge, EntityRelationshipDiagram, ...
model2
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_core.py
test_equality
assert
variable
61
import builtins import dataclasses import filecmp import os from pathlib import Path import sys from typing import Any, AnyStr, List, Literal, Optional, TypeVar import IPython.lib.pretty as IPython_pretty import pydantic import pytest import rich from erdantic.core import ( Edge, EntityRelationshipDiagram, ...
field2
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_core.py
test_equality
assert
variable
47
import builtins import dataclasses import filecmp import os from pathlib import Path import sys from typing import Any, AnyStr, List, Literal, Optional, TypeVar import IPython.lib.pretty as IPython_pretty import pydantic import pytest import rich from erdantic.core import ( Edge, EntityRelationshipDiagram, ...
diagram2
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_core.py
test_equality
assert
variable
48
import builtins import dataclasses import filecmp import os from pathlib import Path import sys from typing import Any, AnyStr, List, Literal, Optional, TypeVar import IPython.lib.pretty as IPython_pretty import pydantic import pytest import rich from erdantic.core import ( Edge, EntityRelationshipDiagram, ...
diagram3
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_core.py
test_key
assert
variable
42
import builtins import dataclasses import filecmp import os from pathlib import Path import sys from typing import Any, AnyStr, List, Literal, Optional, TypeVar import IPython.lib.pretty as IPython_pretty import pydantic import pytest import rich from erdantic.core import ( Edge, EntityRelationshipDiagram, ...
edge_key
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_core.py
test_key
assert
variable
38
import builtins import dataclasses import filecmp import os from pathlib import Path import sys from typing import Any, AnyStr, List, Literal, Optional, TypeVar import IPython.lib.pretty as IPython_pretty import pydantic import pytest import rich from erdantic.core import ( Edge, EntityRelationshipDiagram, ...
model_key
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_core.py
test_key
assert
variable
40
import builtins import dataclasses import filecmp import os from pathlib import Path import sys from typing import Any, AnyStr, List, Literal, Optional, TypeVar import IPython.lib.pretty as IPython_pretty import pydantic import pytest import rich from erdantic.core import ( Edge, EntityRelationshipDiagram, ...
field_key
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_core.py
test_fully_qualified_name_sorting
assert
variable
35
import builtins import dataclasses import filecmp import os from pathlib import Path import sys from typing import Any, AnyStr, List, Literal, Optional, TypeVar import IPython.lib.pretty as IPython_pretty import pydantic import pytest import rich from erdantic.core import ( Edge, EntityRelationshipDiagram, ...
full_name2
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_core.py
test_fully_qualified_name_sorting
assert
variable
37
import builtins import dataclasses import filecmp import os from pathlib import Path import sys from typing import Any, AnyStr, List, Literal, Optional, TypeVar import IPython.lib.pretty as IPython_pretty import pydantic import pytest import rich from erdantic.core import ( Edge, EntityRelationshipDiagram, ...
full_name1
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_dataclasses.py
test_get_fields_from_dataclass
assert
numeric_literal
21
import dataclasses from dataclasses import dataclass from pprint import pprint import sys from typing import Optional import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples from erdantic.exceptions import UnresolvableForwardRe...
4
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_dataclasses.py
test_annotated
assert
numeric_literal
25
import dataclasses from dataclasses import dataclass from pprint import pprint import sys from typing import Optional import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples from erdantic.exceptions import UnresolvableForwardRe...
1
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_dataclasses.py
test_get_fields_from_dataclass
assert
string_literal
26
import dataclasses from dataclasses import dataclass from pprint import pprint import sys from typing import Optional import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples from erdantic.exceptions import UnresolvableForwardRe...
"str"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_dataclasses.py
test_get_fields_from_dataclass
assert
string_literal
25
import dataclasses from dataclasses import dataclass from pprint import pprint import sys from typing import Optional import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples from erdantic.exceptions import UnresolvableForwardRe...
"name"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_dataclasses.py
test_forward_refs_global_scope
assert
string_literal
25
import dataclasses from dataclasses import dataclass from pprint import pprint import sys from typing import Optional import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples from erdantic.exceptions import UnresolvableForwardRe...
"Party"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_dataclasses.py
test_get_fields_from_dataclass
assert
string_literal
33
import dataclasses from dataclasses import dataclass from pprint import pprint import sys from typing import Optional import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples from erdantic.exceptions import UnresolvableForwardRe...
"members"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_dataclasses.py
test_get_fields_from_dataclass
assert
string_literal
30
import dataclasses from dataclasses import dataclass from pprint import pprint import sys from typing import Optional import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples from erdantic.exceptions import UnresolvableForwardRe...
"datetime"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_dataclasses.py
test_forward_refs_global_scope
assert
string_literal
27
import dataclasses from dataclasses import dataclass from pprint import pprint import sys from typing import Optional import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples from erdantic.exceptions import UnresolvableForwardRe...
"Optional[Quest]"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_dataclasses.py
test_forward_refs_global_scope
assert
variable
30
import dataclasses from dataclasses import dataclass from pprint import pprint import sys from typing import Optional import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples from erdantic.exceptions import UnresolvableForwardRe...
GlobalWithFwdRefs
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_dataclasses.py
test_forward_refs_global_scope
assert
string_literal
29
import dataclasses from dataclasses import dataclass from pprint import pprint import sys from typing import Optional import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples from erdantic.exceptions import UnresolvableForwardRe...
"GlobalWithFwdRefs"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_dataclasses.py
test_forward_refs_global_scope
assert
variable
38
import dataclasses from dataclasses import dataclass from pprint import pprint import sys from typing import Optional import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples from erdantic.exceptions import UnresolvableForwardRe...
GlobalOtherClassAfter
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_dataclasses.py
test_forward_refs_fn_scope_auto_resolvable
assert
variable
37
import dataclasses from dataclasses import dataclass from pprint import pprint import sys from typing import Optional import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples from erdantic.exceptions import UnresolvableForwardRe...
GlobalOtherClassBefore
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_dataclasses.py
test_forward_refs_fn_scope_manual_resolvable
assert
variable
71
import dataclasses from dataclasses import dataclass from pprint import pprint import sys from typing import Optional import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples from erdantic.exceptions import UnresolvableForwardRe...
FnScopeOtherClassAfter
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_dataclasses.py
test_forward_refs_fn_scope_manual_resolvable
assert
variable
67
import dataclasses from dataclasses import dataclass from pprint import pprint import sys from typing import Optional import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples from erdantic.exceptions import UnresolvableForwardRe...
FnScopeOtherClassBefore
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_dataclasses.py
test_forward_refs_fn_scope_auto_resolvable
assert
string_literal
36
import dataclasses from dataclasses import dataclass from pprint import pprint import sys from typing import Optional import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.dataclasses as dataclasses_examples from erdantic.exceptions import UnresolvableForwardRe...
"GlobalOtherClassBefore"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_plugins.py
test_core_plugins
assert
numeric_literal
35
import subprocess import textwrap import pytest import erdantic.examples from erdantic.exceptions import PluginNotFoundError from erdantic.plugins import ( get_field_extractor_fn, get_predicate_fn, identify_field_extractor_fn, list_plugins, register_plugin, ) import erdantic.plugins.attrs import e...
0
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_plugins.py
test_register_plugin
assert
none_literal
49
import subprocess import textwrap import pytest import erdantic.examples from erdantic.exceptions import PluginNotFoundError from erdantic.plugins import ( get_field_extractor_fn, get_predicate_fn, identify_field_extractor_fn, list_plugins, register_plugin, ) import erdantic.plugins.attrs import e...
None
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_plugins.py
test_get_predicate_fn
assert
variable
27
import subprocess import textwrap import pytest import erdantic.examples from erdantic.exceptions import PluginNotFoundError from erdantic.plugins import ( get_field_extractor_fn, get_predicate_fn, identify_field_extractor_fn, list_plugins, register_plugin, ) import erdantic.plugins.attrs import e...
predicate_fn
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_plugins.py
test_identify_field_extractor_fn
assert
variable
30
import subprocess import textwrap import pytest import erdantic.examples from erdantic.exceptions import PluginNotFoundError from erdantic.plugins import ( get_field_extractor_fn, get_predicate_fn, identify_field_extractor_fn, list_plugins, register_plugin, ) import erdantic.plugins.attrs import e...
get_fields_fn
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_plugins.py
test_register_plugin
assert
func_call
37
import subprocess import textwrap import pytest import erdantic.examples from erdantic.exceptions import PluginNotFoundError from erdantic.plugins import ( get_field_extractor_fn, get_predicate_fn, identify_field_extractor_fn, list_plugins, register_plugin, ) import erdantic.plugins.attrs import e...
list_plugins()
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_plugins.py
test_get_predicate_fn
pytest.raises
variable
29
import subprocess import textwrap import pytest import erdantic.examples from erdantic.exceptions import PluginNotFoundError from erdantic.plugins import ( get_field_extractor_fn, get_predicate_fn, identify_field_extractor_fn, list_plugins, register_plugin, ) import erdantic.plugins.attrs import e...
PluginNotFoundError)
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_plugins.py
test_register_plugin
assert
variable
41
import subprocess import textwrap import pytest import erdantic.examples from erdantic.exceptions import PluginNotFoundError from erdantic.plugins import ( get_field_extractor_fn, get_predicate_fn, identify_field_extractor_fn, list_plugins, register_plugin, ) import erdantic.plugins.attrs import e...
get_fields_from_custom_model
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_plugins.py
test_register_plugin
assert
collection
42
import subprocess import textwrap import pytest import erdantic.examples from erdantic.exceptions import PluginNotFoundError from erdantic.plugins import ( get_field_extractor_fn, get_predicate_fn, identify_field_extractor_fn, list_plugins, register_plugin, ) import erdantic.plugins.attrs import e...
( get_fields_from_custom_model, None, )
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic.py
test_get_fields_from_pydantic_model
assert
numeric_literal
20
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
4
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic.py
test_get_fields_from_pydantic_model
assert
string_literal
25
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"str"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic.py
test_get_fields_from_pydantic_model
assert
string_literal
24
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"name"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic.py
test_forward_refs_global_scope
assert
string_literal
24
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"Party"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic.py
test_get_fields_from_pydantic_model
assert
string_literal
32
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"members"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic.py
test_get_fields_from_pydantic_model
assert
string_literal
29
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"datetime"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic.py
test_forward_refs_global_scope
assert
string_literal
26
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"Optional[Quest]"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic.py
test_forward_refs_global_scope
assert
variable
29
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
GlobalWithFwdRefs
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic.py
test_forward_refs_global_scope
assert
string_literal
28
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"GlobalWithFwdRefs"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic.py
test_forward_refs_global_scope
assert
variable
38
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
GlobalOtherModelAfter
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic.py
test_forward_refs_fn_scope_manual_resolvable
assert
variable
49
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
FnScopeOtherModelAfter
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic.py
test_forward_refs_fn_scope_auto_resolvable
assert
complex_expr
41
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
pydantic_examples.Party
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic.py
test_forward_refs_fn_scope_manual_resolvable
assert
string_literal
48
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"FnScopeOtherModelAfter"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic.py
test_forward_refs_fn_scope_manual_resolvable
assert
complex_expr
51
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
Optional[FnScopeOtherModelAfter]
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic.py
test_forward_refs_fn_scope_manual_resolvable
assert
string_literal
50
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"Optional[FnScopeOtherModelAfter]"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic.py
test_forward_refs_fn_scope_manual_resolvable
pytest.raises
complex_expr
31
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
UnresolvableForwardRefError, match="'FnScopeOtherModelAfter'")
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic_v1.py
test_get_fields_from_pydantic_v1_model
assert
numeric_literal
20
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
4
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic_v1.py
test_get_fields_from_pydantic_v1_model
assert
string_literal
25
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"str"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic_v1.py
test_get_fields_from_pydantic_v1_model
assert
string_literal
24
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"name"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic_v1.py
test_forward_refs_global_scope
assert
string_literal
24
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"Party"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic_v1.py
test_get_fields_from_pydantic_v1_model
assert
string_literal
32
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"members"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic_v1.py
test_get_fields_from_pydantic_v1_model
assert
string_literal
29
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"datetime"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic_v1.py
test_forward_refs_global_scope
assert
string_literal
26
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"Optional[Quest]"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic_v1.py
test_forward_refs_global_scope
assert
variable
29
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
GlobalWithFwdRefs
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic_v1.py
test_forward_refs_global_scope
assert
string_literal
28
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"GlobalWithFwdRefs"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic_v1.py
test_forward_refs_global_scope
assert
variable
38
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
GlobalOtherModelAfter
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic_v1.py
test_forward_refs_fn_scope_auto_resolvable
assert
variable
39
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
GlobalOtherModelBefore
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic_v1.py
test_forward_refs_fn_scope_manual_resolvable
assert
variable
61
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
FnScopeOtherModelAfter
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic_v1.py
test_forward_refs_fn_scope_manual_resolvable
assert
variable
57
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
FnScopeOtherModelBefore
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic_v1.py
test_forward_refs_fn_scope_auto_resolvable
assert
string_literal
38
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"GlobalOtherModelBefore"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic_v1.py
test_forward_refs_fn_scope_manual_resolvable
assert
string_literal
60
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"FnScopeOtherModelAfter"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic_v1.py
test_forward_refs_fn_scope_manual_resolvable
assert
string_literal
56
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
"FnScopeOtherModelBefore"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic_v1.py
test_forward_refs_fn_scope_auto_resolvable
assert
complex_expr
35
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
pydantic_v1_examples.Party
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_pydantic_v1.py
test_forward_refs_fn_scope_manual_resolvable
assert
complex_expr
63
from pprint import pprint from typing import Optional import pydantic import pydantic.v1 import pytest from erdantic.core import EntityRelationshipDiagram, FullyQualifiedName import erdantic.examples.pydantic as pydantic_examples import erdantic.examples.pydantic_v1 as pydantic_v1_examples from erdantic.exceptions im...
Optional[FnScopeOtherModelAfter]
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_typing_utils.py
test_get_recursive_args
assert
collection
21
import typing import pytest from erdantic.exceptions import _UnevaluatedForwardRefError from erdantic.typing_utils import ( get_depth1_bases, get_recursive_args, is_collection_type_of, is_nullable_type, repr_type_with_mro, ) def test_get_recursive_args(): tp = typing.Optional[typing.Dict[str,...
[str]
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_typing_utils.py
test_get_recursive_args
assert
collection
28
import typing import pytest from erdantic.exceptions import _UnevaluatedForwardRefError from erdantic.typing_utils import ( get_depth1_bases, get_recursive_args, is_collection_type_of, is_nullable_type, repr_type_with_mro, ) def test_get_recursive_args(): tp = typing.Optional[typing.Dict[str,...
[int, T]
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_typing_utils.py
test_get_recursive_args
assert
collection
49
import typing import pytest from erdantic.exceptions import _UnevaluatedForwardRefError from erdantic.typing_utils import ( get_depth1_bases, get_recursive_args, is_collection_type_of, is_nullable_type, repr_type_with_mro, ) def test_get_recursive_args(): tp = typing.Optional[typing.Dict[str,...
[SomeForwardRef]
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_typing_utils.py
test_repr_type_with_mro
assert
func_call
23
import typing import pytest from erdantic.exceptions import _UnevaluatedForwardRefError from erdantic.typing_utils import ( get_depth1_bases, get_recursive_args, is_collection_type_of, is_nullable_type, repr_type_with_mro, ) def test_repr_type_with_mro(): class FancyInt(int): pass ...
repr(FancyInt())
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_typing_utils.py
test_get_recursive_args
pytest.raises
variable
32
import typing import pytest from erdantic.exceptions import _UnevaluatedForwardRefError from erdantic.typing_utils import ( get_depth1_bases, get_recursive_args, is_collection_type_of, is_nullable_type, repr_type_with_mro, ) def test_get_recursive_args(): tp = typing.Optional[typing.Dict[str,...
_UnevaluatedForwardRefError)
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/test_typing_utils.py
test_repr_type_with_mro
assert
string_literal
19
import typing import pytest from erdantic.exceptions import _UnevaluatedForwardRefError from erdantic.typing_utils import ( get_depth1_bases, get_recursive_args, is_collection_type_of, is_nullable_type, repr_type_with_mro, ) def test_repr_type_with_mro(): class FancyInt(int): pass ...
"<mro (tests.test_typing_utils.test_repr_type_with_mro.<locals>.FancyInt, int, object)>"
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drivendataorg/erdantic
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
train
train
tests/utils.py
assert_dot_equals
assert
variable
8
import pygraphviz as pgv def assert_dot_equals(left: str, right: str): """Assert two DOT language representations specify identical graphs.""" gleft = pgv.AGraph(left) gright = pgv.AGraph(right) assert gleft ==
gright
2db369bbe3c2bcf310db17942c3c20ed4fbff026
38
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_fictitious_play.py
test_property_find_best_response_to_play_count
assert
numeric_literal
19
import types import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers from nashpy.learning.fictitious_play import ( fictitious_play, get_best_response_to_play_count, update_play_count, ) @given(M=arrays(np.int8, (4, 5))) def test...
0
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_fictitious_play.py
test_property_find_best_response_to_play_count
assert
complex_expr
20
import types import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers from nashpy.learning.fictitious_play import ( fictitious_play, get_best_response_to_play_count, update_play_count, ) @given(M=arrays(np.int8, (4, 5))) def test...
M.shape[1] - 1
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_fictitious_play.py
test_property_fictitious_play
assert
complex_expr
24
import types import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers from nashpy.learning.fictitious_play import ( fictitious_play, get_best_response_to_play_count, update_play_count, ) @given( A=arrays(np.int8, (4, 5)), ...
iterations + 1
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_fictitious_play.py
test_find_best_response_to_play_count
assert
variable
25
import types import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers from nashpy.learning.fictitious_play import ( fictitious_play, get_best_response_to_play_count, update_play_count, ) def test_find_best_response_to_play_count(...
expected_best_response
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_fictitious_play.py
test_property_update_belief
assert
complex_expr
19
import types import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers from nashpy.learning.fictitious_play import ( fictitious_play, get_best_response_to_play_count, update_play_count, ) @given(play=integers(min_value=0, max_valu...
updated_play_count[play]
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_fictitious_play.py
test_property_fictitious_play
assert
func_call
25
import types import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers from nashpy.learning.fictitious_play import ( fictitious_play, get_best_response_to_play_count, update_play_count, ) @given( A=arrays(np.int8, (4, 5)), ...
min(tuple(map(len, play_counts)))
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_game.py
test_support_enumeration_for_particular_game
assert
numeric_literal
46
import unittest import warnings import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers import pytest import nashpy as nash import nashpy.learning class TestGame(unittest.TestCase): def test_support_enumeration_for_particular_game(self...
1
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_game.py
test_support_enumeration_for_degenerate_bi_matrix_game
self.assertGreater
numeric_literal
34
import unittest import warnings import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers import pytest import nashpy as nash import nashpy.learning class TestGame(unittest.TestCase): def test_support_enumeration_for_degenerate_bi_matrix...
0)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor
drvinceknight/Nashpy
a39e4c01780150adfa6dd1765956b750471384b3
51
train
train
tests/unit/test_game.py
test_support_enumeration_for_deg_bi_matrix_game_with_non_deg
self.assertEqual
numeric_literal
22
import unittest import warnings import numpy as np from hypothesis import given from hypothesis.extra.numpy import arrays from hypothesis.strategies import integers import pytest import nashpy as nash import nashpy.learning class TestGame(unittest.TestCase): def test_support_enumeration_for_deg_bi_matrix_game_w...
4)
a39e4c01780150adfa6dd1765956b750471384b3
51
v2_extractor_at_anchor