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
14,800
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/measure.py
pipenv.patched.pip._vendor.rich.measure.Measurement
from .protocol import is_renderable, rich_cast from . import errors from typing import TYPE_CHECKING, Callable, NamedTuple, Optional, Sequence class Measurement(NamedTuple): """Stores the minimum and maximum widths (in characters) required to render an object.""" minimum: int 'Minimum number of cells requi...
class Measurement(NamedTuple): '''Stores the minimum and maximum widths (in characters) required to render an object.''' @property def span(self) -> int: '''Get difference between maximum and minimum.''' pass def normalize(self) -> 'Measurement': '''Get measurement that ensures...
9
7
16
2
9
6
2
0.64
1
3
1
0
5
0
6
6
112
17
58
20
45
37
39
14
32
6
1
3
13
14,801
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/padding.py
pipenv.patched.pip._vendor.rich.padding.Padding
from typing import TYPE_CHECKING, List, Optional, Tuple, Union from .jupyter import JupyterMixin from .segment import Segment from .measure import Measurement from .style import Style class Padding(JupyterMixin): """Draw space around content. Example: >>> print(Padding("Hello", (2, 4), style="on blue"...
class Padding(JupyterMixin): '''Draw space around content. Example: >>> print(Padding("Hello", (2, 4), style="on blue")) Args: renderable (RenderableType): String or other renderable. pad (Union[int, Tuple[int]]): Padding for top, right, bottom, and left borders. May be ...
9
3
16
1
14
1
3
0.21
1
6
2
0
4
7
6
6
117
12
87
40
67
18
59
27
52
10
1
2
20
14,802
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/pager.py
pipenv.patched.pip._vendor.rich.pager.Pager
from abc import ABC, abstractmethod class Pager(ABC): """Base class for a pager.""" @abstractmethod def show(self, content: str) -> None: """Show content in pager. Args: content (str): Content to be displayed. """
class Pager(ABC): '''Base class for a pager.''' @abstractmethod def show(self, content: str) -> None: '''Show content in pager. Args: content (str): Content to be displayed. ''' pass
3
2
6
1
1
4
1
1.67
1
1
0
1
1
0
1
21
10
2
3
3
0
5
2
2
0
1
4
0
1
14,803
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/pager.py
pipenv.patched.pip._vendor.rich.pager.SystemPager
from typing import Any class SystemPager(Pager): """Uses the pager installed on the system.""" def _pager(self, content: str) -> Any: return __import__('pydoc').pager(content) def show(self, content: str) -> None: """Use the same pager used by pydoc.""" self._pager(content)
class SystemPager(Pager): '''Uses the pager installed on the system.''' def _pager(self, content: str) -> Any: pass def show(self, content: str) -> None: '''Use the same pager used by pydoc.''' pass
3
2
3
0
2
1
1
0.6
1
2
0
0
2
0
2
23
9
2
5
3
2
3
5
3
2
1
5
0
2
14,804
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/palette.py
pipenv.patched.pip._vendor.rich.palette.Palette
from math import sqrt from .color_triplet import ColorTriplet from functools import lru_cache from typing import Sequence, Tuple, TYPE_CHECKING class Palette: """A palette of available colors.""" def __init__(self, colors: Sequence[Tuple[int, int, int]]): self._colors = colors def __getitem__(sel...
class Palette: '''A palette of available colors.''' def __init__(self, colors: Sequence[Tuple[int, int, int]]): pass def __getitem__(self, number: int) -> ColorTriplet: pass def __rich__(self) -> 'Table': pass @lru_cache(maxsize=1024) def match(self, color: Tuple[int,...
7
3
13
1
11
2
1
0.2
0
10
5
0
4
1
4
4
62
9
44
23
33
9
27
22
17
2
0
1
6
14,805
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/panel.py
pipenv.patched.pip._vendor.rich.panel.Panel
from .box import ROUNDED, Box from .text import Text, TextType from .segment import Segment from .padding import Padding, PaddingDimensions from .align import AlignMethod from .measure import Measurement, measure_renderables from .jupyter import JupyterMixin from typing import TYPE_CHECKING, Optional from .cells import...
class Panel(JupyterMixin): '''A console renderable that draws a border around its contents. Example: >>> console.print(Panel("Hello, World!")) Args: renderable (RenderableType): A console renderable object. box (Box): A Box instance that defines the look of the border (see :ref:`app...
11
3
41
2
36
3
4
0.12
1
7
4
0
5
14
6
6
276
21
227
90
177
28
103
48
95
12
1
2
27
14,806
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/pretty.py
pipenv.patched.pip._vendor.rich.pretty.Node
from dataclasses import dataclass, fields, is_dataclass from typing import TYPE_CHECKING, Any, Callable, DefaultDict, Deque, Dict, Iterable, List, Optional, Sequence, Set, Tuple, Union from .cells import cell_len @dataclass class Node: """A node in a repr tree. May be atomic or a container.""" key_repr: str = ...
@dataclass class Node: '''A node in a repr tree. May be atomic or a container.''' def iter_tokens(self) -> Iterable[str]: '''Generate tokens for this node.''' pass def check_length(self, start_length: int, max_length: int) -> bool: '''Check the length fits within a limit. A...
6
4
16
1
11
4
4
0.31
0
4
1
0
4
0
4
4
82
10
55
26
48
17
50
24
45
8
0
5
16
14,807
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/pretty.py
pipenv.patched.pip._vendor.rich.pretty.Pretty
from .cells import cell_len from typing import TYPE_CHECKING, Any, Callable, DefaultDict, Deque, Dict, Iterable, List, Optional, Sequence, Set, Tuple, Union from ._pick import pick_bool from .jupyter import JupyterMixin, JupyterRenderable from .text import Text from .measure import Measurement from .highlighter import ...
class Pretty(JupyterMixin): '''A rich renderable that pretty prints an object. Args: _object (Any): An object to pretty print. highlighter (HighlighterType, optional): Highlighter object to apply to result, or None for ReprHighlighter. Defaults to None. indent_size (int, optional): Numb...
4
1
27
0
27
0
2
0.21
1
6
2
0
3
13
3
3
102
4
81
41
57
17
28
21
24
4
1
1
7
14,808
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/pretty.py
pipenv.patched.pip._vendor.rich.pretty._Line
from ._loop import loop_last from .cells import cell_len from dataclasses import dataclass, fields, is_dataclass from typing import TYPE_CHECKING, Any, Callable, DefaultDict, Deque, Dict, Iterable, List, Optional, Sequence, Set, Tuple, Union @dataclass class _Line: """A line in repr output.""" parent: Optional...
@dataclass class _Line: '''A line in repr output.''' @property def expandable(self) -> bool: '''Check if the line may be expanded.''' pass def check_length(self, max_length: int) -> bool: '''Check this line fits within a given number of cells.''' pass def expandable(...
7
4
12
0
11
1
2
0.07
0
3
0
0
4
0
4
4
65
6
55
23
49
4
34
22
29
4
0
1
8
14,809
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress.BarColumn
from .style import StyleType from .table import Column, Table from typing import Any, BinaryIO, Callable, ContextManager, Deque, Dict, Generic, Iterable, List, NamedTuple, NewType, Optional, Sequence, TextIO, Tuple, Type, TypeVar, Union from .progress_bar import ProgressBar class BarColumn(ProgressColumn): """Rend...
class BarColumn(ProgressColumn): '''Renders a visual progress bar. Args: bar_width (Optional[int], optional): Width of bar or None for full width. Defaults to 40. style (StyleType, optional): Style for the bar background. Defaults to "bar.back". complete_style (StyleType, optional): Sty...
3
2
14
0
14
1
2
0.32
1
4
2
0
2
5
2
26
40
3
28
16
17
9
10
8
7
3
5
0
4
14,810
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress.DownloadColumn
from typing import Any, BinaryIO, Callable, ContextManager, Deque, Dict, Generic, Iterable, List, NamedTuple, NewType, Optional, Sequence, TextIO, Tuple, Type, TypeVar, Union from . import filesize, get_console from .text import Text, TextType from .table import Column, Table class DownloadColumn(ProgressColumn): ...
class DownloadColumn(ProgressColumn): '''Renders file size downloaded and total, e.g. '0.5/2.3 GB'. Args: binary_units (bool, optional): Use binary units, KiB, MiB etc. Defaults to False. ''' def __init__(self, binary_units: bool=False, table_column: Optional[Column]=None) -> None: pas...
3
2
20
2
17
1
3
0.14
1
5
2
0
2
1
2
26
47
7
35
17
30
5
21
15
18
5
5
1
6
14,811
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress.FileSizeColumn
from .text import Text, TextType from . import filesize, get_console class FileSizeColumn(ProgressColumn): """Renders completed filesize.""" def render(self, task: 'Task') -> Text: """Show data completed.""" data_size = filesize.decimal(int(task.completed)) return Text(data_size, style...
class FileSizeColumn(ProgressColumn): '''Renders completed filesize.''' def render(self, task: 'Task') -> Text: '''Show data completed.''' pass
2
2
4
0
3
1
1
0.5
1
2
1
0
1
0
1
25
7
1
4
3
2
2
4
3
2
1
5
0
1
14,812
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress.MofNCompleteColumn
from .text import Text, TextType from .table import Column, Table from typing import Any, BinaryIO, Callable, ContextManager, Deque, Dict, Generic, Iterable, List, NamedTuple, NewType, Optional, Sequence, TextIO, Tuple, Type, TypeVar, Union class MofNCompleteColumn(ProgressColumn): """Renders completed count/total...
class MofNCompleteColumn(ProgressColumn): '''Renders completed count/total, e.g. ' 10/1000'. Best for bounded tasks with int quantities. Space pads the completed count so that progress length does not change as task progresses past powers of 10. Args: separator (str, optional): Text to sep...
3
2
6
0
6
1
2
0.67
1
5
2
0
2
1
2
26
25
5
12
7
9
8
9
7
6
2
5
0
3
14,813
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress.Progress
from .table import Column, Table from types import TracebackType from .jupyter import JupyterMixin import io import typing from . import filesize, get_console import warnings from .console import Console, Group, JustifyMethod, RenderableType from threading import Event, RLock, Thread from .live import Live from typing ...
class Progress(JupyterMixin): '''Renders an auto-updating progress bar(s). Args: console (Console, optional): Optional Console instance. Defaults to an internal Console instance writing to stdout. auto_refresh (bool, optional): Enable auto refresh. If disabled, you will need to call `refresh()`...
35
22
20
2
13
5
3
0.39
1
26
14
0
26
11
27
28
586
69
371
178
239
146
203
73
175
10
1
3
72
14,814
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress.ProgressColumn
from .table import Column, Table from .console import Console, Group, JustifyMethod, RenderableType from typing import Any, BinaryIO, Callable, ContextManager, Deque, Dict, Generic, Iterable, List, NamedTuple, NewType, Optional, Sequence, TextIO, Tuple, Type, TypeVar, Union from abc import ABC, abstractmethod class Pr...
class ProgressColumn(ABC): '''Base class for a widget to use in progress display.''' def __init__(self, table_column: Optional[Column]=None) -> None: pass def get_table_column(self) -> Column: '''Get a table column, used to build tasks table.''' pass def __call__(self, task: ...
6
4
8
1
5
2
2
0.39
1
3
1
11
4
3
4
24
40
8
23
12
17
9
22
11
17
4
4
3
7
14,815
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress.ProgressSample
from typing import Any, BinaryIO, Callable, ContextManager, Deque, Dict, Generic, Iterable, List, NamedTuple, NewType, Optional, Sequence, TextIO, Tuple, Type, TypeVar, Union class ProgressSample(NamedTuple): """Sample of progress for a given time.""" timestamp: float 'Timestamp of sample.' completed: ...
class ProgressSample(NamedTuple): '''Sample of progress for a given time.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
7
1
3
1
2
3
3
1
2
0
1
0
0
14,816
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress.RenderableColumn
from .table import Column, Table from .console import Console, Group, JustifyMethod, RenderableType from typing import Any, BinaryIO, Callable, ContextManager, Deque, Dict, Generic, Iterable, List, NamedTuple, NewType, Optional, Sequence, TextIO, Tuple, Type, TypeVar, Union class RenderableColumn(ProgressColumn): ...
class RenderableColumn(ProgressColumn): '''A column to insert an arbitrary column. Args: renderable (RenderableType, optional): Any renderable. Defaults to empty string. ''' def __init__(self, renderable: RenderableType='', *, table_column: Optional[Column]=None): pass def render(...
3
1
4
0
4
0
1
0.5
1
2
1
0
2
1
2
26
15
3
8
6
3
4
6
4
3
1
5
0
2
14,817
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress.SpinnerColumn
from .text import Text, TextType from .console import Console, Group, JustifyMethod, RenderableType from .table import Column, Table from .spinner import Spinner from .style import StyleType from typing import Any, BinaryIO, Callable, ContextManager, Deque, Dict, Generic, Iterable, List, NamedTuple, NewType, Optional, ...
class SpinnerColumn(ProgressColumn): '''A column with a 'spinner' animation. Args: spinner_name (str, optional): Name of spinner animation. Defaults to "dots". style (StyleType, optional): Style of spinner. Defaults to "progress.spinner". speed (float, optional): Speed factor of spinner...
4
2
12
0
10
2
2
0.43
1
6
3
0
3
2
3
27
48
5
30
19
14
13
10
7
6
2
5
0
5
14,818
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress.Task
from collections import deque from typing import Any, BinaryIO, Callable, ContextManager, Deque, Dict, Generic, Iterable, List, NamedTuple, NewType, Optional, Sequence, TextIO, Tuple, Type, TypeVar, Union from dataclasses import dataclass, field from math import ceil from threading import Event, RLock, Thread @datacla...
@dataclass class Task: '''Information regarding a progress task. This object should be considered read-only outside of the :class:`~Progress` class. ''' def get_time(self) -> float: '''float: Get the current time, in seconds.''' pass @property def started(self) -> bool: ...
18
10
7
0
6
1
2
0.32
0
2
0
0
9
0
9
9
123
24
75
34
58
24
66
27
56
4
0
2
19
14,819
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress.TaskProgressColumn
from .table import Column, Table from .console import Console, Group, JustifyMethod, RenderableType from .style import StyleType from .text import Text, TextType from typing import Any, BinaryIO, Callable, ContextManager, Deque, Dict, Generic, Iterable, List, NamedTuple, NewType, Optional, Sequence, TextIO, Tuple, Type...
class TaskProgressColumn(TextColumn): '''Show task progress as a percentage. Args: text_format (str, optional): Format for percentage display. Defaults to "[progress.percentage]{task.percentage:>3.0f}%". text_format_no_percentage (str, optional): Format if percentage is unknown. Defaults to ""....
5
2
18
1
15
2
3
0.36
1
8
3
0
2
3
3
29
70
6
47
22
32
17
22
11
18
5
6
1
8
14,820
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress.TextColumn
from .console import Console, Group, JustifyMethod, RenderableType from typing import Any, BinaryIO, Callable, ContextManager, Deque, Dict, Generic, Iterable, List, NamedTuple, NewType, Optional, Sequence, TextIO, Tuple, Type, TypeVar, Union from .style import StyleType from .highlighter import Highlighter from .table ...
class TextColumn(ProgressColumn): '''A column containing text.''' def __init__(self, text_format: str, style: StyleType='none', justify: JustifyMethod='left', markup: bool=True, highlighter: Optional[Highlighter]=None, table_column: Optional[Column]=None) -> None: pass def render(self, task: 'Tas...
3
1
12
0
12
0
2
0.04
1
6
3
1
2
5
2
26
28
2
25
18
14
1
16
10
13
3
5
1
4
14,821
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress.TimeElapsedColumn
from datetime import timedelta from .text import Text, TextType class TimeElapsedColumn(ProgressColumn): """Renders time elapsed.""" def render(self, task: 'Task') -> Text: """Show time elapsed.""" elapsed = task.finished_time if task.finished else task.elapsed if elapsed is None: ...
class TimeElapsedColumn(ProgressColumn): '''Renders time elapsed.''' def render(self, task: 'Task') -> Text: '''Show time elapsed.''' pass
2
2
7
0
6
1
3
0.29
1
4
1
0
1
0
1
25
10
1
7
4
5
2
7
4
5
3
5
1
3
14,822
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress.TimeRemainingColumn
from .text import Text, TextType from typing import Any, BinaryIO, Callable, ContextManager, Deque, Dict, Generic, Iterable, List, NamedTuple, NewType, Optional, Sequence, TextIO, Tuple, Type, TypeVar, Union from .table import Column, Table class TimeRemainingColumn(ProgressColumn): """Renders estimated time remai...
class TimeRemainingColumn(ProgressColumn): '''Renders estimated time remaining. Args: compact (bool, optional): Render MM:SS when time remaining is less than an hour. Defaults to False. elapsed_when_finished (bool, optional): Render time elapsed when the task is finished. Defaults to False. ...
3
2
17
3
14
1
4
0.28
1
5
2
0
2
2
2
26
46
9
29
16
21
8
22
11
19
6
5
1
7
14,823
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress.TotalFileSizeColumn
from .text import Text, TextType from . import filesize, get_console class TotalFileSizeColumn(ProgressColumn): """Renders total filesize.""" def render(self, task: 'Task') -> Text: """Show data completed.""" data_size = filesize.decimal(int(task.total)) if task.total is not None else '' ...
class TotalFileSizeColumn(ProgressColumn): '''Renders total filesize.''' def render(self, task: 'Task') -> Text: '''Show data completed.''' pass
2
2
4
0
3
1
2
0.5
1
2
1
0
1
0
1
25
7
1
4
3
2
2
4
3
2
2
5
0
2
14,824
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress.TransferSpeedColumn
from .text import Text, TextType from . import filesize, get_console class TransferSpeedColumn(ProgressColumn): """Renders human readable transfer speed.""" def render(self, task: 'Task') -> Text: """Show data transfer speed.""" speed = task.finished_speed or task.speed if speed is Non...
class TransferSpeedColumn(ProgressColumn): '''Renders human readable transfer speed.''' def render(self, task: 'Task') -> Text: '''Show data transfer speed.''' pass
2
2
7
0
6
1
2
0.29
1
2
1
0
1
0
1
25
10
1
7
4
5
2
7
4
5
2
5
1
2
14,825
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress._ReadContext
from types import TracebackType from typing import Any, BinaryIO, Callable, ContextManager, Deque, Dict, Generic, Iterable, List, NamedTuple, NewType, Optional, Sequence, TextIO, Tuple, Type, TypeVar, Union class _ReadContext(ContextManager[_I], Generic[_I]): """A utility class to handle a context for both a reade...
class _ReadContext(ContextManager[_I], Generic[_I]): '''A utility class to handle a context for both a reader and a progress.''' def __init__(self, progress: 'Progress', reader: _I) -> None: pass def __enter__(self) -> _I: pass def __exit__(self, exc_type: Optional[Type[BaseException...
4
1
5
0
5
0
1
0.07
2
1
0
0
3
2
3
5
19
3
15
11
6
1
10
6
6
1
1
0
3
14,826
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress._Reader
from types import TracebackType from io import RawIOBase, UnsupportedOperation from mmap import mmap from typing import Any, BinaryIO, Callable, ContextManager, Deque, Dict, Generic, Iterable, List, NamedTuple, NewType, Optional, Sequence, TextIO, Tuple, Type, TypeVar, Union class _Reader(RawIOBase, BinaryIO): """...
class _Reader(RawIOBase, BinaryIO): '''A reader that tracks progress while it's being read from.''' def __init__(self, handle: BinaryIO, progress: 'Progress', task: TaskID, close_handle: bool=True) -> None: pass def __enter__(self) -> '_Reader': pass def __exit__(self, exc_type: Opti...
26
1
3
0
3
0
1
0.05
2
10
0
0
21
5
21
65
98
21
76
47
40
4
62
33
40
2
5
1
22
14,827
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress.py
pipenv.patched.pip._vendor.rich.progress._TrackThread
from types import TracebackType from typing import Any, BinaryIO, Callable, ContextManager, Deque, Dict, Generic, Iterable, List, NamedTuple, NewType, Optional, Sequence, TextIO, Tuple, Type, TypeVar, Union from threading import Event, RLock, Thread class _TrackThread(Thread): """A thread to periodically update pr...
class _TrackThread(Thread): '''A thread to periodically update progress.''' def __init__(self, progress: 'Progress', task_id: 'TaskID', update_period: float): pass def run(self) -> None: pass def __enter__(self) -> '_TrackThread': pass def __exit__(self, exc_type: Option...
5
1
8
1
8
0
2
0.03
1
4
0
0
4
5
4
29
38
6
31
21
21
1
26
16
21
3
1
2
6
14,828
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/progress_bar.py
pipenv.patched.pip._vendor.rich.progress_bar.ProgressBar
from .color_triplet import ColorTriplet from typing import Iterable, List, Optional import math from .color import Color, blend_rgb from .style import Style, StyleType from .console import Console, ConsoleOptions, RenderResult from .jupyter import JupyterMixin from .measure import Measurement from functools import lru_...
class ProgressBar(JupyterMixin): '''Renders a (progress) bar. Used by rich.progress. Args: total (float, optional): Number of steps in the bar. Defaults to 100. Set to None to render a pulsing animation. completed (float, optional): Number of steps completed. Defaults to 0. width (int, ...
11
5
21
2
17
2
4
0.22
1
12
7
0
8
10
8
9
190
21
138
81
103
31
86
55
77
14
1
3
31
14,829
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/prompt.py
pipenv.patched.pip._vendor.rich.prompt.Confirm
from .text import Text, TextType from typing import Any, Generic, List, Optional, TextIO, TypeVar, Union, overload class Confirm(PromptBase[bool]): """A yes / no confirmation prompt. Example: >>> if Confirm.ask("Continue"): run_job() """ response_type = bool validate_error...
class Confirm(PromptBase[bool]): '''A yes / no confirmation prompt. Example: >>> if Confirm.ask("Continue"): run_job() ''' def render_default(self, default: DefaultType) -> Text: '''Render the default as (y) or (n) rather than True/False.''' pass def proces...
3
3
5
0
4
1
2
0.58
1
4
2
0
2
0
2
18
24
5
12
7
9
7
12
7
9
2
2
1
4
14,830
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/prompt.py
pipenv.patched.pip._vendor.rich.prompt.FloatPrompt
class FloatPrompt(PromptBase[float]): """A prompt that returns a float. Example: >>> temperature = FloatPrompt.ask("Enter desired temperature") """ response_type = float validate_error_message = '[prompt.invalid]Please enter a number'
class FloatPrompt(PromptBase[float]): '''A prompt that returns a float. Example: >>> temperature = FloatPrompt.ask("Enter desired temperature") ''' pass
1
1
0
0
0
0
0
1.33
1
0
0
0
0
0
0
16
10
3
3
3
2
4
3
3
2
0
2
0
0
14,831
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/prompt.py
pipenv.patched.pip._vendor.rich.prompt.IntPrompt
class IntPrompt(PromptBase[int]): """A prompt that returns an integer. Example: >>> burrito_count = IntPrompt.ask("How many burritos do you want to order") """ response_type = int validate_error_message = '[prompt.invalid]Please enter a valid integer number'
class IntPrompt(PromptBase[int]): '''A prompt that returns an integer. Example: >>> burrito_count = IntPrompt.ask("How many burritos do you want to order") ''' pass
1
1
0
0
0
0
0
1.33
1
0
0
0
0
0
0
16
10
3
3
3
2
4
3
3
2
0
2
0
0
14,832
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/prompt.py
pipenv.patched.pip._vendor.rich.prompt.InvalidResponse
from .text import Text, TextType class InvalidResponse(PromptError): """Exception to indicate a response was invalid. Raise this within process_response() to indicate an error and provide an error message. Args: message (Union[str, Text]): Error message. """ def __init__(self, message: Te...
class InvalidResponse(PromptError): '''Exception to indicate a response was invalid. Raise this within process_response() to indicate an error and provide an error message. Args: message (Union[str, Text]): Error message. ''' def __init__(self, message: TextType) -> None: pass ...
3
1
2
0
2
0
1
1
1
0
0
0
2
1
2
12
13
3
5
4
2
5
5
4
2
1
4
0
2
14,833
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/prompt.py
pipenv.patched.pip._vendor.rich.prompt.Prompt
class Prompt(PromptBase[str]): """A prompt that returns a str. Example: >>> name = Prompt.ask("Enter your name") """ response_type = str
class Prompt(PromptBase[str]): '''A prompt that returns a str. Example: >>> name = Prompt.ask("Enter your name") ''' pass
1
1
0
0
0
0
0
2
1
0
0
0
0
0
0
16
10
4
2
2
1
4
2
2
1
0
2
0
0
14,834
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/prompt.py
pipenv.patched.pip._vendor.rich.prompt.PromptBase
from .text import Text, TextType from typing import Any, Generic, List, Optional, TextIO, TypeVar, Union, overload from . import get_console from .console import Console class PromptBase(Generic[PromptType]): """Ask the user for input until a valid response is received. This is the base class, see one of the c...
null
23
10
15
2
9
4
2
0.47
1
8
3
4
10
5
14
16
254
40
146
90
74
68
72
34
57
4
1
2
23
14,835
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/prompt.py
pipenv.patched.pip._vendor.rich.prompt.PromptError
class PromptError(Exception): """Exception base class for prompt related errors."""
class PromptError(Exception): '''Exception base class for prompt related errors.''' pass
1
1
0
0
0
0
0
1
1
0
0
1
0
0
0
10
2
0
1
1
0
1
1
1
0
0
3
0
0
14,836
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/region.py
pipenv.patched.pip._vendor.rich.region.Region
from typing import NamedTuple class Region(NamedTuple): """Defines a rectangular region of the screen.""" x: int y: int width: int height: int
class Region(NamedTuple): '''Defines a rectangular region of the screen.''' pass
1
1
0
0
0
0
0
0.2
1
0
0
0
0
0
0
0
7
1
5
1
4
1
5
1
4
0
1
0
0
14,837
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/repr.py
pipenv.patched.pip._vendor.rich.repr.ReprError
class ReprError(Exception): """An error occurred when attempting to build a repr."""
class ReprError(Exception): '''An error occurred when attempting to build a repr.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
3
0
0
14,838
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/rule.py
pipenv.patched.pip._vendor.rich.rule.Rule
from .style import Style from .align import AlignMethod from .cells import cell_len, set_cell_size from .jupyter import JupyterMixin from .console import Console, ConsoleOptions, RenderResult from .measure import Measurement from typing import Union from .text import Text class Rule(JupyterMixin): """A console ren...
class Rule(JupyterMixin): '''A console renderable to draw a horizontal rule (line). Args: title (Union[str, Text], optional): Text to render in the rule. Defaults to "". characters (str, optional): Character(s) used to draw the line. Defaults to "─". style (StyleType, optional): Style o...
6
1
18
1
16
0
3
0.1
1
6
3
0
5
5
5
6
103
13
82
35
64
8
59
23
53
9
1
1
15
14,839
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/screen.py
pipenv.patched.pip._vendor.rich.screen.Screen
from .segment import Segment from .style import StyleType from typing import Optional, TYPE_CHECKING from ._loop import loop_last class Screen: """A renderable that fills the terminal screen and crops excess. Args: renderable (RenderableType): Child renderable. style (StyleType, optional): Opt...
class Screen: '''A renderable that fills the terminal screen and crops excess. Args: renderable (RenderableType): Child renderable. style (StyleType, optional): Optional background style. Defaults to None. ''' def __init__(self, *renderables: 'RenderableType', style: Optional[StyleType...
3
1
13
1
13
0
3
0.19
0
3
2
0
2
2
2
2
37
5
27
19
16
5
18
12
14
5
0
2
6
14,840
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/segment.py
pipenv.patched.pip._vendor.rich.segment.ControlType
from enum import IntEnum class ControlType(IntEnum): """Non-printable control codes which typically translate to ANSI codes.""" BELL = 1 CARRIAGE_RETURN = 2 HOME = 3 CLEAR = 4 SHOW_CURSOR = 5 HIDE_CURSOR = 6 ENABLE_ALT_SCREEN = 7 DISABLE_ALT_SCREEN = 8 CURSOR_UP = 9 CURSOR_D...
class ControlType(IntEnum): '''Non-printable control codes which typically translate to ANSI codes.''' pass
1
1
0
0
0
0
0
0.06
1
0
0
0
0
0
0
55
19
1
17
17
16
1
17
17
16
0
3
0
0
14,841
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/segment.py
pipenv.patched.pip._vendor.rich.segment.Segment
from .style import Style from .repr import Result, rich_repr from typing import TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Sequence, Tuple, Type, Union from operator import attrgetter from functools import lru_cache from itertools import filterfalse from .cells import _is_single_cell_widths, cached_cell...
@rich_repr() class Segment(NamedTuple): '''A piece of text with associated style. Segments are produced by the Console render process and are ultimately converted in to strings to be written to the terminal. Args: text (str): A piece of text. style (:class:`~rich.style.Style`, optional): An ...
46
23
23
3
14
6
4
0.41
1
7
1
0
5
0
23
23
591
88
357
164
262
146
240
92
216
13
1
5
88
14,842
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/segment.py
pipenv.patched.pip._vendor.rich.segment.SegmentLines
from typing import TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Sequence, Tuple, Type, Union class SegmentLines: def __init__(self, lines: Iterable[List[Segment]], new_lines: bool=False) -> None: """A simple renderable containing a number of lines of segments. May be used as an intermediate ...
class SegmentLines: def __init__(self, lines: Iterable[List[Segment]], new_lines: bool=False) -> None: '''A simple renderable containing a number of lines of segments. May be used as an intermediate in rendering process. Args: lines (Iterable[List[Segment]]): Lists of segments ...
3
1
11
1
7
3
3
0.4
0
3
1
0
2
2
2
2
23
2
15
9
10
6
12
7
9
4
0
2
5
14,843
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/segment.py
pipenv.patched.pip._vendor.rich.segment.Segments
from typing import TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Sequence, Tuple, Type, Union class Segments: """A simple renderable to render an iterable of segments. This class may be useful if you want to print segments outside of a __rich_console__ method. Args: segments (Iterable...
class Segments: '''A simple renderable to render an iterable of segments. This class may be useful if you want to print segments outside of a __rich_console__ method. Args: segments (Iterable[Segment]): An iterable of segments. new_lines (bool, optional): Add new lines between segments. Def...
3
1
7
0
7
0
2
0.43
0
3
1
0
2
2
2
2
23
3
14
9
9
6
11
7
8
3
0
2
4
14,844
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/spinner.py
pipenv.patched.pip._vendor.rich.spinner.Spinner
from typing import cast, List, Optional, TYPE_CHECKING, Union from ._spinners import SPINNERS from .text import Text from .measure import Measurement from .table import Table class Spinner: """A spinner animation. Args: name (str): Name of spinner (run python -m rich.spinner). text (Renderable...
class Spinner: '''A spinner animation. Args: name (str): Name of spinner (run python -m rich.spinner). text (RenderableType, optional): A renderable to display at the right of the spinner (str or Text typically). Defaults to "". style (StyleType, optional): Style for spinner animation. ...
6
3
17
1
13
2
3
0.31
0
7
3
0
5
8
5
5
101
13
67
36
44
21
42
19
36
5
0
1
15
14,845
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/status.py
pipenv.patched.pip._vendor.rich.status.Status
from types import TracebackType from .jupyter import JupyterMixin from .console import Console, RenderableType from .live import Live from typing import Optional, Type from .style import StyleType from .spinner import Spinner class Status(JupyterMixin): """Displays a status indicator with a 'spinner' animation. ...
class Status(JupyterMixin): '''Displays a status indicator with a 'spinner' animation. Args: status (RenderableType): A status renderable (str or Text typically). console (Console, optional): Console instance to use, or None for global console. Defaults to None. spinner (str, optional):...
12
5
8
0
7
1
1
0.29
1
5
2
0
9
5
9
10
96
11
66
38
33
19
33
15
23
5
1
1
13
14,846
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/style.py
pipenv.patched.pip._vendor.rich.style.Style
from .terminal_theme import DEFAULT_TERMINAL_THEME, TerminalTheme from marshal import dumps, loads from random import randint from . import errors import sys from .color import Color, ColorParseError, ColorSystem, blend_rgb from .repr import Result, rich_repr from functools import lru_cache from typing import Any, Dict...
@rich_repr class Style: '''A terminal style. A terminal style consists of a color (`color`), a background color (`bgcolor`), and a number of attributes, such as bold, italic etc. The attributes have 3 states: they can either be on (``True``), off (``False``), or not set (``None``). Args: col...
58
27
17
1
13
3
4
0.21
0
11
5
0
24
4
33
33
729
77
539
141
454
113
370
92
335
34
0
5
130
14,847
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/style.py
pipenv.patched.pip._vendor.rich.style.StyleStack
from typing import Any, Dict, Iterable, List, Optional, Type, Union, cast class StyleStack: """A stack of styles.""" __slots__ = ['_stack'] def __init__(self, default_style: 'Style') -> None: self._stack: List[Style] = [default_style] def __repr__(self) -> str: return f'<stylestack {s...
class StyleStack: '''A stack of styles.''' def __init__(self, default_style: 'Style') -> None: pass def __repr__(self) -> str: pass @property def current(self) -> Style: '''Get the Style at the top of the stack.''' pass def push(self, style: Style) -> None: ...
7
4
4
0
2
2
1
0.71
0
2
1
0
5
1
5
5
32
8
14
9
7
10
13
8
7
1
0
0
5
14,848
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/style.py
pipenv.patched.pip._vendor.rich.style._Bit
from typing import Any, Dict, Iterable, List, Optional, Type, Union, cast class _Bit: """A descriptor to get/set a style attribute bit.""" __slots__ = ['bit'] def __init__(self, bit_no: int) -> None: self.bit = 1 << bit_no def __get__(self, obj: 'Style', objtype: Type['Style']) -> Optional[bo...
class _Bit: '''A descriptor to get/set a style attribute bit.''' def __init__(self, bit_no: int) -> None: pass def __get__(self, obj: 'Style', objtype: Type['Style']) -> Optional[bool]: pass
3
1
3
0
3
0
2
0.13
0
2
0
0
2
1
2
2
12
3
8
5
5
1
8
5
5
2
0
1
3
14,849
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/styled.py
pipenv.patched.pip._vendor.rich.styled.Styled
from .measure import Measurement from .segment import Segment class Styled: """Apply a style to a renderable. Args: renderable (RenderableType): Any renderable. style (StyleType): A style to apply across the entire renderable. """ def __init__(self, renderable: 'RenderableType', style...
class Styled: '''Apply a style to a renderable. Args: renderable (RenderableType): Any renderable. style (StyleType): A style to apply across the entire renderable. ''' def __init__(self, renderable: 'RenderableType', style: 'StyleType') -> None: pass def __rich_console__(...
4
1
5
0
5
0
1
0.33
0
2
2
0
3
2
3
3
24
4
15
13
7
5
11
9
7
1
0
0
3
14,850
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/syntax.py
pipenv.patched.pip._vendor.rich.syntax.ANSISyntaxTheme
from pipenv.patched.pip._vendor.pygments.style import Style as PygmentsStyle from typing import Any, Dict, Iterable, List, NamedTuple, Optional, Sequence, Set, Tuple, Type, Union from .style import Style, StyleType class ANSISyntaxTheme(SyntaxTheme): """Syntax theme to use standard colors.""" def __init__(sel...
class ANSISyntaxTheme(SyntaxTheme): '''Syntax theme to use standard colors.''' def __init__(self, style_map: Dict[TokenType, Style]) -> None: pass def get_style_for_token(self, token_type: TokenType) -> Style: '''Look up style in the style map.''' pass def get_background_styl...
4
2
9
0
7
1
2
0.22
1
3
1
0
3
4
3
25
31
3
23
12
19
5
23
12
19
4
5
3
6
14,851
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/syntax.py
pipenv.patched.pip._vendor.rich.syntax.PygmentsSyntaxTheme
from typing import Any, Dict, Iterable, List, NamedTuple, Optional, Sequence, Set, Tuple, Type, Union from pipenv.patched.pip._vendor.pygments.util import ClassNotFound from pipenv.patched.pip._vendor.pygments.styles import get_style_by_name from pipenv.patched.pip._vendor.pygments.style import Style as PygmentsStyle f...
class PygmentsSyntaxTheme(SyntaxTheme): '''Syntax theme that delegates to Pygments theme.''' def __init__(self, theme: Union[str, Type[PygmentsStyle]]) -> None: pass def get_style_for_token(self, token_type: TokenType) -> Style: '''Get a style from a Pygments class.''' pass d...
4
2
12
0
11
1
3
0.12
1
4
2
0
3
4
3
25
40
4
34
12
30
4
27
12
23
5
5
2
9
14,852
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/syntax.py
pipenv.patched.pip._vendor.rich.syntax.Syntax
from .cells import cell_len from ._loop import loop_first import os.path from pipenv.patched.pip._vendor.rich.containers import Lines from pipenv.patched.pip._vendor.pygments.style import Style as PygmentsStyle from .text import Text from pathlib import Path import re from typing import Any, Dict, Iterable, List, Named...
class Syntax(JupyterMixin): '''Construct a Syntax object to render syntax highlighted code. Args: code (str): Code to highlight. lexer (Lexer | str): Lexer to use (see https://pygments.org/docs/lexers/) theme (str, optional): Color theme, aka Pygments style (see https://pygments.org/doc...
27
17
28
2
22
5
4
0.26
1
21
11
0
15
15
18
18
585
63
415
155
340
108
227
99
206
21
1
5
80
14,853
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/syntax.py
pipenv.patched.pip._vendor.rich.syntax.SyntaxTheme
from abc import ABC, abstractmethod from .style import Style, StyleType from pipenv.patched.pip._vendor.pygments.style import Style as PygmentsStyle class SyntaxTheme(ABC): """Base class for a syntax theme.""" @abstractmethod def get_style_for_token(self, token_type: TokenType) -> Style: """Get a ...
class SyntaxTheme(ABC): '''Base class for a syntax theme.''' @abstractmethod def get_style_for_token(self, token_type: TokenType) -> Style: '''Get a style for a given Pygments token.''' pass @abstractmethod def get_background_style(self) -> Style: '''Get the background color...
5
3
3
0
2
2
1
0.71
1
2
1
2
2
0
2
22
12
2
7
5
2
5
5
3
2
1
4
0
2
14,854
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/syntax.py
pipenv.patched.pip._vendor.rich.syntax._SyntaxHighlightRange
from typing import Any, Dict, Iterable, List, NamedTuple, Optional, Sequence, Set, Tuple, Type, Union from .style import Style, StyleType class _SyntaxHighlightRange(NamedTuple): """ A range to highlight in a Syntax object. `start` and `end` are 2-integers tuples, where the first integer is the line number...
class _SyntaxHighlightRange(NamedTuple): ''' A range to highlight in a Syntax object. `start` and `end` are 2-integers tuples, where the first integer is the line number (starting from 1) and the second integer is the column index (starting from 0). ''' pass
1
1
0
0
0
0
0
1.25
1
0
0
0
0
0
0
0
10
1
4
1
3
5
4
1
3
0
1
0
0
14,855
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/table.py
pipenv.patched.pip._vendor.rich.table.Column
from dataclasses import dataclass, field, replace from typing import TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Sequence, Tuple, Union from .style import Style, StyleType @dataclass class Column: """Defines a column within a ~Table. Args: title (Union[str, Text], optional): The title o...
@dataclass class Column: '''Defines a column within a ~Table. Args: title (Union[str, Text], optional): The title of the table rendered at the top. Defaults to None. caption (Union[str, Text], optional): The table caption rendered below. Defaults to None. width (int, optional): The width...
7
4
3
0
2
1
1
1.88
0
1
0
0
3
0
3
3
88
19
24
21
18
45
22
19
18
1
0
0
3
14,856
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/table.py
pipenv.patched.pip._vendor.rich.table.Row
from dataclasses import dataclass, field, replace from typing import TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Sequence, Tuple, Union from .style import Style, StyleType @dataclass class Row: """Information regarding a row.""" style: Optional[StyleType] = None 'Style to apply to row.' ...
@dataclass class Row: '''Information regarding a row.''' pass
2
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
8
2
3
3
2
3
3
3
2
0
0
0
0
14,857
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/table.py
pipenv.patched.pip._vendor.rich.table.Table
from .padding import Padding, PaddingDimensions from .segment import Segment from .measure import Measurement from ._loop import loop_first_last, loop_last from .jupyter import JupyterMixin from ._pick import pick_bool from . import box, errors from .style import Style, StyleType from .protocol import is_renderable fro...
class Table(JupyterMixin): '''A console renderable to draw a table. Args: *headers (Union[Column, str]): Column headers, either as a string, or :class:`~rich.table.Column` instance. title (Union[str, Text], optional): The title of the table rendered at the top. Defaults to None. caption...
33
17
32
2
27
3
5
0.15
1
15
7
0
18
25
20
20
769
71
608
248
495
90
326
159
301
27
1
5
113
14,858
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/table.py
pipenv.patched.pip._vendor.rich.table._Cell
from .style import Style, StyleType from .align import VerticalAlignMethod from typing import TYPE_CHECKING, Dict, Iterable, List, NamedTuple, Optional, Sequence, Tuple, Union class _Cell(NamedTuple): """A single cell in a table.""" style: StyleType 'Style to apply to cell.' renderable: 'RenderableType...
class _Cell(NamedTuple): '''A single cell in a table.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
0
9
1
4
1
3
4
4
1
3
0
1
0
0
14,859
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/terminal_theme.py
pipenv.patched.pip._vendor.rich.terminal_theme.TerminalTheme
from typing import List, Optional, Tuple from .color_triplet import ColorTriplet from .palette import Palette class TerminalTheme: """A color theme used when exporting console content. Args: background (Tuple[int, int, int]): The background color. foreground (Tuple[int, int, int]): The foregro...
class TerminalTheme: '''A color theme used when exporting console content. Args: background (Tuple[int, int, int]): The background color. foreground (Tuple[int, int, int]): The foreground (text) color. normal (List[Tuple[int, int, int]]): A list of 8 normal intensity colors. bri...
2
1
10
0
10
0
1
0.73
0
2
2
0
1
3
1
1
21
2
11
11
3
8
5
5
3
1
0
0
1
14,860
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/text.py
pipenv.patched.pip._vendor.rich.text.Span
from typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, List, NamedTuple, Optional, Pattern, Tuple, Union from .style import Style, StyleType class Span(NamedTuple): """A marked up region in some text.""" start: int 'Span start index.' end: int 'Span end index.' style: Union[str, Style...
class Span(NamedTuple): '''A marked up region in some text.''' def __repr__(self) -> str: pass def __bool__(self) -> bool: pass def split(self, offset: int) -> Tuple['Span', Optional['Span']]: '''Split a span in to 2 from a given offset.''' pass def move(self, of...
7
5
9
1
5
3
2
0.74
1
3
0
0
6
0
6
6
69
15
31
13
24
23
30
13
23
3
1
1
10
14,861
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/text.py
pipenv.patched.pip._vendor.rich.text.Text
from .cells import cell_len, set_cell_size from functools import partial, reduce from .jupyter import JupyterMixin from .measure import Measurement from typing import TYPE_CHECKING, Any, Callable, Dict, Iterable, List, NamedTuple, Optional, Pattern, Tuple, Union from math import gcd import re from .containers import Li...
class Text(JupyterMixin): '''Text with color / style. Args: text (str, optional): Default unstyled text. Defaults to "". style (Union[str, Style], optional): Base style for text. Defaults to "". justify (str, optional): Justify method: "left", "center", "full", "right". Defaults to None...
70
46
20
2
14
4
3
0.32
1
20
6
0
51
9
55
56
1,213
159
800
362
620
254
535
244
472
13
1
5
179
14,862
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/theme.py
pipenv.patched.pip._vendor.rich.theme.Theme
from .default_styles import DEFAULT_STYLES from typing import IO, Dict, List, Mapping, Optional import configparser from .style import Style, StyleType class Theme: """A container for style information, used by :class:`~rich.console.Console`. Args: styles (Dict[str, Style], optional): A mapping of sty...
class Theme: '''A container for style information, used by :class:`~rich.console.Console`. Args: styles (Dict[str, Style], optional): A mapping of style names on to styles. Defaults to None for a theme with no styles. inherit (bool, optional): Inherit default styles. Defaults to True. ...
8
4
13
1
7
4
2
0.65
0
5
1
0
2
0
4
4
66
10
34
19
20
22
18
9
13
4
0
1
7
14,863
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/theme.py
pipenv.patched.pip._vendor.rich.theme.ThemeStack
from .style import Style, StyleType from typing import IO, Dict, List, Mapping, Optional class ThemeStack: """A stack of themes. Args: theme (Theme): A theme instance """ def __init__(self, theme: Theme) -> None: self._entries: List[Dict[str, Style]] = [theme.styles] self.get ...
class ThemeStack: '''A stack of themes. Args: theme (Theme): A theme instance ''' def __init__(self, theme: Theme) -> None: pass def push_theme(self, theme: Theme, inherit: bool=True) -> None: '''Push a theme on the top of the stack. Args: theme (Theme)...
4
3
7
0
5
2
2
0.63
0
5
3
0
3
2
3
3
31
5
16
6
12
10
14
6
10
2
0
1
5
14,864
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/theme.py
pipenv.patched.pip._vendor.rich.theme.ThemeStackError
class ThemeStackError(Exception): """Base exception for errors related to the theme stack."""
class ThemeStackError(Exception): '''Base exception for errors related to the theme stack.''' pass
1
1
0
0
0
0
0
1
1
0
0
0
0
0
0
10
2
0
1
1
0
1
1
1
0
0
3
0
0
14,865
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/traceback.py
pipenv.patched.pip._vendor.rich.traceback.Frame
from typing import Any, Callable, Dict, Iterable, List, Optional, Sequence, Tuple, Type, Union from . import pretty from dataclasses import dataclass, field @dataclass class Frame: filename: str lineno: int name: str line: str = '' locals: Optional[Dict[str, pretty.Node]] = None last_instructio...
@dataclass class Frame: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
6
0
6
2
5
0
6
2
5
0
0
0
0
14,866
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/traceback.py
pipenv.patched.pip._vendor.rich.traceback.PathHighlighter
from .highlighter import RegexHighlighter, ReprHighlighter class PathHighlighter(RegexHighlighter): highlights = ['(?P<dim>.*/)(?P<bold>.+)']
class PathHighlighter(RegexHighlighter): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
23
2
0
2
2
1
0
2
2
1
0
6
0
0
14,867
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/traceback.py
pipenv.patched.pip._vendor.rich.traceback.Stack
from typing import Any, Callable, Dict, Iterable, List, Optional, Sequence, Tuple, Type, Union from dataclasses import dataclass, field @dataclass class Stack: exc_type: str exc_value: str syntax_error: Optional[_SyntaxError] = None is_cause: bool = False frames: List[Frame] = field(default_factory...
@dataclass class Stack: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
6
0
6
4
5
0
6
4
5
0
0
0
0
14,868
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/traceback.py
pipenv.patched.pip._vendor.rich.traceback.Trace
from dataclasses import dataclass, field from typing import Any, Callable, Dict, Iterable, List, Optional, Sequence, Tuple, Type, Union @dataclass class Trace: stacks: List[Stack]
@dataclass class Trace: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0
2
1
1
0
2
1
1
0
0
0
0
14,869
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/traceback.py
pipenv.patched.pip._vendor.rich.traceback.Traceback
from pipenv.patched.pip._vendor.pygments.token import Text as TextToken from .highlighter import RegexHighlighter, ReprHighlighter from ._loop import loop_first_last, loop_last from pipenv.patched.pip._vendor.pygments.token import Token from traceback import walk_tb from .columns import Columns from .constrain import C...
class Traceback: '''A Console renderable that renders a traceback. Args: trace (Trace, optional): A `Trace` object produced from `extract`. Defaults to None, which uses the last exception. width (Optional[int], optional): Number of characters used to traceback. Defaults to 100. ...
18
5
46
3
38
6
5
0.18
0
24
12
0
4
13
7
7
508
40
399
123
332
71
174
68
161
12
0
4
55
14,870
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/traceback.py
pipenv.patched.pip._vendor.rich.traceback._SyntaxError
from dataclasses import dataclass, field from typing import Any, Callable, Dict, Iterable, List, Optional, Sequence, Tuple, Type, Union @dataclass class _SyntaxError: offset: int filename: str line: str lineno: int msg: str notes: List[str] = field(default_factory=list)
@dataclass class _SyntaxError: pass
2
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
6
0
6
1
5
0
6
1
5
0
0
0
0
14,871
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/rich/tree.py
pipenv.patched.pip._vendor.rich.tree.Tree
from typing import Iterator, List, Optional, Tuple from .style import Style, StyleStack, StyleType from .styled import Styled from .segment import Segment from .measure import Measurement from .console import Console, ConsoleOptions, RenderableType, RenderResult from .jupyter import JupyterMixin from ._loop import loop...
class Tree(JupyterMixin): '''A renderable for a tree structure. Attributes: ASCII_GUIDES (GuideType): Guide lines used when Console.ascii_only is True. TREE_GUIDES (List[GuideType, GuideType, GuideType]): Default guide lines. Args: label (RenderableType): The renderable or str for t...
6
3
35
2
30
2
6
0.13
1
9
5
0
4
7
4
5
182
17
146
70
119
19
95
49
89
14
1
4
28
14,872
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/tomli/_parser.py
pipenv.patched.pip._vendor.tomli._parser.Flags
from typing import IO, Any, Final, NamedTuple from ._types import Key, ParseFloat, Pos class Flags: """Flags that map to parsed keys/namespaces.""" FROZEN: Final = 0 EXPLICIT_NEST: Final = 1 def __init__(self) -> None: self._flags: dict[str, dict] = {} self._pending_flags: set[tuple[Ke...
class Flags: '''Flags that map to parsed keys/namespaces.''' def __init__(self) -> None: pass def add_pending(self, key: Key, flag: int) -> None: pass def finalize_pending(self) -> None: pass def unset_all(self, key: Key) -> None: pass def set(self, key: Key...
7
1
7
0
7
0
3
0.13
0
6
0
0
6
2
6
6
56
7
45
21
38
6
45
21
38
6
0
2
18
14,873
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/tomli/_parser.py
pipenv.patched.pip._vendor.tomli._parser.NestedDict
from ._types import Key, ParseFloat, Pos from typing import IO, Any, Final, NamedTuple class NestedDict: def __init__(self) -> None: self.dict: dict[str, Any] = {} def get_or_create_nest(self, key: Key, *, access_lists: bool=True) -> dict: cont: Any = self.dict for k in key: ...
class NestedDict: def __init__(self) -> None: pass def get_or_create_nest(self, key: Key, *, access_lists: bool=True) -> dict: pass def append_nest_to_list(self, key: Key) -> None: pass
4
0
10
0
9
0
3
0.03
0
6
0
0
3
1
3
3
32
2
29
15
20
1
23
10
19
5
0
2
9
14,874
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/tomli/_parser.py
pipenv.patched.pip._vendor.tomli._parser.Output
from typing import IO, Any, Final, NamedTuple class Output(NamedTuple): data: NestedDict flags: Flags
class Output(NamedTuple): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
3
1
2
0
3
1
2
0
1
0
0
14,875
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/tomli/_parser.py
pipenv.patched.pip._vendor.tomli._parser.TOMLDecodeError
import warnings from typing import IO, Any, Final, NamedTuple from ._types import Key, ParseFloat, Pos class TOMLDecodeError(ValueError): """An error raised if a document is not valid TOML. Adds the following attributes to ValueError: msg: The unformatted error message doc: The TOML document being par...
class TOMLDecodeError(ValueError): '''An error raised if a document is not valid TOML. Adds the following attributes to ValueError: msg: The unformatted error message doc: The TOML document being parsed pos: The index of doc where parsing failed lineno: The line corresponding to pos colno: ...
2
1
0
0
0
0
0
1
1
0
0
0
0
0
0
11
2
0
1
1
0
1
1
1
0
0
4
0
0
14,876
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/truststore/_api.py
pipenv.patched.pip._vendor.truststore._api.SSLContext
import typing import os from ._ssl_constants import _original_SSLContext, _original_super_SSLContext, _truststore_SSLContext_dunder_class, _truststore_SSLContext_super_class import socket import ssl class SSLContext(_truststore_SSLContext_super_class): """SSLContext API that uses system certificates on all platfor...
null
65
1
4
0
4
0
1
0.11
1
17
1
0
38
1
38
38
220
41
169
98
78
18
92
45
51
2
1
1
40
14,877
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/truststore/_macos.py
pipenv.patched.pip._vendor.truststore._macos.CFConst
class CFConst: """CoreFoundation constants""" kCFStringEncodingUTF8 = CFStringEncoding(134217984) errSecIncompleteCertRevocationCheck = -67635 errSecHostNameMismatch = -67602 errSecCertificateExpired = -67818 errSecNotTrusted = -67843
class CFConst: '''CoreFoundation constants''' pass
1
1
0
0
0
0
0
0.17
0
0
0
0
0
0
0
0
9
2
6
6
5
1
6
6
5
0
0
0
0
14,878
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/truststore/_windows.py
pipenv.patched.pip._vendor.truststore._windows.CERT_CHAIN_CONTEXT
from ctypes import POINTER, Structure, c_char_p, c_ulong, c_void_p, c_wchar_p, cast, create_unicode_buffer, pointer, sizeof from ctypes.wintypes import BOOL, DWORD, HANDLE, LONG, LPCSTR, LPCVOID, LPCWSTR, LPFILETIME, LPSTR, LPWSTR class CERT_CHAIN_CONTEXT(Structure): _fields_ = (('cbSize', DWORD), ('TrustStatus', ...
class CERT_CHAIN_CONTEXT(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
11
0
11
2
10
0
2
2
1
0
1
0
0
14,879
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/truststore/_windows.py
pipenv.patched.pip._vendor.truststore._windows.CERT_CHAIN_ELEMENT
from ctypes import POINTER, Structure, c_char_p, c_ulong, c_void_p, c_wchar_p, cast, create_unicode_buffer, pointer, sizeof from ctypes.wintypes import BOOL, DWORD, HANDLE, LONG, LPCSTR, LPCVOID, LPCWSTR, LPFILETIME, LPSTR, LPWSTR class CERT_CHAIN_ELEMENT(Structure): _fields_ = (('cbSize', DWORD), ('pCertContext',...
class CERT_CHAIN_ELEMENT(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
10
0
10
2
9
0
2
2
1
0
1
0
0
14,880
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/truststore/_windows.py
pipenv.patched.pip._vendor.truststore._windows.CERT_CHAIN_ENGINE_CONFIG
from ctypes import POINTER, Structure, c_char_p, c_ulong, c_void_p, c_wchar_p, cast, create_unicode_buffer, pointer, sizeof from ctypes.wintypes import BOOL, DWORD, HANDLE, LONG, LPCSTR, LPCVOID, LPCWSTR, LPFILETIME, LPSTR, LPWSTR class CERT_CHAIN_ENGINE_CONFIG(Structure): _fields_ = (('cbSize', DWORD), ('hRestric...
class CERT_CHAIN_ENGINE_CONFIG(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
16
0
16
2
15
0
2
2
1
0
1
0
0
14,881
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/truststore/_windows.py
pipenv.patched.pip._vendor.truststore._windows.CERT_CHAIN_PARA
from ctypes import POINTER, Structure, c_char_p, c_ulong, c_void_p, c_wchar_p, cast, create_unicode_buffer, pointer, sizeof from ctypes.wintypes import BOOL, DWORD, HANDLE, LONG, LPCSTR, LPCVOID, LPCWSTR, LPFILETIME, LPSTR, LPWSTR class CERT_CHAIN_PARA(Structure): _fields_ = (('cbSize', DWORD), ('RequestedUsage', ...
class CERT_CHAIN_PARA(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
12
0
12
2
11
0
2
2
1
0
1
0
0
14,882
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/truststore/_windows.py
pipenv.patched.pip._vendor.truststore._windows.CERT_CHAIN_POLICY_PARA
from ctypes.wintypes import BOOL, DWORD, HANDLE, LONG, LPCSTR, LPCVOID, LPCWSTR, LPFILETIME, LPSTR, LPWSTR from ctypes import POINTER, Structure, c_char_p, c_ulong, c_void_p, c_wchar_p, cast, create_unicode_buffer, pointer, sizeof class CERT_CHAIN_POLICY_PARA(Structure): _fields_ = (('cbSize', DWORD), ('dwFlags', ...
class CERT_CHAIN_POLICY_PARA(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
6
0
6
2
5
0
2
2
1
0
1
0
0
14,883
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/truststore/_windows.py
pipenv.patched.pip._vendor.truststore._windows.CERT_CHAIN_POLICY_STATUS
from ctypes import POINTER, Structure, c_char_p, c_ulong, c_void_p, c_wchar_p, cast, create_unicode_buffer, pointer, sizeof from ctypes.wintypes import BOOL, DWORD, HANDLE, LONG, LPCSTR, LPCVOID, LPCWSTR, LPFILETIME, LPSTR, LPWSTR class CERT_CHAIN_POLICY_STATUS(Structure): _fields_ = (('cbSize', DWORD), ('dwError'...
class CERT_CHAIN_POLICY_STATUS(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
8
0
8
2
7
0
2
2
1
0
1
0
0
14,884
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/truststore/_windows.py
pipenv.patched.pip._vendor.truststore._windows.CERT_CONTEXT
from ctypes import POINTER, Structure, c_char_p, c_ulong, c_void_p, c_wchar_p, cast, create_unicode_buffer, pointer, sizeof from ctypes.wintypes import BOOL, DWORD, HANDLE, LONG, LPCSTR, LPCVOID, LPCWSTR, LPFILETIME, LPSTR, LPWSTR class CERT_CONTEXT(Structure): _fields_ = (('dwCertEncodingType', DWORD), ('pbCertEn...
class CERT_CONTEXT(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
8
0
8
2
7
0
2
2
1
0
1
0
0
14,885
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/truststore/_windows.py
pipenv.patched.pip._vendor.truststore._windows.CERT_ENHKEY_USAGE
from ctypes import POINTER, Structure, c_char_p, c_ulong, c_void_p, c_wchar_p, cast, create_unicode_buffer, pointer, sizeof from ctypes.wintypes import BOOL, DWORD, HANDLE, LONG, LPCSTR, LPCVOID, LPCWSTR, LPFILETIME, LPSTR, LPWSTR class CERT_ENHKEY_USAGE(Structure): _fields_ = (('cUsageIdentifier', DWORD), ('rgpsz...
class CERT_ENHKEY_USAGE(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
2
4
0
2
2
1
0
1
0
0
14,886
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/truststore/_windows.py
pipenv.patched.pip._vendor.truststore._windows.CERT_SIMPLE_CHAIN
from ctypes import POINTER, Structure, c_char_p, c_ulong, c_void_p, c_wchar_p, cast, create_unicode_buffer, pointer, sizeof from ctypes.wintypes import BOOL, DWORD, HANDLE, LONG, LPCSTR, LPCVOID, LPCWSTR, LPFILETIME, LPSTR, LPWSTR class CERT_SIMPLE_CHAIN(Structure): _fields_ = (('cbSize', DWORD), ('TrustStatus', C...
class CERT_SIMPLE_CHAIN(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
10
0
10
2
9
0
2
2
1
0
1
0
0
14,887
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/truststore/_windows.py
pipenv.patched.pip._vendor.truststore._windows.CERT_TRUST_STATUS
from ctypes.wintypes import BOOL, DWORD, HANDLE, LONG, LPCSTR, LPCVOID, LPCWSTR, LPFILETIME, LPSTR, LPWSTR from ctypes import POINTER, Structure, c_char_p, c_ulong, c_void_p, c_wchar_p, cast, create_unicode_buffer, pointer, sizeof class CERT_TRUST_STATUS(Structure): _fields_ = (('dwErrorStatus', DWORD), ('dwInfoSt...
class CERT_TRUST_STATUS(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
2
4
0
2
2
1
0
1
0
0
14,888
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/truststore/_windows.py
pipenv.patched.pip._vendor.truststore._windows.CERT_USAGE_MATCH
from ctypes import POINTER, Structure, c_char_p, c_ulong, c_void_p, c_wchar_p, cast, create_unicode_buffer, pointer, sizeof from ctypes.wintypes import BOOL, DWORD, HANDLE, LONG, LPCSTR, LPCVOID, LPCWSTR, LPFILETIME, LPSTR, LPWSTR class CERT_USAGE_MATCH(Structure): _fields_ = (('dwType', DWORD), ('Usage', CERT_ENH...
class CERT_USAGE_MATCH(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
5
0
5
2
4
0
2
2
1
0
1
0
0
14,889
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/truststore/_windows.py
pipenv.patched.pip._vendor.truststore._windows.SSL_EXTRA_CERT_CHAIN_POLICY_PARA
from ctypes import POINTER, Structure, c_char_p, c_ulong, c_void_p, c_wchar_p, cast, create_unicode_buffer, pointer, sizeof from ctypes.wintypes import BOOL, DWORD, HANDLE, LONG, LPCSTR, LPCVOID, LPCWSTR, LPFILETIME, LPSTR, LPWSTR class SSL_EXTRA_CERT_CHAIN_POLICY_PARA(Structure): _fields_ = (('cbSize', DWORD), ('...
class SSL_EXTRA_CERT_CHAIN_POLICY_PARA(Structure): pass
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
7
0
7
2
6
0
2
2
1
0
1
0
0
14,890
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/urllib3/_collections.py
pipenv.patched.pip._vendor.urllib3._collections.HTTPHeaderDict
from .exceptions import InvalidHeader from collections import OrderedDict from .packages.six import iterkeys, itervalues from .packages import six class HTTPHeaderDict(MutableMapping): """ :param headers: An iterable of field-value pairs. Must not contain multiple field names when compared case...
class HTTPHeaderDict(MutableMapping): ''' :param headers: An iterable of field-value pairs. Must not contain multiple field names when compared case-insensitively. :param kwargs: Additional field-value pairs to pass in to ``dict.update``. A ``dict`` like container for storing HT...
24
9
8
0
6
2
2
0.44
1
6
1
0
21
1
22
63
249
38
148
56
124
65
127
55
104
11
7
3
53
14,891
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/urllib3/_collections.py
pipenv.patched.pip._vendor.urllib3._collections.RecentlyUsedContainer
from collections import OrderedDict from .packages.six import iterkeys, itervalues class RecentlyUsedContainer(MutableMapping): """ Provides a thread-safe dict-like container which maintains up to ``maxsize`` keys while throwing away the least-recently-used keys beyond ``maxsize``. :param maxsize:...
class RecentlyUsedContainer(MutableMapping): ''' Provides a thread-safe dict-like container which maintains up to ``maxsize`` keys while throwing away the least-recently-used keys beyond ``maxsize``. :param maxsize: Maximum number of recent elements to retain. :param dispose_func: ...
9
1
6
1
5
1
2
0.35
1
2
0
0
8
4
8
49
74
16
43
20
34
15
41
20
32
3
7
2
13
14,892
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/urllib3/connection.py
pipenv.patched.pip._vendor.urllib3.connection.HTTPConnection
import socket from .exceptions import ConnectTimeoutError, NewConnectionError, SubjectAltNameWarning, SystemTimeWarning from .packages import six from socket import timeout as SocketTimeout from socket import error as SocketError from .packages.six.moves.http_client import HTTPConnection as _HTTPConnection from .util i...
class HTTPConnection(_HTTPConnection, object): ''' Based on :class:`http.client.HTTPConnection` but provides an extra constructor backwards-compatibility layer between older and newer Pythons. Additional keyword parameters are used to configure attributes of the connection. Accepted parameters incl...
14
7
14
2
9
4
3
0.59
2
9
2
2
11
7
11
11
208
38
107
38
93
63
87
35
75
9
1
3
31
14,893
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/urllib3/connection.py
pipenv.patched.pip._vendor.urllib3.connection.HTTPSConnection
from socket import timeout as SocketTimeout import socket from .util.proxy import create_proxy_ssl_context import datetime from .packages.six.moves.http_client import HTTPConnection as _HTTPConnection from .exceptions import ConnectTimeoutError, NewConnectionError, SubjectAltNameWarning, SystemTimeWarning import warnin...
null
5
3
57
5
44
8
5
0.2
1
4
2
1
4
11
4
15
248
26
186
58
158
37
80
35
75
11
2
2
19
14,894
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/urllib3/connectionpool.py
pipenv.patched.pip._vendor.urllib3.connectionpool.ConnectionPool
from .exceptions import ClosedPoolError, EmptyPoolError, HeaderParsingError, HostChangedError, InsecureRequestWarning, LocationValueError, MaxRetryError, NewConnectionError, ProtocolError, ProxyError, ReadTimeoutError, SSLError, TimeoutError from .util.url import _normalize_host as normalize_host from .util.queue impor...
class ConnectionPool(object): ''' Base class for all connection pools, such as :class:`.HTTPConnectionPool` and :class:`.HTTPSConnectionPool`. .. note:: ConnectionPool.urlopen() does not normalize or percent-encode target URIs which is useful if your target server doesn't support percent-...
6
2
4
0
3
1
1
0.67
1
2
1
1
5
3
5
5
38
8
18
11
12
12
18
11
12
2
1
1
6
14,895
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/urllib3/connectionpool.py
pipenv.patched.pip._vendor.urllib3.connectionpool.HTTPConnectionPool
from .exceptions import ClosedPoolError, EmptyPoolError, HeaderParsingError, HostChangedError, InsecureRequestWarning, LocationValueError, MaxRetryError, NewConnectionError, ProtocolError, ProxyError, ReadTimeoutError, SSLError, TimeoutError from .util.timeout import Timeout from socket import error as SocketError from...
null
15
11
53
7
29
17
5
0.68
2
23
16
2
13
13
13
23
801
124
406
90
360
278
230
54
215
25
2
3
72
14,896
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/urllib3/connectionpool.py
pipenv.patched.pip._vendor.urllib3.connectionpool.HTTPSConnectionPool
from .util.timeout import Timeout from .connection import BaseSSLError, BrokenPipeError, DummyConnection, HTTPConnection, HTTPException, HTTPSConnection, VerifiedHTTPSConnection, port_by_scheme import warnings from socket import timeout as SocketTimeout from .exceptions import ClosedPoolError, EmptyPoolError, HeaderPar...
null
6
5
29
3
23
4
2
0.24
1
5
4
2
5
10
5
28
168
22
120
43
92
29
44
20
38
4
3
1
12
14,897
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/urllib3/contrib/appengine.py
pipenv.patched.pip._vendor.urllib3.contrib.appengine.AppEngineManager
from ..exceptions import HTTPError, HTTPWarning, MaxRetryError, ProtocolError, SSLError, TimeoutError import io from ..request import RequestMethods from ..response import HTTPResponse import warnings from ..util.retry import Retry from ..packages.six.moves.urllib.parse import urljoin from ..util.timeout import Timeout...
class AppEngineManager(RequestMethods): ''' Connection manager for Google App Engine sandbox applications. This manager uses the URLFetch service directly instead of using the emulated httplib, and is subject to URLFetch limitations as described in the App Engine documentation `here <https://cl...
8
1
29
3
24
2
4
0.15
1
11
8
0
7
3
7
12
227
33
169
38
145
26
84
21
76
15
2
4
30
14,898
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/urllib3/contrib/ntlmpool.py
pipenv.patched.pip._vendor.urllib3.contrib.ntlmpool.NTLMConnectionPool
from .. import HTTPSConnectionPool from ntlm import ntlm from ..packages.six.moves.http_client import HTTPSConnection class NTLMConnectionPool(HTTPSConnectionPool): """ Implements an NTLM authentication version of an urllib3 connection pool """ scheme = 'https' def __init__(self, user, pw, authurl...
class NTLMConnectionPool(HTTPSConnectionPool): ''' Implements an NTLM authentication version of an urllib3 connection pool ''' def __init__(self, user, pw, authurl, *args, **kwargs): ''' authurl is a random URL on the server that is protected by NTLM. user is the Windows user, ...
4
2
32
2
25
4
3
0.19
1
3
0
0
3
6
3
31
104
11
78
31
65
15
54
22
50
6
4
2
9
14,899
pypa/pipenv
pypa_pipenv/pipenv/patched/pip/_vendor/urllib3/contrib/pyopenssl.py
pipenv.patched.pip._vendor.urllib3.contrib.pyopenssl.PyOpenSSLContext
from socket import timeout from io import BytesIO from .. import util import ssl from ..packages import six import OpenSSL.SSL import OpenSSL.crypto class PyOpenSSLContext(object): """ I am a wrapper class for the PyOpenSSL ``Context`` object. I am responsible for translating the interface of the standard ...
null
16
1
6
0
6
0
2
0.08
1
1
1
0
11
4
11
11
92
16
71
30
48
6
60
17
48
7
1
3
24