i
int64
0
599
src_path
stringlengths
12
12
pyc_path
stringlengths
13
13
input
stringlengths
363
29.3k
expected
stringlengths
82
9.32k
provenance
dict
license
dict
csn_repo
stringclasses
117 values
csn_func
stringlengths
2
53
n_instr
int64
19
1.62k
has_annotation
bool
2 classes
500
src/00500.py
pyc/00500.pyc
CODE <module>() RESUME 0 LOAD_CONST <code move_after> MAKE_FUNCTION 0 STORE_NAME move_after RETURN_CONST None END CODE move_after(self, node_id) DOC 'pass' RESUME 0 LOAD_GLOBAL Session LOAD_ATTR NULL|self + object_session LOAD_FAST self CALL 1 STORE_FAST session LOAD_FAST self LOAD_ATTR pare...
def move_after(self, node_id): """pass""" session = Session.object_session(self) self.parent_id = self.parent_id self.mptt_move_after = node_id session.add(self)
{ "repo": "uralbash/sqlalchemy_mptt", "repo_url": "https://github.com/uralbash/sqlalchemy_mptt", "file_path": "sqlalchemy_mptt/mixins.py", "commit_sha": "2971c9fa49bbeaa3e2fb96229d933ceae450b319", "func_name": "BaseNestedSets.move_after", "line_start": 166, "line_end": 174, "permalink": "https://github....
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "a73581adf7eee2704fcd14cc30764b2a012c49c0", "resolved_at_commit": "2971c9fa49bbeaa3e2fb96229d933ceae450b319", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
uralbash/sqlalchemy_mptt
BaseNestedSets.move_after
28
false
501
src/00501.py
pyc/00501.pyc
CODE <module>() RESUME 0 LOAD_CONST (None, None, 600) LOAD_CONST <code make_request> MAKE_FUNCTION defaults STORE_NAME make_request RETURN_CONST None END CODE make_request(cls, url, method, params, basic_auth, timeout) DOC 'pass' RESUME 0 LOAD_FAST params POP_JUMP_IF_NOT_NONE L1 BUILD_MAP 0 JUMP...
def make_request(cls, url, method, params=None, basic_auth=None, timeout=600): """pass""" params = {} if params is None else params cls.request_id += 1 params = {k: v for k, v in params.items() if v is not None} data = {'method': method, 'params': params, 'jsonrpc': '2.0', 'id': cls.request_id} ...
{ "repo": "osilkin98/PyBRY", "repo_url": "https://github.com/osilkin98/PyBRY", "file_path": "pybry/base_api.py", "commit_sha": "af86805a8077916f72f3fe980943d4cd741e61f0", "func_name": "BaseApi.make_request", "line_start": 29, "line_end": 99, "permalink": "https://github.com/osilkin98/PyBRY/blob/af86805a...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "c1795a4bc8b2624ab6ff0f4f86abc20b230024d5", "resolved_at_commit": "af86805a8077916f72f3fe980943d4cd741e61f0", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
osilkin98/PyBRY
BaseApi.make_request
203
false
502
src/00502.py
pyc/00502.pyc
CODE <module>() DOC 'info' RESUME 0 LOAD_CONST 'info' LOAD_NAME dict LOAD_CONST 'return' LOAD_NAME dict BUILD_TUPLE 4 LOAD_CONST <code adjust_status> MAKE_FUNCTION annotations STORE_NAME adjust_status RETURN_CONST None END CODE adjust_status(info) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + deepc...
def adjust_status(info: dict) -> dict: """pass""" modified_info = deepcopy(info) modified_info.update({'level': get_nearest_by_numeric_key(STATUS_MAP, int(info['level'])), 'level2': STATUS_MAP[99] if info['level2'] is None else get_nearest_by_numeric_key(STATUS_MAP, int(info['level2']))}) return modifie...
{ "repo": "bachya/pyflunearyou", "repo_url": "https://github.com/bachya/pyflunearyou", "file_path": "pyflunearyou/cdc.py", "commit_sha": "16a2f839c8df851e925e010a6b5c5708386febac", "func_name": "adjust_status", "line_start": 23, "line_end": 34, "permalink": "https://github.com/bachya/pyflunearyou/blob/1...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "27c0e583b6e79d5d1993b6fa2d61d425725bb2fe", "resolved_at_commit": "16a2f839c8df851e925e010a6b5c5708386febac", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
bachya/pyflunearyou
adjust_status
54
true
503
src/00503.py
pyc/00503.pyc
CODE <module>() DOC 'latitude' RESUME 0 LOAD_CONST 'latitude' LOAD_NAME float LOAD_CONST 'longitude' LOAD_NAME float LOAD_CONST 'return' LOAD_NAME dict BUILD_TUPLE 6 LOAD_CONST <code status_by_coordinates> MAKE_FUNCTION annotations STORE_NAME status_by_coordinates RETURN_CONST None END CODE st...
async def status_by_coordinates(self, latitude: float, longitude: float) -> dict: """pass""" cdc_data = await self.raw_cdc_data() nearest = await self.nearest_by_coordinates(latitude, longitude) return adjust_status(cdc_data[nearest['state']['name']])
{ "repo": "bachya/pyflunearyou", "repo_url": "https://github.com/bachya/pyflunearyou", "file_path": "pyflunearyou/cdc.py", "commit_sha": "16a2f839c8df851e925e010a6b5c5708386febac", "func_name": "CdcReport.status_by_coordinates", "line_start": 51, "line_end": 56, "permalink": "https://github.com/bachya/p...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "27c0e583b6e79d5d1993b6fa2d61d425725bb2fe", "resolved_at_commit": "16a2f839c8df851e925e010a6b5c5708386febac", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
bachya/pyflunearyou
CdcReport.status_by_coordinates
80
true
504
src/00504.py
pyc/00504.pyc
CODE <module>() DOC 'state' RESUME 0 LOAD_CONST 'state' LOAD_NAME str LOAD_CONST 'return' LOAD_NAME dict BUILD_TUPLE 4 LOAD_CONST <code status_by_state> MAKE_FUNCTION annotations STORE_NAME status_by_state RETURN_CONST None END CODE status_by_state(self, state) DOC 'pass' MAKE_CELL state RET...
async def status_by_state(self, state: str) -> dict: """pass""" data = await self.raw_cdc_data() try: info = next((v for k, v in data.items() if state in k)) except StopIteration: return {} return adjust_status(info)
{ "repo": "bachya/pyflunearyou", "repo_url": "https://github.com/bachya/pyflunearyou", "file_path": "pyflunearyou/cdc.py", "commit_sha": "16a2f839c8df851e925e010a6b5c5708386febac", "func_name": "CdcReport.status_by_state", "line_start": 58, "line_end": 67, "permalink": "https://github.com/bachya/pyflune...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "27c0e583b6e79d5d1993b6fa2d61d425725bb2fe", "resolved_at_commit": "16a2f839c8df851e925e010a6b5c5708386febac", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
bachya/pyflunearyou
CdcReport.status_by_state
121
true
505
src/00505.py
pyc/00505.pyc
CODE <module>() RESUME 0 LOAD_CONST <code insert> MAKE_FUNCTION 0 STORE_NAME insert RETURN_CONST None END CODE insert(self, **kwargs) DOC 'pass' RESUME 0 LOAD_FAST self LOAD_ATTR is_valid POP_JUMP_IF_FALSE L4 LOAD_FAST self LOAD_ATTR NULL|self + before_insert CALL 0 STORE_FAST before LOAD_...
def insert(self, **kwargs): """pass""" if self.is_valid: before = self.before_insert() if before: return before try: self._document['_id'] = self.insert_one(self._document) self.after_insert() return self._document except PyMongoExc...
{ "repo": "lvieirajr/mongorest", "repo_url": "https://github.com/lvieirajr/mongorest", "file_path": "mongorest/collection.py", "commit_sha": "00f4487ded33254434bc51ff09d48c7a936bd465", "func_name": "Collection.insert", "line_start": 159, "line_end": 184, "permalink": "https://github.com/lvieirajr/mongor...
{ "spdx": "BSD-3-Clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "file": "LICENSE.txt", "blob_sha": "fdd37cbe5059629e8a87757e3dd3c182c2f35cdf", "resolved_at_commit": "00f4487ded33254434bc51ff09d48c7a936bd465", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
lvieirajr/mongorest
Collection.insert
97
false
506
src/00506.py
pyc/00506.pyc
CODE <module>() RESUME 0 LOAD_CONST <code update> MAKE_FUNCTION 0 STORE_NAME update RETURN_CONST None END CODE update(self, **kwargs) DOC 'pass' RESUME 0 LOAD_FAST self LOAD_ATTR is_valid POP_JUMP_IF_FALSE L6 LOAD_CONST '_id' LOAD_FAST self LOAD_ATTR _document CONTAINS_OP 0 POP_JUMP_IF_FAL...
def update(self, **kwargs): """pass""" if self.is_valid: if '_id' in self._document: to_update = self.find_one({'_id': self._id}) if to_update: before = self.before_update(old=to_update) if before: return before ...
{ "repo": "lvieirajr/mongorest", "repo_url": "https://github.com/lvieirajr/mongorest", "file_path": "mongorest/collection.py", "commit_sha": "00f4487ded33254434bc51ff09d48c7a936bd465", "func_name": "Collection.update", "line_start": 187, "line_end": 225, "permalink": "https://github.com/lvieirajr/mongor...
{ "spdx": "BSD-3-Clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "file": "LICENSE.txt", "blob_sha": "fdd37cbe5059629e8a87757e3dd3c182c2f35cdf", "resolved_at_commit": "00f4487ded33254434bc51ff09d48c7a936bd465", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
lvieirajr/mongorest
Collection.update
137
false
507
src/00507.py
pyc/00507.pyc
CODE <module>() RESUME 0 LOAD_CONST <code delete> MAKE_FUNCTION 0 STORE_NAME delete RETURN_CONST None END CODE delete(self, **kwargs) DOC 'pass' RESUME 0 LOAD_FAST self LOAD_ATTR is_valid POP_JUMP_IF_FALSE L6 LOAD_CONST '_id' LOAD_FAST self LOAD_ATTR _document CONTAINS_OP 0 POP_JUMP_IF_FAL...
def delete(self, **kwargs): """pass""" if self.is_valid: if '_id' in self._document: to_delete = self.find_one({'_id': self._id}) if to_delete: before = self.before_delete() if before: return before try: ...
{ "repo": "lvieirajr/mongorest", "repo_url": "https://github.com/lvieirajr/mongorest", "file_path": "mongorest/collection.py", "commit_sha": "00f4487ded33254434bc51ff09d48c7a936bd465", "func_name": "Collection.delete", "line_start": 228, "line_end": 262, "permalink": "https://github.com/lvieirajr/mongor...
{ "spdx": "BSD-3-Clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "file": "LICENSE.txt", "blob_sha": "fdd37cbe5059629e8a87757e3dd3c182c2f35cdf", "resolved_at_commit": "00f4487ded33254434bc51ff09d48c7a936bd465", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
lvieirajr/mongorest
Collection.delete
129
false
508
src/00508.py
pyc/00508.pyc
CODE <module>() RESUME 0 LOAD_CONST (None,) LOAD_CONST <code find_one> MAKE_FUNCTION defaults STORE_NAME find_one RETURN_CONST None END CODE find_one(cls, filter, *args, **kwargs) DOC 'pass' RESUME 0 PUSH_NULL LOAD_FAST cls LOAD_ATTR collection LOAD_ATTR find_one LOAD_FAST filter BUILD_LIST ...
def find_one(cls, filter=None, *args, **kwargs): """pass""" return cls.collection.find_one(filter, *args, **kwargs)
{ "repo": "lvieirajr/mongorest", "repo_url": "https://github.com/lvieirajr/mongorest", "file_path": "mongorest/collection.py", "commit_sha": "00f4487ded33254434bc51ff09d48c7a936bd465", "func_name": "Collection.find_one", "line_start": 266, "line_end": 271, "permalink": "https://github.com/lvieirajr/mong...
{ "spdx": "BSD-3-Clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "file": "LICENSE.txt", "blob_sha": "fdd37cbe5059629e8a87757e3dd3c182c2f35cdf", "resolved_at_commit": "00f4487ded33254434bc51ff09d48c7a936bd465", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
lvieirajr/mongorest
Collection.find_one
25
false
509
src/00509.py
pyc/00509.pyc
CODE <module>() RESUME 0 LOAD_CONST <code find> MAKE_FUNCTION 0 STORE_NAME find RETURN_CONST None END CODE find(cls, *args, **kwargs) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + list PUSH_NULL LOAD_FAST cls LOAD_ATTR collection LOAD_ATTR find LOAD_FAST args BUILD_MAP 0 LOAD_FAST kwargs DICT_M...
def find(cls, *args, **kwargs): """pass""" return list(cls.collection.find(*args, **kwargs))
{ "repo": "lvieirajr/mongorest", "repo_url": "https://github.com/lvieirajr/mongorest", "file_path": "mongorest/collection.py", "commit_sha": "00f4487ded33254434bc51ff09d48c7a936bd465", "func_name": "Collection.find", "line_start": 275, "line_end": 279, "permalink": "https://github.com/lvieirajr/mongores...
{ "spdx": "BSD-3-Clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "file": "LICENSE.txt", "blob_sha": "fdd37cbe5059629e8a87757e3dd3c182c2f35cdf", "resolved_at_commit": "00f4487ded33254434bc51ff09d48c7a936bd465", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
lvieirajr/mongorest
Collection.find
22
false
510
src/00510.py
pyc/00510.pyc
CODE <module>() RESUME 0 LOAD_CONST (None,) LOAD_CONST <code aggregate> MAKE_FUNCTION defaults STORE_NAME aggregate RETURN_CONST None END CODE aggregate(cls, pipeline, **kwargs) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + list PUSH_NULL LOAD_FAST cls LOAD_ATTR collection LOAD_ATTR aggregate LOAD_...
def aggregate(cls, pipeline=None, **kwargs): """pass""" return list(cls.collection.aggregate(pipeline or [], **kwargs))
{ "repo": "lvieirajr/mongorest", "repo_url": "https://github.com/lvieirajr/mongorest", "file_path": "mongorest/collection.py", "commit_sha": "00f4487ded33254434bc51ff09d48c7a936bd465", "func_name": "Collection.aggregate", "line_start": 283, "line_end": 287, "permalink": "https://github.com/lvieirajr/mon...
{ "spdx": "BSD-3-Clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "file": "LICENSE.txt", "blob_sha": "fdd37cbe5059629e8a87757e3dd3c182c2f35cdf", "resolved_at_commit": "00f4487ded33254434bc51ff09d48c7a936bd465", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
lvieirajr/mongorest
Collection.aggregate
29
false
511
src/00511.py
pyc/00511.pyc
CODE <module>() DOC 'fn' RESUME 0 LOAD_CONST 'fn' LOAD_NAME str LOAD_CONST 'return' LOAD_NAME Iterator LOAD_NAME Statement BINARY_SUBSCR BUILD_TUPLE 4 LOAD_CONST <code in_file> MAKE_FUNCTION annotations STORE_NAME in_file RETURN_CONST None END CODE in_file(self, fn) DOC 'pass' RETURN_GENER...
def in_file(self, fn: str) -> Iterator[Statement]: """pass""" yield from self.__file_to_statements.get(fn, [])
{ "repo": "ChrisTimperley/Kaskara", "repo_url": "https://github.com/ChrisTimperley/Kaskara", "file_path": "python/kaskara/statements.py", "commit_sha": "3d182d95b2938508e5990eddd30321be15e2f2ef", "func_name": "StatementDB.in_file", "line_start": 128, "line_end": 132, "permalink": "https://github.com/Chr...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64", "resolved_at_commit": "3d182d95b2938508e5990eddd30321be15e2f2ef", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
ChrisTimperley/Kaskara
StatementDB.in_file
50
true
512
src/00512.py
pyc/00512.pyc
CODE <module>() DOC 'line' RESUME 0 LOAD_CONST 'line' LOAD_NAME FileLine LOAD_CONST 'return' LOAD_NAME Iterator LOAD_NAME Statement BINARY_SUBSCR BUILD_TUPLE 4 LOAD_CONST <code at_line> MAKE_FUNCTION annotations STORE_NAME at_line RETURN_CONST None END CODE at_line(self, line) DOC 'pass' R...
def at_line(self, line: FileLine) -> Iterator[Statement]: """pass""" num = line.num for stmt in self.in_file(line.filename): if stmt.location.start.line == num: yield stmt
{ "repo": "ChrisTimperley/Kaskara", "repo_url": "https://github.com/ChrisTimperley/Kaskara", "file_path": "python/kaskara/statements.py", "commit_sha": "3d182d95b2938508e5990eddd30321be15e2f2ef", "func_name": "StatementDB.at_line", "line_start": 134, "line_end": 141, "permalink": "https://github.com/Chr...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64", "resolved_at_commit": "3d182d95b2938508e5990eddd30321be15e2f2ef", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
ChrisTimperley/Kaskara
StatementDB.at_line
56
true
513
src/00513.py
pyc/00513.pyc
CODE <module>() RESUME 0 LOAD_CONST (70,) LOAD_CONST <code wrap> MAKE_FUNCTION defaults STORE_NAME wrap RETURN_CONST None END CODE wrap(text, width, **kwargs) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + ParagraphWrapper LOAD_CONST () LOAD_CONST 'width' LOAD_FAST width BUILD_MAP 1 LOAD_FAST kwargs...
def wrap(text, width=70, **kwargs): """pass""" w = ParagraphWrapper(width=width, **kwargs) return w.wrap(text)
{ "repo": "ecometrica/parawrap", "repo_url": "https://github.com/ecometrica/parawrap", "file_path": "parawrap.py", "commit_sha": "6523763f58045b8a98bac24a9438062ea856e5ae", "func_name": "wrap", "line_start": 62, "line_end": 73, "permalink": "https://github.com/ecometrica/parawrap/blob/6523763f58045b8a98...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "d645695673349e3947e8e5ae42332d0ac3164cd7", "resolved_at_commit": "6523763f58045b8a98bac24a9438062ea856e5ae", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
ecometrica/parawrap
wrap
25
false
514
src/00514.py
pyc/00514.pyc
CODE <module>() RESUME 0 LOAD_CONST (70,) LOAD_CONST <code fill> MAKE_FUNCTION defaults STORE_NAME fill RETURN_CONST None END CODE fill(text, width, **kwargs) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + ParagraphWrapper LOAD_CONST () LOAD_CONST 'width' LOAD_FAST width BUILD_MAP 1 LOAD_FAST kwargs...
def fill(text, width=70, **kwargs): """pass""" w = ParagraphWrapper(width=width, **kwargs) return w.fill(text)
{ "repo": "ecometrica/parawrap", "repo_url": "https://github.com/ecometrica/parawrap", "file_path": "parawrap.py", "commit_sha": "6523763f58045b8a98bac24a9438062ea856e5ae", "func_name": "fill", "line_start": 76, "line_end": 86, "permalink": "https://github.com/ecometrica/parawrap/blob/6523763f58045b8a98...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "d645695673349e3947e8e5ae42332d0ac3164cd7", "resolved_at_commit": "6523763f58045b8a98bac24a9438062ea856e5ae", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
ecometrica/parawrap
fill
25
false
515
src/00515.py
pyc/00515.pyc
CODE <module>() RESUME 0 LOAD_CONST <code split> MAKE_FUNCTION 0 STORE_NAME split RETURN_CONST None END CODE split(cls, text) DOC 'pass' RESUME 0 LOAD_FAST cls LOAD_ATTR parasep_re LOAD_ATTR NULL|self + split LOAD_FAST text CALL 1 GET_ITER LOAD_FAST_AND_CLEAR line SWAP 2 L1: BUILD_LIST 0...
def split(cls, text): """pass""" result = [line.strip('\n') for line in cls.parasep_re.split(text)] if result == ['', '']: result = [''] return result
{ "repo": "ecometrica/parawrap", "repo_url": "https://github.com/ecometrica/parawrap", "file_path": "parawrap.py", "commit_sha": "6523763f58045b8a98bac24a9438062ea856e5ae", "func_name": "ParagraphWrapper.split", "line_start": 21, "line_end": 30, "permalink": "https://github.com/ecometrica/parawrap/blob/...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "d645695673349e3947e8e5ae42332d0ac3164cd7", "resolved_at_commit": "6523763f58045b8a98bac24a9438062ea856e5ae", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
ecometrica/parawrap
ParagraphWrapper.split
54
false
516
src/00516.py
pyc/00516.pyc
CODE <module>() RESUME 0 LOAD_CONST <code wrap> MAKE_FUNCTION 0 STORE_NAME wrap RETURN_CONST None END CODE wrap(self, text) DOC 'pass' RESUME 0 BUILD_LIST 0 STORE_FAST lines LOAD_GLOBAL NULL + partial LOAD_GLOBAL textwrap LOAD_ATTR TextWrapper LOAD_ATTR wrap LOAD_FAST self CALL 2 STORE_F...
def wrap(self, text): """pass""" lines = [] linewrap = partial(textwrap.TextWrapper.wrap, self) for para in self.split(text): lines.extend(linewrap(para)) lines.append('') lines = lines[:-1] return lines
{ "repo": "ecometrica/parawrap", "repo_url": "https://github.com/ecometrica/parawrap", "file_path": "parawrap.py", "commit_sha": "6523763f58045b8a98bac24a9438062ea856e5ae", "func_name": "ParagraphWrapper.wrap", "line_start": 32, "line_end": 51, "permalink": "https://github.com/ecometrica/parawrap/blob/6...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "d645695673349e3947e8e5ae42332d0ac3164cd7", "resolved_at_commit": "6523763f58045b8a98bac24a9438062ea856e5ae", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
ecometrica/parawrap
ParagraphWrapper.wrap
50
false
517
src/00517.py
pyc/00517.pyc
CODE <module>() RESUME 0 LOAD_CONST <code getSenderNumberMgtURL> MAKE_FUNCTION 0 STORE_NAME getSenderNumberMgtURL RETURN_CONST None END CODE getSenderNumberMgtURL(self, CorpNum, UserID) DOC 'pass' RESUME 0 LOAD_FAST self LOAD_ATTR NULL|self + _httpget LOAD_CONST '/FAX/?TG=SENDER' LOAD_FAST CorpNum...
def getSenderNumberMgtURL(self, CorpNum, UserID): """pass""" result = self._httpget('/FAX/?TG=SENDER', CorpNum, UserID) return result.url
{ "repo": "linkhub-sdk/popbill.py", "repo_url": "https://github.com/linkhub-sdk/popbill.py", "file_path": "popbill/faxService.py", "commit_sha": "68a0dd7f7a937603318e93be321fde73c50b96cc", "func_name": "FaxService.getSenderNumberMgtURL", "line_start": 70, "line_end": 81, "permalink": "https://github.com...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.md", "blob_sha": "fba83706679d0e92636d5fd9a1ef4f20da75db2e", "resolved_at_commit": "68a0dd7f7a937603318e93be321fde73c50b96cc", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
linkhub-sdk/popbill.py
FaxService.getSenderNumberMgtURL
20
false
518
src/00518.py
pyc/00518.pyc
CODE <module>() RESUME 0 LOAD_CONST <code getUnitCost> MAKE_FUNCTION 0 STORE_NAME getUnitCost RETURN_CONST None END CODE getUnitCost(self, CorpNum) DOC 'pass' RESUME 0 LOAD_FAST self LOAD_ATTR NULL|self + _httpget LOAD_CONST '/FAX/UnitCost' LOAD_FAST CorpNum CALL 2 STORE_FAST result LOAD_GLO...
def getUnitCost(self, CorpNum): """pass""" result = self._httpget('/FAX/UnitCost', CorpNum) return int(result.unitCost)
{ "repo": "linkhub-sdk/popbill.py", "repo_url": "https://github.com/linkhub-sdk/popbill.py", "file_path": "popbill/faxService.py", "commit_sha": "68a0dd7f7a937603318e93be321fde73c50b96cc", "func_name": "FaxService.getUnitCost", "line_start": 83, "line_end": 94, "permalink": "https://github.com/linkhub-s...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.md", "blob_sha": "fba83706679d0e92636d5fd9a1ef4f20da75db2e", "resolved_at_commit": "68a0dd7f7a937603318e93be321fde73c50b96cc", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
linkhub-sdk/popbill.py
FaxService.getUnitCost
21
false
519
src/00519.py
pyc/00519.pyc
CODE <module>() RESUME 0 LOAD_CONST (None,) LOAD_CONST <code getFaxResult> MAKE_FUNCTION defaults STORE_NAME getFaxResult RETURN_CONST None END CODE getFaxResult(self, CorpNum, ReceiptNum, UserID) DOC 'pass' RESUME 0 LOAD_FAST ReceiptNum LOAD_CONST None COMPARE_OP == POP_JUMP_IF_TRUE L1 LOAD_G...
def getFaxResult(self, CorpNum, ReceiptNum, UserID=None): """pass""" if ReceiptNum == None or len(ReceiptNum) != 18: raise PopbillException(-99999999, '접수번호가 올바르지 않습니다.') return self._httpget('/FAX/' + ReceiptNum, CorpNum, UserID)
{ "repo": "linkhub-sdk/popbill.py", "repo_url": "https://github.com/linkhub-sdk/popbill.py", "file_path": "popbill/faxService.py", "commit_sha": "68a0dd7f7a937603318e93be321fde73c50b96cc", "func_name": "FaxService.getFaxResult", "line_start": 138, "line_end": 153, "permalink": "https://github.com/linkhu...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.md", "blob_sha": "fba83706679d0e92636d5fd9a1ef4f20da75db2e", "resolved_at_commit": "68a0dd7f7a937603318e93be321fde73c50b96cc", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
linkhub-sdk/popbill.py
FaxService.getFaxResult
37
false
520
src/00520.py
pyc/00520.pyc
CODE <module>() RESUME 0 LOAD_CONST (None,) LOAD_CONST <code getFaxResultRN> MAKE_FUNCTION defaults STORE_NAME getFaxResultRN RETURN_CONST None END CODE getFaxResultRN(self, CorpNum, RequestNum, UserID) DOC 'pass' RESUME 0 LOAD_FAST RequestNum LOAD_CONST None COMPARE_OP == POP_JUMP_IF_TRUE L1 ...
def getFaxResultRN(self, CorpNum, RequestNum, UserID=None): """pass""" if RequestNum == None or RequestNum == '': raise PopbillException(-99999999, '요청번호가 입력되지 않았습니다.') return self._httpget('/FAX/Get/' + RequestNum, CorpNum, UserID)
{ "repo": "linkhub-sdk/popbill.py", "repo_url": "https://github.com/linkhub-sdk/popbill.py", "file_path": "popbill/faxService.py", "commit_sha": "68a0dd7f7a937603318e93be321fde73c50b96cc", "func_name": "FaxService.getFaxResultRN", "line_start": 155, "line_end": 170, "permalink": "https://github.com/link...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.md", "blob_sha": "fba83706679d0e92636d5fd9a1ef4f20da75db2e", "resolved_at_commit": "68a0dd7f7a937603318e93be321fde73c50b96cc", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
linkhub-sdk/popbill.py
FaxService.getFaxResultRN
35
false
521
src/00521.py
pyc/00521.pyc
CODE <module>() RESUME 0 LOAD_CONST (None, None, None, False, None, None) LOAD_CONST <code sendFax> MAKE_FUNCTION defaults STORE_NAME sendFax RETURN_CONST None END CODE sendFax(self, CorpNum, SenderNum, ReceiverNum, ReceiverName, FilePath, ReserveDT, UserID, SenderName, adsYN, title, RequestNum) DOC 'pass...
def sendFax(self, CorpNum, SenderNum, ReceiverNum, ReceiverName, FilePath, ReserveDT=None, UserID=None, SenderName=None, adsYN=False, title=None, RequestNum=None): """pass""" receivers = [] receivers.append(FaxReceiver(receiveNum=ReceiverNum, receiveName=ReceiverName)) return self.sendFax_multi(CorpNum,...
{ "repo": "linkhub-sdk/popbill.py", "repo_url": "https://github.com/linkhub-sdk/popbill.py", "file_path": "popbill/faxService.py", "commit_sha": "68a0dd7f7a937603318e93be321fde73c50b96cc", "func_name": "FaxService.sendFax", "line_start": 206, "line_end": 232, "permalink": "https://github.com/linkhub-sdk...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.md", "blob_sha": "fba83706679d0e92636d5fd9a1ef4f20da75db2e", "resolved_at_commit": "68a0dd7f7a937603318e93be321fde73c50b96cc", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
linkhub-sdk/popbill.py
FaxService.sendFax
36
false
522
src/00522.py
pyc/00522.pyc
CODE <module>() RESUME 0 LOAD_CONST (None, None, None, False, None, None) LOAD_CONST <code sendFax_multi> MAKE_FUNCTION defaults STORE_NAME sendFax_multi RETURN_CONST None END CODE sendFax_multi(self, CorpNum, SenderNum, Receiver, FilePath, ReserveDT, UserID, SenderName, adsYN, title, RequestNum) DOC 'pas...
def sendFax_multi(self, CorpNum, SenderNum, Receiver, FilePath, ReserveDT=None, UserID=None, SenderName=None, adsYN=False, title=None, RequestNum=None): """pass""" if SenderNum == None or SenderNum == '': raise PopbillException(-99999999, '발신자 번호가 입력되지 않았습니다.') if Receiver == None: raise Pop...
{ "repo": "linkhub-sdk/popbill.py", "repo_url": "https://github.com/linkhub-sdk/popbill.py", "file_path": "popbill/faxService.py", "commit_sha": "68a0dd7f7a937603318e93be321fde73c50b96cc", "func_name": "FaxService.sendFax_multi", "line_start": 234, "line_end": 306, "permalink": "https://github.com/linkh...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.md", "blob_sha": "fba83706679d0e92636d5fd9a1ef4f20da75db2e", "resolved_at_commit": "68a0dd7f7a937603318e93be321fde73c50b96cc", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
linkhub-sdk/popbill.py
FaxService.sendFax_multi
290
false
523
src/00523.py
pyc/00523.pyc
CODE <module>() RESUME 0 LOAD_CONST <code model_node> MAKE_FUNCTION 0 STORE_NAME model_node RETURN_CONST None END CODE model_node(**kwargs) DOC 'pass' MAKE_CELL kwargs RESUME 0 LOAD_DEREF kwargs LOAD_ATTR NULL|self + setdefault LOAD_CONST 'default' BUILD_MAP 0 CALL 2 POP_TOP LOAD_CLOSURE k...
def model_node(**kwargs): """pass""" kwargs.setdefault('default', {}) def decorator(model): return types.ModelType(model, **kwargs) return decorator
{ "repo": "olivier-m/rafter", "repo_url": "https://github.com/olivier-m/rafter", "file_path": "rafter/contrib/schematics/helpers.py", "commit_sha": "aafcf8fd019f24abcf519307c4484cc6b4697c04", "func_name": "model_node", "line_start": 11, "line_end": 44, "permalink": "https://github.com/olivier-m/rafter/b...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "b455726a96157e72fad5bfdff4fbfc7cb94d3593", "resolved_at_commit": "aafcf8fd019f24abcf519307c4484cc6b4697c04", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
olivier-m/rafter
model_node
37
false
524
src/00524.py
pyc/00524.pyc
CODE <module>() DOC 'latitude' RESUME 0 LOAD_CONST 'latitude' LOAD_NAME float LOAD_CONST 'longitude' LOAD_NAME float LOAD_CONST 'return' LOAD_NAME dict BUILD_TUPLE 6 LOAD_CONST <code status_by_coordinates> MAKE_FUNCTION annotations STORE_NAME status_by_coordinates RETURN_CONST None END CODE st...
async def status_by_coordinates(self, latitude: float, longitude: float) -> dict: """pass""" return await self.nearest_by_coordinates(latitude, longitude)
{ "repo": "bachya/pyflunearyou", "repo_url": "https://github.com/bachya/pyflunearyou", "file_path": "pyflunearyou/user.py", "commit_sha": "16a2f839c8df851e925e010a6b5c5708386febac", "func_name": "UserReport.status_by_coordinates", "line_start": 12, "line_end": 15, "permalink": "https://github.com/bachya...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "27c0e583b6e79d5d1993b6fa2d61d425725bb2fe", "resolved_at_commit": "16a2f839c8df851e925e010a6b5c5708386febac", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
bachya/pyflunearyou
UserReport.status_by_coordinates
48
true
525
src/00525.py
pyc/00525.pyc
CODE <module>() DOC 'zip_code' RESUME 0 LOAD_CONST 'zip_code' LOAD_NAME str LOAD_CONST 'return' LOAD_NAME dict BUILD_TUPLE 4 LOAD_CONST <code status_by_zip> MAKE_FUNCTION annotations STORE_NAME status_by_zip RETURN_CONST None END CODE status_by_zip(self, zip_code) DOC 'pass' MAKE_CELL zip_code...
async def status_by_zip(self, zip_code: str) -> dict: """pass""" try: location = next((d for d in await self.user_reports() if d['zip'] == zip_code)) except StopIteration: return {} return await self.status_by_coordinates(float(location['latitude']), float(location['longitude']))
{ "repo": "bachya/pyflunearyou", "repo_url": "https://github.com/bachya/pyflunearyou", "file_path": "pyflunearyou/user.py", "commit_sha": "16a2f839c8df851e925e010a6b5c5708386febac", "func_name": "UserReport.status_by_zip", "line_start": 17, "line_end": 27, "permalink": "https://github.com/bachya/pyflune...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "27c0e583b6e79d5d1993b6fa2d61d425725bb2fe", "resolved_at_commit": "16a2f839c8df851e925e010a6b5c5708386febac", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
bachya/pyflunearyou
UserReport.status_by_zip
146
true
526
src/00526.py
pyc/00526.pyc
CODE <module>() RESUME 0 LOAD_CONST <code print_request> MAKE_FUNCTION 0 STORE_NAME print_request RETURN_CONST None END CODE print_request(request) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + print LOAD_CONST '{}\n{}\n{}\n\n{}' LOAD_ATTR NULL|self + format LOAD_CONST '-----------START-----------' LOA...
def print_request(request): """pass""" print('{}\n{}\n{}\n\n{}'.format('-----------START-----------', request.method + ' ' + request.url, '\n'.join(('{}: {}'.format(k, v) for k, v in request.headers.items())), request.body))
{ "repo": "osilkin98/PyBRY", "repo_url": "https://github.com/osilkin98/PyBRY", "file_path": "pybry/LBRYException.py", "commit_sha": "af86805a8077916f72f3fe980943d4cd741e61f0", "func_name": "print_request", "line_start": 3, "line_end": 14, "permalink": "https://github.com/osilkin98/PyBRY/blob/af86805a807...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "c1795a4bc8b2624ab6ff0f4f86abc20b230024d5", "resolved_at_commit": "af86805a8077916f72f3fe980943d4cd741e61f0", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
osilkin98/PyBRY
print_request
67
false
527
src/00527.py
pyc/00527.pyc
CODE <module>() RESUME 0 LOAD_CONST <code filter_validate_schemas> MAKE_FUNCTION 0 STORE_NAME filter_validate_schemas RETURN_CONST None END CODE filter_validate_schemas(get_response, params) DOC 'pass' MAKE_CELL get_response MAKE_CELL _convert_params MAKE_CELL request_schema RESUME 0 LOAD_FAST par...
def filter_validate_schemas(get_response, params): """pass""" request_schema = params.get('request_schema') if request_schema is None: return get_response def _convert_params(schema, data): for sc in schema.fields.values(): name = sc.serialized_name or sc.name va...
{ "repo": "olivier-m/rafter", "repo_url": "https://github.com/olivier-m/rafter", "file_path": "rafter/contrib/schematics/filters.py", "commit_sha": "aafcf8fd019f24abcf519307c4484cc6b4697c04", "func_name": "filter_validate_schemas", "line_start": 25, "line_end": 88, "permalink": "https://github.com/olivi...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "b455726a96157e72fad5bfdff4fbfc7cb94d3593", "resolved_at_commit": "aafcf8fd019f24abcf519307c4484cc6b4697c04", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
olivier-m/rafter
filter_validate_schemas
258
false
528
src/00528.py
pyc/00528.pyc
CODE <module>() RESUME 0 LOAD_CONST <code filter_validate_response> MAKE_FUNCTION 0 STORE_NAME filter_validate_response RETURN_CONST None END CODE filter_validate_response(get_response, params) DOC 'pass' MAKE_CELL get_response MAKE_CELL schema RESUME 0 LOAD_FAST params LOAD_ATTR NULL|self + get ...
def filter_validate_response(get_response, params): """pass""" schema = params.get('response_schema') async def decorated_filter(request, *args, **kwargs): response = await get_response(request, *args, **kwargs) if isinstance(response, HTTPResponse) and (not isinstance(response, Response)):...
{ "repo": "olivier-m/rafter", "repo_url": "https://github.com/olivier-m/rafter", "file_path": "rafter/contrib/schematics/filters.py", "commit_sha": "aafcf8fd019f24abcf519307c4484cc6b4697c04", "func_name": "filter_validate_response", "line_start": 91, "line_end": 142, "permalink": "https://github.com/oli...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "b455726a96157e72fad5bfdff4fbfc7cb94d3593", "resolved_at_commit": "aafcf8fd019f24abcf519307c4484cc6b4697c04", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
olivier-m/rafter
filter_validate_response
181
false
529
src/00529.py
pyc/00529.pyc
CODE <module>() RESUME 0 LOAD_CONST (True,) LOAD_CONST <code _write_int> MAKE_FUNCTION defaults STORE_NAME _write_int RETURN_CONST None END CODE _write_int(fname, data, append) DOC 'pass' RESUME 0 LOAD_GLOBAL pexdoc LOAD_ATTR exh LOAD_ATTR NULL|self + addex LOAD_GLOBAL ValueError LOAD_CONST 'T...
def _write_int(fname, data, append=True): """pass""" data_ex = pexdoc.exh.addex(ValueError, 'There is no data to save to file') fos_ex = pexdoc.exh.addex(OSError, 'File *[fname]* could not be created: *[reason]*') data_ex(len(data) == 0 or (len(data) == 1 and len(data[0]) == 0)) try: pmisc.m...
{ "repo": "pmacosta/pcsv", "repo_url": "https://github.com/pmacosta/pcsv", "file_path": "pcsv/write.py", "commit_sha": "cd1588c19b0cd58c38bc672e396db940f88ffbd7", "func_name": "_write_int", "line_start": 37, "line_end": 55, "permalink": "https://github.com/pmacosta/pcsv/blob/cd1588c19b0cd58c38bc672e396d...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "f90a6744f8f200e495e7b3133f0bec1bb5311f64", "resolved_at_commit": "cd1588c19b0cd58c38bc672e396db940f88ffbd7", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
pmacosta/pcsv
_write_int
215
false
530
src/00530.py
pyc/00530.pyc
CODE <module>() RESUME 0 LOAD_NAME defaults LOAD_ATTR RADIUS LOAD_CONST False LOAD_CONST False LOAD_CONST False BUILD_TUPLE 4 LOAD_CONST <code revdocs2reverts> MAKE_FUNCTION defaults STORE_NAME revdocs2reverts RETURN_CONST None END CODE revdocs2reverts(rev_docs, radius, use_sha1, resort, verbose) ...
def revdocs2reverts(rev_docs, radius=defaults.RADIUS, use_sha1=False, resort=False, verbose=False): """pass""" page_rev_docs = groupby(rev_docs, lambda rd: rd.get('page')) for page_doc, rev_docs in page_rev_docs: if verbose: sys.stderr.write(page_doc.get('title') + ': ') sys....
{ "repo": "mediawiki-utilities/python-mwreverts", "repo_url": "https://github.com/mediawiki-utilities/python-mwreverts", "file_path": "mwreverts/utilities/revdocs2reverts.py", "commit_sha": "d379ac941e14e235ad82a48bd445a3dfa6cc022e", "func_name": "revdocs2reverts", "line_start": 54, "line_end": 114, "pe...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "e16ad2122bf70c8a6fa17dcc593d1ce236cbd37a", "resolved_at_commit": "d379ac941e14e235ad82a48bd445a3dfa6cc022e", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
mediawiki-utilities/python-mwreverts
revdocs2reverts
243
false
531
src/00531.py
pyc/00531.pyc
CODE <module>() RESUME 0 LOAD_CONST (True, 0, None) LOAD_CONST <code dsort> MAKE_FUNCTION defaults STORE_NAME dsort RETURN_CONST None END CODE dsort(fname, order, has_header, frow, ofname) DOC 'pass' RESUME 0 LOAD_FAST ofname POP_JUMP_IF_NOT_NONE L1 LOAD_FAST fname JUMP_FORWARD L2 L1: LOAD_FAS...
def dsort(fname, order, has_header=True, frow=0, ofname=None): """pass""" ofname = fname if ofname is None else ofname obj = CsvFile(fname=fname, has_header=has_header, frow=frow) obj.dsort(order) obj.write(fname=ofname, header=has_header, append=False)
{ "repo": "pmacosta/pcsv", "repo_url": "https://github.com/pmacosta/pcsv", "file_path": "pcsv/dsort.py", "commit_sha": "cd1588c19b0cd58c38bc672e396db940f88ffbd7", "func_name": "dsort", "line_start": 37, "line_end": 93, "permalink": "https://github.com/pmacosta/pcsv/blob/cd1588c19b0cd58c38bc672e396db940f...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "f90a6744f8f200e495e7b3133f0bec1bb5311f64", "resolved_at_commit": "cd1588c19b0cd58c38bc672e396db940f88ffbd7", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
pmacosta/pcsv
dsort
40
false
532
src/00532.py
pyc/00532.pyc
CODE <module>() DOC 'return' RESUME 0 LOAD_CONST ('return', None) LOAD_CONST <code main> MAKE_FUNCTION annotations STORE_NAME main RETURN_CONST None END CODE main() DOC 'pass' RETURN_GENERATOR POP_TOP L1: RESUME 0 LOAD_GLOBAL logging LOAD_ATTR NULL|self + basicConfig LOAD_GLOBAL logging LO...
async def main() -> None: """pass""" logging.basicConfig(level=logging.INFO) async with ClientSession() as websession: try: client = Client(websession) user_coord_resp = await client.user_reports.status_by_coordinates(LATITUDE, LONGITUDE) _LOGGER.info('User data b...
{ "repo": "bachya/pyflunearyou", "repo_url": "https://github.com/bachya/pyflunearyou", "file_path": "example.py", "commit_sha": "16a2f839c8df851e925e010a6b5c5708386febac", "func_name": "main", "line_start": 18, "line_end": 50, "permalink": "https://github.com/bachya/pyflunearyou/blob/16a2f839c8df851e925...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "27c0e583b6e79d5d1993b6fa2d61d425725bb2fe", "resolved_at_commit": "16a2f839c8df851e925e010a6b5c5708386febac", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
bachya/pyflunearyou
main
279
true
533
src/00533.py
pyc/00533.pyc
CODE <module>() RESUME 0 LOAD_CONST (None, 600) LOAD_CONST <code call> MAKE_FUNCTION defaults STORE_NAME call RETURN_CONST None END CODE call(cls, method, params, timeout) DOC 'pass' RESUME 0 LOAD_FAST params POP_JUMP_IF_NOT_NONE L1 BUILD_LIST 0 JUMP_FORWARD L2 L1: LOAD_FAST params L2: STORE...
def call(cls, method, params=None, timeout=600): """pass""" params = [] if params is None else params return cls.make_request(SERVER_ADDRESS, method, params, timeout=timeout)
{ "repo": "osilkin98/PyBRY", "repo_url": "https://github.com/osilkin98/PyBRY", "file_path": "pybry/lbryd_api.py", "commit_sha": "af86805a8077916f72f3fe980943d4cd741e61f0", "func_name": "LbryApi.call", "line_start": 14, "line_end": 28, "permalink": "https://github.com/osilkin98/PyBRY/blob/af86805a8077916...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "c1795a4bc8b2624ab6ff0f4f86abc20b230024d5", "resolved_at_commit": "af86805a8077916f72f3fe980943d4cd741e61f0", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
osilkin98/PyBRY
LbryApi.call
28
false
534
src/00534.py
pyc/00534.pyc
CODE <module>() RESUME 0 LOAD_CONST (None, None, True, True, 0, 0, None, None) LOAD_CONST <code concatenate> MAKE_FUNCTION defaults STORE_NAME concatenate RETURN_CONST None END CODE concatenate(fname1, fname2, dfilter1, dfilter2, has_header1, has_header2, frow1, frow2, ofname, ocols) DOC 'pass' RESUME 0...
def concatenate(fname1, fname2, dfilter1=None, dfilter2=None, has_header1=True, has_header2=True, frow1=0, frow2=0, ofname=None, ocols=None): """pass""" iro = pexdoc.exh.addex(RuntimeError, 'Files have different number of columns') iom = pexdoc.exh.addex(RuntimeError, 'Number of columns in data files and ou...
{ "repo": "pmacosta/pcsv", "repo_url": "https://github.com/pmacosta/pcsv", "file_path": "pcsv/concatenate.py", "commit_sha": "cd1588c19b0cd58c38bc672e396db940f88ffbd7", "func_name": "concatenate", "line_start": 46, "line_end": 179, "permalink": "https://github.com/pmacosta/pcsv/blob/cd1588c19b0cd58c38bc...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "f90a6744f8f200e495e7b3133f0bec1bb5311f64", "resolved_at_commit": "cd1588c19b0cd58c38bc672e396db940f88ffbd7", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
pmacosta/pcsv
concatenate
164
false
535
src/00535.py
pyc/00535.pyc
CODE <module>() DOC 'GET' RESUME 0 PUSH_NULL LOAD_NAME frozenset LOAD_CONST 'GET' BUILD_SET 1 CALL 1 LOAD_CONST None LOAD_CONST None LOAD_CONST False LOAD_CONST None LOAD_CONST None BUILD_TUPLE 6 LOAD_CONST <code resource> MAKE_FUNCTION defaults STORE_NAME resource RETURN_CONST None EN...
def resource(self, uri, methods=frozenset({'GET'}), host=None, strict_slashes=None, stream=False, version=None, name=None, **kwargs): """pass""" if strict_slashes is None: strict_slashes = self.strict_slashes def decorator(handler): self.resources.append((FutureRoute(handler, uri, methods, ...
{ "repo": "olivier-m/rafter", "repo_url": "https://github.com/olivier-m/rafter", "file_path": "rafter/blueprints.py", "commit_sha": "aafcf8fd019f24abcf519307c4484cc6b4697c04", "func_name": "Blueprint.resource", "line_start": 46, "line_end": 72, "permalink": "https://github.com/olivier-m/rafter/blob/aafc...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "b455726a96157e72fad5bfdff4fbfc7cb94d3593", "resolved_at_commit": "aafcf8fd019f24abcf519307c4484cc6b4697c04", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
olivier-m/rafter
Blueprint.resource
75
false
536
src/00536.py
pyc/00536.pyc
CODE <module>() DOC 'GET' RESUME 0 PUSH_NULL LOAD_NAME frozenset LOAD_CONST 'GET' BUILD_SET 1 CALL 1 LOAD_CONST None LOAD_CONST None LOAD_CONST None LOAD_CONST None BUILD_TUPLE 5 LOAD_CONST <code add_resource> MAKE_FUNCTION defaults STORE_NAME add_resource RETURN_CONST None END CODE add_...
def add_resource(self, handler, uri, methods=frozenset({'GET'}), host=None, strict_slashes=None, version=None, name=None, **kwargs): """pass""" self.resource(uri=uri, methods=methods, host=host, strict_slashes=strict_slashes, version=version, name=name, **kwargs)(handler)
{ "repo": "olivier-m/rafter", "repo_url": "https://github.com/olivier-m/rafter", "file_path": "rafter/blueprints.py", "commit_sha": "aafcf8fd019f24abcf519307c4484cc6b4697c04", "func_name": "Blueprint.add_resource", "line_start": 74, "line_end": 92, "permalink": "https://github.com/olivier-m/rafter/blob/...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "b455726a96157e72fad5bfdff4fbfc7cb94d3593", "resolved_at_commit": "aafcf8fd019f24abcf519307c4484cc6b4697c04", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
olivier-m/rafter
Blueprint.add_resource
41
false
537
src/00537.py
pyc/00537.pyc
CODE <module>() DOC 'fn' RESUME 0 LOAD_CONST 'fn' LOAD_NAME str LOAD_CONST 'return' LOAD_NAME Iterator LOAD_NAME InsertionPoint BINARY_SUBSCR BUILD_TUPLE 4 LOAD_CONST <code in_file> MAKE_FUNCTION annotations STORE_NAME in_file RETURN_CONST None END CODE in_file(self, fn) DOC 'pass' RETURN_...
def in_file(self, fn: str) -> Iterator[InsertionPoint]: """pass""" logger.debug('finding insertion points in file: %s', fn) yield from self.__file_insertions.get(fn, [])
{ "repo": "ChrisTimperley/Kaskara", "repo_url": "https://github.com/ChrisTimperley/Kaskara", "file_path": "python/kaskara/insertions.py", "commit_sha": "3d182d95b2938508e5990eddd30321be15e2f2ef", "func_name": "InsertionPointDB.in_file", "line_start": 91, "line_end": 96, "permalink": "https://github.com/...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64", "resolved_at_commit": "3d182d95b2938508e5990eddd30321be15e2f2ef", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
ChrisTimperley/Kaskara
InsertionPointDB.in_file
56
true
538
src/00538.py
pyc/00538.pyc
CODE <module>() DOC 'line' RESUME 0 LOAD_CONST 'line' LOAD_NAME FileLine LOAD_CONST 'return' LOAD_NAME Iterator LOAD_NAME InsertionPoint BINARY_SUBSCR BUILD_TUPLE 4 LOAD_CONST <code at_line> MAKE_FUNCTION annotations STORE_NAME at_line RETURN_CONST None END CODE at_line(self, line) DOC 'pass...
def at_line(self, line: FileLine) -> Iterator[InsertionPoint]: """pass""" logger.debug('finding insertion points at line: %s', str(line)) filename = line.filename line_num = line.num for ins in self.in_file(filename): if line_num == ins.location.line: logger.debug('found insertio...
{ "repo": "ChrisTimperley/Kaskara", "repo_url": "https://github.com/ChrisTimperley/Kaskara", "file_path": "python/kaskara/insertions.py", "commit_sha": "3d182d95b2938508e5990eddd30321be15e2f2ef", "func_name": "InsertionPointDB.at_line", "line_start": 98, "line_end": 110, "permalink": "https://github.com...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64", "resolved_at_commit": "3d182d95b2938508e5990eddd30321be15e2f2ef", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
ChrisTimperley/Kaskara
InsertionPointDB.at_line
74
true
539
src/00539.py
pyc/00539.pyc
CODE <module>() RESUME 0 LOAD_CONST <code _doAtomicFileCreation> MAKE_FUNCTION 0 STORE_NAME _doAtomicFileCreation RETURN_CONST None END CODE _doAtomicFileCreation(filePath) DOC 'pass' RESUME 0 NOP L1: LOAD_GLOBAL _os LOAD_ATTR NULL|self + close LOAD_GLOBAL _os LOAD_ATTR NULL|self + open LOAD_F...
def _doAtomicFileCreation(filePath): """pass""" try: _os.close(_os.open(filePath, _os.O_CREAT | _os.O_EXCL)) return True except OSError as e: if e.errno == _errno.EEXIST: return False else: raise e
{ "repo": "musically-ut/seqfile", "repo_url": "https://github.com/musically-ut/seqfile", "file_path": "seqfile/seqfile.py", "commit_sha": "796e366fe8871b6dc72cb6bbc570e4a61a8f947c", "func_name": "_doAtomicFileCreation", "line_start": 11, "line_end": 20, "permalink": "https://github.com/musically-ut/seqf...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "82c8e488ba2439c3d492e153204e037de44eaf3a", "resolved_at_commit": "796e366fe8871b6dc72cb6bbc570e4a61a8f947c", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
musically-ut/seqfile
_doAtomicFileCreation
65
false
540
src/00540.py
pyc/00540.pyc
CODE <module>() DOC '.' RESUME 0 LOAD_CONST ('.', None, None, None, 0, 10) LOAD_CONST <code findNextFile> MAKE_FUNCTION defaults STORE_NAME findNextFile RETURN_CONST None END CODE findNextFile(folder, prefix, suffix, fnameGen, base, maxattempts) DOC 'pass' RESUME 0 LOAD_GLOBAL _os LOAD_ATTR path ...
def findNextFile(folder='.', prefix=None, suffix=None, fnameGen=None, base=0, maxattempts=10): """pass""" expFolder = _os.path.expanduser(_os.path.expandvars(folder)) return _findNextFile(expFolder, prefix, suffix, fnameGen, base, maxattempts, 0)
{ "repo": "musically-ut/seqfile", "repo_url": "https://github.com/musically-ut/seqfile", "file_path": "seqfile/seqfile.py", "commit_sha": "796e366fe8871b6dc72cb6bbc570e4a61a8f947c", "func_name": "findNextFile", "line_start": 97, "line_end": 145, "permalink": "https://github.com/musically-ut/seqfile/blob...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "82c8e488ba2439c3d492e153204e037de44eaf3a", "resolved_at_commit": "796e366fe8871b6dc72cb6bbc570e4a61a8f947c", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
musically-ut/seqfile
findNextFile
32
false
541
src/00541.py
pyc/00541.pyc
CODE <module>() RESUME 0 LOAD_CONST (None, None, None, None) LOAD_CONST <code _run> MAKE_FUNCTION defaults STORE_NAME _run RETURN_CONST None END CODE _run(passedArgs, stderr, stdout, exitFn) DOC 'pass' RESUME 0 LOAD_CONST 'Finds the next available file-name in a sequence.\n\n This program will crea...
def _run(passedArgs=None, stderr=None, stdout=None, exitFn=None): """pass""" description = 'Finds the next available file-name in a sequence.\n\n This program will create a file of zero size and will output the path to it\n on STDOUT. No files which exist will be altered in this operation and\n concurr...
{ "repo": "musically-ut/seqfile", "repo_url": "https://github.com/musically-ut/seqfile", "file_path": "seqfile/seqfile.py", "commit_sha": "796e366fe8871b6dc72cb6bbc570e4a61a8f947c", "func_name": "_run", "line_start": 148, "line_end": 215, "permalink": "https://github.com/musically-ut/seqfile/blob/796e36...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "82c8e488ba2439c3d492e153204e037de44eaf3a", "resolved_at_commit": "796e366fe8871b6dc72cb6bbc570e4a61a8f947c", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
musically-ut/seqfile
_run
171
false
542
src/00542.py
pyc/00542.pyc
CODE <module>() RESUME 0 LOAD_CONST <code _errstr> MAKE_FUNCTION 0 STORE_NAME _errstr RETURN_CONST None END CODE _errstr(value) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + str LOAD_FAST value CALL 1 STORE_FAST value LOAD_GLOBAL NULL + len LOAD_FAST value CALL 1 LOAD_GLOBAL MAX_ERROR_STR_LEN C...
def _errstr(value): """pass""" value = str(value) if len(value) > MAX_ERROR_STR_LEN: return value[:MAX_ERROR_STR_LEN] + '...' else: return value
{ "repo": "asweigart/pysimplevalidate", "repo_url": "https://github.com/asweigart/pysimplevalidate", "file_path": "src/pysimplevalidate/__init__.py", "commit_sha": "3ca27228abb7355d14bbf8abc225c63366379e44", "func_name": "_errstr", "line_start": 75, "line_end": 84, "permalink": "https://github.com/aswei...
{ "spdx": "BSD-3-Clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "file": "LICENSE.txt", "blob_sha": "b28234153a0445460c3791e76cbfa6cc44d842e4", "resolved_at_commit": "3ca27228abb7355d14bbf8abc225c63366379e44", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
asweigart/pysimplevalidate
_errstr
30
false
543
src/00543.py
pyc/00543.pyc
CODE <module>() RESUME 0 LOAD_CONST <code _getStrippedValue> MAKE_FUNCTION 0 STORE_NAME _getStrippedValue RETURN_CONST None END CODE _getStrippedValue(value, strip) DOC 'pass' RESUME 0 LOAD_FAST strip POP_JUMP_IF_NOT_NONE L1 LOAD_FAST value LOAD_ATTR NULL|self + strip CALL 0 STORE_FAST value ...
def _getStrippedValue(value, strip): """pass""" if strip is None: value = value.strip() elif isinstance(strip, str): value = value.strip(strip) elif strip is False: pass return value
{ "repo": "asweigart/pysimplevalidate", "repo_url": "https://github.com/asweigart/pysimplevalidate", "file_path": "src/pysimplevalidate/__init__.py", "commit_sha": "3ca27228abb7355d14bbf8abc225c63366379e44", "func_name": "_getStrippedValue", "line_start": 87, "line_end": 102, "permalink": "https://githu...
{ "spdx": "BSD-3-Clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "file": "LICENSE.txt", "blob_sha": "b28234153a0445460c3791e76cbfa6cc44d842e4", "resolved_at_commit": "3ca27228abb7355d14bbf8abc225c63366379e44", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
asweigart/pysimplevalidate
_getStrippedValue
40
false
544
src/00544.py
pyc/00544.pyc
CODE <module>() RESUME 0 LOAD_CONST (None,) LOAD_CONST <code _raiseValidationException> MAKE_FUNCTION defaults STORE_NAME _raiseValidationException RETURN_CONST None END CODE _raiseValidationException(standardExcMsg, customExcMsg) DOC 'pass' RESUME 0 LOAD_FAST customExcMsg POP_JUMP_IF_NOT_NONE L1 ...
def _raiseValidationException(standardExcMsg, customExcMsg=None): """pass""" if customExcMsg is None: raise ValidationException(str(standardExcMsg)) else: raise ValidationException(str(customExcMsg))
{ "repo": "asweigart/pysimplevalidate", "repo_url": "https://github.com/asweigart/pysimplevalidate", "file_path": "src/pysimplevalidate/__init__.py", "commit_sha": "3ca27228abb7355d14bbf8abc225c63366379e44", "func_name": "_raiseValidationException", "line_start": 105, "line_end": 110, "permalink": "http...
{ "spdx": "BSD-3-Clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "file": "LICENSE.txt", "blob_sha": "b28234153a0445460c3791e76cbfa6cc44d842e4", "resolved_at_commit": "3ca27228abb7355d14bbf8abc225c63366379e44", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
asweigart/pysimplevalidate
_raiseValidationException
26
false
545
src/00545.py
pyc/00545.pyc
CODE <module>() RESUME 0 LOAD_CONST (None,) LOAD_CONST <code _prevalidationCheck> MAKE_FUNCTION defaults STORE_NAME _prevalidationCheck RETURN_CONST None END CODE _prevalidationCheck(value, blank, strip, allowlistRegexes, blocklistRegexes, excMsg) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + str LOAD_FAST...
def _prevalidationCheck(value, blank, strip, allowlistRegexes, blocklistRegexes, excMsg=None): """pass""" value = str(value) value = _getStrippedValue(value, strip) if not blank and value == '': _raiseValidationException(_('Blank values are not allowed.'), excMsg) elif blank and value == '':...
{ "repo": "asweigart/pysimplevalidate", "repo_url": "https://github.com/asweigart/pysimplevalidate", "file_path": "src/pysimplevalidate/__init__.py", "commit_sha": "3ca27228abb7355d14bbf8abc225c63366379e44", "func_name": "_prevalidationCheck", "line_start": 113, "line_end": 164, "permalink": "https://gi...
{ "spdx": "BSD-3-Clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "file": "LICENSE.txt", "blob_sha": "b28234153a0445460c3791e76cbfa6cc44d842e4", "resolved_at_commit": "3ca27228abb7355d14bbf8abc225c63366379e44", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
asweigart/pysimplevalidate
_prevalidationCheck
160
false
546
src/00546.py
pyc/00546.pyc
CODE <module>() RESUME 0 LOAD_CONST <code _validateGenericParameters> MAKE_FUNCTION 0 STORE_NAME _validateGenericParameters RETURN_CONST None END CODE _validateGenericParameters(blank, strip, allowlistRegexes, blocklistRegexes) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + isinstance LOAD_FAST blank LOAD_G...
def _validateGenericParameters(blank, strip, allowlistRegexes, blocklistRegexes): """pass""" if not isinstance(blank, bool): raise PySimpleValidateException('blank argument must be a bool') if not isinstance(strip, (bool, str, type(None))): raise PySimpleValidateException('strip argument mus...
{ "repo": "asweigart/pysimplevalidate", "repo_url": "https://github.com/asweigart/pysimplevalidate", "file_path": "src/pysimplevalidate/__init__.py", "commit_sha": "3ca27228abb7355d14bbf8abc225c63366379e44", "func_name": "_validateGenericParameters", "line_start": 167, "line_end": 209, "permalink": "htt...
{ "spdx": "BSD-3-Clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "file": "LICENSE.txt", "blob_sha": "b28234153a0445460c3791e76cbfa6cc44d842e4", "resolved_at_commit": "3ca27228abb7355d14bbf8abc225c63366379e44", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
asweigart/pysimplevalidate
_validateGenericParameters
151
false
547
src/00547.py
pyc/00547.pyc
CODE <module>() RESUME 0 LOAD_CONST (None, None, None, None) LOAD_CONST <code _validateParamsFor_validateNum> MAKE_FUNCTION defaults STORE_NAME _validateParamsFor_validateNum RETURN_CONST None END CODE _validateParamsFor_validateNum(min, max, lessThan, greaterThan) DOC 'pass' RESUME 0 LOAD_FAST min ...
def _validateParamsFor_validateNum(min=None, max=None, lessThan=None, greaterThan=None): """pass""" if min is not None and greaterThan is not None: raise PySimpleValidateException('only one argument for min or greaterThan can be passed, not both') if max is not None and lessThan is not None: ...
{ "repo": "asweigart/pysimplevalidate", "repo_url": "https://github.com/asweigart/pysimplevalidate", "file_path": "src/pysimplevalidate/__init__.py", "commit_sha": "3ca27228abb7355d14bbf8abc225c63366379e44", "func_name": "_validateParamsFor_validateNum", "line_start": 212, "line_end": 235, "permalink": ...
{ "spdx": "BSD-3-Clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "file": "LICENSE.txt", "blob_sha": "b28234153a0445460c3791e76cbfa6cc44d842e4", "resolved_at_commit": "3ca27228abb7355d14bbf8abc225c63366379e44", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
asweigart/pysimplevalidate
_validateParamsFor_validateNum
108
false
548
src/00548.py
pyc/00548.pyc
CODE <module>() RESUME 0 LOAD_CONST <code filter_transform_response> MAKE_FUNCTION 0 STORE_NAME filter_transform_response RETURN_CONST None END CODE filter_transform_response(get_response, params) DOC 'pass' MAKE_CELL get_response RESUME 0 LOAD_CLOSURE get_response BUILD_TUPLE 1 LOAD_CONST <code f...
def filter_transform_response(get_response, params): """pass""" async def decorated_filter(request, *args, **kwargs): response = await get_response(request, *args, **kwargs) if isinstance(response, HTTPResponse) and (not isinstance(response, Response)): return response if no...
{ "repo": "olivier-m/rafter", "repo_url": "https://github.com/olivier-m/rafter", "file_path": "rafter/filters.py", "commit_sha": "aafcf8fd019f24abcf519307c4484cc6b4697c04", "func_name": "filter_transform_response", "line_start": 11, "line_end": 38, "permalink": "https://github.com/olivier-m/rafter/blob/...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "b455726a96157e72fad5bfdff4fbfc7cb94d3593", "resolved_at_commit": "aafcf8fd019f24abcf519307c4484cc6b4697c04", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
olivier-m/rafter
filter_transform_response
83
false
549
src/00549.py
pyc/00549.pyc
CODE <module>() RESUME 0 LOAD_CONST (None,) LOAD_CONST <code initialize> MAKE_FUNCTION defaults STORE_NAME initialize RETURN_CONST None END CODE initialize(self, maxsize, history) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + super CALL 0 LOAD_ATTR NULL|self + __init__ CALL 0 POP_TOP LOAD_GLOBAL NU...
def initialize(self, maxsize, history=None): """pass""" super().__init__() self.maxsize = int(maxsize) self.history = deque(maxlen=self.maxsize) if history is not None: for key, value in history: self.insert(key, value)
{ "repo": "mediawiki-utilities/python-mwreverts", "repo_url": "https://github.com/mediawiki-utilities/python-mwreverts", "file_path": "mwreverts/historical_dict.py", "commit_sha": "d379ac941e14e235ad82a48bd445a3dfa6cc022e", "func_name": "HistoricalDict.initialize", "line_start": 13, "line_end": 23, "per...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "e16ad2122bf70c8a6fa17dcc593d1ce236cbd37a", "resolved_at_commit": "d379ac941e14e235ad82a48bd445a3dfa6cc022e", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
mediawiki-utilities/python-mwreverts
HistoricalDict.initialize
49
false
550
src/00550.py
pyc/00550.pyc
CODE <module>() RESUME 0 LOAD_CONST <code insert> MAKE_FUNCTION 0 STORE_NAME insert RETURN_CONST None END CODE insert(self, key, value) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + len LOAD_FAST self LOAD_ATTR history CALL 1 LOAD_FAST self LOAD_ATTR maxsize COMPARE_OP == POP_JUMP_IF_FALSE L1 L...
def insert(self, key, value): """pass""" if len(self.history) == self.maxsize: expectorate = self.history[0] else: expectorate = None self.history.append((key, value)) if key in self: super().__getitem__(key).append(value) else: super().__setitem__(key, [value]) ...
{ "repo": "mediawiki-utilities/python-mwreverts", "repo_url": "https://github.com/mediawiki-utilities/python-mwreverts", "file_path": "mwreverts/historical_dict.py", "commit_sha": "d379ac941e14e235ad82a48bd445a3dfa6cc022e", "func_name": "HistoricalDict.insert", "line_start": 28, "line_end": 52, "permali...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "e16ad2122bf70c8a6fa17dcc593d1ce236cbd37a", "resolved_at_commit": "d379ac941e14e235ad82a48bd445a3dfa6cc022e", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
mediawiki-utilities/python-mwreverts
HistoricalDict.insert
98
false
551
src/00551.py
pyc/00551.pyc
CODE <module>() RESUME 0 LOAD_CONST <code up_to> MAKE_FUNCTION 0 STORE_NAME up_to RETURN_CONST None END CODE up_to(self, key) DOC 'pass' RETURN_GENERATOR POP_TOP L1: RESUME 0 LOAD_GLOBAL NULL + reversed LOAD_FAST self LOAD_ATTR history CALL 1 GET_ITER L2: FOR_ITER L4 UNPACK_SEQUENCE 2 ...
def up_to(self, key): """pass""" for okey, ovalue in reversed(self.history): if okey == key: break else: yield ovalue
{ "repo": "mediawiki-utilities/python-mwreverts", "repo_url": "https://github.com/mediawiki-utilities/python-mwreverts", "file_path": "mwreverts/historical_dict.py", "commit_sha": "d379ac941e14e235ad82a48bd445a3dfa6cc022e", "func_name": "HistoricalDict.up_to", "line_start": 60, "line_end": 66, "permalin...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "e16ad2122bf70c8a6fa17dcc593d1ce236cbd37a", "resolved_at_commit": "d379ac941e14e235ad82a48bd445a3dfa6cc022e", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
mediawiki-utilities/python-mwreverts
HistoricalDict.up_to
42
false
552
src/00552.py
pyc/00552.pyc
CODE <module>() RESUME 0 LOAD_CONST None LOAD_NAME defaults LOAD_ATTR RADIUS LOAD_CONST None LOAD_CONST None LOAD_CONST None BUILD_TUPLE 5 LOAD_CONST <code check> MAKE_FUNCTION defaults STORE_NAME check RETURN_CONST None END CODE check(session, rev_id, page_id, radius, before, window, rvprop) ...
def check(session, rev_id, page_id=None, radius=defaults.RADIUS, before=None, window=None, rvprop=None): """pass""" rev_id = int(rev_id) radius = int(radius) if radius < 1: raise TypeError('invalid radius. Expected a positive integer.') page_id = int(page_id) if page_id is not None else Non...
{ "repo": "mediawiki-utilities/python-mwreverts", "repo_url": "https://github.com/mediawiki-utilities/python-mwreverts", "file_path": "mwreverts/api.py", "commit_sha": "d379ac941e14e235ad82a48bd445a3dfa6cc022e", "func_name": "check", "line_start": 58, "line_end": 163, "permalink": "https://github.com/me...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "e16ad2122bf70c8a6fa17dcc593d1ce236cbd37a", "resolved_at_commit": "d379ac941e14e235ad82a48bd445a3dfa6cc022e", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
mediawiki-utilities/python-mwreverts
check
153
false
553
src/00553.py
pyc/00553.pyc
CODE <module>() RESUME 0 LOAD_CONST None LOAD_CONST None LOAD_NAME defaults LOAD_ATTR RADIUS LOAD_CONST None LOAD_CONST None LOAD_CONST None BUILD_TUPLE 6 LOAD_CONST <code check_deleted> MAKE_FUNCTION defaults STORE_NAME check_deleted RETURN_CONST None END CODE check_deleted(session, rev_id, t...
def check_deleted(session, rev_id, title=None, timestamp=None, radius=defaults.RADIUS, before=None, window=None, rvprop=None): """pass""" rev_id = int(rev_id) radius = int(radius) if radius < 1: raise TypeError('invalid radius. Expected a positive integer.') title = str(title) if title is n...
{ "repo": "mediawiki-utilities/python-mwreverts", "repo_url": "https://github.com/mediawiki-utilities/python-mwreverts", "file_path": "mwreverts/api.py", "commit_sha": "d379ac941e14e235ad82a48bd445a3dfa6cc022e", "func_name": "check_deleted", "line_start": 210, "line_end": 286, "permalink": "https://gith...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "e16ad2122bf70c8a6fa17dcc593d1ce236cbd37a", "resolved_at_commit": "d379ac941e14e235ad82a48bd445a3dfa6cc022e", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
mediawiki-utilities/python-mwreverts
check_deleted
161
false
554
src/00554.py
pyc/00554.pyc
CODE <module>() RESUME 0 LOAD_CONST (True,) LOAD_CONST <code get_commits> MAKE_FUNCTION defaults STORE_NAME get_commits RETURN_CONST None END CODE get_commits(repo_dir, old_commit, new_commit, hide_merges) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + Repo LOAD_FAST repo_dir CALL 1 STORE_FAST repo LO...
def get_commits(repo_dir, old_commit, new_commit, hide_merges=True): """pass""" repo = Repo(repo_dir) commits = repo.iter_commits(rev='{0}..{1}'.format(old_commit, new_commit)) if hide_merges: return [x for x in commits if not x.summary.startswith('Merge ')] else: return list(commits...
{ "repo": "rcbops/osa_differ", "repo_url": "https://github.com/rcbops/osa_differ", "file_path": "osa_differ/osa_differ.py", "commit_sha": "b3452436655ba3db8cc6602390fd7fdf4ef30f01", "func_name": "get_commits", "line_start": 181, "line_end": 188, "permalink": "https://github.com/rcbops/osa_differ/blob/b3...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "8dada3edaf50dbc082c9a125058f25def75e625a", "resolved_at_commit": "b3452436655ba3db8cc6602390fd7fdf4ef30f01", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
rcbops/osa_differ
get_commits
68
false
555
src/00555.py
pyc/00555.pyc
CODE <module>() RESUME 0 LOAD_CONST <code get_commit_url> MAKE_FUNCTION 0 STORE_NAME get_commit_url RETURN_CONST None END CODE get_commit_url(repo_url) DOC 'pass' RESUME 0 LOAD_CONST 'github.com' LOAD_FAST repo_url CONTAINS_OP 0 POP_JUMP_IF_FALSE L2 LOAD_FAST repo_url LOAD_ATTR NULL|self + end...
def get_commit_url(repo_url): """pass""" if 'github.com' in repo_url: return repo_url[:-4] if repo_url.endswith('.git') else repo_url if 'git.openstack.org' in repo_url: uri = '/'.join(repo_url.split('/')[-2:]) return 'https://github.com/{0}'.format(uri) return repo_url
{ "repo": "rcbops/osa_differ", "repo_url": "https://github.com/rcbops/osa_differ", "file_path": "osa_differ/osa_differ.py", "commit_sha": "b3452436655ba3db8cc6602390fd7fdf4ef30f01", "func_name": "get_commit_url", "line_start": 191, "line_end": 200, "permalink": "https://github.com/rcbops/osa_differ/blob...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "8dada3edaf50dbc082c9a125058f25def75e625a", "resolved_at_commit": "b3452436655ba3db8cc6602390fd7fdf4ef30f01", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
rcbops/osa_differ
get_commit_url
51
false
556
src/00556.py
pyc/00556.pyc
CODE <module>() RESUME 0 LOAD_CONST <code get_projects> MAKE_FUNCTION 0 STORE_NAME get_projects RETURN_CONST None END CODE get_projects(osa_repo_dir, commit) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + Repo LOAD_FAST osa_repo_dir CALL 1 STORE_FAST repo LOAD_GLOBAL NULL + checkout LOAD_FAST repo L...
def get_projects(osa_repo_dir, commit): """pass""" repo = Repo(osa_repo_dir) checkout(repo, commit) yaml_files = glob.glob('{0}/playbooks/defaults/repo_packages/*.yml'.format(osa_repo_dir)) yaml_parsed = [] for yaml_file in yaml_files: with open(yaml_file, 'r') as f: yaml_par...
{ "repo": "rcbops/osa_differ", "repo_url": "https://github.com/rcbops/osa_differ", "file_path": "osa_differ/osa_differ.py", "commit_sha": "b3452436655ba3db8cc6602390fd7fdf4ef30f01", "func_name": "get_projects", "line_start": 203, "line_end": 219, "permalink": "https://github.com/rcbops/osa_differ/blob/b...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "8dada3edaf50dbc082c9a125058f25def75e625a", "resolved_at_commit": "b3452436655ba3db8cc6602390fd7fdf4ef30f01", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
rcbops/osa_differ
get_projects
124
false
557
src/00557.py
pyc/00557.pyc
CODE <module>() RESUME 0 LOAD_CONST <code checkout> MAKE_FUNCTION 0 STORE_NAME checkout RETURN_CONST None END CODE checkout(repo, ref) DOC 'pass' RESUME 0 LOAD_FAST ref LOAD_FAST repo LOAD_ATTR branches CONTAINS_OP 0 POP_JUMP_IF_FALSE L1 LOAD_GLOBAL log LOAD_ATTR NULL|self + warn LOAD_CONS...
def checkout(repo, ref): """pass""" if ref in repo.branches: log.warn('Removing local branch {b} for repo {r}'.format(b=ref, r=repo)) repo.head.reset(index=True, working_tree=True) repo.git.checkout(repo.head.commit.hexsha) repo.delete_head(ref, '--force') log.info('Checkout ...
{ "repo": "rcbops/osa_differ", "repo_url": "https://github.com/rcbops/osa_differ", "file_path": "osa_differ/osa_differ.py", "commit_sha": "b3452436655ba3db8cc6602390fd7fdf4ef30f01", "func_name": "checkout", "line_start": 222, "line_end": 245, "permalink": "https://github.com/rcbops/osa_differ/blob/b3452...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "8dada3edaf50dbc082c9a125058f25def75e625a", "resolved_at_commit": "b3452436655ba3db8cc6602390fd7fdf4ef30f01", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
rcbops/osa_differ
checkout
97
false
558
src/00558.py
pyc/00558.pyc
CODE <module>() RESUME 0 LOAD_CONST <code get_roles> MAKE_FUNCTION 0 STORE_NAME get_roles RETURN_CONST None END CODE get_roles(osa_repo_dir, commit, role_requirements) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + Repo LOAD_FAST osa_repo_dir CALL 1 STORE_FAST repo LOAD_GLOBAL NULL + checkout LOAD_FAS...
def get_roles(osa_repo_dir, commit, role_requirements): """pass""" repo = Repo(osa_repo_dir) checkout(repo, commit) log.info('Looking for file {f} in repo {r}'.format(r=osa_repo_dir, f=role_requirements)) filename = '{0}/{1}'.format(osa_repo_dir, role_requirements) with open(filename, 'r') as f:...
{ "repo": "rcbops/osa_differ", "repo_url": "https://github.com/rcbops/osa_differ", "file_path": "osa_differ/osa_differ.py", "commit_sha": "b3452436655ba3db8cc6602390fd7fdf4ef30f01", "func_name": "get_roles", "line_start": 248, "line_end": 260, "permalink": "https://github.com/rcbops/osa_differ/blob/b345...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "8dada3edaf50dbc082c9a125058f25def75e625a", "resolved_at_commit": "b3452436655ba3db8cc6602390fd7fdf4ef30f01", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
rcbops/osa_differ
get_roles
78
false
559
src/00559.py
pyc/00559.pyc
CODE <module>() RESUME 0 LOAD_CONST <code make_osa_report> MAKE_FUNCTION 0 STORE_NAME make_osa_report RETURN_CONST None END CODE make_osa_report(repo_dir, old_commit, new_commit, args) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + update_repo LOAD_FAST repo_dir LOAD_FAST args LOAD_ATTR osa_repo_url LOA...
def make_osa_report(repo_dir, old_commit, new_commit, args): """pass""" update_repo(repo_dir, args.osa_repo_url, args.update) validate_commits(repo_dir, [old_commit, new_commit]) validate_commit_range(repo_dir, old_commit, new_commit) commits = get_commits(repo_dir, old_commit, new_commit) templ...
{ "repo": "rcbops/osa_differ", "repo_url": "https://github.com/rcbops/osa_differ", "file_path": "osa_differ/osa_differ.py", "commit_sha": "b3452436655ba3db8cc6602390fd7fdf4ef30f01", "func_name": "make_osa_report", "line_start": 263, "line_end": 286, "permalink": "https://github.com/rcbops/osa_differ/blo...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "8dada3edaf50dbc082c9a125058f25def75e625a", "resolved_at_commit": "b3452436655ba3db8cc6602390fd7fdf4ef30f01", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
rcbops/osa_differ
make_osa_report
54
false
560
src/00560.py
pyc/00560.pyc
CODE <module>() RESUME 0 LOAD_CONST <code _homogenize_data_filter> MAKE_FUNCTION 0 STORE_NAME _homogenize_data_filter RETURN_CONST None END CODE _homogenize_data_filter(dfilter) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + isinstance LOAD_FAST dfilter LOAD_GLOBAL tuple CALL 2 POP_JUMP_IF_FALSE L1 LO...
def _homogenize_data_filter(dfilter): """pass""" if isinstance(dfilter, tuple) and len(dfilter) == 1: dfilter = (dfilter[0], None) if dfilter is None or dfilter == (None, None) or dfilter == (None,): dfilter = (None, None) elif isinstance(dfilter, dict): dfilter = (dfilter, None)...
{ "repo": "pmacosta/pcsv", "repo_url": "https://github.com/pmacosta/pcsv", "file_path": "pcsv/csv_file.py", "commit_sha": "cd1588c19b0cd58c38bc672e396db940f88ffbd7", "func_name": "_homogenize_data_filter", "line_start": 38, "line_end": 61, "permalink": "https://github.com/pmacosta/pcsv/blob/cd1588c19b0c...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "f90a6744f8f200e495e7b3133f0bec1bb5311f64", "resolved_at_commit": "cd1588c19b0cd58c38bc672e396db940f88ffbd7", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
pmacosta/pcsv
_homogenize_data_filter
126
false
561
src/00561.py
pyc/00561.pyc
CODE <module>() RESUME 0 LOAD_CONST <code _tofloat> MAKE_FUNCTION 0 STORE_NAME _tofloat RETURN_CONST None END CODE _tofloat(obj) DOC 'pass' RESUME 0 LOAD_CONST 'inf' LOAD_FAST obj LOAD_ATTR NULL|self + lower CALL 0 LOAD_ATTR NULL|self + strip CALL 0 CONTAINS_OP 0 POP_JUMP_IF_FALSE L1 LOA...
def _tofloat(obj): """pass""" if 'inf' in obj.lower().strip(): return obj try: return int(obj) except ValueError: try: return float(obj) except ValueError: return obj
{ "repo": "pmacosta/pcsv", "repo_url": "https://github.com/pmacosta/pcsv", "file_path": "pcsv/csv_file.py", "commit_sha": "cd1588c19b0cd58c38bc672e396db940f88ffbd7", "func_name": "_tofloat", "line_start": 64, "line_end": 74, "permalink": "https://github.com/pmacosta/pcsv/blob/cd1588c19b0cd58c38bc672e396...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "f90a6744f8f200e495e7b3133f0bec1bb5311f64", "resolved_at_commit": "cd1588c19b0cd58c38bc672e396db940f88ffbd7", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
pmacosta/pcsv
_tofloat
79
false
562
src/00562.py
pyc/00562.pyc
CODE <module>() RESUME 0 LOAD_CONST <code _in_header> MAKE_FUNCTION 0 STORE_NAME _in_header RETURN_CONST None END CODE _in_header(self, col) DOC 'pass' RESUME 0 LOAD_FAST self LOAD_ATTR _has_header POP_JUMP_IF_TRUE L1 LOAD_GLOBAL pexdoc LOAD_ATTR exh LOAD_ATTR NULL|self + addex LOAD_GLOBAL R...
def _in_header(self, col): """pass""" if not self._has_header: icol_ex = pexdoc.exh.addex(RuntimeError, 'Invalid column specification') hnf_ex = pexdoc.exh.addex(ValueError, 'Column *[column_identifier]* not found') col_list = [col] if isinstance(col, (str, int)) else col for col in col_list...
{ "repo": "pmacosta/pcsv", "repo_url": "https://github.com/pmacosta/pcsv", "file_path": "pcsv/csv_file.py", "commit_sha": "cd1588c19b0cd58c38bc672e396db940f88ffbd7", "func_name": "CsvFile._in_header", "line_start": 367, "line_end": 393, "permalink": "https://github.com/pmacosta/pcsv/blob/cd1588c19b0cd58...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "f90a6744f8f200e495e7b3133f0bec1bb5311f64", "resolved_at_commit": "cd1588c19b0cd58c38bc672e396db940f88ffbd7", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
pmacosta/pcsv
CsvFile._in_header
131
false
563
src/00563.py
pyc/00563.pyc
CODE <module>() RESUME 0 LOAD_CONST <code with_reactor> MAKE_FUNCTION 0 STORE_NAME with_reactor RETURN_CONST None END CODE with_reactor(*dec_args, **dec_kwargs) DOC 'pass' MAKE_CELL dec_args MAKE_CELL dec_kwargs MAKE_CELL callee RESUME 0 LOAD_GLOBAL NULL + len LOAD_DEREF dec_args CALL 1 LOAD...
def with_reactor(*dec_args, **dec_kwargs): """pass""" if len(dec_args) == 1 and callable(dec_args[0]) and (not dec_kwargs): callee = dec_args[0] dec_args = () dec_kwargs = {} @functools.wraps(callee) def wrapper(*call_args, **call_kwargs): return _twisted_tes...
{ "repo": "pydron/utwist", "repo_url": "https://github.com/pydron/utwist", "file_path": "utwist/_utwist.py", "commit_sha": "31670bdd7630874e2d24e663dbfce8b863b1f02e", "func_name": "with_reactor", "line_start": 33, "line_end": 98, "permalink": "https://github.com/pydron/utwist/blob/31670bdd7630874e2d24e6...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "ab9f09bca7684ec7e37f3810adc97e548ca016c4", "resolved_at_commit": "31670bdd7630874e2d24e663dbfce8b863b1f02e", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
pydron/utwist
with_reactor
102
false
564
src/00564.py
pyc/00564.pyc
CODE <module>() RESUME 0 LOAD_CONST <code _ensure_reactor_running> MAKE_FUNCTION 0 STORE_NAME _ensure_reactor_running RETURN_CONST None END CODE _ensure_reactor_running() DOC 'pass' MAKE_CELL orig_set_wakeup_fd MAKE_CELL orig_signal MAKE_CELL signal_registrations RESUME 0 LOAD_GLOBAL reactor LOA...
def _ensure_reactor_running(): """pass""" if not reactor.running: signal_registrations = [] def signal_capture(*args, **kwargs): signal_registrations.append((orig_signal, args, kwargs)) def set_wakeup_fd_capture(*args, **kwargs): signal_registrations.append((ori...
{ "repo": "pydron/utwist", "repo_url": "https://github.com/pydron/utwist", "file_path": "utwist/_utwist.py", "commit_sha": "31670bdd7630874e2d24e663dbfce8b863b1f02e", "func_name": "_ensure_reactor_running", "line_start": 254, "line_end": 308, "permalink": "https://github.com/pydron/utwist/blob/31670bdd7...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "ab9f09bca7684ec7e37f3810adc97e548ca016c4", "resolved_at_commit": "31670bdd7630874e2d24e663dbfce8b863b1f02e", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
pydron/utwist
_ensure_reactor_running
130
false
565
src/00565.py
pyc/00565.pyc
CODE <module>() RESUME 0 LOAD_CONST <code _timeoutDeferred> MAKE_FUNCTION 0 STORE_NAME _timeoutDeferred RETURN_CONST None END CODE _timeoutDeferred(deferred, timeout) DOC 'pass' MAKE_CELL delayedCall RESUME 0 LOAD_GLOBAL reactor LOAD_ATTR NULL|self + callLater LOAD_FAST timeout LOAD_FAST deferre...
def _timeoutDeferred(deferred, timeout): """pass""" delayedCall = reactor.callLater(timeout, deferred.cancel) def gotResult(result): if delayedCall.active(): delayedCall.cancel() return result deferred.addBoth(gotResult)
{ "repo": "pydron/utwist", "repo_url": "https://github.com/pydron/utwist", "file_path": "utwist/_utwist.py", "commit_sha": "31670bdd7630874e2d24e663dbfce8b863b1f02e", "func_name": "_timeoutDeferred", "line_start": 311, "line_end": 320, "permalink": "https://github.com/pydron/utwist/blob/31670bdd7630874e...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "ab9f09bca7684ec7e37f3810adc97e548ca016c4", "resolved_at_commit": "31670bdd7630874e2d24e663dbfce8b863b1f02e", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
pydron/utwist
_timeoutDeferred
44
false
566
src/00566.py
pyc/00566.pyc
CODE <module>() RESUME 0 LOAD_CONST <code _get_json> MAKE_FUNCTION 0 STORE_NAME _get_json RETURN_CONST None END CODE _get_json(value) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + hasattr LOAD_FAST value LOAD_CONST 'replace' CALL 2 POP_JUMP_IF_FALSE L1 LOAD_FAST value LOAD_ATTR NULL|self + replace ...
def _get_json(value): """pass""" if hasattr(value, 'replace'): value = value.replace('\n', ' ') try: return json.loads(value) except json.JSONDecodeError: if hasattr(value, 'replace'): value = value.replace('"', '\\"') return json.loads('"{}"'.format(value))
{ "repo": "genialis/resolwe-runtime-utils", "repo_url": "https://github.com/genialis/resolwe-runtime-utils", "file_path": "resolwe_runtime_utils.py", "commit_sha": "5657d7cf981972a5259b9b475eae220479401001", "func_name": "_get_json", "line_start": 37, "line_end": 48, "permalink": "https://github.com/gen...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "d645695673349e3947e8e5ae42332d0ac3164cd7", "resolved_at_commit": "5657d7cf981972a5259b9b475eae220479401001", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
genialis/resolwe-runtime-utils
_get_json
69
false
567
src/00567.py
pyc/00567.pyc
CODE <module>() RESUME 0 LOAD_CONST <code save_list> MAKE_FUNCTION 0 STORE_NAME save_list RETURN_CONST None END CODE save_list(key, *values) DOC 'pass' RESUME 0 LOAD_GLOBAL json LOAD_ATTR NULL|self + dumps LOAD_FAST key LOAD_FAST values GET_ITER LOAD_FAST_AND_CLEAR value SWAP 2 L1: BUILD_L...
def save_list(key, *values): """pass""" return json.dumps({key: [_get_json(value) for value in values]})
{ "repo": "genialis/resolwe-runtime-utils", "repo_url": "https://github.com/genialis/resolwe-runtime-utils", "file_path": "resolwe_runtime_utils.py", "commit_sha": "5657d7cf981972a5259b9b475eae220479401001", "func_name": "save_list", "line_start": 62, "line_end": 70, "permalink": "https://github.com/gen...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "d645695673349e3947e8e5ae42332d0ac3164cd7", "resolved_at_commit": "5657d7cf981972a5259b9b475eae220479401001", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
genialis/resolwe-runtime-utils
save_list
43
false
568
src/00568.py
pyc/00568.pyc
CODE <module>() RESUME 0 LOAD_CONST <code save_file> MAKE_FUNCTION 0 STORE_NAME save_file RETURN_CONST None END CODE save_file(key, file_path, *refs) DOC 'pass' RESUME 0 LOAD_GLOBAL os LOAD_ATTR path LOAD_ATTR NULL|self + isfile LOAD_FAST file_path CALL 1 POP_JUMP_IF_TRUE L1 LOAD_GLOBAL NULL...
def save_file(key, file_path, *refs): """pass""" if not os.path.isfile(file_path): return error("Output '{}' set to a missing file: '{}'.".format(key, file_path)) result = {key: {'file': file_path}} if refs: missing_refs = [ref for ref in refs if not (os.path.isfile(ref) or os.path.isdir...
{ "repo": "genialis/resolwe-runtime-utils", "repo_url": "https://github.com/genialis/resolwe-runtime-utils", "file_path": "resolwe_runtime_utils.py", "commit_sha": "5657d7cf981972a5259b9b475eae220479401001", "func_name": "save_file", "line_start": 73, "line_end": 98, "permalink": "https://github.com/gen...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "d645695673349e3947e8e5ae42332d0ac3164cd7", "resolved_at_commit": "5657d7cf981972a5259b9b475eae220479401001", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
genialis/resolwe-runtime-utils
save_file
108
false
569
src/00569.py
pyc/00569.pyc
CODE <module>() RESUME 0 LOAD_CONST <code save_file_list> MAKE_FUNCTION 0 STORE_NAME save_file_list RETURN_CONST None END CODE save_file_list(key, *files_refs) DOC 'pass' RESUME 0 BUILD_LIST 0 STORE_FAST file_list LOAD_FAST files_refs GET_ITER L1: EXTENDED_ARG 1 FOR_ITER L21 STORE_FAST file_...
def save_file_list(key, *files_refs): """pass""" file_list = [] for file_refs in files_refs: if ':' in file_refs: try: file_name, refs = file_refs.split(':') except ValueError as e: return error("Only one colon ':' allowed in file-refs specific...
{ "repo": "genialis/resolwe-runtime-utils", "repo_url": "https://github.com/genialis/resolwe-runtime-utils", "file_path": "resolwe_runtime_utils.py", "commit_sha": "5657d7cf981972a5259b9b475eae220479401001", "func_name": "save_file_list", "line_start": 101, "line_end": 143, "permalink": "https://github....
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "d645695673349e3947e8e5ae42332d0ac3164cd7", "resolved_at_commit": "5657d7cf981972a5259b9b475eae220479401001", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
genialis/resolwe-runtime-utils
save_file_list
214
false
570
src/00570.py
pyc/00570.pyc
CODE <module>() RESUME 0 LOAD_CONST <code save_dir> MAKE_FUNCTION 0 STORE_NAME save_dir RETURN_CONST None END CODE save_dir(key, dir_path, *refs) DOC 'pass' RESUME 0 LOAD_GLOBAL os LOAD_ATTR path LOAD_ATTR NULL|self + isdir LOAD_FAST dir_path CALL 1 POP_JUMP_IF_TRUE L1 LOAD_GLOBAL NULL + err...
def save_dir(key, dir_path, *refs): """pass""" if not os.path.isdir(dir_path): return error("Output '{}' set to a missing directory: '{}'.".format(key, dir_path)) result = {key: {'dir': dir_path}} if refs: missing_refs = [ref for ref in refs if not (os.path.isfile(ref) or os.path.isdir(r...
{ "repo": "genialis/resolwe-runtime-utils", "repo_url": "https://github.com/genialis/resolwe-runtime-utils", "file_path": "resolwe_runtime_utils.py", "commit_sha": "5657d7cf981972a5259b9b475eae220479401001", "func_name": "save_dir", "line_start": 146, "line_end": 173, "permalink": "https://github.com/ge...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "d645695673349e3947e8e5ae42332d0ac3164cd7", "resolved_at_commit": "5657d7cf981972a5259b9b475eae220479401001", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
genialis/resolwe-runtime-utils
save_dir
108
false
571
src/00571.py
pyc/00571.pyc
CODE <module>() RESUME 0 LOAD_CONST <code save_dir_list> MAKE_FUNCTION 0 STORE_NAME save_dir_list RETURN_CONST None END CODE save_dir_list(key, *dirs_refs) DOC 'pass' RESUME 0 BUILD_LIST 0 STORE_FAST dir_list LOAD_FAST dirs_refs GET_ITER L1: EXTENDED_ARG 1 FOR_ITER L21 STORE_FAST dir_refs ...
def save_dir_list(key, *dirs_refs): """pass""" dir_list = [] for dir_refs in dirs_refs: if ':' in dir_refs: try: dir_path, refs = dir_refs.split(':') except ValueError as e: return error("Only one colon ':' allowed in dir-refs specification.") ...
{ "repo": "genialis/resolwe-runtime-utils", "repo_url": "https://github.com/genialis/resolwe-runtime-utils", "file_path": "resolwe_runtime_utils.py", "commit_sha": "5657d7cf981972a5259b9b475eae220479401001", "func_name": "save_dir_list", "line_start": 176, "line_end": 218, "permalink": "https://github.c...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "d645695673349e3947e8e5ae42332d0ac3164cd7", "resolved_at_commit": "5657d7cf981972a5259b9b475eae220479401001", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
genialis/resolwe-runtime-utils
save_dir_list
214
false
572
src/00572.py
pyc/00572.pyc
CODE <module>() RESUME 0 LOAD_CONST <code n_day> MAKE_FUNCTION 0 STORE_NAME n_day RETURN_CONST None END CODE n_day(date_string) DOC 'pass' RESUME 0 LOAD_GLOBAL datetime LOAD_ATTR date LOAD_ATTR NULL|self + today CALL 0 STORE_FAST today LOAD_GLOBAL re LOAD_ATTR NULL|self + match LOAD_CONST ...
def n_day(date_string): """pass""" today = datetime.date.today() match = re.match('(\\d{1,3}|a) days? ago', date_string) groups = match.groups() if groups: decrement = groups[0] if decrement == 'a': decrement = 1 return today - datetime.timedelta(days=int(decremen...
{ "repo": "askedrelic/journal", "repo_url": "https://github.com/askedrelic/journal", "file_path": "journal/parse.py", "commit_sha": "848b8ec67ed124ec112926211ebeccbc8d11f2b0", "func_name": "Parse.n_day", "line_start": 27, "line_end": 39, "permalink": "https://github.com/askedrelic/journal/blob/848b8ec67...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "3ea1261d1c4fcfc985cc4760a0627774b39a2f5e", "resolved_at_commit": "848b8ec67ed124ec112926211ebeccbc8d11f2b0", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
askedrelic/journal
Parse.n_day
50
false
573
src/00573.py
pyc/00573.pyc
CODE <module>() DOC 'location' RESUME 0 LOAD_CONST 'location' LOAD_NAME FileLocation LOAD_CONST 'return' LOAD_NAME Optional LOAD_NAME FunctionDesc BINARY_SUBSCR BUILD_TUPLE 4 LOAD_CONST <code encloses> MAKE_FUNCTION annotations STORE_NAME encloses RETURN_CONST None END CODE encloses(self, loca...
def encloses(self, location: FileLocation) -> Optional[FunctionDesc]: """pass""" for func in self.in_file(location.filename): if location in func.location: return func return None
{ "repo": "ChrisTimperley/Kaskara", "repo_url": "https://github.com/ChrisTimperley/Kaskara", "file_path": "python/kaskara/functions.py", "commit_sha": "3d182d95b2938508e5990eddd30321be15e2f2ef", "func_name": "FunctionDB.encloses", "line_start": 97, "line_end": 106, "permalink": "https://github.com/Chris...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64", "resolved_at_commit": "3d182d95b2938508e5990eddd30321be15e2f2ef", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
ChrisTimperley/Kaskara
FunctionDB.encloses
41
true
574
src/00574.py
pyc/00574.pyc
CODE <module>() DOC 'filename' RESUME 0 LOAD_CONST 'filename' LOAD_NAME str LOAD_CONST 'return' LOAD_NAME Iterator LOAD_NAME FunctionDesc BINARY_SUBSCR BUILD_TUPLE 4 LOAD_CONST <code in_file> MAKE_FUNCTION annotations STORE_NAME in_file RETURN_CONST None END CODE in_file(self, filename) DOC ...
def in_file(self, filename: str) -> Iterator[FunctionDesc]: """pass""" yield from self.__filename_to_functions.get(filename, [])
{ "repo": "ChrisTimperley/Kaskara", "repo_url": "https://github.com/ChrisTimperley/Kaskara", "file_path": "python/kaskara/functions.py", "commit_sha": "3d182d95b2938508e5990eddd30321be15e2f2ef", "func_name": "FunctionDB.in_file", "line_start": 108, "line_end": 113, "permalink": "https://github.com/Chris...
{ "spdx": "Apache-2.0", "name": "Apache License 2.0", "file": "LICENSE", "blob_sha": "261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64", "resolved_at_commit": "3d182d95b2938508e5990eddd30321be15e2f2ef", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
ChrisTimperley/Kaskara
FunctionDB.in_file
50
true
575
src/00575.py
pyc/00575.pyc
CODE <module>() RESUME 0 LOAD_CONST <code parse_config> MAKE_FUNCTION 0 STORE_NAME parse_config RETURN_CONST None END CODE parse_config(args) DOC 'pass' RESUME 0 LOAD_GLOBAL path LOAD_ATTR NULL|self + expanduser LOAD_FAST args LOAD_ATTR config_file CALL 1 STORE_FAST config_path LOAD_GLOBAL p...
def parse_config(args): """pass""" config_path = path.expanduser(args.config_file) if not path.exists(config_path): if args.config_file != DEFAULT_JOURNAL_RC: print("journal: error: config file '" + args.config_file + "' not found") sys.exit() else: return...
{ "repo": "askedrelic/journal", "repo_url": "https://github.com/askedrelic/journal", "file_path": "journal/main.py", "commit_sha": "848b8ec67ed124ec112926211ebeccbc8d11f2b0", "func_name": "parse_config", "line_start": 72, "line_end": 100, "permalink": "https://github.com/askedrelic/journal/blob/848b8ec6...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "3ea1261d1c4fcfc985cc4760a0627774b39a2f5e", "resolved_at_commit": "848b8ec67ed124ec112926211ebeccbc8d11f2b0", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
askedrelic/journal
parse_config
84
false
576
src/00576.py
pyc/00576.pyc
CODE <module>() RESUME 0 LOAD_CONST <code record_entries> MAKE_FUNCTION 0 STORE_NAME record_entries RETURN_CONST None END CODE record_entries(journal_location, entries) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + check_journal_dest LOAD_FAST journal_location CALL 1 POP_TOP LOAD_GLOBAL datetime LOAD...
def record_entries(journal_location, entries): """pass""" check_journal_dest(journal_location) current_date = datetime.datetime.today() date_header = current_date.strftime('%a %H:%M:%S %Y-%m-%d') + '\n' with open(build_journal_path(journal_location, current_date), 'a') as date_file: entry_ou...
{ "repo": "askedrelic/journal", "repo_url": "https://github.com/askedrelic/journal", "file_path": "journal/main.py", "commit_sha": "848b8ec67ed124ec112926211ebeccbc8d11f2b0", "func_name": "record_entries", "line_start": 111, "line_end": 128, "permalink": "https://github.com/askedrelic/journal/blob/848b8...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "3ea1261d1c4fcfc985cc4760a0627774b39a2f5e", "resolved_at_commit": "848b8ec67ed124ec112926211ebeccbc8d11f2b0", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
askedrelic/journal
record_entries
83
false
577
src/00577.py
pyc/00577.pyc
CODE <module>() RESUME 0 LOAD_CONST <code get_entry> MAKE_FUNCTION 0 STORE_NAME get_entry RETURN_CONST None END CODE get_entry(journal_location, date) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + isinstance LOAD_FAST date LOAD_GLOBAL datetime LOAD_ATTR date CALL 2 POP_JUMP_IF_TRUE L1 RETURN_CONST ...
def get_entry(journal_location, date): """pass""" if not isinstance(date, datetime.date): return None try: with open(build_journal_path(journal_location, date), 'r') as entry_file: return entry_file.read() except IOError: return None
{ "repo": "askedrelic/journal", "repo_url": "https://github.com/askedrelic/journal", "file_path": "journal/main.py", "commit_sha": "848b8ec67ed124ec112926211ebeccbc8d11f2b0", "func_name": "get_entry", "line_start": 136, "line_end": 148, "permalink": "https://github.com/askedrelic/journal/blob/848b8ec67e...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "3ea1261d1c4fcfc985cc4760a0627774b39a2f5e", "resolved_at_commit": "848b8ec67ed124ec112926211ebeccbc8d11f2b0", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
askedrelic/journal
get_entry
82
false
578
src/00578.py
pyc/00578.pyc
CODE <module>() RESUME 0 LOAD_CONST <code TemplateValidator> MAKE_FUNCTION 0 STORE_NAME TemplateValidator RETURN_CONST None END CODE TemplateValidator(value) DOC 'pass' RESUME 0 NOP L1: LOAD_GLOBAL NULL + Template LOAD_FAST value CALL 1 POP_TOP L2: RETURN_CONST None L3: PUSH_EXC_INFO LOAD_...
def TemplateValidator(value): """pass""" try: Template(value) except Exception as e: raise ValidationError(_('Cannot compile template (%(exception)s)'), params={'exception': e})
{ "repo": "mpasternak/django-flexible-reports", "repo_url": "https://github.com/mpasternak/django-flexible-reports", "file_path": "flexible_reports/models/validators.py", "commit_sha": "7a9a657bc3778c150357f1efe7208077b1a1490b", "func_name": "TemplateValidator", "line_start": 7, "line_end": 16, "permali...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "d8e599124553c5857e56ab5a1ce796d74db5147d", "resolved_at_commit": "7a9a657bc3778c150357f1efe7208077b1a1490b", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
mpasternak/django-flexible-reports
TemplateValidator
50
false
579
src/00579.py
pyc/00579.pyc
CODE <module>() RESUME 0 LOAD_NAME LBRY_API_RAW_JSON_URL BUILD_TUPLE 1 LOAD_CONST <code get_lbry_api_function_docs> MAKE_FUNCTION defaults STORE_NAME get_lbry_api_function_docs RETURN_CONST None END CODE get_lbry_api_function_docs(url) DOC 'pass' RESUME 0 NOP L1: LOAD_GLOBAL NULL + urlopen LOAD_...
def get_lbry_api_function_docs(url=LBRY_API_RAW_JSON_URL): """pass""" try: docs_page = urlopen(url) contents = docs_page.read().decode('utf-8') return loads(contents) except URLError as UE: print(UE) except Exception as E: print(E) return []
{ "repo": "osilkin98/PyBRY", "repo_url": "https://github.com/osilkin98/PyBRY", "file_path": "generator.py", "commit_sha": "af86805a8077916f72f3fe980943d4cd741e61f0", "func_name": "get_lbry_api_function_docs", "line_start": 10, "line_end": 36, "permalink": "https://github.com/osilkin98/PyBRY/blob/af86805...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "c1795a4bc8b2624ab6ff0f4f86abc20b230024d5", "resolved_at_commit": "af86805a8077916f72f3fe980943d4cd741e61f0", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
osilkin98/PyBRY
get_lbry_api_function_docs
87
false
580
src/00580.py
pyc/00580.pyc
CODE <module>() RESUME 0 LOAD_CONST <code generate_method_definition> MAKE_FUNCTION 0 STORE_NAME generate_method_definition RETURN_CONST None END CODE generate_method_definition(func) DOC 'pass' RESUME 0 LOAD_CONST 4 STORE_FAST indent LOAD_CONST ' ' LOAD_FAST indent BINARY_OP * LOAD_CONST 'def...
def generate_method_definition(func): """pass""" indent = 4 method_definition = ' ' * indent + 'def ' + func['name'] params_required = [param for param in func['arguments'] if param['is_required']] params_optional = [param for param in func['arguments'] if not param['is_required']] method_defini...
{ "repo": "osilkin98/PyBRY", "repo_url": "https://github.com/osilkin98/PyBRY", "file_path": "generator.py", "commit_sha": "af86805a8077916f72f3fe980943d4cd741e61f0", "func_name": "generate_method_definition", "line_start": 39, "line_end": 162, "permalink": "https://github.com/osilkin98/PyBRY/blob/af8680...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "c1795a4bc8b2624ab6ff0f4f86abc20b230024d5", "resolved_at_commit": "af86805a8077916f72f3fe980943d4cd741e61f0", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
osilkin98/PyBRY
generate_method_definition
481
false
581
src/00581.py
pyc/00581.pyc
CODE <module>() RESUME 0 LOAD_NAME LBRY_API_RAW_JSON_URL LOAD_NAME __LBRYD_BASE_FPATH__ LOAD_NAME LBRYD_FPATH BUILD_TUPLE 3 LOAD_CONST <code generate_lbryd_wrapper> MAKE_FUNCTION defaults STORE_NAME generate_lbryd_wrapper RETURN_CONST None END CODE generate_lbryd_wrapper(url, read_file, write_file) ...
def generate_lbryd_wrapper(url=LBRY_API_RAW_JSON_URL, read_file=__LBRYD_BASE_FPATH__, write_file=LBRYD_FPATH): """pass""" functions = get_lbry_api_function_docs(url) with open(write_file, 'w') as lbry_file: lbry_file.write('# This file was generated at build time using the generator function\n') ...
{ "repo": "osilkin98/PyBRY", "repo_url": "https://github.com/osilkin98/PyBRY", "file_path": "generator.py", "commit_sha": "af86805a8077916f72f3fe980943d4cd741e61f0", "func_name": "generate_lbryd_wrapper", "line_start": 167, "line_end": 205, "permalink": "https://github.com/osilkin98/PyBRY/blob/af86805a8...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "c1795a4bc8b2624ab6ff0f4f86abc20b230024d5", "resolved_at_commit": "af86805a8077916f72f3fe980943d4cd741e61f0", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
osilkin98/PyBRY
generate_lbryd_wrapper
174
false
582
src/00582.py
pyc/00582.pyc
CODE <module>() RESUME 0 LOAD_CONST <code get> MAKE_FUNCTION 0 STORE_NAME get RETURN_CONST None END CODE get(self, style) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + len LOAD_FAST self LOAD_ATTR stack CALL 1 LOAD_CONST 1 BINARY_OP - STORE_FAST level LOAD_FAST level LOAD_CONST 0 COMPARE_OP >...
def get(self, style): """pass""" level = len(self.stack) - 1 while level >= 0: if style in self.stack[level]: return self.stack[level][style] else: level = level - 1 return None
{ "repo": "fvdsn/py-xml-escpos", "repo_url": "https://github.com/fvdsn/py-xml-escpos", "file_path": "xmlescpos/escpos.py", "commit_sha": "7f77e039c960d5773fb919aed02ba392dccbc360", "func_name": "StyleStack.get", "line_start": 124, "line_end": 132, "permalink": "https://github.com/fvdsn/py-xml-escpos/blo...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "8920ee25413b2975eff028263976972729b6f265", "resolved_at_commit": "7f77e039c960d5773fb919aed02ba392dccbc360", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
fvdsn/py-xml-escpos
StyleStack.get
48
false
583
src/00583.py
pyc/00583.pyc
CODE <module>() RESUME 0 LOAD_CONST <code enforce_type> MAKE_FUNCTION 0 STORE_NAME enforce_type RETURN_CONST None END CODE enforce_type(self, attr, val) DOC 'pass' RESUME 0 LOAD_FAST attr LOAD_FAST self LOAD_ATTR types CONTAINS_OP 1 POP_JUMP_IF_FALSE L1 LOAD_GLOBAL NULL + utfstr LOAD_FAST va...
def enforce_type(self, attr, val): """pass""" if not attr in self.types: return utfstr(val) elif self.types[attr] == 'int': return int(float(val)) elif self.types[attr] == 'float': return float(val) else: return utfstr(val)
{ "repo": "fvdsn/py-xml-escpos", "repo_url": "https://github.com/fvdsn/py-xml-escpos", "file_path": "xmlescpos/escpos.py", "commit_sha": "7f77e039c960d5773fb919aed02ba392dccbc360", "func_name": "StyleStack.enforce_type", "line_start": 134, "line_end": 143, "permalink": "https://github.com/fvdsn/py-xml-e...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "8920ee25413b2975eff028263976972729b6f265", "resolved_at_commit": "7f77e039c960d5773fb919aed02ba392dccbc360", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
fvdsn/py-xml-escpos
StyleStack.enforce_type
50
false
584
src/00584.py
pyc/00584.pyc
CODE <module>() RESUME 0 LOAD_CONST <code to_escpos> MAKE_FUNCTION 0 STORE_NAME to_escpos RETURN_CONST None END CODE to_escpos(self) DOC 'pass' MAKE_CELL self RESUME 0 LOAD_CONST '' STORE_FAST cmd LOAD_DEREF self LOAD_ATTR cmds LOAD_ATTR NULL|self + keys CALL 0 STORE_FAST ordered_cmds LO...
def to_escpos(self): """pass""" cmd = '' ordered_cmds = self.cmds.keys() ordered_cmds.sort(lambda x, y: cmp(self.cmds[x]['_order'], self.cmds[y]['_order'])) for style in ordered_cmds: cmd += self.cmds[style][self.get(style)] return cmd
{ "repo": "fvdsn/py-xml-escpos", "repo_url": "https://github.com/fvdsn/py-xml-escpos", "file_path": "xmlescpos/escpos.py", "commit_sha": "7f77e039c960d5773fb919aed02ba392dccbc360", "func_name": "StyleStack.to_escpos", "line_start": 169, "line_end": 176, "permalink": "https://github.com/fvdsn/py-xml-escp...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "8920ee25413b2975eff028263976972729b6f265", "resolved_at_commit": "7f77e039c960d5773fb919aed02ba392dccbc360", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
fvdsn/py-xml-escpos
StyleStack.to_escpos
67
false
585
src/00585.py
pyc/00585.pyc
CODE <module>() RESUME 0 LOAD_CONST (None,) LOAD_CONST <code start_inline> MAKE_FUNCTION defaults STORE_NAME start_inline RETURN_CONST None END CODE start_inline(self, stylestack) DOC 'pass' RESUME 0 LOAD_FAST self LOAD_ATTR stack LOAD_ATTR NULL|self + append LOAD_CONST 'inline' CALL 1 POP_T...
def start_inline(self, stylestack=None): """pass""" self.stack.append('inline') if self.dirty: self.escpos._raw(' ') if stylestack: self.style(stylestack)
{ "repo": "fvdsn/py-xml-escpos", "repo_url": "https://github.com/fvdsn/py-xml-escpos", "file_path": "xmlescpos/escpos.py", "commit_sha": "7f77e039c960d5773fb919aed02ba392dccbc360", "func_name": "XmlSerializer.start_inline", "line_start": 189, "line_end": 195, "permalink": "https://github.com/fvdsn/py-xm...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "8920ee25413b2975eff028263976972729b6f265", "resolved_at_commit": "7f77e039c960d5773fb919aed02ba392dccbc360", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
fvdsn/py-xml-escpos
XmlSerializer.start_inline
37
false
586
src/00586.py
pyc/00586.pyc
CODE <module>() RESUME 0 LOAD_CONST (None,) LOAD_CONST <code start_block> MAKE_FUNCTION defaults STORE_NAME start_block RETURN_CONST None END CODE start_block(self, stylestack) DOC 'pass' RESUME 0 LOAD_FAST self LOAD_ATTR dirty POP_JUMP_IF_FALSE L1 LOAD_FAST self LOAD_ATTR escpos LOAD_ATTR N...
def start_block(self, stylestack=None): """pass""" if self.dirty: self.escpos._raw('\n') self.dirty = False self.stack.append('block') if stylestack: self.style(stylestack)
{ "repo": "fvdsn/py-xml-escpos", "repo_url": "https://github.com/fvdsn/py-xml-escpos", "file_path": "xmlescpos/escpos.py", "commit_sha": "7f77e039c960d5773fb919aed02ba392dccbc360", "func_name": "XmlSerializer.start_block", "line_start": 197, "line_end": 204, "permalink": "https://github.com/fvdsn/py-xml...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "8920ee25413b2975eff028263976972729b6f265", "resolved_at_commit": "7f77e039c960d5773fb919aed02ba392dccbc360", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
fvdsn/py-xml-escpos
XmlSerializer.start_block
40
false
587
src/00587.py
pyc/00587.pyc
CODE <module>() RESUME 0 LOAD_CONST <code end_entity> MAKE_FUNCTION 0 STORE_NAME end_entity RETURN_CONST None END CODE end_entity(self) DOC 'pass' RESUME 0 LOAD_FAST self LOAD_ATTR stack LOAD_CONST -1 BINARY_SUBSCR LOAD_CONST 'block' COMPARE_OP == POP_JUMP_IF_FALSE L1 LOAD_FAST self LOAD...
def end_entity(self): """pass""" if self.stack[-1] == 'block' and self.dirty: self.escpos._raw('\n') self.dirty = False if len(self.stack) > 1: self.stack = self.stack[:-1]
{ "repo": "fvdsn/py-xml-escpos", "repo_url": "https://github.com/fvdsn/py-xml-escpos", "file_path": "xmlescpos/escpos.py", "commit_sha": "7f77e039c960d5773fb919aed02ba392dccbc360", "func_name": "XmlSerializer.end_entity", "line_start": 206, "line_end": 212, "permalink": "https://github.com/fvdsn/py-xml-...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE.txt", "blob_sha": "8920ee25413b2975eff028263976972729b6f265", "resolved_at_commit": "7f77e039c960d5773fb919aed02ba392dccbc360", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
fvdsn/py-xml-escpos
XmlSerializer.end_entity
47
false
588
src/00588.py
pyc/00588.pyc
CODE <module>() RESUME 0 LOAD_CONST <code _pinyin_generator> MAKE_FUNCTION 0 STORE_NAME _pinyin_generator RETURN_CONST None END CODE _pinyin_generator(chars, format) DOC 'pass' RETURN_GENERATOR POP_TOP L1: RESUME 0 LOAD_FAST chars GET_ITER L2: FOR_ITER L8 STORE_FAST char LOAD_CONST '%X' LO...
def _pinyin_generator(chars, format): """pass""" for char in chars: key = '%X' % ord(char) pinyin = pinyin_dict.get(key, char) tone = pinyin_tone.get(key, 0) if tone == 0 or format == 'strip': pass elif format == 'numerical': pinyin += str(tone) ...
{ "repo": "lxyu/pinyin", "repo_url": "https://github.com/lxyu/pinyin", "file_path": "pinyin/pinyin.py", "commit_sha": "f9cac5902b0cfaf91d93af633dfc75a51d2bf0cd", "func_name": "_pinyin_generator", "line_start": 23, "line_end": 47, "permalink": "https://github.com/lxyu/pinyin/blob/f9cac5902b0cfaf91d93af63...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "c57981289c00dac5b5170fa36617f4ae3547bf92", "resolved_at_commit": "f9cac5902b0cfaf91d93af633dfc75a51d2bf0cd", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
lxyu/pinyin
_pinyin_generator
187
false
589
src/00589.py
pyc/00589.pyc
CODE <module>() DOC '' RESUME 0 LOAD_CONST ('', 'diacritical') LOAD_CONST <code get> MAKE_FUNCTION defaults STORE_NAME get RETURN_CONST None END CODE get(s, delimiter, format) DOC 'pass' RESUME 0 LOAD_FAST delimiter LOAD_ATTR NULL|self + join LOAD_GLOBAL NULL + _pinyin_generator LOAD_GLOBAL NU...
def get(s, delimiter='', format='diacritical'): """pass""" return delimiter.join(_pinyin_generator(u(s), format=format))
{ "repo": "lxyu/pinyin", "repo_url": "https://github.com/lxyu/pinyin", "file_path": "pinyin/pinyin.py", "commit_sha": "f9cac5902b0cfaf91d93af633dfc75a51d2bf0cd", "func_name": "get", "line_start": 50, "line_end": 53, "permalink": "https://github.com/lxyu/pinyin/blob/f9cac5902b0cfaf91d93af633dfc75a51d2bf0...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "c57981289c00dac5b5170fa36617f4ae3547bf92", "resolved_at_commit": "f9cac5902b0cfaf91d93af633dfc75a51d2bf0cd", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
lxyu/pinyin
get
23
false
590
src/00590.py
pyc/00590.pyc
CODE <module>() DOC ' ' RESUME 0 LOAD_CONST (' ',) LOAD_CONST <code get_initial> MAKE_FUNCTION defaults STORE_NAME get_initial RETURN_CONST None END CODE get_initial(s, delimiter) DOC 'pass' RESUME 0 LOAD_CONST <code get_initial.<locals>.<genexpr>> MAKE_FUNCTION 0 LOAD_GLOBAL NULL + _pinyin_gene...
def get_initial(s, delimiter=' '): """pass""" initials = (p[0] for p in _pinyin_generator(u(s), format='strip')) return delimiter.join(initials)
{ "repo": "lxyu/pinyin", "repo_url": "https://github.com/lxyu/pinyin", "file_path": "pinyin/pinyin.py", "commit_sha": "f9cac5902b0cfaf91d93af633dfc75a51d2bf0cd", "func_name": "get_initial", "line_start": 64, "line_end": 68, "permalink": "https://github.com/lxyu/pinyin/blob/f9cac5902b0cfaf91d93af633dfc75...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "c57981289c00dac5b5170fa36617f4ae3547bf92", "resolved_at_commit": "f9cac5902b0cfaf91d93af633dfc75a51d2bf0cd", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
lxyu/pinyin
get_initial
53
false
591
src/00591.py
pyc/00591.pyc
CODE <module>() RESUME 0 LOAD_CONST <code _add_to_tree> MAKE_FUNCTION 0 STORE_NAME _add_to_tree RETURN_CONST None END CODE _add_to_tree(tree, word, meaning) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + len LOAD_FAST word CALL 1 LOAD_CONST 0 COMPARE_OP == POP_JUMP_IF_FALSE L1 LOAD_FAST meaning LO...
def _add_to_tree(tree, word, meaning): """pass""" if len(word) == 0: tree[''] = meaning else: _add_to_tree(tree[word[0]], word[1:], meaning)
{ "repo": "lxyu/pinyin", "repo_url": "https://github.com/lxyu/pinyin", "file_path": "pinyin/cedict.py", "commit_sha": "f9cac5902b0cfaf91d93af633dfc75a51d2bf0cd", "func_name": "_add_to_tree", "line_start": 36, "line_end": 52, "permalink": "https://github.com/lxyu/pinyin/blob/f9cac5902b0cfaf91d93af633dfc7...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "c57981289c00dac5b5170fa36617f4ae3547bf92", "resolved_at_commit": "f9cac5902b0cfaf91d93af633dfc75a51d2bf0cd", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
lxyu/pinyin
_add_to_tree
36
false
592
src/00592.py
pyc/00592.pyc
CODE <module>() RESUME 0 LOAD_CONST <code init> MAKE_FUNCTION 0 STORE_NAME init RETURN_CONST None END CODE init() DOC 'pass' MAKE_CELL exp RESUME 0 BUILD_MAP 0 BUILD_MAP 0 LOAD_CONST ('traditional', 'simplified') BUILD_CONST_KEY_MAP 2 STORE_GLOBAL dictionaries LOAD_GLOBAL NULL + Tree CALL ...
def init(): """pass""" global dictionaries, trees dictionaries = {'traditional': {}, 'simplified': {}} trees = {'traditional': Tree(), 'simplified': Tree()} lines = gzip.open(os.path.join(os.path.dirname(__file__), 'cedict.txt.gz'), mode='rt', encoding='utf-8') exp = re.compile('^([^ ]+) ([^ ]+)...
{ "repo": "lxyu/pinyin", "repo_url": "https://github.com/lxyu/pinyin", "file_path": "pinyin/cedict.py", "commit_sha": "f9cac5902b0cfaf91d93af633dfc75a51d2bf0cd", "func_name": "init", "line_start": 55, "line_end": 88, "permalink": "https://github.com/lxyu/pinyin/blob/f9cac5902b0cfaf91d93af633dfc75a51d2bf...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "c57981289c00dac5b5170fa36617f4ae3547bf92", "resolved_at_commit": "f9cac5902b0cfaf91d93af633dfc75a51d2bf0cd", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
lxyu/pinyin
init
137
false
593
src/00593.py
pyc/00593.pyc
CODE <module>() DOC 'simplified' RESUME 0 LOAD_CONST 'simplified' BUILD_LIST 1 BUILD_TUPLE 1 LOAD_CONST <code translate_word> MAKE_FUNCTION defaults STORE_NAME translate_word RETURN_CONST None END CODE translate_word(word, dictionary) DOC 'pass' RESUME 0 LOAD_GLOBAL dictionaries POP_JUMP_IF_TR...
def translate_word(word, dictionary=['simplified']): """pass""" if not dictionaries: init() for d in dictionary: if word in dictionaries[d]: return dictionaries[d][word] return None
{ "repo": "lxyu/pinyin", "repo_url": "https://github.com/lxyu/pinyin", "file_path": "pinyin/cedict.py", "commit_sha": "f9cac5902b0cfaf91d93af633dfc75a51d2bf0cd", "func_name": "translate_word", "line_start": 91, "line_end": 101, "permalink": "https://github.com/lxyu/pinyin/blob/f9cac5902b0cfaf91d93af633d...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "c57981289c00dac5b5170fa36617f4ae3547bf92", "resolved_at_commit": "f9cac5902b0cfaf91d93af633dfc75a51d2bf0cd", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
lxyu/pinyin
translate_word
44
false
594
src/00594.py
pyc/00594.pyc
CODE <module>() RESUME 0 LOAD_CONST <code get_status_key> MAKE_FUNCTION 0 STORE_NAME get_status_key RETURN_CONST None END CODE get_status_key(self, instance) DOC 'pass' RESUME 0 LOAD_FAST instance LOAD_ATTR pk POP_JUMP_IF_NOT_NONE L1 LOAD_CONST 'inst_%s' LOAD_GLOBAL NULL + id LOAD_FAST instanc...
def get_status_key(self, instance): """pass""" key_id = 'inst_%s' % id(instance) if instance.pk is None else instance.pk return '%s.%s-%s-%s' % (instance._meta.app_label, get_model_name(instance), key_id, self.field.name)
{ "repo": "lehins/django-smartfields", "repo_url": "https://github.com/lehins/django-smartfields", "file_path": "smartfields/managers.py", "commit_sha": "23d4b0b18352f4f40ce8c429735e673ba5191502", "func_name": "FieldManager.get_status_key", "line_start": 171, "line_end": 177, "permalink": "https://githu...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "9874001c060288475ba7eda8f88caff5510a5ff3", "resolved_at_commit": "23d4b0b18352f4f40ce8c429735e673ba5191502", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
lehins/django-smartfields
FieldManager.get_status_key
43
false
595
src/00595.py
pyc/00595.pyc
CODE <module>() RESUME 0 LOAD_CONST <code get_status> MAKE_FUNCTION 0 STORE_NAME get_status RETURN_CONST None END CODE get_status(self, instance) DOC 'pass' RESUME 0 LOAD_FAST self LOAD_ATTR NULL|self + _get_status LOAD_FAST instance CALL 1 UNPACK_SEQUENCE 2 STORE_FAST status_key STORE_FAST ...
def get_status(self, instance): """pass""" status_key, status = self._get_status(instance) if status['state'] in ['complete', 'error']: cache.delete(status_key) return status
{ "repo": "lehins/django-smartfields", "repo_url": "https://github.com/lehins/django-smartfields", "file_path": "smartfields/managers.py", "commit_sha": "23d4b0b18352f4f40ce8c429735e673ba5191502", "func_name": "FieldManager.get_status", "line_start": 193, "line_end": 201, "permalink": "https://github.co...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "9874001c060288475ba7eda8f88caff5510a5ff3", "resolved_at_commit": "23d4b0b18352f4f40ce8c429735e673ba5191502", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
lehins/django-smartfields
FieldManager.get_status
31
false
596
src/00596.py
pyc/00596.pyc
CODE <module>() RESUME 0 LOAD_CONST <code set_status> MAKE_FUNCTION 0 STORE_NAME set_status RETURN_CONST None END CODE set_status(self, instance, status) DOC 'pass' RESUME 0 LOAD_FAST self LOAD_ATTR NULL|self + get_status_key LOAD_FAST instance CALL 1 STORE_FAST status_key LOAD_GLOBAL cache ...
def set_status(self, instance, status): """pass""" status_key = self.get_status_key(instance) cache.set(status_key, status, timeout=300)
{ "repo": "lehins/django-smartfields", "repo_url": "https://github.com/lehins/django-smartfields", "file_path": "smartfields/managers.py", "commit_sha": "23d4b0b18352f4f40ce8c429735e673ba5191502", "func_name": "FieldManager.set_status", "line_start": 203, "line_end": 206, "permalink": "https://github.co...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "9874001c060288475ba7eda8f88caff5510a5ff3", "resolved_at_commit": "23d4b0b18352f4f40ce8c429735e673ba5191502", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
lehins/django-smartfields
FieldManager.set_status
24
false
597
src/00597.py
pyc/00597.pyc
CODE <module>() RESUME 0 LOAD_CONST (None,) LOAD_CONST <code get_mode> MAKE_FUNCTION defaults STORE_NAME get_mode RETURN_CONST None END CODE get_mode(self, old_mode) DOC 'pass' RESUME 0 LOAD_FAST self LOAD_ATTR mode POP_JUMP_IF_NONE L1 LOAD_FAST self LOAD_ATTR mode RETURN_VALUE L1: LOAD_FA...
def get_mode(self, old_mode=None): """pass""" if self.mode is not None: return self.mode assert self.can_write, 'This format does not have a supported output mode.' if old_mode is None: return self.output_modes[0] if old_mode in self.output_modes: return old_mode try: ...
{ "repo": "lehins/django-smartfields", "repo_url": "https://github.com/lehins/django-smartfields", "file_path": "smartfields/processors/image.py", "commit_sha": "23d4b0b18352f4f40ce8c429735e673ba5191502", "func_name": "ImageFormat.get_mode", "line_start": 118, "line_end": 144, "permalink": "https://gith...
{ "spdx": "MIT", "name": "MIT License", "file": "LICENSE", "blob_sha": "9874001c060288475ba7eda8f88caff5510a5ff3", "resolved_at_commit": "23d4b0b18352f4f40ce8c429735e673ba5191502", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
lehins/django-smartfields
ImageFormat.get_mode
124
false
598
src/00598.py
pyc/00598.pyc
CODE <module>() RESUME 0 LOAD_CONST (0,) LOAD_CONST <code token_at_cursor> MAKE_FUNCTION defaults STORE_NAME token_at_cursor RETURN_CONST None END CODE token_at_cursor(code, pos) DOC 'pass' RESUME 0 LOAD_GLOBAL NULL + len LOAD_FAST code CALL 1 STORE_FAST l LOAD_FAST pos COPY 1 STORE_FAST e...
def token_at_cursor(code, pos=0): """pass""" l = len(code) end = start = pos while end < l and code[end].isalpha(): end += 1 while start > 0 and code[start - 1].isalpha(): start -= 1 if start > 0 and code[start - 1] == '%': start -= 1 return (code[start:end], start)
{ "repo": "paulovn/sparql-kernel", "repo_url": "https://github.com/paulovn/sparql-kernel", "file_path": "sparqlkernel/kernel.py", "commit_sha": "1d2d155ff5da72070cb2a98fae33ea8113fac782", "func_name": "token_at_cursor", "line_start": 33, "line_end": 49, "permalink": "https://github.com/paulovn/sparql-ke...
{ "spdx": "BSD-3-Clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "file": "LICENSE", "blob_sha": "c4b318cd60fef9aa3b50283d6d6a6e9390f9786c", "resolved_at_commit": "1d2d155ff5da72070cb2a98fae33ea8113fac782", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
paulovn/sparql-kernel
token_at_cursor
101
false
599
src/00599.py
pyc/00599.pyc
CODE <module>() DOC 'ok' RESUME 0 LOAD_CONST ('ok', False) LOAD_CONST <code _send> MAKE_FUNCTION defaults STORE_NAME _send RETURN_CONST None END CODE _send(self, data, msg_type, silent) DOC 'pass' RESUME 0 LOAD_FAST data POP_JUMP_IF_NONE L4 NOP L1: LOAD_FAST self LOAD_ATTR _klog LOAD_ATTR ...
def _send(self, data, msg_type='ok', silent=False): """pass""" if data is not None: try: self._klog.debug(u'msg to frontend (%d): %.160s...', silent, data) except Exception as e: self._klog.warn(u"can't log response: %s", e) if not silent: if msg_type ...
{ "repo": "paulovn/sparql-kernel", "repo_url": "https://github.com/paulovn/sparql-kernel", "file_path": "sparqlkernel/kernel.py", "commit_sha": "1d2d155ff5da72070cb2a98fae33ea8113fac782", "func_name": "SparqlKernel._send", "line_start": 106, "line_end": 133, "permalink": "https://github.com/paulovn/spar...
{ "spdx": "BSD-3-Clause", "name": "BSD 3-Clause \"New\" or \"Revised\" License", "file": "LICENSE", "blob_sha": "c4b318cd60fef9aa3b50283d6d6a6e9390f9786c", "resolved_at_commit": "1d2d155ff5da72070cb2a98fae33ea8113fac782", "resolved_via": "GitHub GET /repos/{repo}/license?ref={sha}" }
paulovn/sparql-kernel
SparqlKernel._send
98
false