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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
321,700 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/diagram/__init__.py | pyparsing.diagram.AnnotatedItem | import railroad
class AnnotatedItem(railroad.Group):
"""
Simple subclass of Group that creates an annotation label
"""
def __init__(self, label: str, item) -> None:
super().__init__(item=item, label=f'[{label}]' if label else '') |
class AnnotatedItem(railroad.Group):
'''
Simple subclass of Group that creates an annotation label
'''
def __init__(self, label: str, item) -> None:
pass | 2 | 1 | 2 | 0 | 2 | 0 | 2 | 1 | 1 | 2 | 0 | 0 | 1 | 0 | 1 | 1 | 7 | 1 | 3 | 2 | 1 | 3 | 3 | 2 | 1 | 2 | 1 | 0 | 2 |
321,701 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/diagram/__init__.py | pyparsing.diagram.ConverterState | import railroad
import typing
class ConverterState:
"""
Stores some state that persists between recursions into the element tree
"""
def __init__(self, diagram_kwargs: typing.Optional[dict]=None) -> None:
self._element_diagram_states: dict[int, ElementState] = {}
self.diagrams: dict[in... |
class ConverterState:
'''
Stores some state that persists between recursions into the element tree
'''
def __init__(self, diagram_kwargs: typing.Optional[dict]=None) -> None:
pass
def __setitem__(self, key: int, value: ElementState):
pass
def __getitem__(self, key: int) -> El... | 10 | 4 | 8 | 0 | 5 | 2 | 2 | 0.45 | 0 | 8 | 3 | 0 | 9 | 6 | 9 | 9 | 83 | 13 | 49 | 20 | 39 | 22 | 40 | 20 | 30 | 5 | 0 | 2 | 14 |
321,702 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/diagram/__init__.py | pyparsing.diagram.EachItem | import railroad
class EachItem(railroad.Group):
"""
Custom railroad item to compose a:
- Group containing a
- OneOrMore containing a
- Choice of the elements in the Each
with the group label indicating that all must be matched
"""
all_label = '[ALL]'
def __init__(self, *items... |
class EachItem(railroad.Group):
'''
Custom railroad item to compose a:
- Group containing a
- OneOrMore containing a
- Choice of the elements in the Each
with the group label indicating that all must be matched
'''
def __init__(self, *items) -> None:
pass | 2 | 1 | 4 | 0 | 4 | 0 | 1 | 1.17 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 15 | 2 | 6 | 5 | 4 | 7 | 6 | 5 | 4 | 1 | 1 | 0 | 1 |
321,703 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/diagram/__init__.py | pyparsing.diagram.EditablePartial | from typing import Generic, TypeVar, Callable, Iterable
import inspect
class EditablePartial(Generic[T]):
"""
Acts like a functools.partial, but can be edited. In other words, it represents a type that hasn't yet been
constructed.
"""
def __init__(self, func: Callable[..., T], args: list, kwargs: ... |
class EditablePartial(Generic[T]):
'''
Acts like a functools.partial, but can be edited. In other words, it represents a type that hasn't yet been
constructed.
'''
def __init__(self, func: Callable[..., T], args: list, kwargs: dict) -> None:
pass
@classmethod
def from_call(cls, fun... | 7 | 3 | 7 | 1 | 4 | 2 | 1 | 0.83 | 1 | 2 | 0 | 0 | 3 | 3 | 4 | 6 | 40 | 7 | 18 | 13 | 11 | 15 | 16 | 11 | 11 | 2 | 1 | 1 | 5 |
321,704 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/diagram/__init__.py | pyparsing.diagram.ElementState | import dataclasses
import typing
import pyparsing
@dataclasses.dataclass
class ElementState:
"""
State recorded for an individual pyparsing Element
"""
element: pyparsing.ParserElement
converted: EditablePartial
parent: EditablePartial
number: int
name: str = None
parent_index: typi... | @dataclasses.dataclass
class ElementState:
'''
State recorded for an individual pyparsing Element
'''
def mark_for_extraction(self, el_id: int, state: ConverterState, name: str=None, force: bool=False):
'''
Called when this instance has been seen twice, and thus should eventually be ext... | 3 | 2 | 28 | 2 | 13 | 13 | 5 | 1.09 | 0 | 4 | 1 | 0 | 1 | 0 | 1 | 1 | 50 | 4 | 22 | 8 | 18 | 24 | 18 | 6 | 16 | 5 | 0 | 2 | 5 |
321,705 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/diagram/__init__.py | pyparsing.diagram.NamedDiagram | import dataclasses
import railroad
@dataclasses.dataclass
class NamedDiagram:
"""
A simple structure for associating a name with a railroad diagram
"""
name: str
index: int
diagram: railroad.DiagramItem = None
@property
def bookmark(self):
bookmark = _make_bookmark(self.name)
... | @dataclasses.dataclass
class NamedDiagram:
'''
A simple structure for associating a name with a railroad diagram
'''
@property
def bookmark(self):
pass | 4 | 1 | 3 | 0 | 3 | 0 | 1 | 0.38 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 13 | 2 | 8 | 5 | 5 | 3 | 7 | 4 | 5 | 1 | 0 | 0 | 1 |
321,706 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/exceptions.py | pyparsing.exceptions.ParseBaseException | import sys
import copy
import typing
from functools import cached_property
from .util import _collapse_string_to_ranges, col, line, lineno, replaced_by_pep8
class ParseBaseException(Exception):
"""base exception class for all parsing runtime exceptions"""
loc: int
msg: str
pstr: str
parser_element:... |
class ParseBaseException(Exception):
'''base exception class for all parsing runtime exceptions'''
def __init__(self, pstr: str, loc: int=0, msg: typing.Optional[str]=None, elem=None) -> None:
pass
@staticmethod
def explain_exception(exc: Exception, depth: int=16) -> str:
'''
M... | 26 | 9 | 12 | 2 | 6 | 4 | 2 | 0.58 | 1 | 6 | 1 | 2 | 14 | 0 | 16 | 26 | 232 | 45 | 119 | 51 | 83 | 69 | 93 | 34 | 74 | 11 | 3 | 3 | 33 |
321,707 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/exceptions.py | pyparsing.exceptions.ParseException | class ParseException(ParseBaseException):
"""
Exception thrown when a parse expression doesn't match the input string
Example::
integer = Word(nums).set_name("integer")
try:
integer.parse_string("ABC")
except ParseException as pe:
print(pe, f"column: {pe.col... | class ParseException(ParseBaseException):
'''
Exception thrown when a parse expression doesn't match the input string
Example::
integer = Word(nums).set_name("integer")
try:
integer.parse_string("ABC")
except ParseException as pe:
print(pe, f"column: {pe.colum... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 11 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 26 | 17 | 5 | 1 | 1 | 0 | 11 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
321,708 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/exceptions.py | pyparsing.exceptions.ParseFatalException | class ParseFatalException(ParseBaseException):
"""
User-throwable exception thrown when inconsistent parse content
is found; stops all parsing immediately
""" | class ParseFatalException(ParseBaseException):
'''
User-throwable exception thrown when inconsistent parse content
is found; stops all parsing immediately
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 26 | 5 | 0 | 1 | 1 | 0 | 4 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
321,709 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/exceptions.py | pyparsing.exceptions.ParseSyntaxException | class ParseSyntaxException(ParseFatalException):
"""
Just like :class:`ParseFatalException`, but thrown internally
when an :class:`ErrorStop<And._ErrorStop>` ('-' operator) indicates
that parsing is to stop immediately because an unbacktrackable
syntax error has been found.
""" | class ParseSyntaxException(ParseFatalException):
'''
Just like :class:`ParseFatalException`, but thrown internally
when an :class:`ErrorStop<And._ErrorStop>` ('-' operator) indicates
that parsing is to stop immediately because an unbacktrackable
syntax error has been found.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 26 | 7 | 0 | 1 | 1 | 0 | 6 | 1 | 1 | 0 | 0 | 5 | 0 | 0 |
321,710 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/exceptions.py | pyparsing.exceptions.RecursiveGrammarException | class RecursiveGrammarException(Exception):
"""
Exception thrown by :class:`ParserElement.validate` if the
grammar could be left-recursive; parser may need to enable
left recursion using :class:`ParserElement.enable_left_recursion<ParserElement.enable_left_recursion>`
Deprecated: only used by depre... | class RecursiveGrammarException(Exception):
'''
Exception thrown by :class:`ParserElement.validate` if the
grammar could be left-recursive; parser may need to enable
left recursion using :class:`ParserElement.enable_left_recursion<ParserElement.enable_left_recursion>`
Deprecated: only used by deprec... | 3 | 1 | 2 | 0 | 2 | 0 | 1 | 1.2 | 1 | 1 | 0 | 0 | 2 | 1 | 2 | 12 | 14 | 3 | 5 | 4 | 2 | 6 | 5 | 4 | 2 | 1 | 3 | 0 | 2 |
321,711 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/exceptions.py | pyparsing.exceptions._ExceptionWordUnicodeSet | from .unicode import pyparsing_unicode as ppu
class _ExceptionWordUnicodeSet(ppu.Latin1, ppu.LatinA, ppu.LatinB, ppu.Greek, ppu.Cyrillic):
pass |
class _ExceptionWordUnicodeSet(ppu.Latin1, ppu.LatinA, ppu.LatinB, ppu.Greek, ppu.Cyrillic):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 5 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 4 | 0 | 4 | 3 | 1 | 0 | 2 | 1 | 1 | 0 | 2 | 0 | 0 |
321,712 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/helpers.py | pyparsing.helpers.OpAssoc | class OpAssoc(Enum):
"""Enumeration of operator associativity
- used in constructing InfixNotationOperatorSpec for :class:`infix_notation`"""
LEFT = 1
RIGHT = 2 | class OpAssoc(Enum):
'''Enumeration of operator associativity
- used in constructing InfixNotationOperatorSpec for :class:`infix_notation`'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.67 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 6 | 1 | 3 | 3 | 2 | 2 | 3 | 3 | 2 | 0 | 4 | 0 | 0 |
321,713 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/results.py | pyparsing.results.ParseResults | from collections.abc import MutableMapping, Mapping, MutableSequence, Iterator, Iterable
import pprint
import collections
from typing import Any
class ParseResults:
"""Structured parse results, to provide multiple means of access to
the parsed data:
- as a list (``len(results)``)
- by list index (``re... | null | 47 | 17 | 15 | 2 | 9 | 4 | 3 | 0.67 | 0 | 23 | 2 | 0 | 38 | 0 | 39 | 39 | 774 | 134 | 383 | 95 | 335 | 258 | 284 | 88 | 239 | 11 | 0 | 3 | 119 |
321,714 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/results.py | pyparsing.results._ParseResultsWithOffset | class _ParseResultsWithOffset:
tup: tuple[ParseResults, int]
__slots__ = ['tup']
def __init__(self, p1: ParseResults, p2: int) -> None:
self.tup: tuple[ParseResults, int] = (p1, p2)
def __getitem__(self, i):
return self.tup[i]
def __getstate__(self):
return self.tup
d... | class _ParseResultsWithOffset:
def __init__(self, p1: ParseResults, p2: int) -> None:
pass
def __getitem__(self, i):
pass
def __getstate__(self):
pass
def __setstate__(self, *args):
pass | 5 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 3 | 1 | 0 | 4 | 0 | 4 | 4 | 15 | 4 | 11 | 6 | 6 | 0 | 11 | 6 | 6 | 1 | 0 | 0 | 4 |
321,715 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/unicode.py | pyparsing.unicode._lazyclassproperty | class _lazyclassproperty:
def __init__(self, fn):
self.fn = fn
self.__doc__ = fn.__doc__
self.__name__ = fn.__name__
def __get__(self, obj, cls):
if cls is None:
cls = type(obj)
if not hasattr(cls, '_intern') or any((cls._intern is getattr(superclass, '_inte... | class _lazyclassproperty:
def __init__(self, fn):
pass
def __get__(self, obj, cls):
pass | 3 | 0 | 8 | 0 | 8 | 0 | 3 | 0 | 0 | 1 | 0 | 0 | 2 | 3 | 2 | 2 | 18 | 1 | 17 | 7 | 14 | 0 | 14 | 7 | 11 | 4 | 0 | 1 | 5 |
321,716 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/unicode.py | pyparsing.unicode.pyparsing_unicode | import sys
class pyparsing_unicode(unicode_set):
"""
A namespace class for defining common language unicode_sets.
"""
_ranges: UnicodeRangeList = [(32, sys.maxunicode)]
class BasicMultilingualPlane(unicode_set):
"""Unicode set for the Basic Multilingual Plane"""
_ranges: UnicodeRan... |
class pyparsing_unicode(unicode_set):
'''
A namespace class for defining common language unicode_sets.
'''
class BasicMultilingualPlane(unicode_set):
'''Unicode set for the Basic Multilingual Plane'''
class Latin1(unicode_set):
'''Unicode set for Latin-1 Unicode Character Rang... | 18 | 18 | 0 | 0 | 0 | 0 | 0 | 0.12 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 8 | 232 | 24 | 185 | 49 | 167 | 23 | 49 | 49 | 31 | 0 | 1 | 0 | 0 |
321,717 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/unicode.py | pyparsing.unicode.unicode_set | from itertools import filterfalse
class unicode_set:
"""
A set of Unicode characters, for language-specific strings for
``alphas``, ``nums``, ``alphanums``, and ``printables``.
A unicode_set is defined by a list of ranges in the Unicode character
set, in a class attribute ``_ranges``. Ranges can be... |
class unicode_set:
'''
A set of Unicode characters, for language-specific strings for
``alphas``, ``nums``, ``alphanums``, and ``printables``.
A unicode_set is defined by a list of ranges in the Unicode character
set, in a class attribute ``_ranges``. Ranges can be specified using
2-tuples or a... | 17 | 8 | 6 | 0 | 5 | 2 | 1 | 0.64 | 0 | 7 | 1 | 17 | 8 | 0 | 8 | 8 | 90 | 14 | 47 | 23 | 29 | 30 | 26 | 15 | 16 | 4 | 0 | 2 | 11 |
321,718 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/util.py | pyparsing.util.LRUMemo | class LRUMemo:
"""
A memoizing mapping that retains `capacity` deleted items
The memo tracks retained items by their access order; once `capacity` items
are retained, the least recently used item is discarded.
"""
def __init__(self, capacity):
self._capacity = capacity
self._ac... | class LRUMemo:
'''
A memoizing mapping that retains `capacity` deleted items
The memo tracks retained items by their access order; once `capacity` items
are retained, the least recently used item is discarded.
'''
def __init__(self, capacity):
pass
def __getitem__(self, key):
... | 6 | 1 | 5 | 0 | 5 | 0 | 2 | 0.19 | 0 | 2 | 0 | 0 | 5 | 3 | 5 | 5 | 38 | 6 | 27 | 12 | 21 | 5 | 27 | 12 | 21 | 3 | 0 | 2 | 8 |
321,719 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/util.py | pyparsing.util.UnboundedMemo | class UnboundedMemo(dict):
"""
A memoizing mapping that retains all deleted items
"""
def __delitem__(self, key):
pass | class UnboundedMemo(dict):
'''
A memoizing mapping that retains all deleted items
'''
def __delitem__(self, key):
pass | 2 | 1 | 2 | 0 | 2 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 28 | 7 | 1 | 3 | 2 | 1 | 3 | 3 | 2 | 1 | 1 | 2 | 0 | 1 |
321,720 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/util.py | pyparsing.util._FifoCache | import types
class _FifoCache:
def __init__(self, size):
cache = {}
self.size = size
self.not_in_cache = not_in_cache = object()
cache_get = cache.get
cache_pop = cache.pop
def get(_, key):
return cache_get(key, not_in_cache)
def set_(_, key, v... |
class _FifoCache:
def __init__(self, size):
pass
def get(_, key):
pass
def set_(_, key, value):
pass
def clear(_):
pass | 5 | 0 | 8 | 1 | 6 | 1 | 1 | 0.06 | 0 | 1 | 0 | 0 | 1 | 5 | 1 | 1 | 23 | 4 | 18 | 13 | 13 | 1 | 18 | 13 | 13 | 2 | 0 | 1 | 5 |
321,721 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/util.py | pyparsing.util._GroupConsecutive | import itertools
class _GroupConsecutive:
"""
Used as a callable `key` for itertools.groupby to group
characters that are consecutive:
itertools.groupby("abcdejkmpqrs", key=IsConsecutive())
yields:
(0, iter(['a', 'b', 'c', 'd', 'e']))
(1, iter(['j', 'k']))
... |
class _GroupConsecutive:
'''
Used as a callable `key` for itertools.groupby to group
characters that are consecutive:
itertools.groupby("abcdejkmpqrs", key=IsConsecutive())
yields:
(0, iter(['a', 'b', 'c', 'd', 'e']))
(1, iter(['j', 'k']))
(2, iter(['m'])... | 3 | 1 | 5 | 0 | 5 | 0 | 2 | 0.91 | 0 | 3 | 0 | 0 | 2 | 3 | 2 | 2 | 23 | 2 | 11 | 8 | 8 | 10 | 11 | 8 | 8 | 2 | 0 | 1 | 3 |
321,722 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/util.py | pyparsing.util._UnboundedCache | import types
class _UnboundedCache:
def __init__(self):
cache = {}
cache_get = cache.get
self.not_in_cache = not_in_cache = object()
def get(_, key):
return cache_get(key, not_in_cache)
def set_(_, key, value):
cache[key] = value
def clear... |
class _UnboundedCache:
def __init__(self):
pass
def get(_, key):
pass
def set_(_, key, value):
pass
def clear(_):
pass | 5 | 0 | 6 | 1 | 5 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 5 | 1 | 1 | 19 | 4 | 15 | 12 | 10 | 0 | 15 | 12 | 10 | 1 | 0 | 0 | 4 |
321,723 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/util.py | pyparsing.util.__config_flags | import warnings
class __config_flags:
"""Internal class for defining compatibility and debugging flags"""
_all_names: list[str] = []
_fixed_names: list[str] = []
_type_desc = 'configuration'
@classmethod
def _set(cls, dname, value):
if dname in cls._fixed_names:
warnings.wa... |
class __config_flags:
'''Internal class for defining compatibility and debugging flags'''
@classmethod
def _set(cls, dname, value):
pass | 3 | 1 | 12 | 0 | 12 | 0 | 3 | 0.05 | 0 | 2 | 0 | 2 | 0 | 0 | 1 | 1 | 23 | 3 | 19 | 8 | 16 | 1 | 13 | 7 | 11 | 3 | 0 | 1 | 3 |
321,724 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pyparsing/__init__.py | pyparsing.version_info | from typing import NamedTuple
class version_info(NamedTuple):
major: int
minor: int
micro: int
releaselevel: str
serial: int
@property
def __version__(self):
return f'{self.major}.{self.minor}.{self.micro}' + (f"{('r' if self.releaselevel[0] == 'c' else '')}{self.releaselevel[0]}{s... |
class version_info(NamedTuple):
@property
def __version__(self):
pass
def __str__(self):
pass
def __repr__(self):
pass | 5 | 0 | 4 | 0 | 4 | 0 | 1 | 0 | 1 | 2 | 0 | 0 | 3 | 0 | 3 | 3 | 22 | 3 | 19 | 5 | 14 | 0 | 12 | 4 | 8 | 2 | 1 | 0 | 4 |
321,725 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pytz/__init__.py | pytz.UTC | from pytz.tzinfo import unpickler, BaseTzInfo
class UTC(BaseTzInfo):
"""UTC
Optimized UTC implementation. It unpickles using the single module global
instance defined beneath this class declaration.
"""
zone = 'UTC'
_utcoffset = ZERO
_dst = ZERO
_tzname = zone
def fromutc(self, dt... |
class UTC(BaseTzInfo):
'''UTC
Optimized UTC implementation. It unpickles using the single module global
instance defined beneath this class declaration.
'''
def fromutc(self, dt):
pass
def utcoffset(self, dt):
pass
def tzname(self, dt):
pass
def dst(self,... | 10 | 3 | 3 | 0 | 3 | 0 | 1 | 0.19 | 1 | 2 | 0 | 0 | 9 | 0 | 9 | 15 | 48 | 11 | 31 | 14 | 21 | 6 | 31 | 14 | 21 | 3 | 2 | 1 | 13 |
321,726 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pytz/__init__.py | pytz._CountryNameDict | from pytz.lazy import LazyDict, LazyList, LazySet
class _CountryNameDict(LazyDict):
"""Dictionary proving ISO3166 code -> English name.
>>> print(country_names['au'])
Australia
"""
def _fill(self):
data = {}
zone_tab = open_resource('iso3166.tab')
try:
for line... |
class _CountryNameDict(LazyDict):
'''Dictionary proving ISO3166 code -> English name.
>>> print(country_names['au'])
Australia
'''
def _fill(self):
pass | 2 | 1 | 13 | 0 | 13 | 1 | 3 | 0.36 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 40 | 19 | 1 | 14 | 7 | 12 | 5 | 13 | 7 | 11 | 3 | 7 | 3 | 3 |
321,727 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pytz/__init__.py | pytz._CountryTimezoneDict | from pytz.lazy import LazyDict, LazyList, LazySet
class _CountryTimezoneDict(LazyDict):
"""Map ISO 3166 country code to a list of timezone names commonly used
in that country.
iso3166_code is the two letter code used to identify the country.
>>> def print_list(list_of_strings):
... 'We use a ... |
class _CountryTimezoneDict(LazyDict):
'''Map ISO 3166 country code to a list of timezone names commonly used
in that country.
iso3166_code is the two letter code used to identify the country.
>>> def print_list(list_of_strings):
... 'We use a helper so doctests work under Python 2.3 -> 3.x'
... | 3 | 2 | 11 | 0 | 10 | 2 | 3 | 1.38 | 1 | 1 | 0 | 0 | 2 | 1 | 2 | 41 | 54 | 6 | 21 | 8 | 18 | 29 | 20 | 8 | 17 | 5 | 7 | 3 | 6 |
321,728 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pytz/__init__.py | pytz._FixedOffset | import datetime
class _FixedOffset(datetime.tzinfo):
zone = None
def __init__(self, minutes):
if abs(minutes) >= 1440:
raise ValueError('absolute offset is too large', minutes)
self._minutes = minutes
self._offset = datetime.timedelta(minutes=minutes)
def utcoffset(sel... |
class _FixedOffset(datetime.tzinfo):
def __init__(self, minutes):
pass
def utcoffset(self, dt):
pass
def __reduce__(self):
pass
def dst(self, dt):
pass
def tzname(self, dt):
pass
def __repr__(self):
pass
def localize(self, dt, is_dst=Fa... | 9 | 2 | 3 | 0 | 3 | 0 | 2 | 0.11 | 1 | 2 | 0 | 0 | 8 | 2 | 8 | 13 | 38 | 9 | 27 | 12 | 18 | 3 | 27 | 12 | 18 | 3 | 1 | 1 | 12 |
321,729 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pytz/exceptions.py | pytz.exceptions.AmbiguousTimeError | class AmbiguousTimeError(InvalidTimeError):
"""Exception raised when attempting to create an ambiguous wallclock time.
At the end of a DST transition period, a particular wallclock time will
occur twice (once before the clocks are set back, once after). Both
possibilities may be correct, unless further... | class AmbiguousTimeError(InvalidTimeError):
'''Exception raised when attempting to create an ambiguous wallclock time.
At the end of a DST transition period, a particular wallclock time will
occur twice (once before the clocks are set back, once after). Both
possibilities may be correct, unless further ... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 9 | 2 | 1 | 1 | 0 | 6 | 1 | 1 | 0 | 0 | 5 | 0 | 0 |
321,730 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pytz/exceptions.py | pytz.exceptions.Error | class Error(Exception):
"""Base class for all exceptions raised by the pytz library""" | class Error(Exception):
'''Base class for all exceptions raised by the pytz library'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 10 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
321,731 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pytz/exceptions.py | pytz.exceptions.InvalidTimeError | class InvalidTimeError(Error):
"""Base class for invalid time exceptions.""" | class InvalidTimeError(Error):
'''Base class for invalid time exceptions.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 10 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
321,732 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pytz/exceptions.py | pytz.exceptions.NonExistentTimeError | class NonExistentTimeError(InvalidTimeError):
"""Exception raised when attempting to create a wallclock time that
cannot exist.
At the start of a DST transition period, the wallclock time jumps forward.
The instants jumped over never occur.
""" | class NonExistentTimeError(InvalidTimeError):
'''Exception raised when attempting to create a wallclock time that
cannot exist.
At the start of a DST transition period, the wallclock time jumps forward.
The instants jumped over never occur.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 7 | 1 | 1 | 1 | 0 | 5 | 1 | 1 | 0 | 0 | 5 | 0 | 0 |
321,733 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pytz/exceptions.py | pytz.exceptions.UnknownTimeZoneError | class UnknownTimeZoneError(KeyError, Error):
"""Exception raised when pytz is passed an unknown timezone.
>>> isinstance(UnknownTimeZoneError(), LookupError)
True
This class is actually a subclass of KeyError to provide backwards
compatibility with code relying on the undocumented behavior of earl... | class UnknownTimeZoneError(KeyError, Error):
'''Exception raised when pytz is passed an unknown timezone.
>>> isinstance(UnknownTimeZoneError(), LookupError)
True
This class is actually a subclass of KeyError to provide backwards
compatibility with code relying on the undocumented behavior of earlie... | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6.5 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 13 | 21 | 6 | 2 | 1 | 1 | 13 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
321,734 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pytz/lazy.py | pytz.lazy.LazyDict | class LazyDict(DictMixin):
"""Dictionary populated on first use."""
data = None
def __getitem__(self, key):
if self.data is None:
_fill_lock.acquire()
try:
if self.data is None:
self._fill()
finally:
_fill_lock.... | class LazyDict(DictMixin):
'''Dictionary populated on first use.'''
def __getitem__(self, key):
pass
def __contains__(self, key):
pass
def __iter__(self):
pass
def __len__(self):
pass
def keys(self):
pass | 6 | 1 | 9 | 0 | 9 | 0 | 3 | 0.02 | 1 | 0 | 0 | 0 | 5 | 0 | 5 | 39 | 53 | 5 | 47 | 7 | 41 | 1 | 42 | 7 | 36 | 3 | 6 | 3 | 15 |
321,735 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pytz/lazy.py | pytz.lazy.LazyList.__new__.LazyList | class LazyList(list):
"""List populated on first use."""
_props = ['__str__', '__repr__', '__unicode__', '__hash__', '__sizeof__', '__cmp__', '__lt__', '__le__', '__eq__', '__ne__', '__gt__', '__ge__', 'append', 'count', 'index', 'extend', 'insert', 'pop', 'remove', 'reverse', 'sort', '__add__', '__radd__', '__... | class LazyList(list):
'''List populated on first use.'''
def __new__(cls, fill_iter=None):
pass
class LazyList(list):
def lazy(name):
pass
def _lazy(self, *args, **kw):
pass | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 33 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 2 | 0 | 0 |
321,736 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pytz/lazy.py | pytz.lazy.LazySet.__new__.LazySet | class LazySet(set):
"""Set populated on first use."""
_props = ('__str__', '__repr__', '__unicode__', '__hash__', '__sizeof__', '__cmp__', '__lt__', '__le__', '__eq__', '__ne__', '__gt__', '__ge__', '__contains__', '__len__', '__nonzero__', '__getitem__', '__setitem__', '__delitem__', '__iter__', '__sub__', '__... | class LazySet(set):
'''Set populated on first use.'''
def __new__(cls, fill_iter=None):
pass
class LazySet(set):
def lazy(name):
pass
def _lazy(self, *args, **kw):
pass | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 43 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 2 | 0 | 0 |
321,737 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pytz/reference.py | pytz.reference.FixedOffset | from datetime import tzinfo, timedelta, datetime
from pytz import HOUR, ZERO, UTC
class FixedOffset(tzinfo):
"""Fixed offset in minutes east from UTC."""
def __init__(self, offset, name):
self.__offset = timedelta(minutes=offset)
self.__name = name
def utcoffset(self, dt):
return ... |
class FixedOffset(tzinfo):
'''Fixed offset in minutes east from UTC.'''
def __init__(self, offset, name):
pass
def utcoffset(self, dt):
pass
def tzname(self, dt):
pass
def dst(self, dt):
pass | 5 | 1 | 2 | 0 | 2 | 0 | 1 | 0.1 | 1 | 1 | 0 | 0 | 4 | 2 | 4 | 9 | 15 | 4 | 10 | 7 | 5 | 1 | 10 | 7 | 5 | 1 | 1 | 0 | 4 |
321,738 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pytz/reference.py | pytz.reference.LocalTimezone | import time as _time
from datetime import tzinfo, timedelta, datetime
from pytz import HOUR, ZERO, UTC
class LocalTimezone(tzinfo):
def utcoffset(self, dt):
if self._isdst(dt):
return DSTOFFSET
else:
return STDOFFSET
def dst(self, dt):
if self._isdst(dt):
... |
class LocalTimezone(tzinfo):
def utcoffset(self, dt):
pass
def dst(self, dt):
pass
def tzname(self, dt):
pass
def _isdst(self, dt):
pass | 5 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 4 | 0 | 4 | 9 | 24 | 4 | 20 | 7 | 15 | 0 | 16 | 7 | 11 | 2 | 1 | 1 | 6 |
321,739 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pytz/reference.py | pytz.reference.USTimeZone | from datetime import tzinfo, timedelta, datetime
from pytz import HOUR, ZERO, UTC
class USTimeZone(tzinfo):
def __init__(self, hours, reprname, stdname, dstname):
self.stdoffset = timedelta(hours=hours)
self.reprname = reprname
self.stdname = stdname
self.dstname = dstname
def... |
class USTimeZone(tzinfo):
def __init__(self, hours, reprname, stdname, dstname):
pass
def __repr__(self):
pass
def tzname(self, dt):
pass
def utcoffset(self, dt):
pass
def dst(self, dt):
pass | 6 | 0 | 7 | 0 | 5 | 1 | 2 | 0.28 | 1 | 1 | 0 | 0 | 5 | 4 | 5 | 10 | 39 | 7 | 25 | 12 | 19 | 7 | 23 | 12 | 17 | 3 | 1 | 1 | 8 |
321,740 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pytz/tzinfo.py | pytz.tzinfo.BaseTzInfo | from datetime import datetime, timedelta, tzinfo
class BaseTzInfo(tzinfo):
_utcoffset = None
_tzname = None
zone = None
def __str__(self):
return self.zone |
class BaseTzInfo(tzinfo):
def __str__(self):
pass | 2 | 0 | 2 | 0 | 2 | 0 | 1 | 0.17 | 1 | 0 | 0 | 2 | 1 | 0 | 1 | 6 | 8 | 1 | 6 | 5 | 4 | 1 | 6 | 5 | 4 | 1 | 1 | 0 | 1 |
321,741 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pytz/tzinfo.py | pytz.tzinfo.DstTzInfo | from bisect import bisect_right
from datetime import datetime, timedelta, tzinfo
import pytz
from pytz.exceptions import AmbiguousTimeError, NonExistentTimeError
class DstTzInfo(BaseTzInfo):
"""A timezone that has a variable offset from UTC
The offset might change if daylight saving time comes into effect,
... |
class DstTzInfo(BaseTzInfo):
'''A timezone that has a variable offset from UTC
The offset might change if daylight saving time comes into effect,
or at a point in history when the region decides to change their
timezone definition.
'''
def __init__(self, _inf=None, _tzinfos=None):
... | 10 | 7 | 38 | 6 | 13 | 19 | 4 | 1.56 | 1 | 7 | 0 | 0 | 9 | 2 | 9 | 15 | 371 | 68 | 119 | 31 | 109 | 186 | 90 | 31 | 80 | 12 | 2 | 3 | 33 |
321,742 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/pytz/tzinfo.py | pytz.tzinfo.StaticTzInfo | import pytz
class StaticTzInfo(BaseTzInfo):
"""A timezone that has a constant offset from UTC
These timezones are rare, as most locations have changed their
offset at some point in their history
"""
def fromutc(self, dt):
"""See datetime.tzinfo.fromutc"""
if dt.tzinfo is not None ... |
class StaticTzInfo(BaseTzInfo):
'''A timezone that has a constant offset from UTC
These timezones are rare, as most locations have changed their
offset at some point in their history
'''
def fromutc(self, dt):
'''See datetime.tzinfo.fromutc'''
pass
def utcoffset(self, dt, is_d... | 9 | 7 | 8 | 1 | 3 | 4 | 2 | 1.52 | 1 | 1 | 0 | 0 | 8 | 1 | 8 | 14 | 78 | 15 | 25 | 10 | 16 | 38 | 25 | 9 | 16 | 3 | 2 | 1 | 12 |
321,743 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/__config__.py | scipy.__config__.DisplayModes | from enum import Enum
class DisplayModes(Enum):
stdout = 'stdout'
dicts = 'dicts' |
class DisplayModes(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 2 | 0 | 3 | 3 | 2 | 0 | 1 | 0 | 0 |
321,744 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_array_api.py | scipy._lib._array_api._XPSphinxCapability | import dataclasses
@dataclasses.dataclass(repr=False)
class _XPSphinxCapability:
cpu: bool | None
gpu: bool | None
warnings: list[str] = dataclasses.field(default_factory=list)
def _render(self, value):
if value is None:
return 'n/a'
if not value:
return '⛔'
... | @dataclasses.dataclass(repr=False)
class _XPSphinxCapability:
def _render(self, value):
pass
def __str__(self):
pass | 4 | 0 | 7 | 0 | 7 | 0 | 3 | 0.06 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 2 | 20 | 2 | 18 | 7 | 15 | 1 | 18 | 7 | 15 | 4 | 0 | 1 | 5 |
321,745 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_ccallback.py | scipy._lib._ccallback.CData | class CData:
pass | class CData:
pass | 1 | 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 |
321,746 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_ccallback.py | scipy._lib._ccallback.LowLevelCallable | from . import _ccallback_c
import ctypes
class LowLevelCallable(tuple):
"""
Low-level callback function.
Some functions in SciPy take as arguments callback functions, which
can either be python callables or low-level compiled functions. Using
compiled callback functions can improve performance som... |
class LowLevelCallable(tuple):
'''
Low-level callback function.
Some functions in SciPy take as arguments callback functions, which
can either be python callables or low-level compiled functions. Using
compiled callback functions can improve performance somewhat by
avoiding wrapping data in Pyt... | 14 | 2 | 9 | 1 | 6 | 2 | 2 | 1.27 | 1 | 5 | 1 | 0 | 6 | 0 | 8 | 28 | 158 | 33 | 55 | 21 | 41 | 70 | 40 | 15 | 31 | 9 | 2 | 1 | 18 |
321,747 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_disjoint_set.py | scipy._lib._disjoint_set.DisjointSet | class DisjointSet:
""" Disjoint set data structure for incremental connectivity queries.
.. versionadded:: 1.6.0
Attributes
----------
n_subsets : int
The number of subsets.
Methods
-------
add
merge
connected
subset
subset_size
subsets
__getitem__
... | class DisjointSet:
''' Disjoint set data structure for incremental connectivity queries.
.. versionadded:: 1.6.0
Attributes
----------
n_subsets : int
The number of subsets.
Methods
-------
add
merge
connected
subset
subset_size
subsets
__getitem__
Not... | 12 | 9 | 14 | 2 | 6 | 6 | 2 | 1.97 | 0 | 2 | 0 | 0 | 11 | 5 | 11 | 11 | 249 | 50 | 67 | 28 | 55 | 132 | 67 | 28 | 55 | 3 | 0 | 2 | 22 |
321,748 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_docscrape.py | scipy._lib._docscrape.ClassDoc | import inspect
from collections.abc import Callable, Mapping
import pydoc
from functools import cached_property
import sys
class ClassDoc(NumpyDocString):
extra_public_methods = ['__call__']
def __init__(self, cls, doc=None, modulename='', func_doc=FunctionDoc, config=None):
if not inspect.isclass(cls... |
class ClassDoc(NumpyDocString):
def __init__(self, cls, doc=None, modulename='', func_doc=FunctionDoc, config=None):
pass
def splitlines_x(s):
pass
@property
def methods(self):
pass
@property
def properties(self):
pass
@staticmethod
... | 10 | 0 | 17 | 2 | 15 | 1 | 4 | 0.06 | 1 | 6 | 1 | 0 | 4 | 3 | 5 | 65 | 108 | 14 | 90 | 23 | 79 | 5 | 53 | 18 | 45 | 14 | 7 | 5 | 22 |
321,749 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_docscrape.py | scipy._lib._docscrape.FunctionDoc | import inspect
class FunctionDoc(NumpyDocString):
def __init__(self, func, role='func', doc=None, config=None):
self._f = func
self._role = role
if doc is None:
if func is None:
raise ValueError('No function or docstring given')
doc = inspect.getdoc(... |
class FunctionDoc(NumpyDocString):
def __init__(self, func, role='func', doc=None, config=None):
pass
def get_func(self):
pass
def __str__(self):
pass | 4 | 0 | 11 | 2 | 9 | 0 | 3 | 0.04 | 1 | 2 | 0 | 0 | 3 | 2 | 3 | 63 | 35 | 7 | 28 | 11 | 24 | 1 | 27 | 11 | 23 | 4 | 7 | 2 | 9 |
321,750 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_docscrape.py | scipy._lib._docscrape.NumpyDocString | import inspect
import copy
import textwrap
from warnings import warn
import re
from collections.abc import Callable, Mapping
class NumpyDocString(Mapping):
"""Parses a numpydoc string to an abstract representation
Instances define a mapping from section title to structured data.
"""
sections = {'Sign... |
class NumpyDocString(Mapping):
'''Parses a numpydoc string to an abstract representation
Instances define a mapping from section title to structured data.
'''
def __init__(self, docstring, config=None):
pass
def __getitem__(self, key):
pass
def __setitem__(self, key, val):
... | 30 | 5 | 13 | 1 | 11 | 1 | 4 | 0.13 | 1 | 9 | 2 | 3 | 26 | 2 | 26 | 60 | 459 | 66 | 354 | 98 | 324 | 46 | 289 | 96 | 260 | 10 | 6 | 4 | 105 |
321,751 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_docscrape.py | scipy._lib._docscrape.ObjDoc | class ObjDoc(NumpyDocString):
def __init__(self, obj, doc=None, config=None):
self._f = obj
if config is None:
config = {}
NumpyDocString.__init__(self, doc, config=config) | class ObjDoc(NumpyDocString):
def __init__(self, obj, doc=None, config=None):
pass | 2 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 61 | 6 | 0 | 6 | 3 | 4 | 0 | 6 | 3 | 4 | 2 | 7 | 1 | 2 |
321,752 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_docscrape.py | scipy._lib._docscrape.ParseError | class ParseError(Exception):
def __str__(self):
message = self.args[0]
if hasattr(self, 'docstring'):
message = f'{message} in {self.docstring!r}'
return message | class ParseError(Exception):
def __str__(self):
pass | 2 | 0 | 5 | 0 | 5 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 11 | 6 | 0 | 6 | 3 | 4 | 0 | 6 | 3 | 4 | 2 | 3 | 1 | 2 |
321,753 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_docscrape.py | scipy._lib._docscrape.Reader | class Reader:
"""A line-based string reader."""
def __init__(self, data):
"""
Parameters
----------
data : str
String with lines separated by '\\n'.
"""
if isinstance(data, list):
self._str = data
else:
self._str = data... | class Reader:
'''A line-based string reader.'''
def __init__(self, data):
'''
Parameters
----------
data : str
String with lines separated by '\n'.
'''
pass
def __getitem__(self, n):
pass
def reset(self):
pass
def read(se... | 14 | 2 | 5 | 0 | 4 | 1 | 2 | 0.18 | 0 | 1 | 0 | 0 | 11 | 2 | 11 | 11 | 74 | 16 | 51 | 20 | 37 | 9 | 47 | 20 | 33 | 4 | 0 | 2 | 21 |
321,754 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_gcutils.py | scipy._lib._gcutils.ReferenceError | class ReferenceError(AssertionError):
pass | class ReferenceError(AssertionError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
321,755 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_pep440.py | scipy._lib._pep440.Infinity | class Infinity:
def __repr__(self):
return 'Infinity'
def __hash__(self):
return hash(repr(self))
def __lt__(self, other):
return False
def __le__(self, other):
return False
def __eq__(self, other):
return isinstance(other, self.__class__)
def __ne__... | class Infinity:
def __repr__(self):
pass
def __hash__(self):
pass
def __lt__(self, other):
pass
def __le__(self, other):
pass
def __eq__(self, other):
pass
def __ne__(self, other):
pass
def __gt__(self, other):
pass
def __ge... | 10 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 9 | 0 | 9 | 9 | 27 | 8 | 19 | 10 | 9 | 0 | 19 | 10 | 9 | 1 | 0 | 0 | 9 |
321,756 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_pep440.py | scipy._lib._pep440.LegacyVersion | class LegacyVersion(_BaseVersion):
def __init__(self, version):
self._version = str(version)
self._key = _legacy_cmpkey(self._version)
def __str__(self):
return self._version
def __repr__(self):
return f'<LegacyVersion({repr(str(self))})>'
@property
def public(sel... | class LegacyVersion(_BaseVersion):
def __init__(self, version):
pass
def __str__(self):
pass
def __repr__(self):
pass
@property
def public(self):
pass
@property
def base_version(self):
pass
@property
def local(self):
pass
@proper... | 14 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 8 | 2 | 8 | 16 | 31 | 8 | 23 | 16 | 9 | 0 | 18 | 11 | 9 | 1 | 1 | 0 | 8 |
321,757 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_pep440.py | scipy._lib._pep440.NegativeInfinity | class NegativeInfinity:
def __repr__(self):
return '-Infinity'
def __hash__(self):
return hash(repr(self))
def __lt__(self, other):
return True
def __le__(self, other):
return True
def __eq__(self, other):
return isinstance(other, self.__class__)
def... | class NegativeInfinity:
def __repr__(self):
pass
def __hash__(self):
pass
def __lt__(self, other):
pass
def __le__(self, other):
pass
def __eq__(self, other):
pass
def __ne__(self, other):
pass
def __gt__(self, other):
pass
... | 10 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 9 | 0 | 9 | 9 | 27 | 8 | 19 | 10 | 9 | 0 | 19 | 10 | 9 | 1 | 0 | 0 | 9 |
321,758 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_pep440.py | scipy._lib._pep440.Version | import re
class Version(_BaseVersion):
_regex = re.compile('^\\s*' + VERSION_PATTERN + '\\s*$', re.VERBOSE | re.IGNORECASE)
def __init__(self, version):
match = self._regex.search(version)
if not match:
raise InvalidVersion(f"Invalid version: '{version}'")
self._version = _... |
class Version(_BaseVersion):
def __init__(self, version):
pass
def __repr__(self):
pass
def __str__(self):
pass
@property
def public(self):
pass
@property
def base_version(self):
pass
@property
def local(self):
pass
@property
... | 14 | 0 | 11 | 2 | 8 | 1 | 2 | 0.15 | 1 | 5 | 1 | 0 | 8 | 2 | 8 | 16 | 105 | 21 | 73 | 21 | 59 | 11 | 40 | 16 | 31 | 6 | 1 | 1 | 17 |
321,759 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_pep440.py | scipy._lib._pep440._BaseVersion | class _BaseVersion:
def __hash__(self):
return hash(self._key)
def __lt__(self, other):
return self._compare(other, lambda s, o: s < o)
def __le__(self, other):
return self._compare(other, lambda s, o: s <= o)
def __eq__(self, other):
return self._compare(other, lambd... | class _BaseVersion:
def __hash__(self):
pass
def __lt__(self, other):
pass
def __le__(self, other):
pass
def __eq__(self, other):
pass
def __ge__(self, other):
pass
def __gt__(self, other):
pass
def __ne__(self, other):
pass
... | 9 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 0 | 2 | 8 | 0 | 8 | 8 | 28 | 9 | 19 | 9 | 10 | 0 | 19 | 9 | 10 | 2 | 0 | 1 | 9 |
321,760 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_sparse.py | scipy._lib._sparse.SparseABC | from abc import ABC
class SparseABC(ABC):
pass |
class SparseABC(ABC):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 20 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
321,761 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_testutils.py | scipy._lib._testutils.FPUModeChangeWarning | class FPUModeChangeWarning(RuntimeWarning):
"""Warning about FPU mode change"""
pass | class FPUModeChangeWarning(RuntimeWarning):
'''Warning about FPU mode change'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 3 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
321,762 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_testutils.py | scipy._lib._testutils.PytestTester | import os
import sys
class PytestTester:
"""
Run tests for this namespace
``scipy.test()`` runs tests for all of SciPy, with the default settings.
When used from a submodule (e.g., ``scipy.cluster.test()``, only the tests
for that namespace are run.
Parameters
----------
label : {'fas... |
class PytestTester:
'''
Run tests for this namespace
``scipy.test()`` runs tests for all of SciPy, with the default settings.
When used from a submodule (e.g., ``scipy.cluster.test()``, only the tests
for that namespace are run.
Parameters
----------
label : {'fast', 'full'}, optional
... | 3 | 1 | 25 | 6 | 19 | 1 | 6 | 0.71 | 0 | 5 | 0 | 0 | 2 | 1 | 2 | 2 | 80 | 15 | 38 | 12 | 32 | 27 | 33 | 10 | 28 | 11 | 0 | 2 | 12 |
321,763 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_testutils.py | scipy._lib._testutils._TestPythranFunc | import inspect
import numpy as np
class _TestPythranFunc:
"""
These are situations that can be tested in our pythran tests:
- A function with multiple array arguments and then
other positional and keyword arguments.
- A function with array-like keywords (e.g. `def somefunc(x0, x1=None)`.
Note... |
class _TestPythranFunc:
'''
These are situations that can be tested in our pythran tests:
- A function with multiple array arguments and then
other positional and keyword arguments.
- A function with array-like keywords (e.g. `def somefunc(x0, x1=None)`.
Note: list/tuple input is not yet test... | 8 | 1 | 7 | 0 | 6 | 1 | 2 | 0.35 | 0 | 2 | 0 | 1 | 7 | 3 | 7 | 7 | 70 | 8 | 46 | 28 | 38 | 16 | 43 | 28 | 35 | 3 | 0 | 2 | 16 |
321,764 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_threadsafety.py | scipy._lib._threadsafety.ReentrancyError | class ReentrancyError(RuntimeError):
pass | class ReentrancyError(RuntimeError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
321,765 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_threadsafety.py | scipy._lib._threadsafety.ReentrancyLock | import threading
import scipy._lib.decorator
class ReentrancyLock:
"""
Threading lock that raises an exception for reentrant calls.
Calls from different threads are serialized, and nested calls from the
same thread result to an error.
The object can be used as a context manager or to decorate fun... |
class ReentrancyLock:
'''
Threading lock that raises an exception for reentrant calls.
Calls from different threads are serialized, and nested calls from the
same thread result to an error.
The object can be used as a context manager or to decorate functions
via the decorate() method.
'''
... | 6 | 1 | 4 | 0 | 4 | 0 | 1 | 0.37 | 0 | 1 | 1 | 0 | 4 | 3 | 4 | 4 | 33 | 7 | 19 | 9 | 13 | 7 | 19 | 9 | 13 | 2 | 0 | 1 | 6 |
321,766 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_uarray/_backend.py | scipy._lib._uarray._backend.Dispatchable | class Dispatchable:
"""
A utility class which marks an argument with a specific dispatch type.
Attributes
----------
value
The value of the Dispatchable.
type
The type of the Dispatchable.
Examples
--------
>>> x = Dispatchable(1, str)
>>> x
<Dispatchable:... | class Dispatchable:
'''
A utility class which marks an argument with a specific dispatch type.
Attributes
----------
value
The value of the Dispatchable.
type
The type of the Dispatchable.
Examples
--------
>>> x = Dispatchable(1, str)
>>> x
<Dispatchable: ty... | 4 | 1 | 3 | 0 | 3 | 0 | 1 | 2 | 0 | 1 | 0 | 0 | 3 | 3 | 3 | 3 | 40 | 10 | 10 | 8 | 6 | 20 | 10 | 8 | 6 | 1 | 0 | 0 | 3 |
321,767 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_util.py | scipy._lib._util.MapWrapper | class MapWrapper:
"""
Parallelisation wrapper for working with map-like callables, such as
`multiprocessing.Pool.map`.
Parameters
----------
pool : int or map-like callable
If `pool` is an integer, then it specifies the number of threads to
use for parallelization. If ``int(pool... | class MapWrapper:
'''
Parallelisation wrapper for working with map-like callables, such as
`multiprocessing.Pool.map`.
Parameters
----------
pool : int or map-like callable
If `pool` is an integer, then it specifies the number of threads to
use for parallelization. If ``int(pool)... | 8 | 1 | 7 | 0 | 6 | 1 | 2 | 0.42 | 0 | 4 | 0 | 0 | 7 | 3 | 7 | 7 | 72 | 8 | 45 | 13 | 36 | 19 | 38 | 12 | 29 | 5 | 0 | 2 | 16 |
321,768 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_util.py | scipy._lib._util._FunctionWrapper | class _FunctionWrapper:
"""
Object to wrap user's function, allowing picklability
"""
def __init__(self, f, args):
self.f = f
self.args = [] if args is None else args
def __call__(self, x):
return self.f(x, *self.args) | class _FunctionWrapper:
'''
Object to wrap user's function, allowing picklability
'''
def __init__(self, f, args):
pass
def __call__(self, x):
pass | 3 | 1 | 3 | 0 | 3 | 0 | 2 | 0.5 | 0 | 0 | 0 | 0 | 2 | 2 | 2 | 2 | 10 | 1 | 6 | 5 | 3 | 3 | 6 | 5 | 3 | 2 | 0 | 0 | 3 |
321,769 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_util.py | scipy._lib._util._RichResult | import numpy as np
class _RichResult(dict):
""" Container for multiple outputs with pretty-printing """
def __getattr__(self, name):
try:
return self[name]
except KeyError as e:
raise AttributeError(name) from e
__setattr__ = dict.__setitem__
__delattr__ = dict.... |
class _RichResult(dict):
''' Container for multiple outputs with pretty-printing '''
def __getattr__(self, name):
pass
def __repr__(self):
pass
def key(item):
pass
def omit_redundant(items):
pass
def item_sorter(d):
... | 7 | 1 | 8 | 1 | 7 | 1 | 2 | 0.18 | 1 | 4 | 0 | 1 | 3 | 0 | 3 | 30 | 43 | 7 | 33 | 13 | 26 | 6 | 29 | 12 | 22 | 3 | 2 | 2 | 11 |
321,770 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/_util.py | scipy._lib._util._ScalarFunctionWrapper | import numpy as np
class _ScalarFunctionWrapper:
"""
Object to wrap scalar user function, allowing picklability
"""
def __init__(self, f, args=None):
self.f = f
self.args = [] if args is None else args
self.nfev = 0
def __call__(self, x):
fx = self.f(np.copy(x), *s... |
class _ScalarFunctionWrapper:
'''
Object to wrap scalar user function, allowing picklability
'''
def __init__(self, f, args=None):
pass
def __call__(self, x):
pass | 3 | 1 | 10 | 1 | 8 | 2 | 3 | 0.35 | 0 | 2 | 0 | 0 | 2 | 3 | 2 | 2 | 25 | 2 | 17 | 8 | 14 | 6 | 14 | 7 | 11 | 3 | 0 | 2 | 5 |
321,771 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/array_api_compat/common/_linalg.py | scipy._lib.array_api_compat.common._linalg.QRResult | from ._typing import Array, DType, JustFloat, JustInt, Namespace
from typing import Literal, NamedTuple, cast
class QRResult(NamedTuple):
Q: Array
R: Array |
class QRResult(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 |
321,772 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/array_api_compat/dask/array/_info.py | scipy._lib.array_api_compat.dask.array._info.__array_namespace_info__ | from ...common._typing import Capabilities, DefaultDTypes, DType, DTypeKind, DTypesAll, DTypesAny, DTypesBool, DTypesComplex, DTypesIntegral, DTypesNumeric, DTypesReal, DTypesSigned, DTypesUnsigned
from typing import Literal as L
from numpy import complex64, complex128, dtype, float32, float64, int8, int16, int32, int6... |
class __array_namespace_info__:
'''
Get the array API inspection namespace for Dask.
The array API inspection namespace defines the following functions:
- capabilities()
- default_device()
- default_dtypes()
- dtypes()
- devices()
See
https://data-apis.org/array-api/latest/API_s... | 22 | 6 | 24 | 3 | 10 | 12 | 2 | 1.28 | 0 | 14 | 8 | 0 | 13 | 0 | 13 | 13 | 361 | 47 | 138 | 43 | 106 | 177 | 53 | 17 | 39 | 12 | 0 | 2 | 25 |
321,773 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/array_api_extra/_lib/_at.py | scipy._lib.array_api_extra._lib._at.at | from types import ModuleType
from ._utils._compat import array_namespace, is_dask_array, is_jax_array, is_torch_array, is_writeable_array
from ._utils import _compat
from typing import TYPE_CHECKING, ClassVar, cast
from ._utils._typing import Array, SetIndex
from ._utils._helpers import meta_namespace
from collections.... |
class at:
'''
Update operations for read-only arrays.
This implements ``jax.numpy.ndarray.at`` for all writeable
backends (those that support ``__setitem__``) and routes
to the ``.at[]`` method for JAX arrays.
Parameters
----------
x : array
Input array.
idx : index, optiona... | 12 | 11 | 23 | 2 | 14 | 8 | 3 | 1.2 | 0 | 7 | 2 | 0 | 11 | 0 | 11 | 11 | 403 | 72 | 158 | 82 | 86 | 190 | 75 | 23 | 62 | 15 | 0 | 3 | 28 |
321,774 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/array_api_extra/_lib/_backends.py | scipy._lib.array_api_extra._lib._backends.Backend | from enum import Enum
class Backend(Enum):
"""
All array library backends explicitly tested by array-api-extra.
Parameters
----------
value : str
Tag of the backend's module, in the format ``<namespace>[:<extra tag>]``.
"""
ARRAY_API_STRICT = 'array_api_strict'
ARRAY_API_STRICT... |
class Backend(Enum):
'''
All array library backends explicitly tested by array-api-extra.
Parameters
----------
value : str
Tag of the backend's module, in the format ``<namespace>[:<extra tag>]``.
'''
def __str__(self) -> str:
'''Pretty-print parameterized test names.'''
... | 5 | 4 | 4 | 0 | 3 | 2 | 1 | 0.71 | 1 | 2 | 0 | 0 | 3 | 0 | 3 | 52 | 37 | 5 | 21 | 16 | 16 | 15 | 18 | 15 | 14 | 1 | 4 | 0 | 3 |
321,775 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/array_api_extra/_lib/_utils/_helpers.py | scipy._lib.array_api_extra._lib._utils._helpers._AutoJITWrapper | from typing import TYPE_CHECKING, Any, ClassVar, Generic, Literal, ParamSpec, TypeAlias, TypeVar, cast
class _AutoJITWrapper(Generic[T]):
"""
Helper of :func:`jax_autojit`.
Wrap arbitrary inputs and outputs of the jitted function and
convert them to/from PyTrees.
"""
obj: T
_registered: Cl... |
class _AutoJITWrapper(Generic[T]):
'''
Helper of :func:`jax_autojit`.
Wrap arbitrary inputs and outputs of the jitted function and
convert them to/from PyTrees.
'''
def __init__(self, obj: T) -> None:
pass
@classmethod
def _register(cls):
'''
Register upon first... | 4 | 2 | 9 | 1 | 6 | 4 | 2 | 0.82 | 1 | 0 | 0 | 0 | 1 | 0 | 2 | 4 | 31 | 5 | 17 | 7 | 12 | 14 | 12 | 6 | 8 | 2 | 1 | 1 | 3 |
321,776 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/cobyqa/framework.py | scipy._lib.cobyqa.framework.TrustRegion | from .models import Models, Quadratic
from scipy.optimize import lsq_linear
import numpy as np
from .subsolvers import cauchy_geometry, spider_geometry, normal_byrd_omojokun, tangential_byrd_omojokun, constrained_tangential_byrd_omojokun
import warnings
from .utils import get_arrays_tol
from .settings import Options, C... |
class TrustRegion:
'''
Trust-region framework.
'''
def __init__(self, pb, options, constants):
'''
Initialize the trust-region framework.
Parameters
----------
pb : `cobyqa.problem.Problem`
Problem to solve.
options : dict
Options... | 57 | 40 | 29 | 2 | 16 | 11 | 2 | 0.66 | 0 | 6 | 4 | 0 | 40 | 11 | 40 | 40 | 1,218 | 121 | 662 | 159 | 605 | 436 | 277 | 143 | 236 | 11 | 0 | 4 | 80 |
321,777 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/cobyqa/models.py | scipy._lib.cobyqa.models.Interpolation | import numpy as np
from .settings import Options
class Interpolation:
"""
Interpolation set.
This class stores a base point around which the models are expanded and the
interpolation points. The coordinates of the interpolation points are
relative to the base point.
"""
def __init__(self,... |
class Interpolation:
'''
Interpolation set.
This class stores a base point around which the models are expanded and the
interpolation points. The coordinates of the interpolation points are
relative to the base point.
'''
def __init__(self, pb, options):
'''
Initialize the ... | 15 | 9 | 20 | 2 | 10 | 8 | 2 | 0.84 | 0 | 2 | 1 | 0 | 8 | 3 | 8 | 8 | 179 | 21 | 86 | 27 | 71 | 72 | 51 | 21 | 42 | 8 | 0 | 3 | 18 |
321,778 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/cobyqa/models.py | scipy._lib.cobyqa.models.Models | import numpy as np
from .utils import MaxEvalError, TargetSuccess, FeasibleSuccess
from .settings import Options
import warnings
class Models:
"""
Models for a nonlinear optimization problem.
"""
def __init__(self, pb, options, penalty):
"""
Initialize the models.
Parameters
... |
class Models:
'''
Models for a nonlinear optimization problem.
'''
def __init__(self, pb, options, penalty):
'''
Initialize the models.
Parameters
----------
pb : `cobyqa.problem.Problem`
Problem to be solved.
options : dict
Optio... | 41 | 33 | 27 | 2 | 12 | 13 | 2 | 1.14 | 0 | 9 | 6 | 0 | 32 | 8 | 32 | 32 | 908 | 100 | 377 | 75 | 336 | 431 | 203 | 67 | 170 | 9 | 0 | 2 | 74 |
321,779 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/cobyqa/models.py | scipy._lib.cobyqa.models.Quadratic | import numpy as np
class Quadratic:
"""
Quadratic model.
This class stores the Hessian matrix of the quadratic model using the
implicit/explicit representation designed by Powell for NEWUOA [1]_.
References
----------
.. [1] M. J. D. Powell. The NEWUOA software for unconstrained optimizat... |
class Quadratic:
'''
Quadratic model.
This class stores the Hessian matrix of the quadratic model using the
implicit/explicit representation designed by Powell for NEWUOA [1]_.
References
----------
.. [1] M. J. D. Powell. The NEWUOA software for unconstrained optimization
without de... | 17 | 13 | 29 | 3 | 11 | 16 | 2 | 1.5 | 0 | 1 | 0 | 0 | 10 | 5 | 12 | 12 | 374 | 44 | 132 | 35 | 115 | 198 | 72 | 31 | 59 | 3 | 0 | 1 | 21 |
321,780 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/cobyqa/problem.py | scipy._lib.cobyqa.problem.BoundConstraints | import numpy as np
from scipy.optimize._constraints import PreparedConstraint
class BoundConstraints:
"""
Bound constraints ``xl <= x <= xu``.
"""
def __init__(self, bounds):
"""
Initialize the bound constraints.
Parameters
----------
bounds : scipy.optimize.Bo... |
class BoundConstraints:
'''
Bound constraints ``xl <= x <= xu``.
'''
def __init__(self, bounds):
'''
Initialize the bound constraints.
Parameters
----------
bounds : scipy.optimize.Bounds
Bound constraints.
'''
pass
@property
... | 9 | 6 | 14 | 2 | 5 | 8 | 1 | 1.55 | 0 | 2 | 1 | 0 | 6 | 5 | 6 | 6 | 94 | 15 | 31 | 14 | 22 | 48 | 22 | 12 | 15 | 2 | 0 | 1 | 8 |
321,781 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/cobyqa/problem.py | scipy._lib.cobyqa.problem.LinearConstraints | from scipy.optimize import Bounds, LinearConstraint, NonlinearConstraint, OptimizeResult
from .utils import CallbackSuccess, get_arrays_tol
from scipy.optimize._constraints import PreparedConstraint
import numpy as np
class LinearConstraints:
"""
Linear constraints ``a_ub @ x <= b_ub`` and ``a_eq @ x == b_eq``... |
class LinearConstraints:
'''
Linear constraints ``a_ub @ x <= b_ub`` and ``a_eq @ x == b_eq``.
'''
def __init__(self, constraints, n, debug):
'''
Initialize the linear constraints.
Parameters
----------
constraints : list of LinearConstraint
Linear c... | 16 | 9 | 16 | 1 | 8 | 7 | 2 | 0.88 | 0 | 4 | 2 | 0 | 9 | 5 | 9 | 9 | 165 | 20 | 77 | 25 | 61 | 68 | 46 | 19 | 36 | 6 | 0 | 2 | 15 |
321,782 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/cobyqa/problem.py | scipy._lib.cobyqa.problem.NonlinearConstraints | from scipy.optimize import Bounds, LinearConstraint, NonlinearConstraint, OptimizeResult
from scipy.optimize._constraints import PreparedConstraint
from .utils import CallbackSuccess, get_arrays_tol
import numpy as np
import copy
from .settings import PRINT_OPTIONS, BARRIER
from contextlib import suppress
class Nonlin... |
class NonlinearConstraints:
'''
Nonlinear constraints ``c_ub(x) <= 0`` and ``c_eq(x) == b_eq``.
'''
def __init__(self, constraints, verbose, debug):
'''
Initialize the nonlinear constraints.
Parameters
----------
constraints : list
Nonlinear constrai... | 11 | 7 | 30 | 4 | 15 | 12 | 3 | 0.8 | 0 | 9 | 2 | 0 | 7 | 7 | 7 | 7 | 227 | 34 | 107 | 40 | 96 | 86 | 92 | 37 | 84 | 11 | 0 | 4 | 22 |
321,783 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/cobyqa/problem.py | scipy._lib.cobyqa.problem.ObjectiveFunction | from .settings import PRINT_OPTIONS, BARRIER
import numpy as np
class ObjectiveFunction:
"""
Real-valued objective function.
"""
def __init__(self, fun, verbose, debug, *args):
"""
Initialize the objective function.
Parameters
----------
fun : {callable, None}
... |
class ObjectiveFunction:
'''
Real-valued objective function.
'''
def __init__(self, fun, verbose, debug, *args):
'''
Initialize the objective function.
Parameters
----------
fun : {callable, None}
Function to evaluate, or None.
``fun(... | 7 | 5 | 20 | 2 | 8 | 10 | 2 | 1.3 | 0 | 3 | 0 | 0 | 4 | 4 | 4 | 4 | 88 | 12 | 33 | 13 | 26 | 43 | 30 | 11 | 25 | 3 | 0 | 3 | 9 |
321,784 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/cobyqa/problem.py | scipy._lib.cobyqa.problem.Problem | import numpy as np
from .settings import PRINT_OPTIONS, BARRIER
from .utils import CallbackSuccess, get_arrays_tol
from scipy.optimize import Bounds, LinearConstraint, NonlinearConstraint, OptimizeResult
from .utils import exact_1d_array
from inspect import signature
class Problem:
"""
Optimization problem.
... |
class Problem:
'''
Optimization problem.
'''
def __init__(self, obj, x0, bounds, linear, nonlinear, callback, feasibility_tol, scale, store_history, history_size, filter_size, debug):
'''
Initialize the nonlinear problem.
The problem is preprocessed to remove all the variables ... | 39 | 22 | 30 | 2 | 15 | 13 | 3 | 0.81 | 0 | 17 | 8 | 0 | 22 | 21 | 22 | 22 | 695 | 70 | 346 | 104 | 293 | 279 | 205 | 73 | 182 | 16 | 0 | 4 | 62 |
321,785 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/cobyqa/settings.py | scipy._lib.cobyqa.settings.Constants | from enum import Enum
class Constants(str, Enum):
"""
Constants.
"""
DECREASE_RADIUS_FACTOR = 'decrease_radius_factor'
INCREASE_RADIUS_FACTOR = 'increase_radius_factor'
INCREASE_RADIUS_THRESHOLD = 'increase_radius_threshold'
DECREASE_RADIUS_THRESHOLD = 'decrease_radius_threshold'
DECREA... |
class Constants(str, Enum):
'''
Constants.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.14 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 25 | 1 | 21 | 21 | 20 | 3 | 21 | 21 | 20 | 0 | 4 | 0 | 0 |
321,786 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/cobyqa/settings.py | scipy._lib.cobyqa.settings.ExitStatus | from enum import Enum
class ExitStatus(Enum):
"""
Exit statuses.
"""
RADIUS_SUCCESS = 0
TARGET_SUCCESS = 1
FIXED_SUCCESS = 2
CALLBACK_SUCCESS = 3
FEASIBLE_SUCCESS = 4
MAX_EVAL_WARNING = 5
MAX_ITER_WARNING = 6
INFEASIBLE_ERROR = -1
LINALG_ERROR = -2 |
class ExitStatus(Enum):
'''
Exit statuses.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 14 | 1 | 10 | 10 | 9 | 3 | 10 | 10 | 9 | 0 | 4 | 0 | 0 |
321,787 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/cobyqa/settings.py | scipy._lib.cobyqa.settings.Options | from enum import Enum
class Options(str, Enum):
"""
Options.
"""
DEBUG = 'debug'
FEASIBILITY_TOL = 'feasibility_tol'
FILTER_SIZE = 'filter_size'
HISTORY_SIZE = 'history_size'
MAX_EVAL = 'maxfev'
MAX_ITER = 'maxiter'
NPT = 'nb_points'
RHOBEG = 'radius_init'
RHOEND = 'radi... |
class Options(str, Enum):
'''
Options.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.21 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 115 | 18 | 1 | 14 | 14 | 13 | 3 | 14 | 14 | 13 | 0 | 4 | 0 | 0 |
321,788 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/cobyqa/utils/exceptions.py | scipy._lib.cobyqa.utils.exceptions.CallbackSuccess | class CallbackSuccess(StopIteration):
"""
Exception raised when the callback function raises a ``StopIteration``.
""" | class CallbackSuccess(StopIteration):
'''
Exception raised when the callback function raises a ``StopIteration``.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 4 | 0 | 1 | 1 | 0 | 3 | 1 | 1 | 0 | 0 | 4 | 0 | 0 |
321,789 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/cobyqa/utils/exceptions.py | scipy._lib.cobyqa.utils.exceptions.FeasibleSuccess | class FeasibleSuccess(Exception):
"""
Exception raised when a feasible point of a feasible problem is found.
""" | class FeasibleSuccess(Exception):
'''
Exception raised when a feasible point of a feasible problem is found.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 4 | 0 | 1 | 1 | 0 | 3 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
321,790 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/cobyqa/utils/exceptions.py | scipy._lib.cobyqa.utils.exceptions.MaxEvalError | class MaxEvalError(Exception):
"""
Exception raised when the maximum number of evaluations is reached.
""" | class MaxEvalError(Exception):
'''
Exception raised when the maximum number of evaluations is reached.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 4 | 0 | 1 | 1 | 0 | 3 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
321,791 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/cobyqa/utils/exceptions.py | scipy._lib.cobyqa.utils.exceptions.TargetSuccess | class TargetSuccess(Exception):
"""
Exception raised when the target value is reached.
""" | class TargetSuccess(Exception):
'''
Exception raised when the target value is reached.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 4 | 0 | 1 | 1 | 0 | 3 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
321,792 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/decorator.py | scipy._lib.decorator.ContextManager | class ContextManager(_GeneratorContextManager):
def __call__(self, func):
"""Context manager decorator"""
return FunctionMaker.create(func, 'with _self_: return _func_(%(shortsignature)s)', dict(_self_=self, _func_=func), __wrapped__=func) | class ContextManager(_GeneratorContextManager):
def __call__(self, func):
'''Context manager decorator'''
pass | 2 | 1 | 5 | 0 | 4 | 1 | 1 | 0.2 | 1 | 2 | 1 | 0 | 1 | 0 | 1 | 30 | 6 | 0 | 5 | 2 | 3 | 1 | 3 | 2 | 1 | 1 | 6 | 0 | 1 |
321,793 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/decorator.py | scipy._lib.decorator.FunctionMaker | import sys
import itertools
from inspect import getfullargspec
import inspect
class FunctionMaker:
"""
An object with the ability to create functions with a given signature.
It has attributes name, doc, module, signature, defaults, dict, and
methods update and make.
"""
_compile_count = itertoo... |
class FunctionMaker:
'''
An object with the ability to create functions with a given signature.
It has attributes name, doc, module, signature, defaults, dict, and
methods update and make.
'''
def __init__(self, func=None, name=None, signature=None, defaults=None, doc=None, module=None, funcdi... | 6 | 4 | 30 | 0 | 26 | 6 | 7 | 0.29 | 0 | 8 | 0 | 0 | 3 | 8 | 4 | 4 | 133 | 6 | 107 | 37 | 99 | 31 | 99 | 34 | 94 | 17 | 0 | 3 | 28 |
321,794 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/deprecation.py | scipy._lib.deprecation._DeprecationHelperStr | import warnings
class _DeprecationHelperStr:
"""
Helper class used by deprecate_cython_api
"""
def __init__(self, content, message):
self._content = content
self._message = message
def __hash__(self):
return hash(self._content)
def __eq__(self, other):
res = s... |
class _DeprecationHelperStr:
'''
Helper class used by deprecate_cython_api
'''
def __init__(self, content, message):
pass
def __hash__(self):
pass
def __eq__(self, other):
pass | 4 | 1 | 4 | 0 | 4 | 0 | 1 | 0.25 | 0 | 1 | 0 | 0 | 3 | 2 | 3 | 3 | 17 | 2 | 12 | 7 | 8 | 3 | 11 | 7 | 7 | 2 | 0 | 1 | 4 |
321,795 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/doccer.py | scipy._lib.doccer.Decorator | from typing import Protocol, TypeVar
class Decorator(Protocol):
"""A decorator of a function."""
def __call__(self, func: _F, /) -> _F:
... |
class Decorator(Protocol):
'''A decorator of a function.'''
def __call__(self, func: _F, /) -> _F:
pass | 2 | 1 | 1 | 0 | 1 | 0 | 1 | 0.5 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 25 | 4 | 1 | 2 | 2 | 1 | 1 | 3 | 2 | 1 | 1 | 5 | 0 | 1 |
321,796 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/pyprima/__init__.py | scipy._lib.pyprima.ConstraintType | from enum import Enum
class ConstraintType(Enum):
LINEAR_OBJECT = 5
NONLINEAR_OBJECT = 10
LINEAR_DICT = 15
NONLINEAR_DICT = 20 |
class ConstraintType(Enum):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 49 | 5 | 0 | 5 | 5 | 4 | 0 | 5 | 5 | 4 | 0 | 4 | 0 | 0 |
321,797 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/_lib/pyprima/cobyla/cobyla.py | scipy._lib.pyprima.cobyla.cobyla.COBYLAResult | from dataclasses import dataclass
import numpy as np
@dataclass
class COBYLAResult:
x: np.ndarray
f: float
constr: np.ndarray
cstrv: float
nf: int
xhist: np.ndarray | None
fhist: np.ndarray | None
chist: np.ndarray | None
conhist: np.ndarray | None
info: int | @dataclass
class COBYLAResult:
pass | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 | 0 | 11 | 1 | 10 | 0 | 11 | 1 | 10 | 0 | 0 | 0 | 0 |
321,798 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/cluster/hierarchy.py | scipy.cluster.hierarchy.ClusterNode | class ClusterNode:
"""
A tree node class for representing a cluster.
Leaf nodes correspond to original observations, while non-leaf nodes
correspond to non-singleton clusters.
The `to_tree` function converts a matrix returned by the linkage
function into an easy-to-use tree representation.
... | class ClusterNode:
'''
A tree node class for representing a cluster.
Leaf nodes correspond to original observations, while non-leaf nodes
correspond to non-singleton clusters.
The `to_tree` function converts a matrix returned by the linkage
function into an easy-to-use tree representation.
A... | 11 | 7 | 16 | 2 | 7 | 7 | 2 | 1.26 | 0 | 3 | 0 | 0 | 10 | 5 | 10 | 10 | 199 | 36 | 72 | 24 | 61 | 91 | 62 | 24 | 51 | 6 | 0 | 3 | 22 |
321,799 | etsi-ai/etsi-watchdog | /Users/umroot/Documents/PhD_works/PhD-Core-Contents/Class-level-dataset-curation/unseen_data/git_repos_for_analysis/etsi-ai_etsi-watchdog/venv/Lib/site-packages/scipy/cluster/hierarchy.py | scipy.cluster.hierarchy.ClusterWarning | class ClusterWarning(UserWarning):
pass | class ClusterWarning(UserWarning):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.