project_name string | class_name string | class_modifiers string | class_implements int64 | class_extends int64 | function_name string | function_body string | cyclomatic_complexity int64 | NLOC int64 | num_parameter int64 | num_token int64 | num_variable int64 | start_line int64 | end_line int64 | function_index int64 | function_params string | function_variable string | function_return_type string | function_body_line_type string | function_num_functions int64 | function_num_lines int64 | outgoing_function_count int64 | outgoing_function_names string | incoming_function_count int64 | incoming_function_names string | lexical_representation string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
takluyver_pyxdg | public | public | 0 | 0 | __addXmlTextElement | def __addXmlTextElement(self, element, name, text):node = etree.SubElement(name, element)node.text = textreturn node | 1 | 4 | 4 | 28 | 0 | 397 | 400 | 397 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__addXmlTextElement) defined within the public class called public.The function start at line 397 and ends at 400. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [397.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __addXmlFilename | def __addXmlFilename(self, element, filename, type_="Include"):# remove old filenamesincludes = element.findall('Include')excludes = element.findall('Exclude')rules = includes + excludesfor rule in rules:#FIXME: this finds only Rules whose FIRST child is a Filename elementif rule[0].tag == "Filename" and rule[0].text =... | 4 | 10 | 4 | 86 | 0 | 402 | 422 | 402 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__addXmlFilename) defined within the public class called public.The function start at line 402 and ends at 422. It contains 10 lines of code and it has a cyclomatic complexity of 4. It takes 4 parameters, represented as [402.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __addXmlMove | def __addXmlMove(self, element, old, new):node = etree.SubElement("Move", element)self.__addXmlTextElement(node, 'Old', old)self.__addXmlTextElement(node, 'New', new)return node | 1 | 5 | 4 | 43 | 0 | 424 | 428 | 424 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__addXmlMove) defined within the public class called public.The function start at line 424 and ends at 428. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [424.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __addXmlLayout | def __addXmlLayout(self, element, layout):# remove old layoutfor node in element.findall("Layout"):element.remove(node)# add new layoutnode = etree.SubElement("Layout", element)for order in layout.order:if order[0] == "Separator":child = etree.SubElement("Separator", node)elif order[0] == "Filename":child = self.__addX... | 7 | 15 | 3 | 137 | 0 | 430 | 447 | 430 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__addXmlLayout) defined within the public class called public.The function start at line 430 and ends at 447. It contains 15 lines of code and it has a cyclomatic complexity of 7. It takes 3 parameters, represented as [430.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __addLayout | def __addLayout(self, parent):layout = Layout()layout.order = []layout.show_empty = parent.Layout.show_emptylayout.inline = parent.Layout.inlinelayout.inline_header = parent.Layout.inline_headerlayout.inline_alias = parent.Layout.inline_aliaslayout.inline_limit = parent.Layout.inline_limitlayout.order.append(["Merge", ... | 5 | 19 | 2 | 146 | 0 | 449 | 470 | 449 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__addLayout) defined within the public class called public.The function start at line 449 and ends at 470. It contains 19 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [449.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __addEntry | def __addEntry(self, parent, entry, after=None, before=None):if after or before:if after:index = parent.Entries.index(after) + 1elif before:index = parent.Entries.index(before)parent.Entries.insert(index, entry)else:parent.Entries.append(entry)xml_parent = self.__getXmlMenu(parent.getPath(True, True))if isinstance(entr... | 9 | 19 | 5 | 156 | 0 | 472 | 493 | 472 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__addEntry) defined within the public class called public.The function start at line 472 and ends at 493. It contains 19 lines of code and it has a cyclomatic complexity of 9. It takes 5 parameters, represented as [472.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __deleteEntry | def __deleteEntry(self, parent, entry, after=None, before=None):parent.Entries.remove(entry)xml_parent = self.__getXmlMenu(parent.getPath(True, True))if isinstance(entry, MenuEntry):entry.Parents.remove(parent)parent.MenuEntries.remove(entry)self.__addXmlFilename(xml_parent, entry.DesktopFileID, "Exclude")elif isinstan... | 5 | 12 | 5 | 113 | 0 | 495 | 509 | 495 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__deleteEntry) defined within the public class called public.The function start at line 495 and ends at 509. It contains 12 lines of code and it has a cyclomatic complexity of 5. It takes 5 parameters, represented as [495.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __deleteFile | def __deleteFile(self, filename):try:os.remove(filename)except OSError:passtry:self.filenames.remove(filename)except ValueError:pass | 3 | 9 | 2 | 33 | 0 | 511 | 519 | 511 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__deleteFile) defined within the public class called public.The function start at line 511 and ends at 519. It contains 9 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [511.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __remove_whitespace_nodes | def __remove_whitespace_nodes(self, node):for child in node:text = child.text.strip()if not text:child.text = ''tail = child.tail.strip()if not tail:child.tail = ''if len(child):self.__remove_whilespace_nodes(child) | 5 | 10 | 2 | 60 | 0 | 521 | 530 | 521 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__remove_whitespace_nodes) defined within the public class called public.The function start at line 521 and ends at 530. It contains 10 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [521.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __get_parent_node | def __get_parent_node(self, node):# elements in ElementTree doesn't hold a reference to their parentfor parent, child in self.__iter_parent():if child is node:return child | 3 | 4 | 2 | 25 | 0 | 532 | 536 | 532 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__get_parent_node) defined within the public class called public.The function start at line 532 and ends at 536. It contains 4 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [532.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __iter_parent | def __iter_parent(self):for parent in self.tree.getiterator():for child in parent:yield parent, child | 3 | 4 | 1 | 25 | 0 | 538 | 541 | 538 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__iter_parent) defined within the public class called public.The function start at line 538 and ends at 541. It contains 4 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | _get_node_data | def _get_node_data(node):"""Get text of XML node"""return ''.join([n.nodeValue for n in node.childNodes]).strip() | 2 | 2 | 1 | 27 | 0 | 45 | 47 | 45 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_get_node_data) defined within the public class called public.The function start at line 45 and ends at 47. It contains 2 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | lookup | def lookup(media, subtype = None):"""Get the MIMEtype object for the given type.This remains for backwards compatibility; calling MIMEtype now doesthe same thing.The name can either be passed as one part ('text/plain'), or as two('text', 'plain')."""return MIMEtype(media, subtype) | 1 | 2 | 2 | 17 | 0 | 49 | 58 | 49 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (lookup) defined within the public class called public.The function start at line 49 and ends at 58. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [49.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __new__ | def __new__(cls, media, subtype=None):if subtype is None and '/' in media:media, subtype = media.split('/', 1)assert '/' not in subtypemedia = media.lower()subtype = subtype.lower()try:return types[(media, subtype)]except KeyError:mtype = super(MIMEtype, cls).__new__(cls)mtype._init(media, subtype)types[(media, subtype... | 4 | 13 | 3 | 98 | 0 | 67 | 80 | 67 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__new__) defined within the public class called public.The function start at line 67 and ends at 80. It contains 13 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [67.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | _init | def _init(self, media, subtype):self.media = mediaself.subtype = subtypeself._comment = None | 1 | 4 | 3 | 24 | 0 | 85 | 88 | 85 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_init) defined within the public class called public.The function start at line 85 and ends at 88. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [85.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | _load | def _load(self):"Loads comment for current language. Use get_comment() instead."resource = os.path.join('mime', self.media, self.subtype + '.xml')for path in BaseDirectory.load_data_paths(resource):doc = minidom.parse(path)if doc is None:continuefor comment in doc.documentElement.getElementsByTagNameNS(FREE_NS, 'commen... | 7 | 13 | 1 | 117 | 0 | 90 | 102 | 90 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_load) defined within the public class called public.The function start at line 90 and ends at 102. It contains 13 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | get_comment | def get_comment(self):"""Returns comment for current language, loading it if needed."""# Should we ever reload?if self._comment is None:self._comment = (0, str(self))self._load()return self._comment[1] | 2 | 5 | 1 | 37 | 0 | 105 | 111 | 105 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_comment) defined within the public class called public.The function start at line 105 and ends at 111. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | canonical | def canonical(self):"""Returns the canonical MimeType object if this is an alias."""update_cache()s = str(self)if s in aliases:return lookup(aliases[s])return self | 2 | 6 | 1 | 30 | 0 | 113 | 119 | 113 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (canonical) defined within the public class called public.The function start at line 113 and ends at 119. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | inherits_from | def inherits_from(self):"""Returns a set of Mime types which this inherits from."""update_cache()return set(lookup(t) for t in inheritance[str(self)]) | 2 | 3 | 1 | 27 | 0 | 121 | 124 | 121 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (inherits_from) defined within the public class called public.The function start at line 121 and ends at 124. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __str__ | def __str__(self):return self.media + '/' + self.subtype | 1 | 2 | 1 | 15 | 0 | 126 | 127 | 126 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__str__) defined within the public class called public.The function start at line 126 and ends at 127. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __repr__ | def __repr__(self):return 'MIMEtype(%r, %r)' % (self.media, self.subtype) | 1 | 2 | 1 | 17 | 0 | 129 | 130 | 129 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__repr__) defined within the public class called public.The function start at line 129 and ends at 130. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __hash__ | def __hash__(self):return hash(self.media) ^ hash(self.subtype) | 1 | 2 | 1 | 19 | 0 | 132 | 133 | 132 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__hash__) defined within the public class called public.The function start at line 132 and ends at 133. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __init__ | def __init__(self, start, value, mask, word, range):self.start = startself.value = valueself.mask = maskself.word = wordself.range = range | 1 | 6 | 6 | 40 | 0 | 145 | 150 | 145 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 145 and ends at 150. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 6 parameters, represented as [145.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | from_file | def from_file(cls, f):"""Read a rule from the binary magics file. Returns a 2-tuple ofthe nesting depth and the MagicRule."""line = f.readline()#print line# [indent] '>'nest_depth, line = line.split(b'>', 1)nest_depth = int(nest_depth) if nest_depth else 0# start-offset '='start, line = line.split(b'=', 1)start = int(s... | 10 | 29 | 2 | 277 | 0 | 155 | 205 | 155 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (from_file) defined within the public class called public.The function start at line 155 and ends at 205. It contains 29 lines of code and it has a cyclomatic complexity of 10. It takes 2 parameters, represented as [155.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | maxlen | def maxlen(self):l = self.start + len(self.value) + self.rangeif self.also:return max(l, self.also.maxlen())return l | 2 | 5 | 1 | 41 | 0 | 207 | 211 | 207 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (maxlen) defined within the public class called public.The function start at line 207 and ends at 211. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | match | def match(self, buffer):if self.match0(buffer):if self.also:return self.also.match(buffer)return True | 3 | 5 | 2 | 31 | 0 | 213 | 217 | 213 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (match) defined within the public class called public.The function start at line 213 and ends at 217. It contains 5 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [213.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | match0 | def match0(self, buffer):l=len(buffer)lenvalue = len(self.value)for o in range(self.range):s=self.start+oe=s+lenvalueif l<e:return Falseif self.mask:test=''for i in range(lenvalue):if PY3:c = buffer[s+i] & self.mask[i]else:c = ord(buffer[s+i]) & ord(self.mask[i])test += chr(c)else:test = buffer[s:e]if test==self.value:... | 7 | 20 | 2 | 132 | 0 | 219 | 239 | 219 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (match0) defined within the public class called public.The function start at line 219 and ends at 239. It contains 20 lines of code and it has a cyclomatic complexity of 7. It takes 2 parameters, represented as [219.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __repr__ | def __repr__(self):return 'MagicRule(start=%r, value=%r, mask=%r, word=%r, range=%r)' %(self.start,self.value,self.mask,self.word,self.range) | 1 | 7 | 1 | 29 | 0 | 241 | 247 | 241 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__repr__) defined within the public class called public.The function start at line 241 and ends at 247. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __init__ | def __init__(self, rules):self.rules = rules | 1 | 2 | 2 | 12 | 0 | 256 | 257 | 256 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 256 and ends at 257. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [256.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | match | def match(self, buffer):return any(r.match(buffer) for r in self.rules) | 2 | 2 | 2 | 23 | 0 | 259 | 260 | 259 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (match) defined within the public class called public.The function start at line 259 and ends at 260. It contains 2 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [259.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | maxlen | def maxlen(self):return max(r.maxlen() for r in self.rules) | 2 | 2 | 1 | 20 | 0 | 262 | 263 | 262 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (maxlen) defined within the public class called public.The function start at line 262 and ends at 263. It contains 2 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | from_file | def from_file(cls, f):"""Read a set of rules from the binary magic file."""c=f.read(1)f.seek(-1, 1)depths_rules = []while c and c != b'[':try:depths_rules.append(MagicRule.from_file(f))except UnknownMagicRuleFormat:# Ignored to allow for extensions to the rule format.passc=f.read(1)if c:f.seek(-1, 1)# Build the rule tr... | 6 | 19 | 2 | 124 | 0 | 266 | 289 | 266 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (from_file) defined within the public class called public.The function start at line 266 and ends at 289. It contains 19 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [266.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | from_rule_tree | def from_rule_tree(cls, tree):"""From a nested list of (rule, subrules) pairs, build a MagicMatchAnyinstance, recursing down the tree.Where there's only one top-level rule, this is returned directly,to simplify the nested structure. Returns None if no rules were read."""rules = []for rule, subrules in tree:if subrules:... | 5 | 11 | 2 | 66 | 0 | 292 | 309 | 292 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (from_rule_tree) defined within the public class called public.The function start at line 292 and ends at 309. It contains 11 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [292.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __init__ | def __init__(self):self.bytype = defaultdict(list)# mimetype -> [(priority, rule), ...] | 1 | 2 | 1 | 13 | 0 | 312 | 313 | 312 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 312 and ends at 313. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | merge_file | def merge_file(self, fname):"""Read a magic binary file, and add its rules to this MagicDB."""with open(fname, 'rb') as f:line = f.readline()if line != b'MIME-Magic\0\n':raise IOError('Not a MIME magic file')while True:shead = f.readline().decode('ascii')#print(shead)if not shead:breakif shead[0] != '[' or shead[-2:] !... | 8 | 22 | 2 | 160 | 0 | 315 | 342 | 315 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (merge_file) defined within the public class called public.The function start at line 315 and ends at 342. It contains 22 lines of code and it has a cyclomatic complexity of 8. It takes 2 parameters, represented as [315.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | finalise | def finalise(self):"""Prepare the MagicDB for matching.This should be called after all rules have been merged into it."""maxlen = 0self.alltypes = []# (priority, mimetype, rule)for mtype, rules in self.bytype.items():for pri, rule in rules:self.alltypes.append((pri, mtype, rule))maxlen = max(maxlen, rule.maxlen())self.... | 3 | 9 | 1 | 86 | 0 | 344 | 358 | 344 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (finalise) defined within the public class called public.The function start at line 344 and ends at 358. It contains 9 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | match_data | def match_data(self, data, max_pri=100, min_pri=0, possible=None):"""Do magic sniffing on some bytes.max_pri & min_pri can be used to specify the maximum & minimum priorityrules to look for. possible can be a list of mimetypes to check, or None(the default) to check all mimetypes until one matches.Returns the MIMEtype ... | 8 | 16 | 5 | 111 | 0 | 360 | 386 | 360 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (match_data) defined within the public class called public.The function start at line 360 and ends at 386. It contains 16 lines of code and it has a cyclomatic complexity of 8. It takes 5 parameters, represented as [360.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | match | def match(self, path, max_pri=100, min_pri=0, possible=None):"""Read data from the file and do magic sniffing on it.max_pri & min_pri can be used to specify the maximum & minimum priorityrules to look for. possible can be a list of mimetypes to check, or None(the default) to check all mimetypes until one matches.Return... | 1 | 4 | 5 | 53 | 0 | 388 | 400 | 388 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (match) defined within the public class called public.The function start at line 388 and ends at 400. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [388.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __repr__ | def __repr__(self):return '<MagicDB (%d types)>' % len(self.alltypes) | 1 | 2 | 1 | 14 | 0 | 402 | 403 | 402 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__repr__) defined within the public class called public.The function start at line 402 and ends at 403. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __init__ | def __init__(self):"""Prepare the GlobDB. It can't actually be used until .finalise() iscalled, but merge_file() can be used to add data before that."""# Maps mimetype to {(weight, glob, flags), ...}self.allglobs = defaultdict(set) | 1 | 2 | 1 | 14 | 0 | 406 | 411 | 406 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 406 and ends at 411. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | merge_file | def merge_file(self, path):"""Loads name matching information from a globs2 file."""#allglobs = self.allglobswith open(path) as f:for line in f:if line.startswith('#'): continue # Commentfields = line[:-1].split(':')weight, type_name, pattern = fields[:3]weight = int(weight)mtype = lookup(type_name)if len(fields) > 3:f... | 5 | 17 | 2 | 128 | 0 | 413 | 434 | 413 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (merge_file) defined within the public class called public.The function start at line 413 and ends at 434. It contains 17 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [413.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | finalise | def finalise(self):"""Prepare the GlobDB for matching.This should be called after all files have been merged into it."""self.exts = defaultdict(list)# Maps extensions to [(type, weight),...]self.cased_exts = defaultdict(list)self.globs = []# List of (regex, type, weight) tripletsself.literals = {} # Maps literal names ... | 13 | 28 | 1 | 267 | 0 | 436 | 476 | 436 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (finalise) defined within the public class called public.The function start at line 436 and ends at 476. It contains 28 lines of code and it has a cyclomatic complexity of 13. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | first_match | def first_match(self, path):"""Return the first match found for a given path, or None if no matchis found."""try:return next(self._match_path(path))[0]except StopIteration:return None | 2 | 5 | 2 | 28 | 0 | 478 | 484 | 478 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (first_match) defined within the public class called public.The function start at line 478 and ends at 484. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [478.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | all_matches | def all_matches(self, path):"""Return a list of (MIMEtype, glob weight) pairs for the path."""return list(self._match_path(path)) | 1 | 2 | 2 | 18 | 0 | 486 | 488 | 486 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (all_matches) defined within the public class called public.The function start at line 486 and ends at 488. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [486.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | _match_path | def _match_path(self, path):"""Yields pairs of (mimetype, glob weight)."""leaf = os.path.basename(path)# Literals (no wildcards)if leaf in self.cased_literals:yield self.cased_literals[leaf]lleaf = leaf.lower()if lleaf in self.literals:yield self.literals[lleaf]# Extensionsext = leafwhile 1:p = ext.find('.')if p < 0: b... | 13 | 26 | 2 | 176 | 0 | 490 | 523 | 490 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_match_path) defined within the public class called public.The function start at line 490 and ends at 523. It contains 26 lines of code and it has a cyclomatic complexity of 13. It takes 2 parameters, represented as [490.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | _cache_database | def _cache_database():global globs, magic, aliases, inheritance, _cache_uptodate_cache_uptodate = Truealiases = {}# Maps alias Mime types to canonical namesinheritance = defaultdict(set) # Maps to sets of parent mime types.# Load aliasesfor path in BaseDirectory.load_data_paths(os.path.join('mime', 'aliases')):with ope... | 7 | 23 | 0 | 212 | 5 | 539 | 571 | 539 | null | ['_cache_uptodate', 'globs', 'magic', 'inheritance', 'aliases'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_cache_database) defined within the public class called public.The function start at line 539 and ends at 571. It contains 23 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | update_cache | def update_cache():if not _cache_uptodate:_cache_database() | 2 | 3 | 0 | 11 | 0 | 573 | 575 | 573 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (update_cache) defined within the public class called public.The function start at line 573 and ends at 575. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | get_type_by_name | def get_type_by_name(path):"""Returns type of file by its name, or None if not known"""update_cache()return globs.first_match(path) | 1 | 3 | 1 | 16 | 0 | 577 | 580 | 577 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_type_by_name) defined within the public class called public.The function start at line 577 and ends at 580. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | get_type_by_contents | def get_type_by_contents(path, max_pri=100, min_pri=0):"""Returns type of file by its contents, or None if not known"""update_cache()return magic.match(path, max_pri, min_pri) | 1 | 3 | 3 | 28 | 0 | 582 | 586 | 582 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_type_by_contents) defined within the public class called public.The function start at line 582 and ends at 586. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [582.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | get_type_by_data | def get_type_by_data(data, max_pri=100, min_pri=0):"""Returns type of the data, which should be bytes."""update_cache()return magic.match_data(data, max_pri, min_pri) | 1 | 3 | 3 | 28 | 0 | 588 | 592 | 588 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_type_by_data) defined within the public class called public.The function start at line 588 and ends at 592. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [588.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | _get_type_by_stat | def _get_type_by_stat(st_mode):"""Match special filesystem objects to Mimetypes."""if stat.S_ISDIR(st_mode): return inode_direlif stat.S_ISCHR(st_mode): return inode_charelif stat.S_ISBLK(st_mode): return inode_blockelif stat.S_ISFIFO(st_mode): return inode_fifoelif stat.S_ISLNK(st_mode): return inode_symlinkelif stat.... | 7 | 8 | 1 | 68 | 0 | 594 | 602 | 594 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_get_type_by_stat) defined within the public class called public.The function start at line 594 and ends at 602. It contains 8 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | get_type | def get_type(path, follow=True, name_pri=100):"""Returns type of file indicated by path.This function is *deprecated* - :func:`get_type2` is more accurate.:param path: pathname to check (need not exist):param follow: when reading file, follow symbolic links:param name_pri: Priority to do name matches. 100=override magi... | 9 | 22 | 3 | 130 | 2 | 604 | 639 | 604 | null | ['st', 't'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_type) defined within the public class called public.The function start at line 604 and ends at 639. It contains 22 lines of code and it has a cyclomatic complexity of 9. It takes 3 parameters, represented as [604.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | get_type2 | def get_type2(path, follow=True):"""Find the MIMEtype of a file using the XDG recommended checking order.This first checks the filename, then uses file contents if the name doesn'tgive an unambiguous MIMEtype. It can also handle special filesystem objectslike directories and sockets.:param path: file path to examine (n... | 15 | 34 | 2 | 222 | 6 | 641 | 694 | 641 | null | ['max_weight', 'st', 'i', 'possible', 't', 'mtypes'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_type2) defined within the public class called public.The function start at line 641 and ends at 694. It contains 34 lines of code and it has a cyclomatic complexity of 15. It takes 2 parameters, represented as [641.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | is_text_file | def is_text_file(path):"""Guess whether a file contains text or binary data.Heuristic: binary if the first 32 bytes include ASCII control characters.This rule may change in future versions... versionadded:: 1.0"""try:f = open(path, 'rb')except IOError:return Falsewith f:return _is_text(f.read(32)) | 2 | 7 | 1 | 34 | 1 | 696 | 710 | 696 | null | ['f'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (is_text_file) defined within the public class called public.The function start at line 696 and ends at 710. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | _is_text | def _is_text(data):return not any(b <= 0x8 or 0xe <= b < 0x20 or b == 0x7f for b in data) | 4 | 2 | 1 | 27 | 0 | 713 | 714 | 713 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_is_text) defined within the public class called public.The function start at line 713 and ends at 714. It contains 2 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | _is_text | def _is_text(data):return not any(b <= '\x08' or '\x0e' <= b < '\x20' or b == '\x7f' \for b in data) | 4 | 3 | 1 | 28 | 0 | 716 | 718 | 716 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_is_text) defined within the public class called public.The function start at line 716 and ends at 718. It contains 3 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | get_extensions | def get_extensions(mimetype):"""Retrieve the set of filename extensions matching a given MIMEtype.Extensions are returned without a leading dot, e.g. 'py'. If no extensionsare registered for the MIMEtype, returns an empty set.The extensions are stored in a cache the first time this is called... versionadded:: 1.0"""glo... | 4 | 10 | 1 | 60 | 2 | 723 | 742 | 723 | null | ['_mime2ext_cache_uptodate', '_mime2ext_cache'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_extensions) defined within the public class called public.The function start at line 723 and ends at 742. It contains 10 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | install_mime_info | def install_mime_info(application, package_file):"""Copy 'package_file' as ``~/.local/share/mime/packages/<application>.xml.``If package_file is None, install ``<app_dir>/<application>.xml``.If already installed, does nothing. May overwrite an existingfile with the same name (if the contents are different)"""applicatio... | 5 | 25 | 2 | 165 | 7 | 745 | 784 | 745 | null | ['package_dir', 'resource', '_cache_uptodate', 'new_file', 'command', 'old_data', 'new_data'] | None | null | 0 | 0 | 0 | null | 0 | null | The function (install_mime_info) defined within the public class called public.The function start at line 745 and ends at 784. It contains 25 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [745.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __init__ | def __init__(self):self.RecentFiles = []self.filename = "" | 1 | 3 | 1 | 16 | 0 | 11 | 13 | 11 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 11 and ends at 13. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | parse | def parse(self, filename=None):"""Parse a list of recently used files.filename defaults to ``~/.recently-used``."""if not filename:filename = os.path.join(os.getenv("HOME"), ".recently-used")try:doc = xml.dom.minidom.parse(filename)except IOError:raise ParsingError('File not found', filename)except xml.parsers.expat.Ex... | 10 | 18 | 2 | 141 | 0 | 15 | 40 | 15 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (parse) defined within the public class called public.The function start at line 15 and ends at 40. It contains 18 lines of code and it has a cyclomatic complexity of 10. It takes 2 parameters, represented as [15.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __parseRecentItem | def __parseRecentItem(self, item):recent = RecentFile()self.RecentFiles.append(recent)for attribute in item.childNodes:if attribute.nodeType == xml.dom.Node.ELEMENT_NODE:if attribute.tagName == "URI":recent.URI = attribute.childNodes[0].nodeValueelif attribute.tagName == "Mime-Type":recent.MimeType = attribute.childNod... | 11 | 18 | 2 | 161 | 0 | 42 | 61 | 42 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__parseRecentItem) defined within the public class called public.The function start at line 42 and ends at 61. It contains 18 lines of code and it has a cyclomatic complexity of 11. It takes 2 parameters, represented as [42.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | write | def write(self, filename=None):"""Write the list of recently used files to disk.If the instance is already associated with a file, filename can beomitted to save it there again."""if not filename and not self.filename:raise ParsingError('File not found', filename)elif not filename:filename = self.filenamewith open(file... | 8 | 24 | 2 | 191 | 0 | 63 | 94 | 63 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (write) defined within the public class called public.The function start at line 63 and ends at 94. It contains 24 lines of code and it has a cyclomatic complexity of 8. It takes 2 parameters, represented as [63.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | getFiles | def getFiles(self, mimetypes=None, groups=None, limit=0):"""Get a list of recently used files.The parameters can be used to filter by mime types, by group, or tolimit the number of items returned. By default, the entire list isreturned, except for items marked private."""tmp = []i = 0for item in self.RecentFiles:if gro... | 11 | 21 | 4 | 110 | 0 | 96 | 123 | 96 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (getFiles) defined within the public class called public.The function start at line 96 and ends at 123. It contains 21 lines of code and it has a cyclomatic complexity of 11. It takes 4 parameters, represented as [96.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | addFile | def addFile(self, item, mimetype, groups=None, private=False):"""Add a recently used file.item should be the URI of the file, typically starting with ``file:///``."""# check if entry already thereif item in self.RecentFiles:index = self.RecentFiles.index(item)recent = self.RecentFiles[index]else:# delete if more then 5... | 4 | 16 | 5 | 115 | 0 | 125 | 149 | 125 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (addFile) defined within the public class called public.The function start at line 125 and ends at 149. It contains 16 lines of code and it has a cyclomatic complexity of 4. It takes 5 parameters, represented as [125.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | deleteFile | def deleteFile(self, item):"""Remove a recently used file, by URI, from the list."""if item in self.RecentFiles:self.RecentFiles.remove(item) | 2 | 3 | 2 | 23 | 0 | 151 | 155 | 151 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (deleteFile) defined within the public class called public.The function start at line 151 and ends at 155. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [151.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | sort | def sort(self):self.RecentFiles.sort()self.RecentFiles.reverse() | 1 | 3 | 1 | 19 | 0 | 157 | 159 | 157 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (sort) defined within the public class called public.The function start at line 157 and ends at 159. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __init__ | def __init__(self):self.URI = ""self.MimeType = ""self.Timestamp = ""self.Private = Falseself.Groups = [] | 1 | 6 | 1 | 31 | 0 | 163 | 168 | 163 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__init__) defined within the public class called public.The function start at line 163 and ends at 168. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __cmp__ | def __cmp__(self, other):return cmp(self.Timestamp, other.Timestamp) | 1 | 2 | 2 | 18 | 0 | 170 | 171 | 170 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__cmp__) defined within the public class called public.The function start at line 170 and ends at 171. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [170.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __lt__ | def __lt__ (self, other):return self.Timestamp < other.Timestamp | 1 | 2 | 2 | 15 | 0 | 173 | 174 | 173 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__lt__) defined within the public class called public.The function start at line 173 and ends at 174. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [173.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __eq__ | def __eq__(self, other):return self.URI == str(other) | 1 | 2 | 2 | 16 | 0 | 176 | 177 | 176 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__eq__) defined within the public class called public.The function start at line 176 and ends at 177. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [176.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | __str__ | def __str__(self):return self.URI | 1 | 2 | 1 | 9 | 0 | 179 | 180 | 179 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (__str__) defined within the public class called public.The function start at line 179 and ends at 180. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | u | def u(s):return s | 1 | 2 | 1 | 7 | 0 | 6 | 7 | 6 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (u) defined within the public class called public.The function start at line 6 and ends at 7. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | u | def u(s):return s.decode('utf-8') | 1 | 2 | 1 | 12 | 0 | 10 | 11 | 10 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (u) defined within the public class called public.The function start at line 10 and ends at 11. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | which._access_check | def _access_check(fn, mode):return (os.path.exists(fn) and os.access(fn, mode)and not os.path.isdir(fn)) | 3 | 3 | 2 | 37 | 0 | 32 | 34 | 32 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (which._access_check) defined within the public class called public.The function start at line 32 and ends at 34. It contains 3 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [32.0] and does not return any value.. |
takluyver_pyxdg | public | public | 0 | 0 | which | def which(cmd, mode=os.F_OK | os.X_OK, path=None):"""Given a command, mode, and a PATH string, return the path whichconforms to the given mode on the PATH, or None if there is no suchfile.`mode` defaults to os.F_OK | os.X_OK. `path` defaults to the resultof os.environ.get("PATH"), or can be overridden with a custom sea... | 13 | 27 | 3 | 222 | 0 | 19 | 75 | 19 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (which) defined within the public class called public.The function start at line 19 and ends at 75. It contains 27 lines of code and it has a cyclomatic complexity of 13. It takes 3 parameters, represented as [19.0] and does not return any value.. |
maxmind_minfraud-api-python | HTTPError | public | 0 | 1 | __init__ | def __init__(self,message: str,http_status: int | None = None,uri: str | None = None,decoded_content: str | None = None,) -> None:"""Initialize an HTTPError instance."""super().__init__(message)self.http_status = http_statusself.uri = uriself.decoded_content = decoded_content | 1 | 11 | 5 | 60 | 0 | 34 | 45 | 34 | self,message,http_status,uri,decoded_content | [] | None | {"Assign": 3, "Expr": 2} | 2 | 12 | 2 | ["__init__", "super"] | 14,668 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called HTTPError, that inherit another class.The function start at line 34 and ends at 45. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [34.0] and does not return any value. It declares 2.0 functions, ... |
maxmind_minfraud-api-python | _Serializable | protected | 0 | 0 | __eq__ | def __eq__(self, other: object) -> bool:return isinstance(other, self.__class__) and self.to_dict() == other.to_dict() | 2 | 2 | 2 | 32 | 0 | 16 | 17 | 16 | self,other | [] | bool | {"Return": 1} | 3 | 2 | 3 | ["isinstance", "self.to_dict", "other.to_dict"] | 21 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.codec.ibm.ibm_py.DAM.__eq__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.codec.ibm.ibm_py.IDAM.__eq__", "_.content.gdrive.My... | The function (__eq__) defined within the protected class called _Serializable.The function start at line 16 and ends at 17. It contains 2 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [16.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions cal... |
maxmind_minfraud-api-python | _Serializable | protected | 0 | 0 | __ne__ | def __ne__(self, other: object) -> bool:return not self.__eq__(other) | 1 | 2 | 2 | 19 | 0 | 19 | 20 | 19 | self,other | [] | bool | {"Return": 1} | 1 | 2 | 1 | ["self.__eq__"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77633761_canimus_cuallee.cuallee.daft_validation_py.Compute.not_contained_in"] | The function (__ne__) defined within the protected class called _Serializable.The function start at line 19 and ends at 20. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [19.0] and does not return any value. It declare 1.0 function, It has 1.0 function called... |
maxmind_minfraud-api-python | _Serializable | protected | 0 | 0 | __hash__ | def __hash__(self) -> int:# This is not particularly efficient, but I don't expect it to be used much.return hash(json.dumps(self.to_dict(), sort_keys=True)) | 1 | 2 | 1 | 25 | 0 | 22 | 24 | 22 | self | [] | int | {"Return": 1} | 3 | 3 | 3 | ["hash", "json.dumps", "self.to_dict"] | 6 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3922186_flacjacket_pywlroots.wlroots.__init___py.Ptr.__hash__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3955243_msiemens_tinydb.tinydb.queries_py.Query.__hash__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_C... | The function (__hash__) defined within the protected class called _Serializable.The function start at line 22 and ends at 24. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions call... |
maxmind_minfraud-api-python | _Serializable | protected | 0 | 0 | to_dict | def to_dict(self) -> dict:# noqa: C901"""Return a dict of the object suitable for serialization."""result = {}for key, value in self.__dict__.items():if hasattr(value, "to_dict") and callable(value.to_dict):if d := value.to_dict():result[key] = delif isinstance(value, list):ls = []for e in value:if hasattr(e, "to_dict"... | 13 | 19 | 1 | 137 | 0 | 26 | 45 | 26 | self | [] | dict | {"Assign": 5, "Expr": 3, "For": 2, "If": 8, "Return": 1} | 10 | 20 | 10 | ["self.__dict__.items", "hasattr", "callable", "value.to_dict", "isinstance", "hasattr", "callable", "e.to_dict", "ls.append", "ls.append"] | 370 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3598540_saltstack_salt_testing.salttesting.runtests_py.SaltRuntests.__transplant_configs__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3622998_skycoin_pyskycoin.lib.skyapi.skyapi.models.address_py.Address.to_dic... | The function (to_dict) defined within the protected class called _Serializable.The function start at line 26 and ends at 45. It contains 19 lines of code and it has a cyclomatic complexity of 13. The function does not take any parameters and does not return any value. It declares 10.0 functions, It has 10.0 functions c... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self,code: str | None = None,reason: str | None = None,) -> None:"""Initialize an IPRiskReason instance."""self.code = codeself.reason = reason | 1 | 7 | 3 | 35 | 0 | 79 | 86 | 79 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 79 and ends at 86. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [79.0] and does not return any value. It has 14667.0 functions ... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self, *args, **kwargs) -> None:# noqa: ANN002"""Initialize a GeoIP2Location instance."""self.local_time = kwargs.get("local_time")super().__init__(*args, **kwargs) | 1 | 3 | 3 | 36 | 0 | 103 | 106 | 103 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 103 and ends at 106. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [103.0] and does not return any value. It has 14667.0 functio... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self,locales: Sequence[str] | None,*,country: dict | None = None,location: dict | None = None,risk: float | None = None,risk_reasons: list[dict] | None = None,**kwargs,) -> None:"""Initialize an IPAddress instance."""# For raw attributeif country is not None:kwargs["country"] = countryif location is not No... | 8 | 22 | 7 | 154 | 0 | 130 | 154 | 130 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 130 and ends at 154. It contains 22 lines of code and it has a cyclomatic complexity of 8. It takes 7 parameters, represented as [130.0] and does not return any value. It has 14667.0 functi... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self, *, risk: float | None = None, **_) -> None:"""Initialize a ScoreIPAddress instance."""self.risk = risk | 1 | 2 | 3 | 26 | 0 | 164 | 166 | 164 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 164 and ends at 166. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [164.0] and does not return any value. It has 14667.0 functio... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self,*,name: str | None = None,matches_provided_name: bool | None = None,phone_number: str | None = None,matches_provided_phone_number: bool | None = None,**_,) -> None:"""Initialize an Issuer instance."""self.name = nameself.matches_provided_name = matches_provided_nameself.phone_number = phone_numberself... | 1 | 13 | 6 | 66 | 0 | 193 | 206 | 193 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 193 and ends at 206. It contains 13 lines of code and it has a cyclomatic complexity of 1. It takes 6 parameters, represented as [193.0] and does not return any value. It has 14667.0 functi... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self,*,name: str | None = None,matches_provided_name: bool | None = None,phone_number: str | None = None,matches_provided_phone_number: bool | None = None,**_,) -> None:"""Initialize an Issuer instance."""self.name = nameself.matches_provided_name = matches_provided_nameself.phone_number = phone_numberself... | 1 | 13 | 6 | 66 | 0 | 235 | 248 | 193 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 235 and ends at 248. It contains 13 lines of code and it has a cyclomatic complexity of 1. It takes 6 parameters, represented as [193.0] and does not return any value. It has 14667.0 functi... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self,*,action: str | None = None,reason: str | None = None,rule_label: str | None = None,**_,) -> None:"""Initialize a Disposition instance."""self.action = actionself.reason = reasonself.rule_label = rule_label | 1 | 11 | 5 | 53 | 0 | 274 | 285 | 274 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 274 and ends at 285. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [274.0] and does not return any value. It has 14667.0 functi... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self, *, risk: float | None = None, **_) -> None:"""Initialize a ScoreIPAddress instance."""self.risk = risk | 1 | 2 | 3 | 26 | 0 | 296 | 298 | 164 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 296 and ends at 298. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [164.0] and does not return any value. It has 14667.0 functio... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self,domain: dict | None = None,first_seen: str | None = None,is_disposable: bool | None = None,# noqa: FBT001is_free: bool | None = None,# noqa: FBT001is_high_risk: bool | None = None,# noqa: FBT001) -> None:"""Initialize an Email instance."""self.domain = EmailDomain(**(domain or {}))self.first_seen = fi... | 2 | 13 | 6 | 83 | 0 | 326 | 339 | 326 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 326 and ends at 339. It contains 13 lines of code and it has a cyclomatic complexity of 2. It takes 6 parameters, represented as [326.0] and does not return any value. It has 14667.0 functi... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self,issuer: dict | None = None,country: str | None = None,brand: str | None = None,is_business: bool | None = None,# noqa: FBT001is_issued_in_billing_address_country: bool | None = None,# noqa: FBT001is_prepaid: bool | None = None,# noqa: FBT001is_virtual: bool | None = None,# noqa: FBT001type: str | None... | 2 | 19 | 9 | 122 | 0 | 379 | 398 | 379 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 379 and ends at 398. It contains 19 lines of code and it has a cyclomatic complexity of 2. It takes 9 parameters, represented as [379.0] and does not return any value. It has 14667.0 functi... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self,*,is_postal_in_city: bool | None = None,latitude: float | None = None,longitude: float | None = None,distance_to_ip_location: int | None = None,is_in_ip_country: bool | None = None,**_,) -> None:"""Initialize a BillingAddress instance."""self.is_postal_in_city = is_postal_in_cityself.latitude = latitu... | 1 | 15 | 7 | 79 | 0 | 427 | 442 | 427 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 427 and ends at 442. It contains 15 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [427.0] and does not return any value. It has 14667.0 functi... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self,*,is_postal_in_city: bool | None = None,latitude: float | None = None,longitude: float | None = None,distance_to_ip_location: int | None = None,is_in_ip_country: bool | None = None,is_high_risk: bool | None = None,distance_to_billing_address: int | None = None,**_,) -> None:"""Initialize a ShippingAdd... | 1 | 19 | 9 | 105 | 0 | 480 | 499 | 480 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 480 and ends at 499. It contains 19 lines of code and it has a cyclomatic complexity of 1. It takes 9 parameters, represented as [480.0] and does not return any value. It has 14667.0 functi... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self,*,is_postal_in_city: bool | None = None,latitude: float | None = None,longitude: float | None = None,distance_to_ip_location: int | None = None,is_in_ip_country: bool | None = None,**_,) -> None:"""Initialize a BillingAddress instance."""self.is_postal_in_city = is_postal_in_cityself.latitude = latitu... | 1 | 15 | 7 | 79 | 0 | 533 | 548 | 427 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 533 and ends at 548. It contains 15 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [427.0] and does not return any value. It has 14667.0 functi... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self,*,action: str | None = None,reason: str | None = None,rule_label: str | None = None,**_,) -> None:"""Initialize a Disposition instance."""self.action = actionself.reason = reasonself.rule_label = rule_label | 1 | 11 | 5 | 53 | 0 | 570 | 581 | 274 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 570 and ends at 581. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [274.0] and does not return any value. It has 14667.0 functi... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self,*,avs_result: float | None = None,billing_address: float | None = None,billing_address_distance_to_ip_location: float | None = None,browser: float | None = None,chargeback: float | None = None,country: float | None = None,country_mismatch: float | None = None,cvv_result: float | None = None,device: fl... | 1 | 49 | 22 | 278 | 0 | 697 | 746 | 697 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 697 and ends at 746. It contains 49 lines of code and it has a cyclomatic complexity of 1. It takes 22 parameters, represented as [697.0] and does not return any value. It has 14667.0 funct... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self,*,code: str | None = None,reason: str | None = None,**_,) -> None:"""Initialize a Reason instance."""self.code = codeself.reason = reason | 1 | 9 | 4 | 40 | 0 | 829 | 838 | 829 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 829 and ends at 838. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [829.0] and does not return any value. It has 14667.0 functio... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self,*,multiplier: float,reasons: list | None = None,**_,) -> None:"""Initialize a RiskScoreReason instance."""self.multiplier = multiplierself.reasons = [Reason(**x) for x in reasons or []] | 3 | 9 | 4 | 49 | 0 | 854 | 863 | 854 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 854 and ends at 863. It contains 9 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [854.0] and does not return any value. It has 14667.0 functio... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self,locales: Sequence[str],*,billing_address: dict | None = None,billing_phone: dict | None = None,credit_card: dict | None = None,disposition: dict | None = None,funds_remaining: float,device: dict | None = None,email: dict | None = None,id: str,ip_address: dict | None = None,queries_remaining: int,risk_... | 15 | 40 | 19 | 337 | 0 | 947 | 987 | 947 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 947 and ends at 987. It contains 40 lines of code and it has a cyclomatic complexity of 15. It takes 19 parameters, represented as [947.0] and does not return any value. It has 14667.0 func... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self,locales: Sequence[str],*,billing_address: dict | None = None,billing_phone: dict | None = None,credit_card: dict | None = None,device: dict | None = None,disposition: dict | None = None,email: dict | None = None,funds_remaining: float,id: str,ip_address: dict | None = None,queries_remaining: int,risk_... | 12 | 34 | 17 | 286 | 0 | 1,055 | 1,089 | 1,055 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 1055 and ends at 1089. It contains 34 lines of code and it has a cyclomatic complexity of 12. It takes 17 parameters, represented as [1055.0] and does not return any value. It has 14667.0 f... |
maxmind_minfraud-api-python | IPRiskReason | public | 0 | 1 | __init__ | def __init__(self,*,disposition: dict | None = None,funds_remaining: float,id: str,ip_address: dict | None = None,queries_remaining: int,risk_score: float,warnings: list[dict] | None = None,**_,) -> None:"""Initialize a Score instance."""self.disposition = Disposition(**(disposition or {}))self.funds_remaining = funds_... | 5 | 19 | 9 | 123 | 0 | 1,128 | 1,147 | 1,128 | self,code,reason | [] | None | {"Assign": 2, "Expr": 1} | 0 | 8 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called IPRiskReason, that inherit another class.The function start at line 1128 and ends at 1147. It contains 19 lines of code and it has a cyclomatic complexity of 5. It takes 9 parameters, represented as [1128.0] and does not return any value. It has 14667.0 fun... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.