id int64 0 328k | repository_name stringlengths 7 58 | file_path stringlengths 9 302 | class_name stringlengths 5 256 | human_written_code stringlengths 16 2.16M | class_skeleton stringlengths 18 1.49M ⌀ | total_program_units int64 1 1.76k | total_doc_str int64 0 771 | AvgCountLine float64 0 7.89k | AvgCountLineBlank float64 0 297 | AvgCountLineCode float64 0 7.89k | AvgCountLineComment float64 0 7.89k | AvgCyclomatic float64 0 130 | CommentToCodeRatio float64 0 168 | CountClassBase float64 0 40 | CountClassCoupled float64 0 583 | CountClassCoupledModified float64 0 575 | CountClassDerived float64 0 5.35k | CountDeclInstanceMethod float64 0 529 | CountDeclInstanceVariable float64 0 296 | CountDeclMethod float64 0 599 | CountDeclMethodAll float64 0 1.12k | CountLine float64 1 40.4k | CountLineBlank float64 0 8.16k | CountLineCode float64 1 25.7k | CountLineCodeDecl float64 1 8.15k | CountLineCodeExe float64 0 24.2k | CountLineComment float64 0 16.5k | CountStmt float64 1 9.71k | CountStmtDecl float64 1 8.15k | CountStmtExe float64 0 9.69k | MaxCyclomatic float64 0 759 | MaxInheritanceTree float64 0 16 | MaxNesting float64 0 34 | SumCyclomatic float64 0 2.9k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23,900 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/model/sample.py | ydata_profiling.model.sample.Sample | from pydantic.v1 import BaseModel
from typing import List, Optional, TypeVar
class Sample(BaseModel):
id: str
data: T
name: str
caption: Optional[str] = None |
class Sample(BaseModel):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 50 | 5 | 0 | 5 | 2 | 4 | 1 | 5 | 2 | 4 | 0 | 5 | 0 | 0 |
23,901 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/model/spark/missing_spark.py | ydata_profiling.model.spark.missing_spark.MissingnoBarSparkPatch | from pyspark.sql import DataFrame
from typing import Any, List, Optional
class MissingnoBarSparkPatch:
"""
Technical Debt :
This is a monkey patching object that allows usage of the library missingno as is for spark dataframes.
This is because missingno library's bar function always applies a isnull().... |
class MissingnoBarSparkPatch:
'''
Technical Debt :
This is a monkey patching object that allows usage of the library missingno as is for spark dataframes.
This is because missingno library's bar function always applies a isnull().sum() on dataframes in the visualisation
function, instead of allowin... | 5 | 4 | 5 | 0 | 3 | 3 | 1 | 1.92 | 0 | 3 | 0 | 0 | 4 | 3 | 4 | 4 | 40 | 4 | 13 | 10 | 6 | 25 | 11 | 8 | 6 | 1 | 0 | 0 | 4 |
23,902 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/model/summarizer.py | ydata_profiling.model.summarizer.BaseSummarizer | from ydata_profiling.model.handler import Handler
from visions import VisionsBaseType, VisionsTypeset
from ydata_profiling.config import Settings
import pandas as pd
from typing import Any, Callable, Dict, List, Type, Union
class BaseSummarizer(Handler):
"""A base summarizer
Can be used to define custom summa... |
class BaseSummarizer(Handler):
'''A base summarizer
Can be used to define custom summarizations
'''
def summarize(self, config: Settings, series: pd.Series, dtype: Type[VisionsBaseType]) -> dict:
'''Generates the summary for a given series'''
pass | 2 | 2 | 10 | 1 | 5 | 4 | 1 | 1.17 | 1 | 3 | 1 | 1 | 1 | 0 | 1 | 4 | 16 | 3 | 6 | 5 | 2 | 7 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
23,903 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/model/typeset.py | ydata_profiling.model.typeset.ProfilingTypeSet | import warnings
from ydata_profiling.config import Settings
import visions
from pandas.api import types as pdt
class ProfilingTypeSet(visions.VisionsTypeset):
def __init__(self, config: Settings, type_schema: dict=None):
self.config = config
types = typeset_types(config)
with warnings.catc... |
class ProfilingTypeSet(visions.VisionsTypeset):
def __init__(self, config: Settings, type_schema: dict=None):
pass
def _init_type_schema(self, type_schema: dict) -> dict:
pass
def _get_type(self, type_name: str) -> visions.VisionsBaseType:
pass | 4 | 0 | 6 | 1 | 5 | 0 | 2 | 0 | 1 | 7 | 1 | 0 | 3 | 2 | 3 | 3 | 20 | 5 | 15 | 8 | 11 | 0 | 15 | 8 | 11 | 3 | 1 | 2 | 5 |
23,904 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/profile_report.py | ydata_profiling.profile_report.ProfileReport | from ydata_profiling.utils.paths import get_config
from ydata_profiling.model.typeset import ProfilingTypeSet
import json
from tqdm.auto import tqdm
from visions import VisionsTypeset
from ydata_profiling.model import BaseDescription
import pandas as pd
import copy
import numpy as np
from typeguard import typechecked
f... | @typechecked
class ProfileReport(SerializeReport, ExpectationsReport):
'''Generate a profile report from a Dataset stored as a pandas `DataFrame`.
Used as is, it will output its content as an HTML report in a Jupyter notebook.
'''
def __init__(self, df: Optional[Union[pd.DataFrame, sDataFrame]]=None, m... | 40 | 15 | 17 | 2 | 12 | 3 | 3 | 0.28 | 2 | 25 | 9 | 0 | 25 | 6 | 27 | 34 | 513 | 88 | 335 | 110 | 258 | 93 | 213 | 67 | 174 | 12 | 1 | 3 | 81 |
23,905 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/Container.py | ydata_profiling.report.presentation.core.Container.Container | from ydata_profiling.report.presentation.core.renderable import Renderable
from typing import Any, Callable, Optional, Sequence
class Container(Renderable):
def __init__(self, items: Sequence[Renderable], sequence_type: str, nested: bool=False, name: Optional[str]=None, anchor_id: Optional[str]=None, classes: Opt... |
class Container(Renderable):
def __init__(self, items: Sequence[Renderable], sequence_type: str, nested: bool=False, name: Optional[str]=None, anchor_id: Optional[str]=None, classes: Optional[str]=None, oss: Optional[bool]=None, **kwargs):
pass
def __str__(self) -> str:
pass
def __repr__... | 7 | 0 | 7 | 0 | 7 | 0 | 2 | 0 | 1 | 6 | 0 | 0 | 4 | 1 | 5 | 32 | 40 | 4 | 36 | 23 | 20 | 0 | 25 | 13 | 19 | 3 | 5 | 2 | 10 |
23,906 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/Dropdown.py | ydata_profiling.report.presentation.core.Dropdown.Dropdown | from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer
from typing import Any, Callable
from ydata_profiling.report.presentation.core.renderable import Renderable
from ydata_profiling.report.presentation.core.container import Container
class Dropdown(ItemRenderer):
def __init__(self, name... |
class Dropdown(ItemRenderer):
def __init__(self, name: str, id: str, items: list, item: Container, anchor_id: str, classes: list, is_row: bool, **kwargs):
pass
def __repr__(self) -> str:
pass
def render(self) -> Any:
pass
@classmethod
def convert_to_class(cls, obj: Render... | 6 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 1 | 7 | 1 | 0 | 3 | 0 | 4 | 32 | 37 | 3 | 34 | 16 | 18 | 0 | 11 | 5 | 6 | 2 | 6 | 1 | 5 |
23,907 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/Duplicate.py | ydata_profiling.report.presentation.core.Duplicate.Duplicate | from typing import Any
import pandas as pd
from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer
class Duplicate(ItemRenderer):
def __init__(self, name: str, duplicate: pd.DataFrame, **kwargs):
super().__init__('duplicate', {'duplicate': duplicate}, name=name, **kwargs)
def ... |
class Duplicate(ItemRenderer):
def __init__(self, name: str, duplicate: pd.DataFrame, **kwargs):
pass
def __repr__(self) -> str:
pass
def render(self) -> Any:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 4 | 0 | 0 | 3 | 0 | 3 | 31 | 9 | 2 | 7 | 4 | 3 | 0 | 7 | 4 | 3 | 1 | 6 | 0 | 3 |
23,908 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/HTML.py | ydata_profiling.report.presentation.core.HTML.HTML | from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer
from typing import Any
class HTML(ItemRenderer):
def __init__(self, content: str, **kwargs):
super().__init__('html', {'html': content}, **kwargs)
def __repr__(self) -> str:
return 'HTML'
def render(self) -> ... |
class HTML(ItemRenderer):
def __init__(self, content: str, **kwargs):
pass
def __repr__(self) -> str:
pass
def render(self) -> Any:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 4 | 0 | 0 | 3 | 0 | 3 | 31 | 9 | 2 | 7 | 4 | 3 | 0 | 7 | 4 | 3 | 1 | 6 | 0 | 3 |
23,909 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/alerts.py | ydata_profiling.report.presentation.core.alerts.Alerts | from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer
from typing import Any, Dict, List, Union
from ydata_profiling.model.alerts import Alert
from ydata_profiling.config import Style
class Alerts(ItemRenderer):
def __init__(self, alerts: Union[List[Alert], Dict[str, List[Alert]]], style... |
class Alerts(ItemRenderer):
def __init__(self, alerts: Union[List[Alert], Dict[str, List[Alert]]], style: Style, **kwargs):
pass
def __repr__(self):
pass
def render(self) -> Any:
pass | 4 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 6 | 2 | 1 | 3 | 0 | 3 | 31 | 11 | 2 | 9 | 6 | 3 | 0 | 7 | 4 | 3 | 1 | 6 | 0 | 3 |
23,910 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/collapse.py | ydata_profiling.report.presentation.core.collapse.Collapse | from ydata_profiling.report.presentation.core.toggle_button import ToggleButton
from typing import Any, Callable
from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer
from ydata_profiling.report.presentation.core.renderable import Renderable
class Collapse(ItemRenderer):
def __init__(sel... |
class Collapse(ItemRenderer):
def __init__(self, button: ToggleButton, item: Renderable, **kwargs):
pass
def __repr__(self) -> str:
pass
def render(self) -> Any:
pass
@classmethod
def convert_to_class(cls, obj: Renderable, flv: Callable) -> None:
pass | 6 | 0 | 3 | 0 | 3 | 0 | 2 | 0 | 1 | 5 | 1 | 0 | 3 | 0 | 4 | 32 | 17 | 3 | 14 | 6 | 8 | 0 | 13 | 5 | 8 | 3 | 6 | 1 | 6 |
23,911 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/container.py | ydata_profiling.report.presentation.core.container.Container | from typing import Any, Callable, Optional, Sequence
from ydata_profiling.report.presentation.core.renderable import Renderable
class Container(Renderable):
def __init__(self, items: Sequence[Renderable], sequence_type: str, nested: bool=False, name: Optional[str]=None, anchor_id: Optional[str]=None, classes: Opt... |
class Container(Renderable):
def __init__(self, items: Sequence[Renderable], sequence_type: str, nested: bool=False, name: Optional[str]=None, anchor_id: Optional[str]=None, classes: Optional[str]=None, oss: Optional[bool]=None, **kwargs):
pass
def __str__(self) -> str:
pass
def __repr__... | 7 | 0 | 7 | 0 | 7 | 0 | 2 | 0 | 1 | 6 | 0 | 2 | 4 | 1 | 5 | 32 | 40 | 4 | 36 | 23 | 20 | 0 | 25 | 13 | 19 | 3 | 5 | 2 | 10 |
23,912 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/correlation_table.py | ydata_profiling.report.presentation.core.correlation_table.CorrelationTable | from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer
import pandas as pd
from typing import Any
class CorrelationTable(ItemRenderer):
def __init__(self, name: str, correlation_matrix: pd.DataFrame, **kwargs):
super().__init__('correlation_table', {'correlation_matrix': correlati... |
class CorrelationTable(ItemRenderer):
def __init__(self, name: str, correlation_matrix: pd.DataFrame, **kwargs):
pass
def __repr__(self) -> str:
pass
def render(self) -> Any:
pass | 4 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 4 | 0 | 2 | 3 | 0 | 3 | 31 | 14 | 2 | 12 | 4 | 8 | 0 | 7 | 4 | 3 | 1 | 6 | 0 | 3 |
23,913 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/dropdown.py | ydata_profiling.report.presentation.core.dropdown.Dropdown | from ydata_profiling.report.presentation.core.container import Container
from ydata_profiling.report.presentation.core.renderable import Renderable
from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer
from typing import Any, Callable
class Dropdown(ItemRenderer):
def __init__(self, name... |
class Dropdown(ItemRenderer):
def __init__(self, name: str, id: str, items: list, item: Container, anchor_id: str, classes: list, is_row: bool, **kwargs):
pass
def __repr__(self) -> str:
pass
def render(self) -> Any:
pass
@classmethod
def convert_to_class(cls, obj: Render... | 6 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 1 | 7 | 1 | 0 | 3 | 0 | 4 | 32 | 37 | 3 | 34 | 16 | 18 | 0 | 11 | 5 | 6 | 2 | 6 | 1 | 5 |
23,914 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/duplicate.py | ydata_profiling.report.presentation.core.duplicate.Duplicate | from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer
from typing import Any
import pandas as pd
class Duplicate(ItemRenderer):
def __init__(self, name: str, duplicate: pd.DataFrame, **kwargs):
super().__init__('duplicate', {'duplicate': duplicate}, name=name, **kwargs)
def ... |
class Duplicate(ItemRenderer):
def __init__(self, name: str, duplicate: pd.DataFrame, **kwargs):
pass
def __repr__(self) -> str:
pass
def render(self) -> Any:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 4 | 0 | 2 | 3 | 0 | 3 | 31 | 9 | 2 | 7 | 4 | 3 | 0 | 7 | 4 | 3 | 1 | 6 | 0 | 3 |
23,915 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/frequency_table.py | ydata_profiling.report.presentation.core.frequency_table.FrequencyTable | from typing import Any
from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer
class FrequencyTable(ItemRenderer):
def __init__(self, rows: list, redact: bool, **kwargs):
super().__init__('frequency_table', {'rows': rows, 'redact': redact}, **kwargs)
def __repr__(self) -> str:... |
class FrequencyTable(ItemRenderer):
def __init__(self, rows: list, redact: bool, **kwargs):
pass
def __repr__(self) -> str:
pass
def render(self) -> Any:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 6 | 0 | 2 | 3 | 0 | 3 | 31 | 9 | 2 | 7 | 4 | 3 | 0 | 7 | 4 | 3 | 1 | 6 | 0 | 3 |
23,916 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/frequency_table_small.py | ydata_profiling.report.presentation.core.frequency_table_small.FrequencyTableSmall | from typing import Any, List
from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer
class FrequencyTableSmall(ItemRenderer):
def __init__(self, rows: List[Any], redact: bool, **kwargs):
super().__init__('frequency_table_small', {'rows': rows, 'redact': redact}, **kwargs)
def ... |
class FrequencyTableSmall(ItemRenderer):
def __init__(self, rows: List[Any], redact: bool, **kwargs):
pass
def __repr__(self) -> str:
pass
def render(self) -> Any:
pass | 4 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 5 | 0 | 2 | 3 | 0 | 3 | 31 | 11 | 2 | 9 | 4 | 5 | 0 | 7 | 4 | 3 | 1 | 6 | 0 | 3 |
23,917 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/html.py | ydata_profiling.report.presentation.core.html.HTML | from typing import Any
from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer
class HTML(ItemRenderer):
def __init__(self, content: str, **kwargs):
super().__init__('html', {'html': content}, **kwargs)
def __repr__(self) -> str:
return 'HTML'
def render(self) -> ... |
class HTML(ItemRenderer):
def __init__(self, content: str, **kwargs):
pass
def __repr__(self) -> str:
pass
def render(self) -> Any:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 4 | 0 | 1 | 3 | 0 | 3 | 31 | 9 | 2 | 7 | 4 | 3 | 0 | 7 | 4 | 3 | 1 | 6 | 0 | 3 |
23,918 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/image.py | ydata_profiling.report.presentation.core.image.Image | from typing import Any, Optional
from ydata_profiling.config import ImageType
from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer
class Image(ItemRenderer):
def __init__(self, image: str, image_format: ImageType, alt: str, caption: Optional[str]=None, **kwargs):
if image is Non... |
class Image(ItemRenderer):
def __init__(self, image: str, image_format: ImageType, alt: str, caption: Optional[str]=None, **kwargs):
pass
def __repr__(self) -> str:
pass
def render(self) -> Any:
pass | 4 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 1 | 6 | 1 | 1 | 3 | 0 | 3 | 31 | 28 | 3 | 25 | 11 | 14 | 0 | 9 | 4 | 5 | 2 | 6 | 1 | 4 |
23,919 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/item_renderer.py | ydata_profiling.report.presentation.core.item_renderer.ItemRenderer | from typing import Optional
from ydata_profiling.report.presentation.core.renderable import Renderable
from abc import ABC
class ItemRenderer(Renderable, ABC):
def __init__(self, item_type: str, content: dict, name: Optional[str]=None, anchor_id: Optional[str]=None, classes: Optional[str]=None):
super()._... |
class ItemRenderer(Renderable, ABC):
def __init__(self, item_type: str, content: dict, name: Optional[str]=None, anchor_id: Optional[str]=None, classes: Optional[str]=None):
pass | 2 | 0 | 10 | 0 | 10 | 0 | 1 | 0 | 2 | 3 | 0 | 19 | 1 | 1 | 1 | 28 | 11 | 0 | 11 | 10 | 2 | 0 | 4 | 3 | 2 | 1 | 5 | 0 | 1 |
23,920 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/renderable.py | ydata_profiling.report.presentation.core.renderable.Renderable | from abc import ABC, abstractmethod
from typing import Any, Dict, Optional
class Renderable(ABC):
def __init__(self, content: Dict[str, Any], name: Optional[str]=None, anchor_id: Optional[str]=None, classes: Optional[str]=None):
self.content = content
if name is not None:
self.content[... |
class Renderable(ABC):
def __init__(self, content: Dict[str, Any], name: Optional[str]=None, anchor_id: Optional[str]=None, classes: Optional[str]=None):
pass
@property
def name(self) -> str:
pass
@property
def anchor_id(self) -> str:
pass
@property
def classes(self... | 13 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 2 | 0 | 3 | 6 | 1 | 7 | 27 | 38 | 6 | 32 | 20 | 13 | 0 | 21 | 9 | 13 | 4 | 4 | 1 | 10 |
23,921 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/root.py | ydata_profiling.report.presentation.core.root.Root | from ydata_profiling.report.presentation.core.renderable import Renderable
from typing import Any, Callable
from ydata_profiling.config import Style
from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer
class Root(ItemRenderer):
"""
Wrapper for the report.
"""
def __init__(se... |
class Root(ItemRenderer):
'''
Wrapper for the report.
'''
def __init__(self, name: str, body: Renderable, footer: Renderable, style: Style, **kwargs):
pass
def __repr__(self) -> str:
pass
def render(self, **kwargs) -> Any:
pass
@classmethod
def convert_to_clas... | 6 | 1 | 5 | 0 | 5 | 0 | 2 | 0.14 | 1 | 5 | 1 | 2 | 3 | 0 | 4 | 32 | 28 | 4 | 21 | 8 | 13 | 3 | 13 | 5 | 8 | 3 | 6 | 1 | 6 |
23,922 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/sample.py | ydata_profiling.report.presentation.core.sample.Sample | from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer
from typing import Any, Optional
import pandas as pd
class Sample(ItemRenderer):
def __init__(self, name: str, sample: pd.DataFrame, caption: Optional[str]=None, **kwargs):
super().__init__('sample', {'sample': sample, 'captio... |
class Sample(ItemRenderer):
def __init__(self, name: str, sample: pd.DataFrame, caption: Optional[str]=None, **kwargs):
pass
def __repr__(self) -> str:
pass
def render(self) -> Any:
pass | 4 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 1 | 4 | 0 | 2 | 3 | 0 | 3 | 31 | 13 | 2 | 11 | 6 | 5 | 0 | 7 | 4 | 3 | 1 | 6 | 0 | 3 |
23,923 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/table.py | ydata_profiling.report.presentation.core.table.Table | from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer
from ydata_profiling.config import Style
from typing import Any, Optional, Sequence
class Table(ItemRenderer):
def __init__(self, rows: Sequence, style: Style, name: Optional[str]=None, caption: Optional[str]=None, **kwargs):
... |
class Table(ItemRenderer):
def __init__(self, rows: Sequence, style: Style, name: Optional[str]=None, caption: Optional[str]=None, **kwargs):
pass
def __repr__(self) -> str:
pass
def render(self) -> Any:
pass | 4 | 0 | 6 | 0 | 6 | 0 | 1 | 0 | 1 | 5 | 1 | 2 | 3 | 0 | 3 | 31 | 20 | 2 | 18 | 11 | 7 | 0 | 7 | 4 | 3 | 1 | 6 | 0 | 3 |
23,924 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/toggle_button.py | ydata_profiling.report.presentation.core.toggle_button.ToggleButton | from typing import Any
from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer
class ToggleButton(ItemRenderer):
def __init__(self, text: str, **kwargs):
super().__init__('toggle_button', {'text': text}, **kwargs)
def __repr__(self) -> str:
return 'ToggleButton'
d... |
class ToggleButton(ItemRenderer):
def __init__(self, text: str, **kwargs):
pass
def __repr__(self) -> str:
pass
def render(self) -> Any:
pass | 4 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 4 | 0 | 2 | 3 | 0 | 3 | 31 | 9 | 2 | 7 | 4 | 3 | 0 | 7 | 4 | 3 | 1 | 6 | 0 | 3 |
23,925 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/variable.py | ydata_profiling.report.presentation.core.variable.Variable | from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer
from ydata_profiling.report.presentation.core.renderable import Renderable
from typing import Any, Callable, Optional
class Variable(ItemRenderer):
def __init__(self, top: Renderable, bottom: Optional[Renderable]=None, ignore: bool=Fa... |
class Variable(ItemRenderer):
def __init__(self, top: Renderable, bottom: Optional[Renderable]=None, ignore: bool=False, **kwargs):
pass
def __str__(self):
pass
def __repr__(self):
pass
def render(self) -> Any:
pass
@classmethod
def convert_to_class(cls, obj:... | 7 | 0 | 6 | 0 | 5 | 0 | 1 | 0 | 1 | 5 | 0 | 0 | 4 | 0 | 5 | 33 | 34 | 5 | 29 | 16 | 16 | 0 | 20 | 9 | 14 | 3 | 6 | 1 | 7 |
23,926 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/core/variable_info.py | ydata_profiling.report.presentation.core.variable_info.VariableInfo | from typing import Any, List
from ydata_profiling.report.presentation.core.item_renderer import ItemRenderer
from ydata_profiling.model.alerts import Alert
from ydata_profiling.config import Style
class VariableInfo(ItemRenderer):
def __init__(self, anchor_id: str, var_name: str, var_type: str, alerts: List[Alert... |
class VariableInfo(ItemRenderer):
def __init__(self, anchor_id: str, var_name: str, var_type: str, alerts: List[Alert], description: str, style: Style, **kwargs):
pass
def __repr__(self) -> str:
pass
def render(self) -> Any:
pass | 4 | 0 | 9 | 0 | 9 | 0 | 1 | 0 | 1 | 6 | 2 | 2 | 3 | 0 | 3 | 31 | 29 | 2 | 27 | 13 | 14 | 0 | 7 | 4 | 3 | 1 | 6 | 0 | 3 |
23,927 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/html/alerts.py | ydata_profiling.report.presentation.flavours.html.alerts.HTMLAlerts | from ydata_profiling.report.presentation.core.alerts import Alerts
from ydata_profiling.report.presentation.flavours.html import templates
from ydata_profiling.utils.styles import get_alert_styles
class HTMLAlerts(Alerts):
def render(self) -> str:
styles = get_alert_styles()
return templates.templ... |
class HTMLAlerts(Alerts):
def render(self) -> str:
pass | 2 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 32 | 5 | 1 | 4 | 4 | 2 | 0 | 4 | 3 | 2 | 1 | 7 | 0 | 1 |
23,928 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/html/collapse.py | ydata_profiling.report.presentation.flavours.html.collapse.HTMLCollapse | from ydata_profiling.report.presentation.core import Collapse
from ydata_profiling.report.presentation.flavours.html import templates
class HTMLCollapse(Collapse):
def render(self) -> str:
return templates.template('collapse.html').render(**self.content) |
class HTMLCollapse(Collapse):
def render(self) -> str:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
23,929 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/html/container.py | ydata_profiling.report.presentation.flavours.html.container.HTMLContainer | from ydata_profiling.report.presentation.flavours.html import templates
from ydata_profiling.report.presentation.core.container import Container
class HTMLContainer(Container):
def render(self) -> str:
if self.sequence_type in ['list', 'accordion']:
return templates.template('sequence/list.htm... |
class HTMLContainer(Container):
def render(self) -> str:
pass | 2 | 0 | 39 | 0 | 39 | 0 | 8 | 0 | 1 | 2 | 0 | 0 | 1 | 1 | 1 | 33 | 40 | 0 | 40 | 3 | 38 | 0 | 11 | 2 | 9 | 8 | 6 | 1 | 8 |
23,930 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/html/correlation_table.py | ydata_profiling.report.presentation.flavours.html.correlation_table.HTMLCorrelationTable | from ydata_profiling.report.presentation.flavours.html import templates
from ydata_profiling.report.presentation.core.correlation_table import CorrelationTable
class HTMLCorrelationTable(CorrelationTable):
def render(self) -> str:
correlation_matrix_html = self.content['correlation_matrix'].to_html(classe... |
class HTMLCorrelationTable(CorrelationTable):
def render(self) -> str:
pass | 2 | 0 | 8 | 0 | 8 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 32 | 9 | 0 | 9 | 4 | 7 | 0 | 4 | 3 | 2 | 1 | 7 | 0 | 1 |
23,931 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/html/dropdown.py | ydata_profiling.report.presentation.flavours.html.dropdown.HTMLDropdown | from ydata_profiling.report.presentation.core import Dropdown
from ydata_profiling.report.presentation.flavours.html import templates
class HTMLDropdown(Dropdown):
def render(self) -> str:
return templates.template('dropdown.html').render(**self.content) |
class HTMLDropdown(Dropdown):
def render(self) -> str:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
23,932 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/html/duplicate.py | ydata_profiling.report.presentation.flavours.html.duplicate.HTMLDuplicate | from ydata_profiling.report.presentation.flavours.html import templates
from ydata_profiling.report.presentation.core.duplicate import Duplicate
class HTMLDuplicate(Duplicate):
def render(self) -> str:
duplicate_html = to_html(self.content['duplicate'])
return templates.template('duplicate.html').... |
class HTMLDuplicate(Duplicate):
def render(self) -> str:
pass | 2 | 0 | 5 | 0 | 5 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 32 | 6 | 0 | 6 | 4 | 4 | 0 | 4 | 3 | 2 | 1 | 7 | 0 | 1 |
23,933 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/html/frequency_table.py | ydata_profiling.report.presentation.flavours.html.frequency_table.HTMLFrequencyTable | from ydata_profiling.report.presentation.core import FrequencyTable
from ydata_profiling.report.presentation.flavours.html import templates
class HTMLFrequencyTable(FrequencyTable):
def render(self) -> str:
if isinstance(self.content['rows'][0], list):
html = ''
kwargs = self.conte... |
class HTMLFrequencyTable(FrequencyTable):
def render(self) -> str:
pass | 2 | 0 | 15 | 1 | 14 | 0 | 3 | 0 | 1 | 3 | 0 | 0 | 1 | 1 | 1 | 32 | 16 | 1 | 15 | 6 | 13 | 0 | 10 | 5 | 8 | 3 | 7 | 2 | 3 |
23,934 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/html/frequency_table_small.py | ydata_profiling.report.presentation.flavours.html.frequency_table_small.HTMLFrequencyTableSmall | from ydata_profiling.report.presentation.core import FrequencyTableSmall
from ydata_profiling.report.presentation.flavours.html import templates
class HTMLFrequencyTableSmall(FrequencyTableSmall):
def render(self) -> str:
html = ''
kwargs = self.content.copy()
del kwargs['rows']
fo... |
class HTMLFrequencyTableSmall(FrequencyTableSmall):
def render(self) -> str:
pass | 2 | 0 | 10 | 1 | 9 | 0 | 2 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 32 | 11 | 1 | 10 | 5 | 8 | 0 | 8 | 5 | 6 | 2 | 7 | 1 | 2 |
23,935 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/html/html.py | ydata_profiling.report.presentation.flavours.html.html.HTMLHTML | from ydata_profiling.report.presentation.core import HTML
class HTMLHTML(HTML):
def render(self) -> str:
return self.content['html'] |
class HTMLHTML(HTML):
def render(self) -> str:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
23,936 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/html/image.py | ydata_profiling.report.presentation.flavours.html.image.HTMLImage | from ydata_profiling.report.presentation.core import Image
from ydata_profiling.report.presentation.flavours.html import templates
class HTMLImage(Image):
def render(self) -> str:
return templates.template('diagram.html').render(**self.content) |
class HTMLImage(Image):
def render(self) -> str:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
23,937 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/html/root.py | ydata_profiling.report.presentation.flavours.html.root.HTMLRoot | from ydata_profiling.report.presentation.flavours.html import templates
from ydata_profiling.report.presentation.core.root import Root
class HTMLRoot(Root):
def render(self, **kwargs) -> str:
nav_items = [(section.name, section.anchor_id) for section in self.content['body'].content['items']]
retur... |
class HTMLRoot(Root):
def render(self, **kwargs) -> str:
pass | 2 | 0 | 9 | 1 | 8 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 33 | 10 | 1 | 9 | 4 | 7 | 0 | 4 | 3 | 2 | 1 | 7 | 0 | 1 |
23,938 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/html/sample.py | ydata_profiling.report.presentation.flavours.html.sample.HTMLSample | from ydata_profiling.report.presentation.flavours.html import templates
from ydata_profiling.report.presentation.core.sample import Sample
class HTMLSample(Sample):
def render(self) -> str:
sample_html = self.content['sample'].to_html(classes='sample table table-striped')
return templates.template... |
class HTMLSample(Sample):
def render(self) -> str:
pass | 2 | 0 | 7 | 0 | 7 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 1 | 32 | 8 | 0 | 8 | 4 | 6 | 0 | 4 | 3 | 2 | 1 | 7 | 0 | 1 |
23,939 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/html/table.py | ydata_profiling.report.presentation.flavours.html.table.HTMLTable | from ydata_profiling.report.presentation.core.table import Table
from ydata_profiling.report.presentation.flavours.html import templates
class HTMLTable(Table):
def render(self) -> str:
return templates.template('table.html').render(**self.content) |
class HTMLTable(Table):
def render(self) -> str:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 32 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 7 | 0 | 1 |
23,940 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/html/toggle_button.py | ydata_profiling.report.presentation.flavours.html.toggle_button.HTMLToggleButton | from ydata_profiling.report.presentation.core import ToggleButton
from ydata_profiling.report.presentation.flavours.html import templates
class HTMLToggleButton(ToggleButton):
def render(self) -> str:
return templates.template('toggle_button.html').render(**self.content) |
class HTMLToggleButton(ToggleButton):
def render(self) -> str:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 32 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 7 | 0 | 1 |
23,941 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/html/variable.py | ydata_profiling.report.presentation.flavours.html.variable.HTMLVariable | from ydata_profiling.report.presentation.flavours.html import templates
from ydata_profiling.report.presentation.core import Variable
class HTMLVariable(Variable):
def render(self) -> str:
return templates.template('variable.html').render(**self.content) |
class HTMLVariable(Variable):
def render(self) -> str:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
23,942 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/html/variable_info.py | ydata_profiling.report.presentation.flavours.html.variable_info.HTMLVariableInfo | from ydata_profiling.report.presentation.flavours.html import templates
from ydata_profiling.report.presentation.core import VariableInfo
class HTMLVariableInfo(VariableInfo):
def render(self) -> str:
return templates.template('variable_info.html').render(**self.content) |
class HTMLVariableInfo(VariableInfo):
def render(self) -> str:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 32 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 7 | 0 | 1 |
23,943 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/widget/alerts.py | ydata_profiling.report.presentation.flavours.widget.alerts.WidgetAlerts | from ipywidgets import HTML, Button, widgets
from ydata_profiling.utils.styles import get_alert_styles
from ydata_profiling.report.presentation.core import Alerts
from ydata_profiling.report.presentation.flavours.html import templates
class WidgetAlerts(Alerts):
def render(self) -> widgets.GridBox:
styles... |
class WidgetAlerts(Alerts):
def render(self) -> widgets.GridBox:
pass | 2 | 0 | 30 | 5 | 25 | 0 | 4 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 31 | 5 | 26 | 7 | 24 | 0 | 14 | 7 | 12 | 4 | 1 | 2 | 4 |
23,944 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/widget/collapse.py | ydata_profiling.report.presentation.flavours.widget.collapse.WidgetCollapse | from ipywidgets import Box, widgets
from ydata_profiling.report.presentation.core import Collapse
class WidgetCollapse(Collapse):
def render(self) -> widgets.VBox:
if self.content['button'].anchor_id == 'toggle-correlation-description':
collapse = 'correlation'
else:
collap... |
class WidgetCollapse(Collapse):
def render(self) -> widgets.VBox:
pass
def toggle_func(widg: dict) -> None:
pass
def toggle_func(widg: dict) -> None:
pass | 4 | 0 | 18 | 3 | 15 | 0 | 3 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 38 | 8 | 30 | 11 | 26 | 0 | 26 | 11 | 22 | 4 | 1 | 2 | 9 |
23,945 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/widget/container.py | ydata_profiling.report.presentation.flavours.widget.container.WidgetContainer | from ydata_profiling.report.presentation.core.container import Container
from ipywidgets import widgets
class WidgetContainer(Container):
def render(self) -> widgets.Widget:
if self.sequence_type == 'list':
widget = get_list(self.content['items'])
elif self.sequence_type == 'named_list... |
class WidgetContainer(Container):
def render(self) -> widgets.Widget:
pass | 2 | 0 | 22 | 1 | 21 | 0 | 7 | 0 | 1 | 2 | 0 | 0 | 1 | 1 | 1 | 33 | 23 | 1 | 22 | 4 | 20 | 0 | 11 | 3 | 9 | 7 | 6 | 1 | 7 |
23,946 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/widget/correlation_table.py | ydata_profiling.report.presentation.flavours.widget.correlation_table.WidgetCorrelationTable | from IPython.display import display
from ipywidgets import Output, widgets
from ydata_profiling.report.presentation.core.correlation_table import CorrelationTable
class WidgetCorrelationTable(CorrelationTable):
def render(self) -> widgets.VBox:
out = Output()
with out:
display(self.con... |
class WidgetCorrelationTable(CorrelationTable):
def render(self) -> widgets.VBox:
pass | 2 | 0 | 7 | 1 | 6 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 32 | 8 | 1 | 7 | 4 | 5 | 0 | 7 | 4 | 5 | 1 | 7 | 1 | 1 |
23,947 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/widget/dropdown.py | ydata_profiling.report.presentation.flavours.widget.dropdown.WidgetDropdown | from ydata_profiling.report.presentation.core import Dropdown
from ipywidgets import widgets
class WidgetDropdown(Dropdown):
def render(self) -> widgets.VBox:
dropdown = widgets.Dropdown(options=self.content['items'], description=self.content['name'])
titles = []
item = self.content['item'... |
class WidgetDropdown(Dropdown):
def render(self) -> widgets.VBox:
pass
def change_view(widg: dict) -> None:
pass | 3 | 0 | 17 | 2 | 15 | 0 | 4 | 0 | 1 | 4 | 0 | 0 | 1 | 0 | 1 | 1 | 26 | 3 | 23 | 8 | 20 | 0 | 19 | 8 | 16 | 4 | 1 | 3 | 7 |
23,948 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/widget/duplicate.py | ydata_profiling.report.presentation.flavours.widget.duplicate.WidgetDuplicate | from ipywidgets import Output, widgets
from IPython.display import display
from ydata_profiling.report.presentation.core.duplicate import Duplicate
class WidgetDuplicate(Duplicate):
def render(self) -> widgets.VBox:
out = Output()
with out:
display(self.content['duplicate'])
na... |
class WidgetDuplicate(Duplicate):
def render(self) -> widgets.VBox:
pass | 2 | 0 | 7 | 1 | 6 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 32 | 8 | 1 | 7 | 4 | 5 | 0 | 7 | 4 | 5 | 1 | 7 | 1 | 1 |
23,949 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/widget/frequency_table.py | ydata_profiling.report.presentation.flavours.widget.frequency_table.WidgetFrequencyTable | from ipywidgets import GridspecLayout, VBox, widgets
from ydata_profiling.report.presentation.core.frequency_table import FrequencyTable
class WidgetFrequencyTable(FrequencyTable):
def render(self) -> VBox:
items = []
rows = self.content['rows'][0]
for row in rows:
if row['extr... |
class WidgetFrequencyTable(FrequencyTable):
def render(self) -> VBox:
pass | 2 | 0 | 37 | 2 | 35 | 0 | 4 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 32 | 38 | 2 | 36 | 5 | 34 | 0 | 10 | 5 | 8 | 4 | 7 | 2 | 4 |
23,950 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/widget/frequency_table_small.py | ydata_profiling.report.presentation.flavours.widget.frequency_table_small.WidgetFrequencyTableSmall | from ipywidgets import widgets
from ydata_profiling.report.presentation.core.frequency_table_small import FrequencyTableSmall
class WidgetFrequencyTableSmall(FrequencyTableSmall):
def render(self) -> widgets.VBox:
return frequency_table_nb(self.content['rows']) |
class WidgetFrequencyTableSmall(FrequencyTableSmall):
def render(self) -> widgets.VBox:
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 32 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 7 | 0 | 1 |
23,951 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/widget/html.py | ydata_profiling.report.presentation.flavours.widget.html.WidgetHTML | from ipywidgets import widgets
from ydata_profiling.report.presentation.core.html import HTML
class WidgetHTML(HTML):
def render(self) -> widgets.HTML:
if type(self.content['html']) != str:
return self.content['html']
else:
return widgets.HTML(self.content['html']) |
class WidgetHTML(HTML):
def render(self) -> widgets.HTML:
pass | 2 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 32 | 6 | 0 | 6 | 2 | 4 | 0 | 5 | 2 | 3 | 2 | 7 | 1 | 2 |
23,952 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/widget/image.py | ydata_profiling.report.presentation.flavours.widget.image.WidgetImage | import re
from ydata_profiling.config import ImageType
from ydata_profiling.report.presentation.core.image import Image
from ipywidgets import widgets
class WidgetImage(Image):
def render(self) -> widgets.Widget:
image = self.content['image']
if self.content['image_format'] == ImageType.svg:
... |
class WidgetImage(Image):
def render(self) -> widgets.Widget:
pass | 2 | 0 | 17 | 2 | 15 | 1 | 3 | 0.06 | 1 | 4 | 1 | 0 | 1 | 0 | 1 | 32 | 18 | 2 | 16 | 6 | 14 | 1 | 14 | 6 | 12 | 3 | 7 | 1 | 3 |
23,953 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/widget/root.py | ydata_profiling.report.presentation.flavours.widget.root.WidgetRoot | from ydata_profiling.report.presentation.core.root import Root
from ipywidgets import widgets
class WidgetRoot(Root):
def render(self, **kwargs) -> widgets.VBox:
return widgets.VBox([self.content['body'].render(), self.content['footer'].render()]) |
class WidgetRoot(Root):
def render(self, **kwargs) -> widgets.VBox:
pass | 2 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 33 | 5 | 0 | 5 | 2 | 3 | 0 | 3 | 2 | 1 | 1 | 7 | 0 | 1 |
23,954 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/widget/sample.py | ydata_profiling.report.presentation.flavours.widget.sample.WidgetSample | from ydata_profiling.report.presentation.core.sample import Sample
from ipywidgets import Output, widgets
from IPython.display import display
class WidgetSample(Sample):
def render(self) -> widgets.VBox:
out = Output()
with out:
display(self.content['sample'])
name = widgets.HT... |
class WidgetSample(Sample):
def render(self) -> widgets.VBox:
pass | 2 | 0 | 7 | 1 | 6 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 32 | 8 | 1 | 7 | 4 | 5 | 0 | 7 | 4 | 5 | 1 | 7 | 1 | 1 |
23,955 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/widget/table.py | ydata_profiling.report.presentation.flavours.widget.table.WidgetTable | from ydata_profiling.report.presentation.core.table import Table
from ipywidgets import GridspecLayout, VBox, widgets
class WidgetTable(Table):
def render(self) -> VBox:
items = [get_table(self.content['rows'])]
if self.content['caption'] is not None:
items.append(widgets.HTML(f"<em>{s... |
class WidgetTable(Table):
def render(self) -> VBox:
pass | 2 | 0 | 6 | 1 | 5 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 32 | 7 | 1 | 6 | 3 | 4 | 0 | 6 | 3 | 4 | 2 | 7 | 1 | 2 |
23,956 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/widget/toggle_button.py | ydata_profiling.report.presentation.flavours.widget.toggle_button.WidgetToggleButton | from ydata_profiling.report.presentation.core import ToggleButton
from ipywidgets import widgets
class WidgetToggleButton(ToggleButton):
def render(self) -> widgets.HBox:
toggle = widgets.ToggleButton(description=self.content['text'])
toggle.layout.width = 'fit-content'
toggle_box = widget... |
class WidgetToggleButton(ToggleButton):
def render(self) -> widgets.HBox:
pass | 2 | 0 | 11 | 2 | 9 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 32 | 12 | 2 | 10 | 4 | 8 | 0 | 10 | 4 | 8 | 1 | 7 | 0 | 1 |
23,957 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/widget/variable.py | ydata_profiling.report.presentation.flavours.widget.variable.WidgetVariable | from ipywidgets import widgets
from ydata_profiling.report.presentation.core import Variable
class WidgetVariable(Variable):
def render(self) -> widgets.VBox:
items = [self.content['top'].render()]
if self.content['bottom'] is not None:
items.append(self.content['bottom'].render())
... |
class WidgetVariable(Variable):
def render(self) -> widgets.VBox:
pass | 2 | 0 | 6 | 1 | 5 | 0 | 2 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 7 | 1 | 6 | 3 | 4 | 0 | 6 | 3 | 4 | 2 | 1 | 1 | 2 |
23,958 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/report/presentation/flavours/widget/variable_info.py | ydata_profiling.report.presentation.flavours.widget.variable_info.WidgetVariableInfo | from ydata_profiling.report.presentation.flavours.html import templates
from ipywidgets import widgets
from ydata_profiling.report.presentation.core import VariableInfo
class WidgetVariableInfo(VariableInfo):
def render(self) -> widgets.HTML:
return widgets.HTML(templates.template('variable_info.html').re... |
class WidgetVariableInfo(VariableInfo):
def render(self) -> widgets.HTML:
pass | 2 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 32 | 5 | 0 | 5 | 2 | 3 | 0 | 3 | 2 | 1 | 1 | 7 | 0 | 1 |
23,959 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/serialize_report.py | ydata_profiling.serialize_report.SerializeReport | from pathlib import Path
from ydata_profiling.config import Settings
from ydata_profiling.model import BaseDescription
from ydata_profiling.report.presentation.core import Root
import warnings
from ydata_profiling.version import __version__
from typing import TYPE_CHECKING, Optional, Union
class SerializeReport:
"... |
class SerializeReport:
'''Extend the report to be able to dump and load reports.'''
@property
def df_hash(self) -> Optional[str]:
pass
def dumps(self) -> bytes:
'''
Serialize ProfileReport and return bytes for reproducing ProfileReport or Caching.
Returns:
B... | 7 | 5 | 23 | 3 | 15 | 6 | 3 | 0.36 | 0 | 7 | 2 | 1 | 5 | 0 | 5 | 5 | 130 | 20 | 81 | 21 | 70 | 29 | 42 | 14 | 34 | 7 | 0 | 2 | 13 |
23,960 | pandas-profiling/pandas-profiling | pandas-profiling_pandas-profiling/src/ydata_profiling/utils/logger.py | ydata_profiling.utils.logger.ProfilingLogger | from ydata_profiling.utils.common import analytics_features, calculate_nrows, is_running_in_databricks
import pandas as pd
import logging
class ProfilingLogger(logging.Logger):
def __init__(self, name: str, level: int=logging.INFO):
super().__init__(name, level)
def info_def_report(self, df, timeseri... |
class ProfilingLogger(logging.Logger):
def __init__(self, name: str, level: int=logging.INFO):
pass
def info_def_report(self, df, timeseries: bool) -> None:
pass | 3 | 0 | 18 | 3 | 16 | 1 | 3 | 0.03 | 1 | 5 | 0 | 0 | 2 | 0 | 2 | 30 | 38 | 6 | 32 | 9 | 29 | 1 | 20 | 9 | 17 | 5 | 3 | 1 | 6 |
23,961 | pydanny/cookiecutter-django | scripts/create_django_issue.py | scripts.create_django_issue.DjVersion | from typing import NamedTuple
class DjVersion(NamedTuple):
"""
Wrapper to parse, compare and render Django versions.
Only keeps track on (major, minor) versions, excluding patches and pre-releases.
"""
major: int
minor: int
def __str__(self) -> str:
"""To render as string."""
... |
class DjVersion(NamedTuple):
'''
Wrapper to parse, compare and render Django versions.
Only keeps track on (major, minor) versions, excluding patches and pre-releases.
'''
def __str__(self) -> str:
'''To render as string.'''
pass
@classmethod
def parse(cls, version_str: str... | 6 | 3 | 3 | 0 | 3 | 1 | 1 | 0.46 | 1 | 2 | 0 | 0 | 1 | 0 | 3 | 3 | 24 | 5 | 13 | 8 | 7 | 6 | 11 | 6 | 7 | 1 | 1 | 0 | 3 |
23,962 | pydanny/cookiecutter-django | scripts/create_django_issue.py | scripts.create_django_issue.GitHubManager | import re
from github import Github
class GitHubManager:
def __init__(self, base_dj_version: DjVersion, needed_dj_versions: list[DjVersion]):
self.github = Github(GITHUB_TOKEN)
self.repo = self.github.get_repo(GITHUB_REPO)
self.base_dj_version = base_dj_version
self.needed_dj_versi... |
class GitHubManager:
def __init__(self, base_dj_version: DjVersion, needed_dj_versions: list[DjVersion]):
pass
def setup(self) -> None:
pass
def load_requirements(self):
pass
def load_existing_issues(self):
'''Closes the issue if the base Django version is greater th... | 12 | 2 | 13 | 1 | 11 | 2 | 3 | 0.19 | 0 | 6 | 1 | 0 | 9 | 7 | 10 | 10 | 153 | 18 | 116 | 44 | 104 | 22 | 84 | 39 | 73 | 10 | 0 | 4 | 30 |
23,963 | pydanny/cookiecutter-django | scripts/update_contributors.py | scripts.update_contributors.ContributorsJSONFile | import json
from github.NamedUser import NamedUser
class ContributorsJSONFile:
"""Helper to interact with the JSON file."""
file_path = ROOT / '.github' / 'contributors.json'
content = None
def __init__(self) -> None:
"""Read initial content."""
self.content = json.loads(self.file_path... |
class ContributorsJSONFile:
'''Helper to interact with the JSON file.'''
def __init__(self) -> None:
'''Read initial content.'''
pass
def __contains__(self, github_login: str):
'''Provide a nice API to do: `username in file`.'''
pass
def add_contributor(self, user: Na... | 5 | 5 | 6 | 0 | 4 | 1 | 1 | 0.3 | 0 | 1 | 0 | 0 | 4 | 0 | 4 | 4 | 31 | 5 | 20 | 9 | 15 | 6 | 13 | 9 | 8 | 1 | 0 | 0 | 4 |
23,964 | pydanny/cookiecutter-django | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/contrib/sites/migrations/0001_initial.py | {{cookiecutter.project_slug}}.contrib.sites.migrations.0001_initial.Migration | from django.contrib.sites.models import _simple_domain_name_validator
from django.db import migrations
from django.db import models
import django.contrib.sites.models
class Migration(migrations.Migration):
dependencies = []
operations = [migrations.CreateModel(name='Site', fields=[('id', models.AutoField(verbo... |
class Migration(migrations.Migration):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 37 | 2 | 35 | 3 | 34 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
23,965 | pydanny/cookiecutter-django | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/contrib/sites/migrations/0002_alter_domain_unique.py | {{cookiecutter.project_slug}}.contrib.sites.migrations.0002_alter_domain_unique.Migration | from django.db import models
from django.db import migrations
import django.contrib.sites.models
class Migration(migrations.Migration):
dependencies = [('sites', '0001_initial')]
operations = [migrations.AlterField(model_name='site', name='domain', field=models.CharField(max_length=100, unique=True, validators... |
class Migration(migrations.Migration):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 16 | 2 | 14 | 3 | 13 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
23,966 | pydanny/cookiecutter-django | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/contrib/sites/migrations/0003_set_site_domain_and_name.py | {{cookiecutter.project_slug}}.contrib.sites.migrations.0003_set_site_domain_and_name.Migration | from django.db import migrations
class Migration(migrations.Migration):
dependencies = [('sites', '0002_alter_domain_unique')]
operations = [migrations.RunPython(update_site_forward, update_site_backward)] |
class Migration(migrations.Migration):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 2 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
23,967 | pydanny/cookiecutter-django | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/contrib/sites/migrations/0004_alter_options_ordering_domain.py | {{cookiecutter.project_slug}}.contrib.sites.migrations.0004_alter_options_ordering_domain.Migration | from django.db import migrations
class Migration(migrations.Migration):
dependencies = [('sites', '0003_set_site_domain_and_name')]
operations = [migrations.AlterModelOptions(name='site', options={'ordering': ['domain'], 'verbose_name': 'site', 'verbose_name_plural': 'sites'})] |
class Migration(migrations.Migration):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 16 | 2 | 14 | 3 | 13 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
23,968 | pydanny/cookiecutter-django | {{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/managers.py | {{cookiecutter.project_slug}}.users.managers.UserManager | from django.contrib.auth.models import UserManager as DjangoUserManager
from django.contrib.auth.hashers import make_password
class UserManager(DjangoUserManager['User']):
"""Custom manager for the User model."""
def _create_user(self, email: str, password: str | None, **extra_fields):
"""
Cre... | null | 4 | 2 | 9 | 1 | 8 | 2 | 2 | 0.25 | 1 | 2 | 0 | 0 | 3 | 0 | 3 | 3 | 33 | 5 | 24 | 7 | 20 | 6 | 24 | 7 | 20 | 3 | 1 | 1 | 6 |
23,969 | pytest-dev/pytest | testing/python/approx.py | approx.MyVec3 | class MyVec3:
"""sequence like"""
_x: int
_y: int
_z: int
def __init__(self, x: int, y: int, z: int):
self._x, self._y, self._z = (x, y, z)
def __repr__(self) -> str:
return f'<MyVec3 {self._x} {self._y} {self._z}>'
def __len__(self) -> int:
return 3
def __get... | class MyVec3:
'''sequence like'''
def __init__(self, x: int, y: int, z: int):
pass
def __repr__(self) -> str:
pass
def __len__(self) -> int:
pass
def __getitem__(self, key: int) -> int:
pass | 5 | 1 | 4 | 0 | 4 | 0 | 2 | 0.11 | 0 | 3 | 0 | 0 | 4 | 0 | 4 | 4 | 24 | 5 | 18 | 5 | 13 | 2 | 18 | 5 | 13 | 4 | 0 | 1 | 7 |
23,970 | pytest-dev/pytest | testing/python/approx.py | approx.TestApprox | from _pytest.pytester import Pytester
from decimal import Decimal
import operator
from operator import ne
import pytest
from operator import eq
from pytest import approx
import decimal
from fractions import Fraction
class TestApprox:
def test_error_messages_native_dtypes(self, assert_approx_raises_regex):
... |
class TestApprox:
def test_error_messages_native_dtypes(self, assert_approx_raises_regex):
pass
def test_error_messages_numpy_dtypes(self, assert_approx_raises_regex):
pass
def test_error_messages_invalid_args(self, assert_approx_raises_regex):
pass
def test_error_messages_w... | 85 | 13 | 12 | 1 | 10 | 1 | 1 | 0.1 | 0 | 16 | 6 | 0 | 63 | 0 | 63 | 63 | 926 | 119 | 747 | 226 | 617 | 72 | 388 | 171 | 311 | 2 | 0 | 1 | 89 |
23,971 | pytest-dev/pytest | testing/python/approx.py | approx.TestRecursiveSequenceMap | from _pytest.python_api import _recursive_sequence_map
from math import sqrt
class TestRecursiveSequenceMap:
def test_map_over_scalar(self):
assert _recursive_sequence_map(sqrt, 16) == 4
def test_map_over_empty_list(self):
assert _recursive_sequence_map(sqrt, []) == []
def test_map_over_... |
class TestRecursiveSequenceMap:
def test_map_over_scalar(self):
pass
def test_map_over_empty_list(self):
pass
def test_map_over_list(self):
pass
def test_map_over_tuple(self):
pass
def test_map_over_nested_lists(self):
pass
def test_map_over_mixed_s... | 8 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 2 | 1 | 0 | 7 | 0 | 7 | 7 | 29 | 6 | 23 | 8 | 15 | 0 | 15 | 8 | 7 | 1 | 0 | 0 | 7 |
23,972 | pytest-dev/pytest | testing/python/collect.py | collect.TestClass | from _pytest.config import ExitCode
from _pytest.pytester import Pytester
class TestClass:
def test_class_with_init_warning(self, pytester: Pytester) -> None:
pytester.makepyfile('\n class TestClass1(object):\n def __init__(self):\n pass\n ')
res... |
class TestClass:
def test_class_with_init_warning(self, pytester: Pytester) -> None:
pass
def test_class_with_new_warning(self, pytester: Pytester) -> None:
pass
def test_class_subclassobject(self, pytester: Pytester) -> None:
pass
def test_static_method(self, pytester: Pyte... | 12 | 4 | 16 | 1 | 14 | 1 | 1 | 0.04 | 0 | 2 | 2 | 0 | 11 | 0 | 11 | 11 | 182 | 19 | 157 | 24 | 145 | 6 | 46 | 24 | 34 | 1 | 0 | 0 | 11 |
23,973 | pytest-dev/pytest | testing/python/collect.py | collect.TestConftestCustomization | import textwrap
from _pytest.pytester import Pytester
class TestConftestCustomization:
def test_pytest_pycollect_module(self, pytester: Pytester) -> None:
pytester.makeconftest('\n import pytest\n class MyModule(pytest.Module):\n pass\n def pytest_pycollect_... |
class TestConftestCustomization:
def test_pytest_pycollect_module(self, pytester: Pytester) -> None:
pass
def test_customized_pymakemodule_issue205_subdir(self, pytester: Pytester) -> None:
pass
def test_customized_pymakeitem(self, pytester: Pytester) -> None:
pass
def test_... | 7 | 2 | 26 | 1 | 23 | 2 | 1 | 0.08 | 0 | 1 | 1 | 0 | 6 | 0 | 6 | 6 | 159 | 9 | 139 | 15 | 132 | 11 | 37 | 15 | 30 | 1 | 0 | 0 | 6 |
23,974 | pytest-dev/pytest | testing/python/collect.py | collect.TestFunction | from _pytest.main import Session
import pytest
from typing import Any
from _pytest.pytester import Pytester
class TestFunction:
def test_getmodulecollector(self, pytester: Pytester) -> None:
item = pytester.getitem('def test_func(): pass')
modcol = item.getparent(pytest.Module)
assert isin... | null | 36 | 6 | 14 | 1 | 13 | 0 | 1 | 0.02 | 0 | 9 | 7 | 0 | 26 | 0 | 27 | 27 | 455 | 65 | 384 | 81 | 341 | 6 | 135 | 73 | 100 | 2 | 0 | 1 | 32 |
23,975 | pytest-dev/pytest | testing/python/collect.py | collect.TestModule | from _pytest.monkeypatch import MonkeyPatch
import pytest
from _pytest.nodes import Collector
import textwrap
import sys
from _pytest.pytester import Pytester
class TestModule:
def test_failing_import(self, pytester: Pytester) -> None:
modcol = pytester.getmodulecol('import alksdjalskdjalkjals')
p... |
class TestModule:
def test_failing_import(self, pytester: Pytester) -> None:
pass
def test_import_duplicate(self, pytester: Pytester) -> None:
pass
def test_import_prepend_append(self, pytester: Pytester, monkeypatch: MonkeyPatch) -> None:
pass
def test_syntax_error_in_modul... | 10 | 2 | 14 | 0 | 13 | 1 | 1 | 0.07 | 0 | 7 | 4 | 0 | 8 | 0 | 8 | 8 | 124 | 10 | 107 | 33 | 93 | 7 | 56 | 27 | 47 | 2 | 0 | 1 | 9 |
23,976 | pytest-dev/pytest | testing/python/collect.py | collect.TestReportInfo | from _pytest.python import Function
from _pytest.python import Class
from _pytest.pytester import Pytester
import os
import pytest
class TestReportInfo:
def test_itemreport_reportinfo(self, pytester: Pytester) -> None:
pytester.makeconftest('\n import pytest\n class MyFunction(pytest... |
class TestReportInfo:
def test_itemreport_reportinfo(self, pytester: Pytester) -> None:
pass
def test_func_reportinfo(self, pytester: Pytester) -> None:
pass
def test_class_reportinfo(self, pytester: Pytester) -> None:
pass
@pytest.mark.filterwarnings('ignore:usage of Generat... | 6 | 0 | 15 | 1 | 14 | 1 | 1 | 0.05 | 0 | 4 | 3 | 0 | 4 | 0 | 4 | 4 | 67 | 6 | 58 | 18 | 50 | 3 | 28 | 15 | 23 | 1 | 0 | 0 | 4 |
23,977 | pytest-dev/pytest | testing/python/collect.py | collect.TestSorting | import pytest
from _pytest.pytester import Pytester
class TestSorting:
def test_check_equality(self, pytester: Pytester) -> None:
modcol = pytester.getmodulecol('\n def test_pass(): pass\n def test_fail(): assert 0\n ')
fn1 = pytester.collect_by_name(modcol, 'test_pass... |
class TestSorting:
def test_check_equality(self, pytester: Pytester) -> None:
pass
def test_allow_sane_sorting_for_decorators(self, pytester: Pytester) -> None:
pass
def test_ordered_by_definition_order(self, pytester: Pytester) -> None:
pass | 4 | 0 | 26 | 2 | 23 | 1 | 1 | 0.06 | 0 | 2 | 2 | 0 | 3 | 0 | 3 | 3 | 80 | 8 | 71 | 12 | 67 | 4 | 29 | 12 | 25 | 2 | 0 | 1 | 4 |
23,978 | pytest-dev/pytest | testing/python/collect.py | collect.TestTracebackCutting | from typing import Any
import pytest
from _pytest.pytester import Pytester
import _pytest._code
import sys
class TestTracebackCutting:
def test_skip_simple(self):
with pytest.raises(pytest.skip.Exception) as excinfo:
pytest.skip('xxx')
if sys.version_info >= (3, 11):
assert... |
class TestTracebackCutting:
def test_skip_simple(self):
pass
def test_traceback_argsetup(self, pytester: Pytester) -> None:
pass
def test_traceback_error_during_import(self, pytester: Pytester) -> None:
pass
def test_traceback_filter_error_during_fixture_collection(self, pyt... | 7 | 3 | 22 | 2 | 18 | 3 | 1 | 0.14 | 0 | 5 | 1 | 0 | 6 | 0 | 6 | 6 | 136 | 17 | 106 | 28 | 94 | 15 | 71 | 25 | 61 | 2 | 0 | 1 | 8 |
23,979 | pytest-dev/pytest | testing/example_scripts/fixtures/custom_item/conftest.py | conftest.CustomFile | import pytest
class CustomFile(pytest.File):
def collect(self):
yield CustomItem.from_parent(name='foo', parent=self) |
class CustomFile(pytest.File):
def collect(self):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 52 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 8 | 0 | 1 |
23,980 | pytest-dev/pytest | testing/example_scripts/fixtures/custom_item/conftest.py | conftest.CustomItem | import pytest
class CustomItem(pytest.Item):
def runtest(self):
pass |
class CustomItem(pytest.Item):
def runtest(self):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 53 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 6 | 0 | 1 |
23,981 | pytest-dev/pytest | doc/en/example/customdirectory/conftest.py | conftest.ManifestDirectory | import json
import pytest
class ManifestDirectory(pytest.Directory):
def collect(self):
manifest_path = self.path / 'manifest.json'
manifest = json.loads(manifest_path.read_text(encoding='utf-8'))
ihook = self.ihook
for file in manifest['files']:
yield from ihook.pytest... |
class ManifestDirectory(pytest.Directory):
def collect(self):
pass | 2 | 0 | 12 | 0 | 8 | 4 | 2 | 0.44 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 52 | 13 | 0 | 9 | 6 | 7 | 4 | 7 | 6 | 5 | 2 | 8 | 1 | 2 |
23,982 | pytest-dev/pytest | testing/example_scripts/customdirectory/conftest.py | conftest.ManifestDirectory | import pytest
import json
class ManifestDirectory(pytest.Directory):
def collect(self):
manifest_path = self.path / 'manifest.json'
manifest = json.loads(manifest_path.read_text(encoding='utf-8'))
ihook = self.ihook
for file in manifest['files']:
yield from ihook.pytest... |
class ManifestDirectory(pytest.Directory):
def collect(self):
pass | 2 | 0 | 8 | 0 | 8 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 52 | 9 | 0 | 9 | 6 | 7 | 0 | 7 | 6 | 5 | 2 | 8 | 1 | 2 |
23,983 | pytest-dev/pytest | testing/example_scripts/issue88_initial_file_multinodes/conftest.py | conftest.MyFile | import pytest
class MyFile(pytest.File):
def collect(self):
return [MyItem.from_parent(name='hello', parent=self)] |
class MyFile(pytest.File):
def collect(self):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 1 | 52 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 8 | 0 | 1 |
23,984 | pytest-dev/pytest | testing/example_scripts/issue88_initial_file_multinodes/conftest.py | conftest.MyItem | import pytest
class MyItem(pytest.Item):
def runtest(self):
raise NotImplementedError() |
class MyItem(pytest.Item):
def runtest(self):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 53 | 3 | 0 | 3 | 2 | 1 | 0 | 3 | 2 | 1 | 1 | 6 | 0 | 1 |
23,985 | pytest-dev/pytest | doc/en/example/assertion/failure_demo.py | failure_demo.TestCustomAssertMsg | class TestCustomAssertMsg:
def test_single_line(self):
class A:
a = 1
b = 2
assert A.a == b, 'A.a appears not to be b'
def test_multiline(self):
class A:
a = 1
b = 2
assert A.a == b, 'A.a appears not to be b\nor does not appear to be b\... | class TestCustomAssertMsg:
def test_single_line(self):
pass
class A:
def test_multiline(self):
pass
class A:
def test_custom_repr(self):
pass
class JSON:
def __repr__(self):
pass | 8 | 0 | 7 | 1 | 6 | 0 | 1 | 0 | 0 | 3 | 3 | 0 | 3 | 0 | 3 | 3 | 27 | 6 | 21 | 15 | 13 | 0 | 19 | 15 | 11 | 1 | 0 | 0 | 4 |
23,986 | pytest-dev/pytest | doc/en/example/assertion/failure_demo.py | failure_demo.TestFailing | class TestFailing:
def test_simple(self):
def f():
return 42
def g():
return 43
assert f() == g()
def test_simple_multiline(self):
otherfunc_multi(42, 6 * 9)
def test_not(self):
def f():
return 42
assert not f() | class TestFailing:
def test_simple(self):
pass
def f():
pass
def g():
pass
def test_simple_multiline(self):
pass
def test_not(self):
pass
def f():
pass | 7 | 0 | 4 | 1 | 3 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 18 | 5 | 13 | 7 | 6 | 0 | 13 | 7 | 6 | 1 | 0 | 0 | 6 |
23,987 | pytest-dev/pytest | doc/en/example/assertion/failure_demo.py | failure_demo.TestMoreErrors | class TestMoreErrors:
def test_complex_error(self):
def f():
return 44
def g():
return 43
somefunc(f(), g())
def test_z1_unpack_error(self):
items = []
a, b = items
def test_z2_type_error(self):
items = 3
a, b = items
... | class TestMoreErrors:
def test_complex_error(self):
pass
def f():
pass
def g():
pass
def test_z1_unpack_error(self):
pass
def test_z2_type_error(self):
pass
def test_startswith(self):
pass
def test_startswith_nest... | 14 | 0 | 4 | 0 | 3 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 9 | 1 | 9 | 9 | 48 | 12 | 36 | 22 | 22 | 0 | 35 | 22 | 21 | 1 | 0 | 1 | 13 |
23,988 | pytest-dev/pytest | doc/en/example/assertion/failure_demo.py | failure_demo.TestRaises | from pytest import raises
class TestRaises:
def test_raises(self):
s = 'qwe'
raises(TypeError, int, s)
def test_raises_doesnt(self):
raises(OSError, int, '3')
def test_raise(self):
raise ValueError('demo error')
def test_tupleerror(self):
a, b = [1]
def ... |
class TestRaises:
def test_raises(self):
pass
def test_raises_doesnt(self):
pass
def test_raises(self):
pass
def test_tupleerror(self):
pass
def test_reinterpret_fails_with_print_for_the_fun_of_it(self):
pass
def test_some_error(self):
pass
... | 8 | 0 | 3 | 0 | 3 | 0 | 1 | 0.11 | 0 | 4 | 0 | 0 | 7 | 0 | 7 | 7 | 25 | 6 | 19 | 12 | 11 | 2 | 19 | 12 | 11 | 2 | 0 | 1 | 8 |
23,989 | pytest-dev/pytest | doc/en/example/assertion/failure_demo.py | failure_demo.TestSpecialisedExplanations | class TestSpecialisedExplanations:
def test_eq_text(self):
assert 'spam' == 'eggs'
def test_eq_similar_text(self):
assert 'foo 1 bar' == 'foo 2 bar'
def test_eq_multiline_text(self):
assert 'foo\nspam\nbar' == 'foo\neggs\nbar'
def test_eq_long_text(self):
a = '1' * 10... | class TestSpecialisedExplanations:
def test_eq_text(self):
pass
def test_eq_similar_text(self):
pass
def test_eq_multiline_text(self):
pass
def test_eq_long_text(self):
pass
def test_eq_long_text_multiline(self):
pass
def test_eq_list(self):
... | 22 | 0 | 4 | 0 | 3 | 0 | 1 | 0 | 0 | 2 | 2 | 0 | 17 | 0 | 17 | 17 | 79 | 20 | 59 | 40 | 35 | 0 | 57 | 38 | 35 | 1 | 0 | 0 | 17 |
23,990 | pytest-dev/pytest | testing/python/fixtures.py | fixtures.TestAutouseDiscovery | import pytest
from _pytest.pytester import Pytester
class TestAutouseDiscovery:
@pytest.fixture
def pytester(self, pytester: Pytester) -> Pytester:
pytester.makeconftest('\n import pytest\n @pytest.fixture(autouse=True)\n def perfunction(request, tmp_path):\n ... |
class TestAutouseDiscovery:
@pytest.fixture
def pytester(self, pytester: Pytester) -> Pytester:
pass
def test_parsefactories_conftest(self, pytester: Pytester) -> None:
pass
def test_two_classes_separated_autouse(self, pytester: Pytester) -> None:
pass
def test_setup_at_... | 11 | 1 | 21 | 1 | 19 | 0 | 1 | 0.01 | 0 | 1 | 1 | 0 | 8 | 0 | 8 | 8 | 176 | 17 | 157 | 21 | 146 | 2 | 37 | 19 | 28 | 1 | 0 | 0 | 8 |
23,991 | pytest-dev/pytest | testing/python/fixtures.py | fixtures.TestAutouseManagement | import textwrap
import pytest
from _pytest.pytester import Pytester
class TestAutouseManagement:
def test_autouse_conftest_mid_directory(self, pytester: Pytester) -> None:
pkgdir = pytester.mkpydir('xyz123')
pkgdir.joinpath('conftest.py').write_text(textwrap.dedent(' import pytest\n... |
class TestAutouseManagement:
def test_autouse_conftest_mid_directory(self, pytester: Pytester) -> None:
pass
def test_funcarg_and_setup(self, pytester: Pytester) -> None:
pass
def test_uses_parametrized_resource(self, pytester: Pytester) -> None:
pass
def test_session_parame... | 13 | 2 | 26 | 2 | 23 | 1 | 1 | 0.03 | 0 | 1 | 1 | 0 | 10 | 0 | 10 | 10 | 273 | 32 | 236 | 32 | 219 | 6 | 51 | 27 | 40 | 1 | 0 | 0 | 10 |
23,992 | pytest-dev/pytest | testing/python/fixtures.py | fixtures.TestContextManagerFixtureFuncs | from _pytest.pytester import Pytester
class TestContextManagerFixtureFuncs:
def test_simple(self, pytester: Pytester) -> None:
pytester.makepyfile('\n import pytest\n @pytest.fixture\n def arg1():\n print("setup")\n yield 1\n pr... |
class TestContextManagerFixtureFuncs:
def test_simple(self, pytester: Pytester) -> None:
pass
def test_scoped(self, pytester: Pytester) -> None:
pass
def test_setup_exception(self, pytester: Pytester) -> None:
pass
def test_teardown_exception(self, pytester: Pytester) -> Non... | 7 | 0 | 20 | 0 | 20 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 6 | 0 | 6 | 6 | 127 | 5 | 122 | 13 | 115 | 0 | 25 | 13 | 18 | 1 | 0 | 0 | 6 |
23,993 | pytest-dev/pytest | testing/python/fixtures.py | fixtures.TestErrors | from _pytest.config import ExitCode
from _pytest.pytester import Pytester
class TestErrors:
def test_subfactory_missing_funcarg(self, pytester: Pytester) -> None:
pytester.makepyfile('\n import pytest\n @pytest.fixture()\n def gen(qwe123):\n return 1\n ... |
class TestErrors:
def test_subfactory_missing_funcarg(self, pytester: Pytester) -> None:
pass
def test_issue498_fixture_finalizer_failing(self, pytester: Pytester) -> None:
pass
def test_setupfunc_missing_funcarg(self, pytester: Pytester) -> None:
pass
def test_cached_except... | 5 | 1 | 21 | 1 | 20 | 1 | 1 | 0.03 | 0 | 2 | 2 | 0 | 4 | 0 | 4 | 4 | 87 | 6 | 80 | 12 | 75 | 2 | 24 | 12 | 19 | 1 | 0 | 0 | 4 |
23,994 | pytest-dev/pytest | testing/python/fixtures.py | fixtures.TestFillFixtures | import textwrap
import pytest
from pathlib import Path
from _pytest.python import Function
from _pytest.pytester import Pytester
from _pytest.pytester import get_public_names
@pytest.mark.pytester_example_path('fixtures/fill_fixtures')
class TestFillFixtures:
def test_funcarg_lookupfails(self, pytester: Pytester)... | @pytest.mark.pytester_example_path('fixtures/fill_fixtures')
class TestFillFixtures:
def test_funcarg_lookupfails(self, pytester: Pytester) -> None:
pass
def test_detect_recursive_dependency_error(self, pytester: Pytester) -> None:
pass
def test_funcarg_basic(self, pytester: Pytester) -> ... | 25 | 9 | 23 | 2 | 20 | 1 | 1 | 0.06 | 0 | 4 | 2 | 0 | 23 | 0 | 23 | 23 | 543 | 66 | 452 | 79 | 408 | 28 | 143 | 59 | 119 | 1 | 0 | 0 | 23 |
23,995 | pytest-dev/pytest | testing/python/fixtures.py | fixtures.TestFixtureManagerParseFactories | from _pytest.pytester import Pytester
import textwrap
from _pytest.monkeypatch import MonkeyPatch
import pytest
class TestFixtureManagerParseFactories:
@pytest.fixture
def pytester(self, pytester: Pytester) -> Pytester:
pytester.makeconftest('\n import pytest\n\n @pytest.fixture\... |
class TestFixtureManagerParseFactories:
@pytest.fixture
def pytester(self, pytester: Pytester) -> Pytester:
pass
def test_parsefactories_evil_objects_issue214(self, pytester: Pytester) -> None:
pass
def test_parsefactories_conftest(self, pytester: Pytester) -> None:
pass
... | 10 | 0 | 29 | 1 | 28 | 0 | 1 | 0.01 | 0 | 2 | 2 | 0 | 8 | 0 | 8 | 8 | 238 | 12 | 224 | 27 | 210 | 2 | 55 | 21 | 46 | 1 | 0 | 1 | 8 |
23,996 | pytest-dev/pytest | testing/python/fixtures.py | fixtures.TestFixtureMarker | import pytest
from _pytest.config import ExitCode
from _pytest.pytester import Pytester
from itertools import zip_longest
import textwrap
class TestFixtureMarker:
def test_parametrize(self, pytester: Pytester) -> None:
pytester.makepyfile('\n import pytest\n @pytest.fixture(params=["... |
class TestFixtureMarker:
def test_parametrize(self, pytester: Pytester) -> None:
pass
def test_multiple_parametrization_issue_736(self, pytester: Pytester) -> None:
pass
@pytest.mark.parametrize('param_args', ["'fixt, val'", "'fixt,val'", "['fixt', 'val']", "('fixt', 'val')"])
def tes... | 37 | 4 | 30 | 2 | 27 | 0 | 1 | 0.01 | 0 | 4 | 2 | 0 | 34 | 0 | 34 | 34 | 1,054 | 111 | 932 | 102 | 878 | 12 | 185 | 85 | 148 | 2 | 0 | 1 | 36 |
23,997 | pytest-dev/pytest | testing/python/fixtures.py | fixtures.TestFixtureUsages | import pytest
from _pytest.pytester import Pytester
class TestFixtureUsages:
def test_noargfixturedec(self, pytester: Pytester) -> None:
pytester.makepyfile('\n import pytest\n @pytest.fixture\n def arg1():\n return 1\n\n def test_func(arg1):\n ... |
class TestFixtureUsages:
def test_noargfixturedec(self, pytester: Pytester) -> None:
pass
def test_receives_funcargs(self, pytester: Pytester) -> None:
pass
def test_receives_funcargs_scope_mismatch(self, pytester: Pytester) -> None:
pass
def test_receives_funcargs_scope_mis... | 21 | 5 | 23 | 3 | 20 | 0 | 1 | 0.02 | 0 | 1 | 1 | 0 | 19 | 0 | 19 | 19 | 460 | 71 | 382 | 48 | 355 | 9 | 81 | 41 | 61 | 1 | 0 | 0 | 19 |
23,998 | pytest-dev/pytest | testing/python/fixtures.py | fixtures.TestParameterizedSubRequest | import os
from _pytest.pytester import Pytester
import textwrap
class TestParameterizedSubRequest:
def test_call_from_fixture(self, pytester: Pytester) -> None:
pytester.makepyfile(test_call_from_fixture="\n import pytest\n\n @pytest.fixture(params=[0, 1, 2])\n def fix_wit... |
class TestParameterizedSubRequest:
def test_call_from_fixture(self, pytester: Pytester) -> None:
pass
def test_call_from_test(self, pytester: Pytester) -> None:
pass
def test_external_fixture(self, pytester: Pytester) -> None:
pass
def test_non_relative_path(self, pytester: ... | 5 | 0 | 37 | 3 | 33 | 0 | 1 | 0.01 | 0 | 1 | 1 | 0 | 4 | 0 | 4 | 4 | 150 | 15 | 134 | 14 | 129 | 1 | 29 | 14 | 24 | 1 | 0 | 0 | 4 |
23,999 | pytest-dev/pytest | testing/python/fixtures.py | fixtures.TestRequestBasic | from _pytest.pytester import get_public_names
import textwrap
import sys
from _pytest.fixtures import TopRequest
import pytest
from _pytest.python import Function
from _pytest.pytester import Pytester
class TestRequestBasic:
def test_request_attributes(self, pytester: Pytester) -> None:
item = pytester.ge... |
class TestRequestBasic:
def test_request_attributes(self, pytester: Pytester) -> None:
pass
def test_request_attributes_method(self, pytester: Pytester) -> None:
pass
def test_request_contains_funcarg_arg2fixturedefs(self, pytester: Pytester) -> None:
pass
@pytest.mark.skipif... | 22 | 3 | 22 | 1 | 20 | 1 | 1 | 0.05 | 0 | 6 | 5 | 0 | 20 | 0 | 20 | 20 | 455 | 41 | 397 | 68 | 365 | 21 | 133 | 58 | 111 | 2 | 0 | 1 | 21 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.