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,900 | 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/io/_harwell_boeing/hb.py | scipy.io._harwell_boeing.hb.HBFile | class HBFile:
def __init__(self, file, hb_info=None):
"""Create a HBFile instance.
Parameters
----------
file : file-object
StringIO work as well
hb_info : HBInfo, optional
Should be given as an argument for writing, in which case the file
... | class HBFile:
def __init__(self, file, hb_info=None):
'''Create a HBFile instance.
Parameters
----------
file : file-object
StringIO work as well
hb_info : HBInfo, optional
Should be given as an argument for writing, in which case the file
... | 14 | 1 | 4 | 0 | 3 | 1 | 1 | 0.42 | 0 | 1 | 1 | 0 | 8 | 2 | 8 | 8 | 45 | 8 | 26 | 16 | 12 | 11 | 20 | 11 | 11 | 2 | 0 | 1 | 9 |
321,901 | 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/io/_harwell_boeing/hb.py | scipy.io._harwell_boeing.hb.HBInfo | from ._fortran_format_parser import FortranFormatParser, IntFormat, ExpFormat
import warnings
import numpy as np
class HBInfo:
@classmethod
def from_data(cls, m, title='Default title', key='0', mxtype=None, fmt=None):
"""Create a HBInfo instance from an existing sparse matrix.
Parameters
... |
class HBInfo:
@classmethod
def from_data(cls, m, title='Default title', key='0', mxtype=None, fmt=None):
'''Create a HBInfo instance from an existing sparse matrix.
Parameters
----------
m : sparse array or matrix
the HBInfo instance will derive its parameters from ... | 8 | 4 | 50 | 7 | 35 | 7 | 7 | 0.21 | 0 | 8 | 5 | 0 | 2 | 20 | 4 | 4 | 250 | 39 | 175 | 71 | 163 | 36 | 138 | 65 | 132 | 13 | 0 | 2 | 35 |
321,902 | 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/io/_harwell_boeing/hb.py | scipy.io._harwell_boeing.hb.HBMatrixType | class HBMatrixType:
"""Class to hold the matrix type."""
_q2f_type = {'real': 'R', 'complex': 'C', 'pattern': 'P', 'integer': 'I'}
_q2f_structure = {'symmetric': 'S', 'unsymmetric': 'U', 'hermitian': 'H', 'skewsymmetric': 'Z', 'rectangular': 'R'}
_q2f_storage = {'assembled': 'A', 'elemental': 'E'}
_... | class HBMatrixType:
'''Class to hold the matrix type.'''
@classmethod
def from_fortran(cls, fmt):
pass
def __init__(self, value_type, structure, storage='assembled'):
pass
@property
def fortran_format(self):
pass
def __repr__(self):
pass | 7 | 1 | 7 | 0 | 7 | 0 | 2 | 0.04 | 0 | 2 | 0 | 0 | 3 | 3 | 4 | 4 | 58 | 6 | 50 | 20 | 43 | 2 | 31 | 17 | 26 | 4 | 0 | 1 | 9 |
321,903 | 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/io/_harwell_boeing/hb.py | scipy.io._harwell_boeing.hb.LineOverflow | class LineOverflow(Warning):
pass | class LineOverflow(Warning):
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,904 | 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/io/_harwell_boeing/hb.py | scipy.io._harwell_boeing.hb.MalformedHeader | class MalformedHeader(Exception):
pass | class MalformedHeader(Exception):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
321,905 | 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/io/_idl.py | scipy.io._idl.AttrDict | class AttrDict(dict):
"""
A case-insensitive dictionary with access via item, attribute, and call
notations:
>>> from scipy.io._idl import AttrDict
>>> d = AttrDict()
>>> d['Variable'] = 123
>>> d['Variable']
123
>>> d.Variable
123
>>> d.varia... | class AttrDict(dict):
'''
A case-insensitive dictionary with access via item, attribute, and call
notations:
>>> from scipy.io._idl import AttrDict
>>> d = AttrDict()
>>> d['Variable'] = 123
>>> d['Variable']
123
>>> d.Variable
123
>>> d.variab... | 5 | 1 | 4 | 0 | 4 | 0 | 2 | 1.35 | 1 | 4 | 0 | 0 | 4 | 0 | 4 | 31 | 46 | 6 | 17 | 7 | 12 | 23 | 16 | 7 | 11 | 2 | 2 | 1 | 6 |
321,906 | 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/io/_idl.py | scipy.io._idl.ObjectPointer | class ObjectPointer(Pointer):
"""Class used to define object pointers"""
pass | class ObjectPointer(Pointer):
'''Class used to define object pointers'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 3 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
321,907 | 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/io/_idl.py | scipy.io._idl.Pointer | class Pointer:
"""Class used to define pointers"""
def __init__(self, index):
self.index = index
return | class Pointer:
'''Class used to define pointers'''
def __init__(self, index):
pass | 2 | 1 | 3 | 0 | 3 | 0 | 1 | 0.25 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 6 | 1 | 4 | 3 | 2 | 1 | 4 | 3 | 2 | 1 | 0 | 0 | 1 |
321,908 | 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/io/_mmio.py | scipy.io._mmio.MMFile | from numpy import asarray, real, imag, conj, zeros, ndarray, concatenate, ones, can_cast
from scipy.sparse import coo_array, issparse, coo_matrix
import os
import numpy as np
class MMFile:
__slots__ = ('_rows', '_cols', '_entries', '_format', '_field', '_symmetry')
@property
def rows(self):
return... |
class MMFile:
@property
def rows(self):
pass
@property
def cols(self):
pass
@property
def entries(self):
pass
@property
def format(self):
pass
@property
def field(self):
pass
@property
def symmetry(self):
pass
@propert... | 42 | 5 | 25 | 3 | 17 | 5 | 6 | 0.28 | 0 | 18 | 2 | 0 | 14 | 1 | 23 | 23 | 697 | 104 | 464 | 126 | 418 | 132 | 357 | 107 | 329 | 45 | 0 | 6 | 149 |
321,909 | 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/io/_netcdf.py | scipy.io._netcdf.netcdf_file | import weakref
import warnings
from operator import mul
import numpy as np
from numpy import little_endian as LITTLE_ENDIAN
from numpy import frombuffer, dtype, empty, array, asarray
import mmap as mm
from functools import reduce
class netcdf_file:
"""
A file object for NetCDF data.
A `netcdf_file` object... |
class netcdf_file:
'''
A file object for NetCDF data.
A `netcdf_file` object has two standard attributes: `dimensions` and
`variables`. The values of both are dictionaries, mapping dimension
names to their associated lengths and variable names to variables,
respectively. Application programs sh... | 35 | 6 | 16 | 2 | 11 | 3 | 3 | 0.6 | 0 | 13 | 1 | 0 | 33 | 14 | 33 | 33 | 711 | 111 | 385 | 139 | 349 | 231 | 347 | 137 | 312 | 12 | 0 | 4 | 99 |
321,910 | 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/io/_netcdf.py | scipy.io._netcdf.netcdf_variable | import numpy as np
from numpy import frombuffer, dtype, empty, array, asarray
class netcdf_variable:
"""
A data object for netcdf files.
`netcdf_variable` objects are constructed by calling the method
`netcdf_file.createVariable` on the `netcdf_file` object. `netcdf_variable`
objects behave much l... |
class netcdf_variable:
'''
A data object for netcdf files.
`netcdf_variable` objects are constructed by calling the method
`netcdf_file.createVariable` on the `netcdf_file` object. `netcdf_variable`
objects behave much like array objects defined in numpy, except that their
data resides in a fil... | 16 | 11 | 15 | 2 | 8 | 6 | 3 | 1.1 | 0 | 8 | 0 | 0 | 13 | 7 | 14 | 14 | 290 | 48 | 115 | 41 | 97 | 127 | 100 | 38 | 85 | 8 | 0 | 3 | 35 |
321,911 | 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/io/arff/_arffread.py | scipy.io.arff._arffread.ArffError | class ArffError(OSError):
pass | class ArffError(OSError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 13 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 4 | 0 | 0 |
321,912 | 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/io/arff/_arffread.py | scipy.io.arff._arffread.Attribute | import numpy as np
class Attribute:
type_name = None
def __init__(self, name):
self.name = name
self.range = None
self.dtype = np.object_
@classmethod
def parse_attribute(cls, name, attr_string):
"""
Parse the attribute line if it knows how. Returns the parsed
... |
class Attribute:
def __init__(self, name):
pass
@classmethod
def parse_attribute(cls, name, attr_string):
'''
Parse the attribute line if it knows how. Returns the parsed
attribute, or None.
'''
pass
def parse_data(self, data_str):
'''
P... | 6 | 3 | 5 | 0 | 3 | 3 | 1 | 0.77 | 0 | 0 | 0 | 5 | 3 | 3 | 4 | 4 | 28 | 5 | 13 | 10 | 7 | 10 | 12 | 9 | 7 | 1 | 0 | 0 | 4 |
321,913 | 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/io/arff/_arffread.py | scipy.io.arff._arffread.DateAttribute | import datetime
import numpy as np
class DateAttribute(Attribute):
def __init__(self, name, date_format, datetime_unit):
super().__init__(name)
self.date_format = date_format
self.datetime_unit = datetime_unit
self.type_name = 'date'
self.range = date_format
self.dt... |
class DateAttribute(Attribute):
def __init__(self, name, date_format, datetime_unit):
pass
@staticmethod
def _get_date_format(atrv):
pass
@classmethod
def parse_attribute(cls, name, attr_string):
'''
Parse the attribute line if it knows how. Returns the parsed
... | 8 | 2 | 15 | 1 | 12 | 2 | 3 | 0.16 | 1 | 3 | 0 | 0 | 3 | 5 | 5 | 9 | 81 | 10 | 61 | 20 | 53 | 10 | 53 | 18 | 47 | 11 | 1 | 2 | 17 |
321,914 | 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/io/arff/_arffread.py | scipy.io.arff._arffread.MetaData | class MetaData:
"""Small container to keep useful information on a ARFF dataset.
Knows about attributes names and types.
Examples
--------
::
data, meta = loadarff('iris.arff')
# This will print the attributes names of the iris.arff dataset
for i in meta:
print... | class MetaData:
'''Small container to keep useful information on a ARFF dataset.
Knows about attributes names and types.
Examples
--------
::
data, meta = loadarff('iris.arff')
# This will print the attributes names of the iris.arff dataset
for i in meta:
print(i)... | 7 | 3 | 6 | 1 | 4 | 2 | 1 | 1.46 | 0 | 2 | 0 | 0 | 6 | 2 | 6 | 6 | 72 | 13 | 24 | 13 | 17 | 35 | 23 | 13 | 16 | 3 | 0 | 2 | 8 |
321,915 | 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/io/arff/_arffread.py | scipy.io.arff._arffread.NominalAttribute | import numpy as np
class NominalAttribute(Attribute):
type_name = 'nominal'
def __init__(self, name, values):
super().__init__(name)
self.values = values
self.range = values
self.dtype = (np.bytes_, max((len(i) for i in values)))
@staticmethod
def _get_nom_val(atrv):
... |
class NominalAttribute(Attribute):
def __init__(self, name, values):
pass
@staticmethod
def _get_nom_val(atrv):
'''Given a string containing a nominal type, returns a tuple of the
possible values.
A nominal type is defined as something framed between braces ({}).
Pa... | 8 | 3 | 13 | 1 | 6 | 5 | 2 | 0.72 | 1 | 5 | 0 | 0 | 3 | 3 | 5 | 9 | 73 | 11 | 36 | 17 | 28 | 26 | 30 | 15 | 24 | 3 | 1 | 1 | 10 |
321,916 | 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/io/arff/_arffread.py | scipy.io.arff._arffread.NumericAttribute | import numpy as np
class NumericAttribute(Attribute):
def __init__(self, name):
super().__init__(name)
self.type_name = 'numeric'
self.dtype = np.float64
@classmethod
def parse_attribute(cls, name, attr_string):
"""
Parse the attribute line if it knows how. Returns... |
class NumericAttribute(Attribute):
def __init__(self, name):
pass
@classmethod
def parse_attribute(cls, name, attr_string):
'''
Parse the attribute line if it knows how. Returns the parsed
attribute, or None.
For numeric attributes, the attribute string would be lik... | 6 | 2 | 14 | 2 | 5 | 7 | 2 | 1.17 | 1 | 2 | 0 | 0 | 3 | 2 | 4 | 8 | 60 | 10 | 23 | 9 | 17 | 27 | 17 | 8 | 12 | 2 | 1 | 1 | 6 |
321,917 | 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/io/arff/_arffread.py | scipy.io.arff._arffread.ParseArffError | class ParseArffError(ArffError):
pass | class ParseArffError(ArffError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 13 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
321,918 | 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/io/arff/_arffread.py | scipy.io.arff._arffread.RelationalAttribute | import numpy as np
class RelationalAttribute(Attribute):
def __init__(self, name):
super().__init__(name)
self.type_name = 'relational'
self.dtype = np.object_
self.attributes = []
self.dialect = None
@classmethod
def parse_attribute(cls, name, attr_string):
... |
class RelationalAttribute(Attribute):
def __init__(self, name):
pass
@classmethod
def parse_attribute(cls, name, attr_string):
'''
Parse the attribute line if it knows how. Returns the parsed
attribute, or None.
For date attributes, the attribute string would be lik... | 6 | 1 | 10 | 2 | 6 | 2 | 2 | 0.26 | 1 | 5 | 0 | 0 | 3 | 4 | 4 | 8 | 46 | 12 | 27 | 16 | 21 | 7 | 22 | 15 | 17 | 2 | 1 | 1 | 6 |
321,919 | 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/io/arff/_arffread.py | scipy.io.arff._arffread.StringAttribute | class StringAttribute(Attribute):
def __init__(self, name):
super().__init__(name)
self.type_name = 'string'
@classmethod
def parse_attribute(cls, name, attr_string):
"""
Parse the attribute line if it knows how. Returns the parsed
attribute, or None.
For s... | class StringAttribute(Attribute):
def __init__(self, name):
pass
@classmethod
def parse_attribute(cls, name, attr_string):
'''
Parse the attribute line if it knows how. Returns the parsed
attribute, or None.
For string attributes, the attribute string would be like
... | 4 | 1 | 9 | 2 | 5 | 3 | 2 | 0.55 | 1 | 1 | 0 | 0 | 1 | 1 | 2 | 6 | 22 | 5 | 11 | 5 | 7 | 6 | 9 | 4 | 6 | 2 | 1 | 1 | 3 |
321,920 | 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/io/matlab/_mio4.py | scipy.io.matlab._mio4.MatFile4Reader | from operator import mul
from functools import reduce
import numpy as np
from ._miobase import MatFileReader, docfiller, matdims, read_dtype, convert_dtypes, arr_to_chars, arr_dtype_number
class MatFile4Reader(MatFileReader):
""" Reader for Mat4 files """
@docfiller
def __init__(self, mat_stream, *args, *... |
class MatFile4Reader(MatFileReader):
''' Reader for Mat4 files '''
@docfiller
def __init__(self, mat_stream, *args, **kwargs):
''' Initialize matlab 4 file reader
%(matstream_arg)s
%(load_args)s
'''
pass
def guess_byte_order(self):
pass
def initialize_read(... | 9 | 7 | 16 | 1 | 8 | 6 | 3 | 0.78 | 1 | 4 | 1 | 0 | 7 | 2 | 7 | 11 | 119 | 14 | 59 | 22 | 50 | 46 | 57 | 21 | 49 | 8 | 1 | 3 | 19 |
321,921 | 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/io/matlab/_mio4.py | scipy.io.matlab._mio4.MatFile4Writer | class MatFile4Writer:
""" Class for writing matlab 4 format files """
def __init__(self, file_stream, oned_as=None):
self.file_stream = file_stream
if oned_as is None:
oned_as = 'row'
self.oned_as = oned_as
self._matrix_writer = None
def put_variables(self, mdic... | class MatFile4Writer:
''' Class for writing matlab 4 format files '''
def __init__(self, file_stream, oned_as=None):
pass
def put_variables(self, mdict, write_header=None):
''' Write variables in `mdict` to stream
Parameters
----------
mdict : mapping
map... | 3 | 2 | 15 | 1 | 5 | 9 | 2 | 1.73 | 0 | 1 | 1 | 0 | 2 | 3 | 2 | 2 | 32 | 2 | 11 | 7 | 8 | 19 | 11 | 7 | 8 | 2 | 0 | 1 | 4 |
321,922 | 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/io/matlab/_mio4.py | scipy.io.matlab._mio4.VarHeader4 | class VarHeader4:
is_logical = False
is_global = False
def __init__(self, name, dtype, mclass, dims, is_complex):
self.name = name
self.dtype = dtype
self.mclass = mclass
self.dims = dims
self.is_complex = is_complex | class VarHeader4:
def __init__(self, name, dtype, mclass, dims, is_complex):
pass | 2 | 0 | 11 | 0 | 11 | 0 | 1 | 0.07 | 0 | 0 | 0 | 0 | 1 | 5 | 1 | 1 | 16 | 1 | 14 | 14 | 7 | 1 | 9 | 9 | 7 | 1 | 0 | 0 | 1 |
321,923 | 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/io/matlab/_mio4.py | scipy.io.matlab._mio4.VarReader4 | from operator import mul
import numpy as np
from ._miobase import MatFileReader, docfiller, matdims, read_dtype, convert_dtypes, arr_to_chars, arr_dtype_number
from functools import reduce
import warnings
import scipy.sparse
from ._mio_utils import squeeze_element, chars_to_strings
class VarReader4:
""" Class to r... |
class VarReader4:
''' Class to read matlab 4 variables '''
def __init__(self, file_reader):
pass
def read_header(self):
''' Read and return header for variable '''
pass
def array_from_header(self, hdr, process=True):
pass
def read_sub_array(self, hdr, copy=True):... | 9 | 7 | 25 | 2 | 15 | 9 | 3 | 0.62 | 0 | 7 | 1 | 0 | 8 | 5 | 8 | 8 | 207 | 22 | 118 | 45 | 109 | 73 | 91 | 45 | 82 | 7 | 0 | 2 | 27 |
321,924 | 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/io/matlab/_mio4.py | scipy.io.matlab._mio4.VarWriter4 | from ._miobase import MatFileReader, docfiller, matdims, read_dtype, convert_dtypes, arr_to_chars, arr_dtype_number
import scipy.sparse
import numpy as np
import math
class VarWriter4:
def __init__(self, file_writer):
self.file_stream = file_writer.file_stream
self.oned_as = file_writer.oned_as
... |
class VarWriter4:
def __init__(self, file_writer):
pass
def write_bytes(self, arr):
pass
def write_string(self, s):
pass
def write_header(self, name, shape, P=miDOUBLE, T=mxFULL_CLASS, imagf=0):
''' Write header for given data options
Parameters
-----... | 9 | 3 | 16 | 0 | 12 | 4 | 2 | 0.33 | 0 | 2 | 0 | 0 | 8 | 2 | 8 | 8 | 138 | 10 | 98 | 26 | 89 | 32 | 76 | 26 | 67 | 6 | 0 | 2 | 19 |
321,925 | 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/io/matlab/_mio5.py | scipy.io.matlab._mio5.EmptyStructMarker | class EmptyStructMarker:
""" Class to indicate presence of empty matlab struct on output """ | class EmptyStructMarker:
''' Class to indicate presence of empty matlab struct on output '''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 |
321,926 | 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/io/matlab/_mio5.py | scipy.io.matlab._mio5.MatFile5Reader | import sys
from ._mio5_params import MatlabObject, MatlabFunction, MDTYPES, NP_TO_MTYPES, NP_TO_MXTYPES, miCOMPRESSED, miMATRIX, miINT8, miUTF8, miUINT32, mxCELL_CLASS, mxSTRUCT_CLASS, mxOBJECT_CLASS, mxCHAR_CLASS, mxSPARSE_CLASS, mxDOUBLE_CLASS, mclass_info, mat_struct
import warnings
from ._mio5_utils import VarReade... |
class MatFile5Reader(MatFileReader):
''' Reader for Mat 5 mat files
Adds the following attribute to base class
uint16_codec - char codec to use for uint16 char arrays
(defaults to system default codec)
Uses variable reader that has the following standard interface (see
abstract class in ``m... | 10 | 9 | 25 | 2 | 16 | 7 | 4 | 0.56 | 1 | 8 | 2 | 0 | 8 | 3 | 8 | 12 | 226 | 25 | 129 | 45 | 109 | 72 | 97 | 33 | 88 | 13 | 1 | 3 | 28 |
321,927 | 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/io/matlab/_mio5.py | scipy.io.matlab._mio5.MatFile5Writer | import time
import numpy as np
import os
from ._mio5_params import MatlabObject, MatlabFunction, MDTYPES, NP_TO_MTYPES, NP_TO_MXTYPES, miCOMPRESSED, miMATRIX, miINT8, miUTF8, miUINT32, mxCELL_CLASS, mxSTRUCT_CLASS, mxOBJECT_CLASS, mxCHAR_CLASS, mxSPARSE_CLASS, mxDOUBLE_CLASS, mclass_info, mat_struct
import warnings
fro... |
class MatFile5Writer:
''' Class for writing mat5 files '''
@docfiller
def __init__(self, file_stream, do_compression=False, unicode_strings=False, global_vars=None, long_field_names=False, oned_as='row'):
''' Initialize writer for matlab 5 format files
Parameters
----------
... | 5 | 3 | 26 | 1 | 17 | 9 | 3 | 0.56 | 0 | 2 | 2 | 0 | 3 | 7 | 3 | 3 | 85 | 5 | 52 | 24 | 42 | 29 | 40 | 18 | 36 | 6 | 0 | 2 | 9 |
321,928 | 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/io/matlab/_mio5.py | scipy.io.matlab._mio5.VarWriter5 | import scipy.sparse
import numpy as np
from ._mio5_params import MatlabObject, MatlabFunction, MDTYPES, NP_TO_MTYPES, NP_TO_MXTYPES, miCOMPRESSED, miMATRIX, miINT8, miUTF8, miUINT32, mxCELL_CLASS, mxSTRUCT_CLASS, mxOBJECT_CLASS, mxCHAR_CLASS, mxSPARSE_CLASS, mxDOUBLE_CLASS, mclass_info, mat_struct
import math
from ._mi... |
class VarWriter5:
''' Generic matlab matrix writing class '''
def __init__(self, file_writer):
pass
def write_bytes(self, arr):
pass
def write_string(self, s):
pass
def write_element(self, arr, mdtype=None):
''' write tag and data '''
pass
def write_... | 19 | 8 | 15 | 0 | 11 | 5 | 3 | 0.46 | 0 | 8 | 4 | 0 | 18 | 7 | 18 | 18 | 299 | 21 | 196 | 63 | 172 | 90 | 161 | 58 | 142 | 10 | 0 | 2 | 45 |
321,929 | 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/io/matlab/_mio5_params.py | scipy.io.matlab._mio5_params.MatlabFunction | import numpy as np
class MatlabFunction(np.ndarray):
"""Subclass for a MATLAB function.
This is a simple subclass of :class:`numpy.ndarray` meant to be used
by :func:`scipy.io.loadmat` and should not be directly instantiated.
"""
def __new__(cls, input_array):
obj = np.asarray(input_array... |
class MatlabFunction(np.ndarray):
'''Subclass for a MATLAB function.
This is a simple subclass of :class:`numpy.ndarray` meant to be used
by :func:`scipy.io.loadmat` and should not be directly instantiated.
'''
def __new__(cls, input_array):
pass | 2 | 1 | 3 | 0 | 3 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 10 | 2 | 4 | 3 | 2 | 4 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
321,930 | 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/io/matlab/_mio5_params.py | scipy.io.matlab._mio5_params.MatlabObject | import numpy as np
class MatlabObject(np.ndarray):
"""Subclass of ndarray to signal this is a matlab object.
This is a simple subclass of :class:`numpy.ndarray` meant to be used
by :func:`scipy.io.loadmat` and should not be instantiated directly.
"""
def __new__(cls, input_array, classname=None):... |
class MatlabObject(np.ndarray):
'''Subclass of ndarray to signal this is a matlab object.
This is a simple subclass of :class:`numpy.ndarray` meant to be used
by :func:`scipy.io.loadmat` and should not be instantiated directly.
'''
def __new__(cls, input_array, classname=None):
pass
d... | 3 | 1 | 6 | 0 | 3 | 3 | 1 | 1.29 | 1 | 0 | 0 | 0 | 2 | 1 | 2 | 2 | 19 | 3 | 7 | 5 | 4 | 9 | 7 | 5 | 4 | 1 | 1 | 0 | 2 |
321,931 | 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/io/matlab/_mio5_params.py | scipy.io.matlab._mio5_params.MatlabOpaque | import numpy as np
class MatlabOpaque(np.ndarray):
"""Subclass for a MATLAB opaque matrix.
This is a simple subclass of :class:`numpy.ndarray` meant to be used
by :func:`scipy.io.loadmat` and should not be directly instantiated.
"""
def __new__(cls, input_array):
obj = np.asarray(input_ar... |
class MatlabOpaque(np.ndarray):
'''Subclass for a MATLAB opaque matrix.
This is a simple subclass of :class:`numpy.ndarray` meant to be used
by :func:`scipy.io.loadmat` and should not be directly instantiated.
'''
def __new__(cls, input_array):
pass | 2 | 1 | 3 | 0 | 3 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 10 | 2 | 4 | 3 | 2 | 4 | 4 | 3 | 2 | 1 | 1 | 0 | 1 |
321,932 | 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/io/matlab/_mio5_params.py | scipy.io.matlab._mio5_params.mat_struct | class mat_struct:
"""Placeholder for holding read data from structs.
We use instances of this class when the user passes False as a value to the
``struct_as_record`` parameter of the :func:`scipy.io.loadmat` function.
"""
pass | class mat_struct:
'''Placeholder for holding read data from structs.
We use instances of this class when the user passes False as a value to the
``struct_as_record`` parameter of the :func:`scipy.io.loadmat` function.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 | 1 | 2 | 1 | 1 | 4 | 2 | 1 | 1 | 0 | 0 | 0 | 0 |
321,933 | 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/io/matlab/_miobase.py | scipy.io.matlab._miobase.MatFileReader | from . import _byteordercodes as boc
class MatFileReader:
""" Base object for reading mat files
To make this class functional, you will need to override the
following methods:
matrix_getter_factory - gives object to fetch next matrix from stream
guess_byte_order - guesses file byte order... |
class MatFileReader:
''' Base object for reading mat files
To make this class functional, you will need to override the
following methods:
matrix_getter_factory - gives object to fetch next matrix from stream
guess_byte_order - guesses file byte order from file
'''
@docfiller
d... | 6 | 4 | 12 | 0 | 10 | 2 | 2 | 0.37 | 0 | 0 | 0 | 2 | 4 | 9 | 4 | 4 | 63 | 7 | 41 | 25 | 27 | 15 | 30 | 16 | 25 | 4 | 0 | 1 | 7 |
321,934 | 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/io/matlab/_miobase.py | scipy.io.matlab._miobase.MatReadError | class MatReadError(Exception):
"""Exception indicating a read issue.""" | class MatReadError(Exception):
'''Exception indicating a read issue.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
321,935 | 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/io/matlab/_miobase.py | scipy.io.matlab._miobase.MatReadWarning | class MatReadWarning(UserWarning):
"""Warning class for read issues.""" | class MatReadWarning(UserWarning):
'''Warning class for read issues.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 5 | 0 | 0 |
321,936 | 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/io/matlab/_miobase.py | scipy.io.matlab._miobase.MatVarReader | class MatVarReader:
""" Abstract class defining required interface for var readers"""
def __init__(self, file_reader):
pass
def read_header(self):
""" Returns header """
pass
def array_from_header(self, header):
""" Reads array given header """
pass | class MatVarReader:
''' Abstract class defining required interface for var readers'''
def __init__(self, file_reader):
pass
def read_header(self):
''' Returns header '''
pass
def array_from_header(self, header):
''' Reads array given header '''
pass | 4 | 3 | 3 | 0 | 2 | 1 | 1 | 0.43 | 0 | 0 | 0 | 0 | 3 | 0 | 3 | 3 | 12 | 2 | 7 | 4 | 3 | 3 | 7 | 4 | 3 | 1 | 0 | 0 | 3 |
321,937 | 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/io/matlab/_miobase.py | scipy.io.matlab._miobase.MatWriteError | class MatWriteError(Exception):
"""Exception indicating a write issue.""" | class MatWriteError(Exception):
'''Exception indicating a write issue.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 3 | 0 | 0 |
321,938 | 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/io/matlab/_miobase.py | scipy.io.matlab._miobase.MatWriteWarning | class MatWriteWarning(UserWarning):
"""Warning class for write issues.""" | class MatWriteWarning(UserWarning):
'''Warning class for write issues.'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 5 | 0 | 0 |
321,939 | 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/io/wavfile.py | scipy.io.wavfile.SeekEmulatingReader | import os
import io
class SeekEmulatingReader:
"""
Tracks stream position, provides tell(), and emulates only those
seeks that can be supported by reading forward. Other seeks raise
io.UnsupportedOperation. Note that this class implements only the
minimum necessary to keep wavfile.read() happy.
... |
class SeekEmulatingReader:
'''
Tracks stream position, provides tell(), and emulates only those
seeks that can be supported by reading forward. Other seeks raise
io.UnsupportedOperation. Note that this class implements only the
minimum necessary to keep wavfile.read() happy.
'''
def __init... | 7 | 1 | 4 | 0 | 4 | 1 | 2 | 0.42 | 0 | 0 | 0 | 0 | 6 | 2 | 6 | 6 | 39 | 5 | 26 | 10 | 16 | 11 | 21 | 11 | 13 | 4 | 0 | 0 | 9 |
321,940 | 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/io/wavfile.py | scipy.io.wavfile.WAVE_FORMAT | from enum import IntEnum
class WAVE_FORMAT(IntEnum):
"""
WAVE form wFormatTag IDs
Complete list is in mmreg.h in Windows 10 SDK. ALAC and OPUS are the
newest additions, in v10.0.14393 2016-07
"""
UNKNOWN = 0
PCM = 1
ADPCM = 2
IEEE_FLOAT = 3
VSELP = 4
IBM_CVSD = 5
ALAW ... |
class WAVE_FORMAT(IntEnum):
'''
WAVE form wFormatTag IDs
Complete list is in mmreg.h in Windows 10 SDK. ALAC and OPUS are the
newest additions, in v10.0.14393 2016-07
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0.03 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 55 | 275 | 1 | 269 | 269 | 268 | 7 | 269 | 269 | 268 | 0 | 3 | 0 | 0 |
321,941 | 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/io/wavfile.py | scipy.io.wavfile.WavFileWarning | class WavFileWarning(UserWarning):
pass | class WavFileWarning(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 |
321,942 | 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/linalg/_matfuncs_inv_ssq.py | scipy.linalg._matfuncs_inv_ssq.FractionalMatrixPowerError | import numpy as np
class FractionalMatrixPowerError(np.linalg.LinAlgError):
pass |
class FractionalMatrixPowerError(np.linalg.LinAlgError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
321,943 | 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/linalg/_matfuncs_inv_ssq.py | scipy.linalg._matfuncs_inv_ssq.LogmError | import numpy as np
class LogmError(np.linalg.LinAlgError):
pass |
class LogmError(np.linalg.LinAlgError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
321,944 | 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/linalg/_matfuncs_inv_ssq.py | scipy.linalg._matfuncs_inv_ssq.LogmExactlySingularWarning | class LogmExactlySingularWarning(LogmRankWarning):
pass | class LogmExactlySingularWarning(LogmRankWarning):
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 | 6 | 0 | 0 |
321,945 | 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/linalg/_matfuncs_inv_ssq.py | scipy.linalg._matfuncs_inv_ssq.LogmNearlySingularWarning | class LogmNearlySingularWarning(LogmRankWarning):
pass | class LogmNearlySingularWarning(LogmRankWarning):
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 | 6 | 0 | 0 |
321,946 | 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/linalg/_matfuncs_inv_ssq.py | scipy.linalg._matfuncs_inv_ssq.LogmRankWarning | class LogmRankWarning(UserWarning):
pass | class LogmRankWarning(UserWarning):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 0 | 12 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
321,947 | 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/linalg/_matfuncs_inv_ssq.py | scipy.linalg._matfuncs_inv_ssq._MatrixM1PowerOperator | from scipy.sparse.linalg._interface import LinearOperator
class _MatrixM1PowerOperator(LinearOperator):
"""
A representation of the linear operator (A - I)^p.
"""
def __init__(self, A, p):
if A.ndim != 2 or A.shape[0] != A.shape[1]:
raise ValueError('expected A to be like a square ... |
class _MatrixM1PowerOperator(LinearOperator):
'''
A representation of the linear operator (A - I)^p.
'''
def __init__(self, A, p):
pass
def _matvec(self, x):
pass
def _rmatvec(self, x):
pass
def _matmat(self, X):
pass
def _adjoint(self):
pass | 6 | 1 | 5 | 0 | 5 | 0 | 2 | 0.13 | 1 | 3 | 0 | 0 | 5 | 4 | 5 | 33 | 32 | 5 | 24 | 13 | 18 | 3 | 24 | 13 | 18 | 3 | 1 | 1 | 10 |
321,948 | 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/linalg/_matfuncs_sqrtm.py | scipy.linalg._matfuncs_sqrtm.SqrtmError | import numpy as np
class SqrtmError(np.linalg.LinAlgError):
pass |
class SqrtmError(np.linalg.LinAlgError):
pass | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 |
321,949 | 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/linalg/_misc.py | scipy.linalg._misc.LinAlgWarning | class LinAlgWarning(RuntimeWarning):
"""
The warning emitted when a linear algebra related operation is close
to fail conditions of the algorithm or loss of accuracy is expected.
"""
pass | class LinAlgWarning(RuntimeWarning):
'''
The warning emitted when a linear algebra related operation is close
to fail conditions of the algorithm or loss of accuracy is expected.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 6 | 0 | 2 | 1 | 1 | 4 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
321,950 | 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/linalg/_testutils.py | scipy.linalg._testutils._FakeMatrix | class _FakeMatrix:
def __init__(self, data):
self._data = data
self.__array_interface__ = data.__array_interface__ | class _FakeMatrix:
def __init__(self, data):
pass | 2 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 1 | 1 | 4 | 0 | 4 | 4 | 2 | 0 | 4 | 4 | 2 | 1 | 0 | 0 | 1 |
321,951 | 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/linalg/_testutils.py | scipy.linalg._testutils._FakeMatrix2 | class _FakeMatrix2:
def __init__(self, data):
self._data = data
def __array__(self, dtype=None, copy=None):
if copy:
return self._data.copy()
return self._data | class _FakeMatrix2:
def __init__(self, data):
pass
def __array__(self, dtype=None, copy=None):
pass | 3 | 0 | 3 | 0 | 3 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 2 | 2 | 8 | 1 | 7 | 4 | 4 | 0 | 7 | 4 | 4 | 2 | 0 | 1 | 3 |
321,952 | 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/odr/_models.py | scipy.odr._models._ExponentialModel | from scipy.odr._odrpack import Model
class _ExponentialModel(Model):
"""
Exponential model
This model is defined by :math:`y=\\beta_0 + e^{\\beta_1 x}`
Examples
--------
We can calculate orthogonal distance regression with an exponential model:
>>> from scipy import odr
>>> import nu... |
class _ExponentialModel(Model):
'''
Exponential model
This model is defined by :math:`y=\beta_0 + e^{\beta_1 x}`
Examples
--------
We can calculate orthogonal distance regression with an exponential model:
>>> from scipy import odr
>>> import numpy as np
>>> x = np.linspace(0.0, 5.0... | 2 | 1 | 6 | 0 | 6 | 0 | 1 | 2.29 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 4 | 28 | 5 | 7 | 2 | 5 | 16 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
321,953 | 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/odr/_models.py | scipy.odr._models._MultilinearModel | from scipy.odr._odrpack import Model
class _MultilinearModel(Model):
"""
Arbitrary-dimensional linear model
This model is defined by :math:`y=\\beta_0 + \\sum_{i=1}^m \\beta_i x_i`
Examples
--------
We can calculate orthogonal distance regression with an arbitrary
dimensional linear model... |
class _MultilinearModel(Model):
'''
Arbitrary-dimensional linear model
This model is defined by :math:`y=\beta_0 + \sum_{i=1}^m \beta_i x_i`
Examples
--------
We can calculate orthogonal distance regression with an arbitrary
dimensional linear model:
>>> from scipy import odr
>>> im... | 2 | 1 | 6 | 0 | 6 | 0 | 1 | 2.43 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 4 | 29 | 5 | 7 | 2 | 5 | 17 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
321,954 | 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/odr/_models.py | scipy.odr._models._QuadraticModel | from scipy.odr._odrpack import Model
class _QuadraticModel(Model):
"""
Quadratic model
This model is defined by :math:`y = \\beta_0 x^2 + \\beta_1 x + \\beta_2`
Examples
--------
We can calculate orthogonal distance regression with a quadratic model:
>>> from scipy import odr
>>> imp... |
class _QuadraticModel(Model):
'''
Quadratic model
This model is defined by :math:`y = \beta_0 x^2 + \beta_1 x + \beta_2`
Examples
--------
We can calculate orthogonal distance regression with a quadratic model:
>>> from scipy import odr
>>> import numpy as np
>>> x = np.linspace(0.0... | 2 | 1 | 6 | 0 | 6 | 0 | 1 | 2.29 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 4 | 28 | 5 | 7 | 2 | 5 | 16 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
321,955 | 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/odr/_models.py | scipy.odr._models._UnilinearModel | from scipy.odr._odrpack import Model
class _UnilinearModel(Model):
"""
Univariate linear model
This model is defined by :math:`y = \\beta_0 x + \\beta_1`
Examples
--------
We can calculate orthogonal distance regression with an unilinear model:
>>> from scipy import odr
>>> import nu... |
class _UnilinearModel(Model):
'''
Univariate linear model
This model is defined by :math:`y = \beta_0 x + \beta_1`
Examples
--------
We can calculate orthogonal distance regression with an unilinear model:
>>> from scipy import odr
>>> import numpy as np
>>> x = np.linspace(0.0, 5.0... | 2 | 1 | 6 | 0 | 6 | 0 | 1 | 2.29 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 4 | 28 | 5 | 7 | 2 | 5 | 16 | 3 | 2 | 1 | 1 | 1 | 0 | 1 |
321,956 | 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/odr/_odrpack.py | scipy.odr._odrpack.Data | import numpy as np
class Data:
"""
The data to fit.
Parameters
----------
x : array_like
Observed data for the independent variable of the regression
y : array_like, optional
If array-like, observed data for the dependent variable of the
regression. A scalar input impli... |
class Data:
'''
The data to fit.
Parameters
----------
x : array_like
Observed data for the independent variable of the regression
y : array_like, optional
If array-like, observed data for the dependent variable of the
regression. A scalar input implies that the model to... | 4 | 3 | 10 | 2 | 6 | 3 | 2 | 4.5 | 0 | 3 | 0 | 1 | 3 | 6 | 3 | 3 | 111 | 12 | 18 | 10 | 14 | 81 | 16 | 10 | 12 | 3 | 0 | 1 | 6 |
321,957 | 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/odr/_odrpack.py | scipy.odr._odrpack.Model | class Model:
"""
The Model class stores information about the function you wish to fit.
It stores the function itself, at the least, and optionally stores
functions which compute the Jacobians used during fitting. Also, one
can provide a function that will provide reasonable starting values
for... | class Model:
'''
The Model class stores information about the function you wish to fit.
It stores the function itself, at the least, and optionally stores
functions which compute the Jacobians used during fitting. Also, one
can provide a function that will provide reasonable starting values
for ... | 4 | 3 | 11 | 2 | 6 | 3 | 2 | 3.84 | 0 | 2 | 0 | 4 | 3 | 7 | 3 | 3 | 110 | 18 | 19 | 12 | 14 | 73 | 17 | 11 | 13 | 3 | 0 | 1 | 6 |
321,958 | 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/odr/_odrpack.py | scipy.odr._odrpack.ODR | import numpy as np
from warnings import warn
import os
class ODR:
"""
The ODR class gathers all information and coordinates the running of the
main fitting routine.
Members of instances of the ODR class have the same names as the arguments
to the initialization routine.
Parameters
-------... |
class ODR:
'''
The ODR class gathers all information and coordinates the running of the
main fitting routine.
Members of instances of the ODR class have the same names as the arguments
to the initialization routine.
Parameters
----------
data : Data class instance
instance of th... | 8 | 7 | 59 | 10 | 35 | 15 | 10 | 0.87 | 0 | 7 | 3 | 0 | 7 | 22 | 7 | 7 | 532 | 85 | 243 | 64 | 229 | 211 | 192 | 58 | 184 | 20 | 0 | 3 | 67 |
321,959 | 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/odr/_odrpack.py | scipy.odr._odrpack.OdrError | class OdrError(Exception):
"""
Exception indicating an error in fitting.
This is raised by `~scipy.odr.odr` if an error occurs during fitting.
"""
pass | class OdrError(Exception):
'''
Exception indicating an error in fitting.
This is raised by `~scipy.odr.odr` if an error occurs during fitting.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 7 | 1 | 2 | 1 | 1 | 4 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
321,960 | 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/odr/_odrpack.py | scipy.odr._odrpack.OdrStop | class OdrStop(Exception):
"""
Exception stopping fitting.
You can raise this exception in your objective function to tell
`~scipy.odr.odr` to stop fitting.
"""
pass | class OdrStop(Exception):
'''
Exception stopping fitting.
You can raise this exception in your objective function to tell
`~scipy.odr.odr` to stop fitting.
'''
pass | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 10 | 8 | 1 | 2 | 1 | 1 | 5 | 2 | 1 | 1 | 0 | 3 | 0 | 0 |
321,961 | 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/odr/_odrpack.py | scipy.odr._odrpack.OdrWarning | class OdrWarning(UserWarning):
"""
Warning indicating that the data passed into
ODR will cause problems when passed into 'odr'
that the user should be aware of.
"""
pass | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 12 | 7 | 0 | 2 | 1 | 1 | 5 | 2 | 1 | 1 | 0 | 5 | 0 | 0 |
321,962 | 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/odr/_odrpack.py | scipy.odr._odrpack.Output | class Output:
"""
The Output class stores the output of an ODR run.
Attributes
----------
beta : ndarray
Estimated parameter values, of shape (q,).
sd_beta : ndarray
Standard deviations of the estimated parameters, of shape (p,).
cov_beta : ndarray
Covariance matrix ... | class Output:
'''
The Output class stores the output of an ODR run.
Attributes
----------
beta : ndarray
Estimated parameter values, of shape (q,).
sd_beta : ndarray
Standard deviations of the estimated parameters, of shape (p,).
cov_beta : ndarray
Covariance matrix o... | 3 | 2 | 11 | 1 | 9 | 2 | 3 | 2.89 | 0 | 0 | 0 | 0 | 2 | 4 | 2 | 2 | 76 | 7 | 18 | 8 | 15 | 52 | 18 | 8 | 15 | 3 | 0 | 2 | 5 |
321,963 | 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/odr/_odrpack.py | scipy.odr._odrpack.RealData | import numpy as np
class RealData(Data):
"""
The data, with weightings as actual standard deviations and/or
covariances.
Parameters
----------
x : array_like
Observed data for the independent variable of the regression
y : array_like, optional
If array-like, observed data f... |
class RealData(Data):
'''
The data, with weightings as actual standard deviations and/or
covariances.
Parameters
----------
x : array_like
Observed data for the independent variable of the regression
y : array_like, optional
If array-like, observed data for the dependent var... | 5 | 3 | 18 | 3 | 13 | 2 | 4 | 1.07 | 1 | 5 | 0 | 0 | 4 | 9 | 4 | 7 | 134 | 23 | 54 | 20 | 47 | 58 | 43 | 19 | 37 | 7 | 1 | 2 | 15 |
321,964 | 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/optimize/_basinhopping.py | scipy.optimize._basinhopping.AdaptiveStepsize | class AdaptiveStepsize:
"""
Class to implement adaptive stepsize.
This class wraps the step taking class and modifies the stepsize to
ensure the true acceptance rate is as close as possible to the target.
Parameters
----------
takestep : callable
The step taking routine. Must cont... | class AdaptiveStepsize:
'''
Class to implement adaptive stepsize.
This class wraps the step taking class and modifies the stepsize to
ensure the true acceptance rate is as close as possible to the target.
Parameters
----------
takestep : callable
The step taking routine. Must contai... | 6 | 2 | 7 | 0 | 6 | 1 | 2 | 0.7 | 0 | 1 | 0 | 0 | 5 | 8 | 5 | 5 | 64 | 8 | 33 | 17 | 26 | 23 | 29 | 16 | 23 | 3 | 0 | 1 | 9 |
321,965 | 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/optimize/_basinhopping.py | scipy.optimize._basinhopping.BasinHoppingRunner | import inspect
import numpy as np
import scipy.optimize
class BasinHoppingRunner:
"""This class implements the core of the basinhopping algorithm.
x0 : ndarray
The starting coordinates.
minimizer : callable
The local minimizer, with signature ``result = minimizer(x)``.
The return v... |
class BasinHoppingRunner:
'''This class implements the core of the basinhopping algorithm.
x0 : ndarray
The starting coordinates.
minimizer : callable
The local minimizer, with signature ``result = minimizer(x)``.
The return value is an `optimize.OptimizeResult` object.
step_tak... | 5 | 4 | 32 | 4 | 22 | 6 | 6 | 0.49 | 0 | 2 | 1 | 0 | 4 | 13 | 4 | 4 | 153 | 21 | 90 | 29 | 85 | 44 | 76 | 29 | 71 | 12 | 0 | 2 | 24 |
321,966 | 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/optimize/_basinhopping.py | scipy.optimize._basinhopping.Metropolis | import numpy as np
import math
from scipy._lib._util import check_random_state, _transition_to_rng
class Metropolis:
"""Metropolis acceptance criterion.
Parameters
----------
T : float
The "temperature" parameter for the accept or reject criterion.
rng : {None, int, `numpy.random.Generator... |
class Metropolis:
'''Metropolis acceptance criterion.
Parameters
----------
T : float
The "temperature" parameter for the accept or reject criterion.
rng : {None, int, `numpy.random.Generator`}, optional
Random number generator used for acceptance test.
'''
def __init__(sel... | 4 | 3 | 11 | 0 | 4 | 7 | 1 | 2.33 | 0 | 3 | 0 | 0 | 3 | 2 | 3 | 3 | 46 | 6 | 12 | 9 | 8 | 28 | 12 | 9 | 8 | 2 | 0 | 1 | 4 |
321,967 | 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/optimize/_basinhopping.py | scipy.optimize._basinhopping.MinimizerWrapper | class MinimizerWrapper:
"""
wrap a minimizer function as a minimizer class
"""
def __init__(self, minimizer, func=None, **kwargs):
self.minimizer = minimizer
self.func = func
self.kwargs = kwargs
def __call__(self, x0):
if self.func is None:
return self.... | class MinimizerWrapper:
'''
wrap a minimizer function as a minimizer class
'''
def __init__(self, minimizer, func=None, **kwargs):
pass
def __call__(self, x0):
pass | 3 | 1 | 5 | 0 | 5 | 0 | 2 | 0.3 | 0 | 0 | 0 | 0 | 2 | 3 | 2 | 2 | 14 | 1 | 10 | 6 | 7 | 3 | 9 | 6 | 6 | 2 | 0 | 1 | 3 |
321,968 | 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/optimize/_basinhopping.py | scipy.optimize._basinhopping.RandomDisplacement | from scipy._lib._util import check_random_state, _transition_to_rng
import numpy as np
class RandomDisplacement:
"""Add a random displacement of maximum size `stepsize` to each coordinate.
Calling this updates `x` in-place.
Parameters
----------
stepsize : float, optional
Maximum stepsize... |
class RandomDisplacement:
'''Add a random displacement of maximum size `stepsize` to each coordinate.
Calling this updates `x` in-place.
Parameters
----------
stepsize : float, optional
Maximum stepsize in any dimension
rng : {None, int, `numpy.random.Generator`}, optional
Rando... | 3 | 1 | 4 | 0 | 4 | 0 | 1 | 1.13 | 0 | 0 | 0 | 1 | 2 | 2 | 2 | 2 | 21 | 4 | 8 | 5 | 5 | 9 | 7 | 5 | 4 | 1 | 0 | 0 | 2 |
321,969 | 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/optimize/_basinhopping.py | scipy.optimize._basinhopping.Storage | import numpy as np
class Storage:
"""
Class used to store the lowest energy structure
"""
def __init__(self, minres):
self._add(minres)
def _add(self, minres):
self.minres = minres
self.minres.x = np.copy(minres.x)
def update(self, minres):
if minres.success a... |
class Storage:
'''
Class used to store the lowest energy structure
'''
def __init__(self, minres):
pass
def _add(self, minres):
pass
def update(self, minres):
pass
def get_lowest(self):
pass | 5 | 1 | 4 | 0 | 4 | 0 | 1 | 0.2 | 0 | 0 | 0 | 0 | 4 | 1 | 4 | 4 | 21 | 3 | 15 | 6 | 10 | 3 | 13 | 6 | 8 | 2 | 0 | 1 | 5 |
321,970 | 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/optimize/_constraints.py | scipy.optimize._constraints.Bounds | from scipy._lib._sparse import issparse
import numpy as np
class Bounds:
"""Bounds constraint on the variables.
The constraint has the general inequality form::
lb <= x <= ub
It is possible to use equal bounds to represent an equality constraint or
infinite bounds to represent a one-sided co... |
class Bounds:
'''Bounds constraint on the variables.
The constraint has the general inequality form::
lb <= x <= ub
It is possible to use equal bounds to represent an equality constraint or
infinite bounds to represent a one-sided constraint.
Parameters
----------
lb, ub : dense arr... | 5 | 2 | 13 | 2 | 6 | 5 | 2 | 1.5 | 0 | 3 | 0 | 0 | 4 | 3 | 4 | 4 | 80 | 15 | 26 | 10 | 21 | 39 | 25 | 10 | 20 | 3 | 0 | 1 | 8 |
321,971 | 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/optimize/_constraints.py | scipy.optimize._constraints.LinearConstraint | from warnings import warn, catch_warnings, simplefilter, filterwarnings
from scipy._lib._sparse import issparse
import numpy as np
class LinearConstraint:
"""Linear constraint on the variables.
The constraint has the general inequality form::
lb <= A.dot(x) <= ub
Here the vector of independent v... |
class LinearConstraint:
'''Linear constraint on the variables.
The constraint has the general inequality form::
lb <= A.dot(x) <= ub
Here the vector of independent variables x is passed as ndarray of shape
(n,) and the matrix A has shape (m, n).
It is possible to use equal bounds to represe... | 4 | 2 | 21 | 3 | 10 | 8 | 3 | 1.65 | 0 | 3 | 0 | 0 | 3 | 4 | 3 | 3 | 98 | 16 | 31 | 10 | 27 | 51 | 29 | 10 | 25 | 4 | 0 | 2 | 8 |
321,972 | 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/optimize/_constraints.py | scipy.optimize._constraints.NonlinearConstraint | from ._hessian_update_strategy import BFGS
class NonlinearConstraint:
"""Nonlinear constraint on the variables.
The constraint has the general inequality form::
lb <= fun(x) <= ub
Here the vector of independent variables x is passed as ndarray of shape
(n,) and ``fun`` returns a vector with ... |
class NonlinearConstraint:
'''Nonlinear constraint on the variables.
The constraint has the general inequality form::
lb <= fun(x) <= ub
Here the vector of independent variables x is passed as ndarray of shape
(n,) and ``fun`` returns a vector with m components.
It is possible to use equal ... | 2 | 1 | 13 | 0 | 13 | 0 | 2 | 5.43 | 0 | 1 | 1 | 0 | 1 | 8 | 1 | 1 | 104 | 14 | 14 | 12 | 10 | 76 | 12 | 10 | 10 | 2 | 0 | 1 | 2 |
321,973 | 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/optimize/_constraints.py | scipy.optimize._constraints.PreparedConstraint | from ._differentiable_functions import VectorFunction, LinearVectorFunction, IdentityVectorFunction
from warnings import warn, catch_warnings, simplefilter, filterwarnings
import numpy as np
class PreparedConstraint:
"""Constraint prepared from a user defined constraint.
On creation it will check whether a co... |
class PreparedConstraint:
'''Constraint prepared from a user defined constraint.
On creation it will check whether a constraint definition is valid and
the initial point is feasible. If created successfully, it will contain
the attributes listed below.
Parameters
----------
constraint : {No... | 3 | 2 | 32 | 5 | 20 | 8 | 4 | 1.13 | 0 | 11 | 6 | 0 | 2 | 3 | 2 | 2 | 99 | 14 | 40 | 17 | 36 | 45 | 30 | 16 | 27 | 6 | 0 | 1 | 7 |
321,974 | 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/optimize/_dcsrch.py | scipy.optimize._dcsrch.DCSRCH | import numpy as np
class DCSRCH:
"""
Parameters
----------
phi : callable phi(alpha)
Function at point `alpha`
derphi : callable phi'(alpha)
Objective function derivative. Returns a scalar.
ftol : float
A nonnegative tolerance for the sufficient decrease condition.
g... |
class DCSRCH:
'''
Parameters
----------
phi : callable phi(alpha)
Function at point `alpha`
derphi : callable phi'(alpha)
Objective function derivative. Returns a scalar.
ftol : float
A nonnegative tolerance for the sufficient decrease condition.
gtol : float
... | 4 | 3 | 108 | 14 | 61 | 34 | 10 | 1.2 | 0 | 2 | 0 | 0 | 3 | 22 | 3 | 3 | 483 | 82 | 183 | 43 | 179 | 219 | 136 | 43 | 132 | 23 | 0 | 2 | 31 |
321,975 | 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/optimize/_differentiable_functions.py | scipy.optimize._differentiable_functions.IdentityVectorFunction | import numpy as np
import scipy.sparse as sps
class IdentityVectorFunction(LinearVectorFunction):
"""Identity vector function and its derivatives.
The Jacobian is the identity matrix, returned as a dense array when
`sparse_jacobian=False` and as a csr matrix otherwise. The Hessian is
identically zero ... |
class IdentityVectorFunction(LinearVectorFunction):
'''Identity vector function and its derivatives.
The Jacobian is the identity matrix, returned as a dense array when
`sparse_jacobian=False` and as a csr matrix otherwise. The Hessian is
identically zero and it is returned as a csr matrix.
'''
... | 2 | 1 | 9 | 0 | 9 | 0 | 2 | 0.5 | 1 | 1 | 0 | 0 | 1 | 0 | 1 | 6 | 16 | 1 | 10 | 4 | 8 | 5 | 9 | 4 | 7 | 2 | 1 | 1 | 2 |
321,976 | 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/optimize/_differentiable_functions.py | scipy.optimize._differentiable_functions.LinearVectorFunction | from scipy._lib import array_api_extra as xpx
from scipy._lib._array_api import array_namespace, xp_copy
import numpy as np
import scipy.sparse as sps
class LinearVectorFunction:
"""Linear vector function and its derivatives.
Defines a linear function F = A x, where x is N-D vector and
A is m-by-n matrix.... |
class LinearVectorFunction:
'''Linear vector function and its derivatives.
Defines a linear function F = A x, where x is N-D vector and
A is m-by-n matrix. The Jacobian is constant and equals to A. The Hessian
is identically zero and it is returned as a csr matrix.
'''
def __init__(self, A, x0... | 6 | 1 | 9 | 1 | 8 | 0 | 2 | 0.17 | 0 | 2 | 1 | 1 | 5 | 11 | 5 | 5 | 58 | 10 | 41 | 19 | 35 | 7 | 39 | 19 | 33 | 4 | 0 | 1 | 10 |
321,977 | 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/optimize/_differentiable_functions.py | scipy.optimize._differentiable_functions.ScalarFunction | from scipy._lib._util import _ScalarFunctionWrapper
from scipy._lib import array_api_extra as xpx
from scipy._lib._array_api import array_namespace, xp_copy
import numpy as np
from collections import namedtuple
from ._hessian_update_strategy import HessianUpdateStrategy
class ScalarFunction:
"""Scalar function and... |
class ScalarFunction:
'''Scalar function and its derivatives.
This class defines a scalar function F: R^n->R and methods for
computing or approximating its first and second derivatives.
Parameters
----------
fun : callable
evaluates the scalar function. Must be of the form ``fun(x, *arg... | 16 | 1 | 15 | 1 | 13 | 1 | 3 | 0.56 | 0 | 6 | 4 | 0 | 12 | 22 | 12 | 12 | 287 | 34 | 163 | 45 | 146 | 92 | 129 | 41 | 116 | 10 | 0 | 2 | 33 |
321,978 | 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/optimize/_differentiable_functions.py | scipy.optimize._differentiable_functions.VectorFunction | from ._numdiff import approx_derivative, group_columns
from scipy._lib import array_api_extra as xpx
import scipy.sparse as sps
from scipy._lib._array_api import array_namespace, xp_copy
import numpy as np
from scipy.sparse.linalg import LinearOperator
from ._hessian_update_strategy import HessianUpdateStrategy
class ... |
class VectorFunction:
'''Vector function and its derivatives.
This class defines a vector function F: R^n->R^m and methods for
computing or approximating its first and second derivatives.
Notes
-----
This class implements a memoization logic. There are methods `fun`,
`jac`, hess` and corres... | 16 | 1 | 18 | 1 | 14 | 2 | 3 | 0.19 | 0 | 8 | 6 | 0 | 12 | 25 | 12 | 12 | 242 | 31 | 177 | 52 | 158 | 34 | 143 | 46 | 130 | 17 | 0 | 3 | 41 |
321,979 | 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/optimize/_differentiable_functions.py | scipy.optimize._differentiable_functions._ScalarGradWrapper | from ._numdiff import approx_derivative, group_columns
import numpy as np
class _ScalarGradWrapper:
"""
Wrapper class for gradient calculation
"""
def __init__(self, grad, fun=None, args=None, finite_diff_options=None):
self.fun = fun
self.grad = grad
self.args = [] if args is ... |
class _ScalarGradWrapper:
'''
Wrapper class for gradient calculation
'''
def __init__(self, grad, fun=None, args=None, finite_diff_options=None):
pass
def __call__(self, x, f0=None, **kwds):
pass | 3 | 1 | 15 | 1 | 13 | 2 | 3 | 0.22 | 0 | 0 | 0 | 0 | 2 | 6 | 2 | 2 | 35 | 2 | 27 | 17 | 18 | 6 | 15 | 11 | 12 | 3 | 0 | 1 | 5 |
321,980 | 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/optimize/_differentiable_functions.py | scipy.optimize._differentiable_functions._ScalarHessWrapper | from ._numdiff import approx_derivative, group_columns
from scipy.sparse.linalg import LinearOperator
import numpy as np
import scipy.sparse as sps
class _ScalarHessWrapper:
"""
Wrapper class for hess calculation via finite differences
"""
def __init__(self, hess, x0=None, grad=None, args=None, finite... |
class _ScalarHessWrapper:
'''
Wrapper class for hess calculation via finite differences
'''
def __init__(self, hess, x0=None, grad=None, args=None, finite_diff_options=None):
pass
def __call__(self, x, f0=None, **kwds):
pass
def _fd_hess(self, x, f0=None, **kwds):
... | 7 | 1 | 9 | 0 | 9 | 0 | 2 | 0.1 | 0 | 2 | 2 | 0 | 6 | 8 | 6 | 6 | 64 | 7 | 52 | 23 | 38 | 5 | 38 | 16 | 31 | 6 | 0 | 2 | 11 |
321,981 | 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/optimize/_differentiable_functions.py | scipy.optimize._differentiable_functions._VectorFunWrapper | import numpy as np
class _VectorFunWrapper:
def __init__(self, fun):
self.fun = fun
self.nfev = 0
def __call__(self, x):
self.nfev += 1
return np.atleast_1d(self.fun(x)) |
class _VectorFunWrapper:
def __init__(self, fun):
pass
def __call__(self, x):
pass | 3 | 0 | 3 | 0 | 3 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 | 2 | 2 | 2 | 8 | 1 | 7 | 5 | 4 | 0 | 7 | 5 | 4 | 1 | 0 | 0 | 2 |
321,982 | 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/optimize/_differentiable_functions.py | scipy.optimize._differentiable_functions._VectorHessWrapper | from ._numdiff import approx_derivative, group_columns
from scipy.sparse.linalg import LinearOperator
import numpy as np
import scipy.sparse as sps
class _VectorHessWrapper:
"""
Wrapper class for Jacobian calculation
"""
def __init__(self, hess, jac=None, finite_diff_options=None):
self.jac = ... |
class _VectorHessWrapper:
'''
Wrapper class for Jacobian calculation
'''
def __init__(self, hess, jac=None, finite_diff_options=None):
pass
def __call__(self, x, v, J0=None, **kwds):
pass
def _fd_hess(self, x, v, J0=None):
pass
def jac_dot_v(self, x, v):
... | 6 | 1 | 9 | 0 | 7 | 1 | 2 | 0.18 | 0 | 2 | 2 | 0 | 5 | 5 | 5 | 5 | 51 | 6 | 38 | 18 | 27 | 7 | 27 | 13 | 21 | 3 | 0 | 1 | 10 |
321,983 | 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/optimize/_differentiable_functions.py | scipy.optimize._differentiable_functions._VectorJacWrapper | from ._numdiff import approx_derivative, group_columns
from scipy.sparse.linalg import LinearOperator
import numpy as np
import scipy.sparse as sps
class _VectorJacWrapper:
"""
Wrapper class for Jacobian calculation
"""
def __init__(self, jac, fun=None, finite_diff_options=None, sparse_jacobian=None):... |
class _VectorJacWrapper:
'''
Wrapper class for Jacobian calculation
'''
def __init__(self, jac, fun=None, finite_diff_options=None, sparse_jacobian=None):
pass
def __call__(self, x, f0=None, **kwds):
pass | 3 | 1 | 19 | 1 | 17 | 2 | 4 | 0.18 | 0 | 2 | 2 | 0 | 2 | 6 | 2 | 2 | 43 | 3 | 34 | 17 | 25 | 6 | 19 | 11 | 16 | 6 | 0 | 1 | 7 |
321,984 | 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/optimize/_differentialevolution.py | scipy.optimize._differentialevolution.DifferentialEvolutionSolver | import warnings
from scipy.optimize._optimize import _status_message, _wrap_callback
import numpy as np
from scipy.optimize import OptimizeResult, minimize
from scipy._lib._util import check_random_state, MapWrapper, _FunctionWrapper, rng_integers, _transition_to_rng
from scipy.optimize._constraints import Bounds, new_... | null | 36 | 26 | 32 | 4 | 19 | 9 | 4 | 0.83 | 0 | 21 | 8 | 0 | 32 | 35 | 32 | 32 | 1,342 | 195 | 627 | 177 | 583 | 522 | 442 | 165 | 407 | 26 | 0 | 4 | 124 |
321,985 | 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/optimize/_differentialevolution.py | scipy.optimize._differentialevolution._ConstraintWrapper | import numpy as np
from scipy._lib._sparse import issparse
from scipy.optimize._constraints import Bounds, new_bounds_to_old, NonlinearConstraint, LinearConstraint
class _ConstraintWrapper:
"""Object to wrap/evaluate user defined constraints.
Very similar in practice to `PreparedConstraint`, except that no ev... |
class _ConstraintWrapper:
'''Object to wrap/evaluate user defined constraints.
Very similar in practice to `PreparedConstraint`, except that no evaluation
of jac/hess is performed (explicit or implicit).
If created successfully, it will contain the attributes listed below.
Parameters
----------... | 7 | 2 | 18 | 3 | 11 | 5 | 2 | 0.89 | 0 | 6 | 3 | 0 | 3 | 5 | 3 | 3 | 120 | 20 | 53 | 22 | 46 | 47 | 41 | 21 | 34 | 6 | 0 | 1 | 14 |
321,986 | 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/optimize/_dual_annealing.py | scipy.optimize._dual_annealing.EnergyState | import numpy as np
class EnergyState:
"""
Class used to record the energy state. At any time, it knows what is the
currently used coordinates and the most recent best location.
Parameters
----------
lower : array_like
A 1-D NumPy ndarray containing lower bounds for generating an initia... |
class EnergyState:
'''
Class used to record the energy state. At any time, it knows what is the
currently used coordinates and the most recent best location.
Parameters
----------
lower : array_like
A 1-D NumPy ndarray containing lower bounds for generating an initial
random com... | 5 | 2 | 14 | 0 | 13 | 1 | 3 | 0.46 | 0 | 1 | 0 | 0 | 4 | 7 | 4 | 4 | 81 | 5 | 52 | 17 | 47 | 24 | 42 | 17 | 37 | 7 | 0 | 3 | 13 |
321,987 | 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/optimize/_dual_annealing.py | scipy.optimize._dual_annealing.LocalSearchWrapper | from scipy.optimize import minimize, Bounds
import numpy as np
class LocalSearchWrapper:
"""
Class used to wrap around the minimizer used for local search
Default local minimizer is SciPy minimizer L-BFGS-B
"""
LS_MAXITER_RATIO = 6
LS_MAXITER_MIN = 100
LS_MAXITER_MAX = 1000
def __init_... |
class LocalSearchWrapper:
'''
Class used to wrap around the minimizer used for local search
Default local minimizer is SciPy minimizer L-BFGS-B
'''
def __init__(self, search_bounds, func_wrapper, *args, **kwargs):
pass
def wrapped_jac(x):
pa... | 6 | 1 | 12 | 0 | 11 | 1 | 2 | 0.15 | 0 | 2 | 0 | 0 | 2 | 8 | 2 | 2 | 66 | 5 | 53 | 25 | 47 | 8 | 46 | 25 | 40 | 5 | 0 | 2 | 12 |
321,988 | 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/optimize/_dual_annealing.py | scipy.optimize._dual_annealing.ObjectiveFunWrapper | class ObjectiveFunWrapper:
def __init__(self, func, maxfun=10000000.0, *args):
self.func = func
self.args = args
self.nfev = 0
self.ngev = 0
self.nhev = 0
self.maxfun = maxfun
def fun(self, x):
self.nfev += 1
return self.func(x, *self.args) | class ObjectiveFunWrapper:
def __init__(self, func, maxfun=10000000.0, *args):
pass
def fun(self, x):
pass | 3 | 0 | 7 | 0 | 5 | 2 | 1 | 0.27 | 0 | 0 | 0 | 0 | 2 | 6 | 2 | 2 | 16 | 2 | 11 | 9 | 8 | 3 | 11 | 9 | 8 | 1 | 0 | 0 | 2 |
321,989 | 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/optimize/_dual_annealing.py | scipy.optimize._dual_annealing.StrategyChain | import numpy as np
class StrategyChain:
"""
Class that implements within a Markov chain the strategy for location
acceptance and local search decision making.
Parameters
----------
acceptance_param : float
Parameter for acceptance distribution. It is used to control the
probabi... |
class StrategyChain:
'''
Class that implements within a Markov chain the strategy for location
acceptance and local search decision making.
Parameters
----------
acceptance_param : float
Parameter for acceptance distribution. It is used to control the
probability of acceptance. ... | 5 | 1 | 29 | 1 | 24 | 5 | 7 | 0.49 | 0 | 2 | 0 | 0 | 4 | 13 | 4 | 4 | 152 | 9 | 96 | 30 | 90 | 47 | 82 | 29 | 77 | 14 | 0 | 5 | 29 |
321,990 | 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/optimize/_dual_annealing.py | scipy.optimize._dual_annealing.VisitingDistribution | from scipy.special import gammaln
import numpy as np
class VisitingDistribution:
"""
Class used to generate new coordinates based on the distorted
Cauchy-Lorentz distribution. Depending on the steps within the strategy
chain, the class implements the strategy for generating new location
changes.
... |
class VisitingDistribution:
'''
Class used to generate new coordinates based on the distorted
Cauchy-Lorentz distribution. Depending on the steps within the strategy
chain, the class implements the strategy for generating new location
changes.
Parameters
----------
lb : array_like
... | 4 | 3 | 25 | 2 | 18 | 5 | 2 | 0.66 | 0 | 0 | 0 | 0 | 3 | 11 | 3 | 3 | 107 | 11 | 58 | 29 | 54 | 38 | 47 | 29 | 43 | 5 | 0 | 2 | 7 |
321,991 | 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/optimize/_hessian_update_strategy.py | scipy.optimize._hessian_update_strategy.BFGS | import numpy as np
class BFGS(FullHessianUpdateStrategy):
"""Broyden-Fletcher-Goldfarb-Shanno (BFGS) Hessian update strategy.
Parameters
----------
exception_strategy : {'skip_update', 'damp_update'}, optional
Define how to proceed when the curvature condition is violated.
Set it to 's... |
class BFGS(FullHessianUpdateStrategy):
'''Broyden-Fletcher-Goldfarb-Shanno (BFGS) Hessian update strategy.
Parameters
----------
exception_strategy : {'skip_update', 'damp_update'}, optional
Define how to proceed when the curvature condition is violated.
Set it to 'skip_update' to just ... | 5 | 3 | 25 | 2 | 13 | 9 | 4 | 1.3 | 1 | 3 | 0 | 0 | 4 | 5 | 4 | 16 | 138 | 16 | 53 | 18 | 47 | 69 | 43 | 16 | 38 | 8 | 2 | 2 | 15 |
321,992 | 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/optimize/_hessian_update_strategy.py | scipy.optimize._hessian_update_strategy.FullHessianUpdateStrategy | from warnings import warn
from scipy.linalg import get_blas_funcs, issymmetric
import numpy as np
class FullHessianUpdateStrategy(HessianUpdateStrategy):
"""Hessian update strategy with full dimensional internal representation.
"""
_syr = get_blas_funcs('syr', dtype='d')
_syr2 = get_blas_funcs('syr2', ... |
class FullHessianUpdateStrategy(HessianUpdateStrategy):
'''Hessian update strategy with full dimensional internal representation.
'''
def __init__(self, init_scale='auto'):
pass
def initialize(self, n, approx_type):
'''Initialize internal matrix.
Allocate internal memory for s... | 8 | 5 | 23 | 1 | 13 | 9 | 4 | 0.67 | 1 | 6 | 0 | 2 | 7 | 6 | 7 | 12 | 176 | 17 | 97 | 27 | 89 | 65 | 75 | 26 | 67 | 13 | 1 | 3 | 25 |
321,993 | 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/optimize/_hessian_update_strategy.py | scipy.optimize._hessian_update_strategy.HessianUpdateStrategy | class HessianUpdateStrategy:
"""Interface for implementing Hessian update strategies.
Many optimization methods make use of Hessian (or inverse Hessian)
approximations, such as the quasi-Newton methods BFGS, SR1, L-BFGS.
Some of these approximations, however, do not actually need to store
the enti... | class HessianUpdateStrategy:
'''Interface for implementing Hessian update strategies.
Many optimization methods make use of Hessian (or inverse Hessian)
approximations, such as the quasi-Newton methods BFGS, SR1, L-BFGS.
Some of these approximations, however, do not actually need to store
the entir... | 6 | 5 | 13 | 1 | 3 | 9 | 1 | 4.27 | 0 | 1 | 0 | 1 | 5 | 0 | 5 | 5 | 94 | 15 | 15 | 6 | 9 | 64 | 11 | 6 | 5 | 1 | 0 | 0 | 5 |
321,994 | 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/optimize/_hessian_update_strategy.py | scipy.optimize._hessian_update_strategy.SR1 | from numpy.linalg import norm
import numpy as np
class SR1(FullHessianUpdateStrategy):
"""Symmetric-rank-1 Hessian update strategy.
Parameters
----------
min_denominator : float
This number, scaled by a normalization factor,
defines the minimum denominator magnitude allowed
in ... |
class SR1(FullHessianUpdateStrategy):
'''Symmetric-rank-1 Hessian update strategy.
Parameters
----------
min_denominator : float
This number, scaled by a normalization factor,
defines the minimum denominator magnitude allowed
in the update. When the condition is violated we skip... | 3 | 1 | 12 | 0 | 10 | 3 | 3 | 1.5 | 1 | 1 | 0 | 0 | 2 | 3 | 2 | 14 | 55 | 5 | 20 | 11 | 17 | 30 | 18 | 11 | 15 | 4 | 2 | 1 | 5 |
321,995 | 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/optimize/_lbfgsb_py.py | scipy.optimize._lbfgsb_py.LbfgsInvHessProduct | from scipy.sparse.linalg import LinearOperator
import numpy as np
class LbfgsInvHessProduct(LinearOperator):
"""Linear operator for the L-BFGS approximate inverse Hessian.
This operator computes the product of a vector with the approximate inverse
of the Hessian of the objective function, using the L-BFGS... |
class LbfgsInvHessProduct(LinearOperator):
'''Linear operator for the L-BFGS approximate inverse Hessian.
This operator computes the product of a vector with the approximate inverse
of the Hessian of the objective function, using the L-BFGS limited
memory approximation to the inverse Hessian, accumulat... | 5 | 5 | 23 | 5 | 10 | 9 | 3 | 1.36 | 1 | 3 | 0 | 0 | 4 | 6 | 4 | 32 | 122 | 30 | 39 | 23 | 34 | 53 | 39 | 23 | 34 | 4 | 1 | 1 | 10 |
321,996 | 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/optimize/_linesearch.py | scipy.optimize._linesearch.LineSearchWarning | class LineSearchWarning(RuntimeWarning):
pass | class LineSearchWarning(RuntimeWarning):
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 |
321,997 | 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/optimize/_lsq/least_squares.py | scipy.optimize._lsq.least_squares._WrapArgsKwargs | class _WrapArgsKwargs:
def __init__(self, f, args=(), kwargs=None):
self.f = f
self.args = args
self.kwargs = kwargs or {}
def __call__(self, x):
return self.f(x, *self.args, **self.kwargs) | class _WrapArgsKwargs:
def __init__(self, f, args=(), kwargs=None):
pass
def __call__(self, x):
pass | 3 | 0 | 3 | 0 | 3 | 0 | 1 | 0.14 | 0 | 0 | 0 | 0 | 2 | 3 | 2 | 2 | 9 | 1 | 7 | 6 | 4 | 1 | 7 | 6 | 4 | 1 | 0 | 0 | 2 |
321,998 | 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/optimize/_minimize.py | scipy.optimize._minimize._Patch_Callback_Equal_Variables | import numpy as np
class _Patch_Callback_Equal_Variables:
def __init__(self, callback, i_fixed, x_fixed):
self.callback = callback
self.i_fixed = i_fixed
self.x_fixed = x_fixed
def __call__(self, intermediate_result):
x_in = intermediate_result.x
x_out = np.zeros_like(... |
class _Patch_Callback_Equal_Variables:
def __init__(self, callback, i_fixed, x_fixed):
pass
def __call__(self, intermediate_result):
pass | 3 | 0 | 6 | 0 | 6 | 0 | 1 | 0.08 | 0 | 0 | 0 | 0 | 2 | 3 | 2 | 2 | 14 | 1 | 12 | 8 | 9 | 1 | 12 | 8 | 9 | 1 | 0 | 0 | 2 |
321,999 | 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/optimize/_minimize.py | scipy.optimize._minimize._Remove_From_Func | import numpy as np
class _Remove_From_Func:
"""Wraps a function such that fixed variables need not be passed in"""
def __init__(self, fun_in, i_fixed, x_fixed, min_dim=None, remove=0):
self.fun_in = fun_in
self.i_fixed = i_fixed
self.x_fixed = x_fixed
self.min_dim = min_dim
... |
class _Remove_From_Func:
'''Wraps a function such that fixed variables need not be passed in'''
def __init__(self, fun_in, i_fixed, x_fixed, min_dim=None, remove=0):
pass
def __call__(self, x_in, *args, **kwargs):
pass | 3 | 1 | 12 | 2 | 11 | 0 | 3 | 0.05 | 0 | 0 | 0 | 0 | 2 | 5 | 2 | 2 | 27 | 4 | 22 | 10 | 19 | 1 | 20 | 10 | 17 | 5 | 0 | 1 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.