fname
stringlengths
63
176
rel_fname
stringclasses
706 values
line
int64
-1
4.5k
name
stringlengths
1
81
kind
stringclasses
2 values
category
stringclasses
2 values
info
stringlengths
0
77.9k
⌀
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
mod
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
str
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
ex
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
Union
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
ImportError
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
SyntaxError
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
MessageLocationTuple
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
NamedTuple
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
abspath
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
str
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
path
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
str
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
module
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
str
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
obj
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
str
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
line
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
int
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
column
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
int
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
end_line
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
Optional
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
int
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
end_column
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
Optional
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
int
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
ManagedMessage
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
NamedTuple
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
name
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
Optional
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
str
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
msgid
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
str
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
symbol
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
str
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
line
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
Optional
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
int
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
is_disabled
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
bool
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
MessageTypesFullName
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/typing.py
pylint/typing.py
-1
Literal
ref
function
none
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/ast_walker.py
pylint/utils/ast_walker.py
9
ASTWalker
def
class
__init__ _is_method_enabled add_checker walk
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/ast_walker.py
pylint/utils/ast_walker.py
18
_is_method_enabled
def
function
def _is_method_enabled(self, method): if not hasattr(method, "checks_msgs"): return _True return any(self.linter.is_message_enabled(m) for m in method.checks_msgs) def add_checker(self, checker): """Walk to the checker's dir and collect visit and leave methods.""" vc...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/ast_walker.py
pylint/utils/ast_walker.py
21
is_message_enabled
ref
function
return any(self.linter.is_message_enabled(m) for m in method.checks_msgs)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/ast_walker.py
pylint/utils/ast_walker.py
23
add_checker
def
function
def add_checker(self, checker): """Walk to the checker's dir and collect visit and leave methods.""" vcids = set() lcids = set() visits = self.visit_events leaves = self.leave_events for member in dir(checker): cid = member[6:] if cid == "defau...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/ast_walker.py
pylint/utils/ast_walker.py
36
_is_method_enabled
ref
function
if self._is_method_enabled(v_meth):
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/ast_walker.py
pylint/utils/ast_walker.py
42
_is_method_enabled
ref
function
if self._is_method_enabled(l_meth):
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/ast_walker.py
pylint/utils/ast_walker.py
53
walk
def
function
def walk(self, astroid): """Call visit events of astroid checkers for the given node, recurse on its children, then leave events. """ cid = astroid.__class__.__name__.lower() # Detect if the node is a new name for a deprecated alias. # In this case, favour the method...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/ast_walker.py
pylint/utils/ast_walker.py
71
callback
ref
function
callback(astroid)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/ast_walker.py
pylint/utils/ast_walker.py
73
get_children
ref
function
for child in astroid.get_children():
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/ast_walker.py
pylint/utils/ast_walker.py
74
walk
ref
function
self.walk(child)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/ast_walker.py
pylint/utils/ast_walker.py
76
callback
ref
function
callback(astroid)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/ast_walker.py
pylint/utils/ast_walker.py
79
root
ref
function
file = getattr(astroid.root(), "file", None)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/docs.py
pylint/utils/docs.py
14
_get_checkers_infos
def
function
def _get_checkers_infos(linter: "PyLinter") -> Dict[str, Dict]: """Get info from a checker and handle KeyError.""" by_checker: Dict[str, Dict] = {} for checker in linter.get_checkers(): name = checker.name if name != "master": try: by_checker[name]["checker"] = ch...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/docs.py
pylint/utils/docs.py
17
get_checkers
ref
function
for checker in linter.get_checkers():
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/docs.py
pylint/utils/docs.py
22
options_and_values
ref
function
by_checker[name]["options"] += checker.options_and_values()
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/docs.py
pylint/utils/docs.py
28
options_and_values
ref
function
"options": list(checker.options_and_values()),
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/docs.py
pylint/utils/docs.py
35
_get_checkers_documentation
def
function
def _get_checkers_documentation(linter: "PyLinter") -> str: """Get documentation for individual checkers.""" result = get_rst_title("Pylint global options and switches", "-") result += """
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/docs.py
pylint/utils/docs.py
37
get_rst_title
ref
function
result = get_rst_title("Pylint global options and switches", "-")
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/docs.py
pylint/utils/docs.py
42
get_checkers
ref
function
for checker in linter.get_checkers():
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/docs.py
pylint/utils/docs.py
46
options_by_section
ref
function
for section, options in checker.options_by_section():
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/docs.py
pylint/utils/docs.py
51
get_rst_title
ref
function
result += get_rst_title(title, "~")
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/docs.py
pylint/utils/docs.py
52
get_rst_section
ref
function
result += f"{get_rst_section(None, options)}\n"
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/docs.py
pylint/utils/docs.py
53
get_rst_title
ref
function
result += get_rst_title("Pylint checkers' options and switches", "-")
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/docs.py
pylint/utils/docs.py
65
_get_checkers_infos
ref
function
by_checker = _get_checkers_infos(linter)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/docs.py
pylint/utils/docs.py
70
get_full_documentation
ref
function
result += checker.get_full_documentation(**information)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/docs.py
pylint/utils/docs.py
74
print_full_documentation
def
function
def print_full_documentation(linter: "PyLinter", stream: TextIO = sys.stdout) -> None: """Output a full documentation in ReST format.""" print(_get_checkers_documentation(linter)[:-1], file=stream)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/docs.py
pylint/utils/docs.py
76
_get_checkers_documentation
ref
function
print(_get_checkers_documentation(linter)[:-1], file=stream)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/file_state.py
pylint/utils/file_state.py
32
FileState
def
class
__init__ collect_block_lines _collect_block_lines set_msg_status handle_ignored_message iter_spurious_suppression_messages get_effective_max_line_number
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/file_state.py
pylint/utils/file_state.py
45
collect_block_lines
def
function
def collect_block_lines( self, msgs_store: "MessageDefinitionStore", module_node: nodes.Module ) -> None: """Walk the AST to collect block level options line numbers.""" for msg, lines in self._module_msgs_state.items(): self._raw_module_msgs_state[msg] = lines.copy() ...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/file_state.py
pylint/utils/file_state.py
55
_collect_block_lines
ref
function
self._collect_block_lines(msgs_store, module_node, orig_state)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/file_state.py
pylint/utils/file_state.py
57
_collect_block_lines
def
function
def _collect_block_lines( self, msgs_store: "MessageDefinitionStore", node: nodes.NodeNG, msg_state: MessageStateDict, ) -> None: """Recursively walk (depth first) AST to collect block level options line numbers. """ for child in node.get_children(...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/file_state.py
pylint/utils/file_state.py
66
get_children
ref
function
for child in node.get_children():
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/file_state.py
pylint/utils/file_state.py
67
_collect_block_lines
ref
function
self._collect_block_lines(msgs_store, child, msg_state)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/file_state.py
pylint/utils/file_state.py
99
get_message_definitions
ref
function
message_definitions = msgs_store.get_message_definitions(msgid)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/file_state.py
pylint/utils/file_state.py
104
block_range
ref
function
first_, last_ = node.block_range(lineno)
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/file_state.py
pylint/utils/file_state.py
123
set_msg_status
def
function
def set_msg_status(self, msg: "MessageDefinition", line: int, status: bool) -> None: """Set status (enabled/disable) for a given message at a given line.""" assert line > 0 try: self._module_msgs_state[msg.msgid][line] = status except KeyError: self._module_ms...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/file_state.py
pylint/utils/file_state.py
131
handle_ignored_message
def
function
def handle_ignored_message( self, state_scope: Optional[Literal[0, 1, 2]], msgid: str, line: Optional[int] ) -> None: """Report an ignored message. state_scope is either MSG_STATE_SCOPE_MODULE or MSG_STATE_SCOPE_CONFIG, depending on whether the message was disabled locally in th...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/file_state.py
pylint/utils/file_state.py
149
iter_spurious_suppression_messages
def
function
def iter_spurious_suppression_messages( self, msgs_store: "MessageDefinitionStore", ) -> Iterator[ Tuple[ Literal["useless-suppression", "suppressed-message"], int, Union[Tuple[str], Tuple[str, int]], ] ]: for warning, lines in self...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/file_state.py
pylint/utils/file_state.py
166
get_msg_display_string
ref
function
msgs_store.get_msg_display_string(warning),
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/file_state.py
pylint/utils/file_state.py
172
get_msg_display_string
ref
function
msgs_store.get_msg_display_string(warning),
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/file_state.py
pylint/utils/file_state.py
176
get_effective_max_line_number
def
function
def get_effective_max_line_number(self) -> Optional[int]: return self._effective_max_line_number
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/linterstats.py
pylint/utils/linterstats.py
14
BadNames
def
class
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/linterstats.py
pylint/utils/linterstats.py
30
CodeTypeCount
def
class
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/linterstats.py
pylint/utils/linterstats.py
40
DuplicatedLines
def
class
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/linterstats.py
pylint/utils/linterstats.py
47
NodeCount
def
class
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/linterstats.py
pylint/utils/linterstats.py
56
UndocumentedNodes
def
class
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/linterstats.py
pylint/utils/linterstats.py
65
ModuleStats
def
class
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/linterstats.py
pylint/utils/linterstats.py
78
LinterStats
def
class
__init__ __str__ init_single_module get_bad_names increase_bad_name reset_bad_names get_code_count reset_code_count reset_duplicated_lines get_node_count reset_node_count get_undocumented reset_undocumented get_global_message_count get_module_message_count increase_single_message_count increase_single_module_message_co...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/linterstats.py
pylint/utils/linterstats.py
92
BadNames
ref
function
self.bad_names = bad_names or BadNames(
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/linterstats.py
pylint/utils/linterstats.py
107
CodeTypeCount
ref
function
self.code_type_count = code_type_count or CodeTypeCount(
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/linterstats.py
pylint/utils/linterstats.py
112
DuplicatedLines
ref
function
self.duplicated_lines = duplicated_lines or DuplicatedLines(
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/linterstats.py
pylint/utils/linterstats.py
115
NodeCount
ref
function
self.node_count = node_count or NodeCount(
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/linterstats.py
pylint/utils/linterstats.py
118
UndocumentedNodes
ref
function
self.undocumented = undocumented or UndocumentedNodes(
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/linterstats.py
pylint/utils/linterstats.py
153
init_single_module
def
function
def init_single_module(self, module_name: str) -> None: """Use through PyLinter.set_current_module so PyLinter.current_name is consistent.""" self.by_module[module_name] = ModuleStats( convention=0, error=0, fatal=0, info=0, refactor=0, statement=0, warning=0 ) def get_bad_n...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/linterstats.py
pylint/utils/linterstats.py
155
ModuleStats
ref
function
self.by_module[module_name] = ModuleStats(
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/linterstats.py
pylint/utils/linterstats.py
159
get_bad_names
def
function
def get_bad_names( self, node_name: Literal[ "argument", "attr", "class", "class_attribute", "class_const", "const", "inlinevar", "function", "method", "module", "varia...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/linterstats.py
pylint/utils/linterstats.py
180
increase_bad_name
def
function
def increase_bad_name(self, node_name: str, increase: int) -> None: """Increase a bad names node count.""" if node_name not in { "argument", "attr", "class", "class_attribute", "class_const", "const", "inlinevar", ...
playground/e9b22a58-260b-483f-88d7-7a5fe9f8b1d4/pylint/pylint/utils/linterstats.py
pylint/utils/linterstats.py
218
reset_bad_names
def
function
def reset_bad_names(self) -> None: """Resets the bad_names attribute.""" self.bad_names = BadNames( argument=0, attr=0, klass=0, class_attribute=0, class_const=0, const=0, inlinevar=0, function=0, ...