code
stringlengths
1
1.49M
file_id
stringlengths
42
46
node_count
int64
0
7.38k
total_lines
int64
1
20.9k
vector_dim
int64
15
15
vector_labels
stringclasses
1 value
nodes
stringlengths
2
3.75M
connections
stringlengths
2
964k
import warnings def saveit(func): """A decorator that caches the return value of a function""" name = '_' + func.__name__ def _wrapper(self, *args, **kwds): if not hasattr(self, name): setattr(self, name, func(self, *args, **kwds)) return getattr(self, name) return _wrappe...
ajibawa-2023/Python-Code-Large/train/row_89529
60
78
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89529:Import_L1_C0", "label": "warnings import warnings", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0128, 0.0128, 0, 0.66, 0.0, 358, 0, 1, 0, 0, 358, 0, 0], "semantic": {"name": "warnings", "arg_names": [], "import_names": ["warning...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89529:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89529:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89529:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89529:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
import rope.base.pyobjects from rope.base import exceptions, utils class PyName(object): """References to `PyObject`\s inside python programs""" def get_object(self): """Return the `PyObject` object referenced by this `PyName`""" def get_definition_location(self): """Return a (module, li...
ajibawa-2023/Python-Code-Large/train/row_89530
126
199
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89530:Import_L1_C0", "label": "rope.base.pyobjects import rope.base.pyobjects", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.005, 0.005, 0, 0.66, 0.0, 626, 0, 1, 0, 0, 626, 0, 0], "semantic": {"name": "rope.base.pyobjects", "arg_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89530:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89530:Expr_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89530:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89530:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
import rope.base.builtins import rope.base.pynames import rope.base.pyobjects from rope.base import ast, astutils, exceptions, pyobjects, arguments, worder BadIdentifierError = exceptions.BadIdentifierError def eval_location(pymodule, offset): """Find the pyname at the offset""" return eval_location2(pymodul...
ajibawa-2023/Python-Code-Large/train/row_89532
225
321
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89532:Import_L1_C0", "label": "rope.base.builtins import rope.base.builtins", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0031, 0.0031, 0, 0.66, 0.0, 74, 0, 1, 0, 0, 74, 0, 0], "semantic": {"name": "rope.base.builtins", "arg_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89532:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89532:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89532:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89532:Return_L11_C4"}, {"f": "ajibawa-2023/Python-Code-L...
class RopeError(Exception): """Base exception for rope""" class ResourceNotFoundError(RopeError): """Resource not found exception""" class RefactoringError(RopeError): """Errors for performing a refactoring""" class InterruptedTaskError(RopeError): """The task has been interrupted""" class Histo...
ajibawa-2023/Python-Code-Large/train/row_89533
31
61
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89533:ClassDef_L1_C0", "label": "RopeError", "type": "class", "loc": [1, 2], "level": 0, "parent": null, "vector": [3, 0, 0.0246, 0.0328, 0, 0.66, 0.0, 367, 0, 0, 0, 0, 645, 0, 0], "semantic": {"name": "RopeError", "arg_names": [], "import_names": [], "rhs_call_name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89533:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89533:Expr_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89533:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89533:Expr_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
import cPickle as pickle import os import shutil import sys import warnings import rope.base.fscommands from rope.base import exceptions, taskhandle, prefs, history, pycore, utils from rope.base.resourceobserver import * from rope.base.resources import File, Folder, _ResourceMatcher class _Project(object): def ...
ajibawa-2023/Python-Code-Large/train/row_89534
240
375
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89534:Import_L1_C0", "label": "cPickle import pickle", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0027, 0.0027, 0, 0.66, 0.0, 279, 0, 1, 0, 0, 279, 0, 0], "semantic": {"name": "cPickle", "arg_names": [], "import_names": ["pickle"], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89534:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89534:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89534:FunctionDef_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89534:Assign_L16_C8"}, {"f": "ajibawa-2023/Python-...
"""Base rope package This package contains rope core modules that are used by other modules and packages. """ __all__ = ['project', 'libutils', 'exceptions']
ajibawa-2023/Python-Code-Large/train/row_89536
2
8
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89536:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.4375, 0.75, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[]
import rope.base.builtins import rope.base.codeanalyze import rope.base.pynames from rope.base import ast, exceptions, utils class Scope(object): def __init__(self, pycore, pyobject, parent_scope): self.pycore = pycore self.pyobject = pyobject self.parent = parent_scope def get_names...
ajibawa-2023/Python-Code-Large/train/row_89538
205
313
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89538:Import_L1_C0", "label": "rope.base.builtins import rope.base.builtins", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0032, 0.0032, 0, 0.66, 0.0, 74, 0, 1, 0, 0, 74, 0, 0], "semantic": {"name": "rope.base.builtins", "arg_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89538:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89538:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89538:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89538:Assign_L10_C8"}, {"f": "ajibawa-2023/Python-Cod...
class Prefs(object): def __init__(self): self.prefs = {} self.callbacks = {} def set(self, key, value): """Set the value of `key` preference to `value`.""" if key in self.callbacks: self.callbacks[key](value) else: self.prefs[key] = value de...
ajibawa-2023/Python-Code-Large/train/row_89539
24
41
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89539:ClassDef_L1_C0", "label": "Prefs", "type": "class", "loc": [1, 41], "level": 0, "parent": null, "vector": [3, 0, 0.5122, 1.0, 0, 0.66, 0.0, 772, 0, 7, 0, 0, 186, 0, 5], "semantic": {"name": "Prefs", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89539:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89539:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89539:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89539:Assign_L4_C8"}, {"f": "ajibawa-2023/Python-Code...
import rope.base.change from rope.base import exceptions, evaluate, worder, codeanalyze from rope.refactor import functionutils, sourceutils, occurrences class IntroduceParameter(object): """Introduce parameter refactoring This refactoring adds a new parameter to a function and replaces references to an ...
ajibawa-2023/Python-Code-Large/train/row_89540
47
95
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89540:Import_L1_C0", "label": "rope.base.change import rope.base.change", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0105, 0.0105, 0, 0.66, 0.0, 682, 0, 1, 0, 0, 682, 0, 0], "semantic": {"name": "rope.base.change", "arg_names": [], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89540:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89540:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89540:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89540:FunctionDef_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
from rope.base import (change, taskhandle, evaluate, exceptions, pyobjects, pynames, ast) from rope.refactor import restructure, sourceutils, similarfinder, importutils class UseFunction(object): """Try to use a function wherever possible""" def __init__(self, project, resource, offset...
ajibawa-2023/Python-Code-Large/train/row_89541
116
171
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89541:ImportFrom_L1_C0", "label": "from rope.base import change, taskhandle, evaluate\u2026", "type": "import", "loc": [1, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0088, 0.0117, 0, 0.66, 0.0, 632, 0, 7, 0, 0, 632, 0, 0], "semantic": {"name": "rope.base", "arg_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89541:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89541:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89541:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89541:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
import re from rope.base import ast, codeanalyze from rope.base.change import ChangeSet, ChangeContents from rope.base.exceptions import RefactoringError from rope.refactor import (sourceutils, similarfinder, patchedast, suites, usefunction) # Extract refactoring has lots of special cases....
ajibawa-2023/Python-Code-Large/train/row_89542
529
789
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89542:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0013, 0.0013, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89542:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89542:FunctionDef_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89542:FunctionDef_L36_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89542:Assign_L38_C8"}, {"f": "ajibawa-2023/Python-...
import collections import re import warnings from rope.base import ast, codeanalyze, exceptions def get_patched_ast(source, sorted_children=False): """Adds ``region`` and ``sorted_children`` fields to nodes Adds ``sorted_children`` field only if `sorted_children` is True. """ return patch_ast(ast.p...
ajibawa-2023/Python-Code-Large/train/row_89543
558
734
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89543:Import_L1_C0", "label": "collections import collections", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0014, 0.0014, 0, 0.66, 0.0, 193, 0, 1, 0, 0, 193, 0, 0], "semantic": {"name": "collections", "arg_names": [], "import_names": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89543:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89543:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89543:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89543:Return_L14_C4"}, {"f": "ajibawa-2023/Python-Code-La...
import warnings from rope.base import exceptions, pyobjects, pynames, taskhandle, evaluate, worder, codeanalyze from rope.base.change import ChangeSet, ChangeContents, MoveResource from rope.refactor import occurrences, sourceutils class Rename(object): """A class for performing rename refactoring It can re...
ajibawa-2023/Python-Code-Large/train/row_89544
125
216
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89544:Import_L1_C0", "label": "warnings import warnings", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0046, 0.0046, 0, 0.66, 0.0, 358, 0, 1, 0, 0, 358, 0, 0], "semantic": {"name": "warnings", "arg_names": [], "import_names": ["warning...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89544:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89544:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89544:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89544:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
from rope.base import ast def find_visible(node, lines): """Return the line which is visible from all `lines`""" root = ast_suite_tree(node) return find_visible_for_suite(root, lines) def find_visible_for_suite(root, lines): if len(lines) == 1: return lines[0] line1 = lines[0] line2 ...
ajibawa-2023/Python-Code-Large/train/row_89545
108
142
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89545:ImportFrom_L1_C0", "label": "from rope.base import ast", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.007, 0.007, 0, 0.66, 0.0, 632, 0, 1, 0, 0, 632, 0, 0], "semantic": {"name": "rope.base", "arg_names": [], "import_names": ["ast...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89545:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89545:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89545:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89545:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""This module can be used for finding similar code""" import re import rope.refactor.wildcards from rope.base import codeanalyze, evaluate, exceptions, ast, builtins from rope.refactor import (patchedast, sourceutils, occurrences, wildcards, importutils) class BadNameInCheckError(exceptio...
ajibawa-2023/Python-Code-Large/train/row_89546
256
362
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89546:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0028, 0.0028, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89546:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89546:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89546:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89546:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-...
from rope.base import ast, evaluate, builtins, pyobjects from rope.refactor import patchedast, occurrences class Wildcard(object): def get_name(self): """Return the name of this wildcard""" def matches(self, suspect, arg): """Return `True` if `suspect` matches this wildcard""" class Suspec...
ajibawa-2023/Python-Code-Large/train/row_89547
129
176
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89547:ImportFrom_L1_C0", "label": "from rope.base import ast, evaluate, builtins\u2026", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0057, 0.0057, 0, 0.66, 0.0, 632, 0, 4, 0, 0, 632, 0, 0], "semantic": {"name": "rope.base", "arg_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89547:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89547:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89547:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89547:Expr_L8_C8"}, {"f": "ajibawa-2023/Python-Code-L...
import copy import rope.base.exceptions from rope.base import pyobjects, taskhandle, evaluate, worder, codeanalyze, utils from rope.base.change import ChangeContents, ChangeSet from rope.refactor import occurrences, functionutils class ChangeSignature(object): def __init__(self, project, resource, offset): ...
ajibawa-2023/Python-Code-Large/train/row_89548
194
342
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89548:Import_L1_C0", "label": "copy import copy", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0029, 0.0029, 0, 0.66, 0.0, 739, 0, 1, 0, 0, 739, 0, 0], "semantic": {"name": "copy", "arg_names": [], "import_names": ["copy"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89548:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89548:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89548:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89548:Assign_L12_C8"}, {"f": "ajibawa-2023/Python-C...
from rope.base import pynames, evaluate, exceptions, worder from rope.refactor.rename import Rename class LocalToField(object): def __init__(self, project, resource, offset): self.project = project self.pycore = project.pycore self.resource = resource self.offset = offset def...
ajibawa-2023/Python-Code-Large/train/row_89549
30
50
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89549:ImportFrom_L1_C0", "label": "from rope.base import pynames, evaluate, exceptions\u2026", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.02, 0.02, 0, 0.66, 0.0, 632, 0, 4, 0, 0, 632, 0, 0], "semantic": {"name": "rope.base", "arg_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89549:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89549:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89549:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89549:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code...
import rope.base.pynames from rope.base import ast, utils from rope.refactor.importutils import importinfo from rope.refactor.importutils import actions class ModuleImports(object): def __init__(self, pycore, pymodule, import_filter=None): self.pycore = pycore self.pymodule = pymodule sel...
ajibawa-2023/Python-Code-Large/train/row_89550
329
455
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89550:Import_L1_C0", "label": "rope.base.pynames import rope.base.pynames", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0022, 0.0022, 0, 0.66, 0.0, 903, 0, 1, 0, 0, 903, 0, 0], "semantic": {"name": "rope.base.pynames", "arg_names": []...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89550:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89550:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89550:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89550:Assign_L10_C8"}, {"f": "ajibawa-2023/Python-Cod...
"""A package for handling imports This package provides tools for modifying module imports after refactorings or as a separate task. """ import rope.base.evaluate from rope.base.change import ChangeSet, ChangeContents from rope.refactor import occurrences, rename from rope.refactor.importutils import module_imports, ...
ajibawa-2023/Python-Code-Large/train/row_89551
213
299
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89551:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0117, 0.0201, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89551:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89551:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89551:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89551:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-...
class ImportStatement(object): """Represent an import in a module `readonly` attribute controls whether this import can be changed by import actions or not. """ def __init__(self, import_info, start_line, end_line, main_statement=None, blank_lines=0): self.start_line = st...
ajibawa-2023/Python-Code-Large/train/row_89552
118
201
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89552:ClassDef_L1_C0", "label": "ImportStatement", "type": "class", "loc": [1, 56], "level": 0, "parent": null, "vector": [3, 0, 0.1418, 0.2786, 0, 0.66, 0.0, 919, 0, 10, 0, 0, 186, 0, 4], "semantic": {"name": "ImportStatement", "arg_names": [], "import_names": [], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89552:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89552:Expr_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89552:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89552:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
import os import sys from rope.base import pyobjects, exceptions, stdmods from rope.refactor import occurrences from rope.refactor.importutils import importinfo class ImportInfoVisitor(object): def dispatch(self, import_): try: method_name = 'visit' + import_.import_info.__class__.__name__ ...
ajibawa-2023/Python-Code-Large/train/row_89553
253
359
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89553:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0028, 0.0028, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89553:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89553:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89553:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89553:Try_L12_C8"}, {"f": "ajibawa-2023/Python-Code...
from rope.base import pynames, taskhandle, evaluate, exceptions, worder, utils from rope.base.change import ChangeSet, ChangeContents from rope.refactor import sourceutils, occurrences class EncapsulateField(object): def __init__(self, project, resource, offset): self.pycore = project.pycore self...
ajibawa-2023/Python-Code-Large/train/row_89554
136
202
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89554:ImportFrom_L1_C0", "label": "from rope.base import pynames, taskhandle, evaluate\u2026", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.005, 0.005, 0, 0.66, 0.0, 632, 0, 6, 0, 0, 632, 0, 0], "semantic": {"name": "rope.base", "arg_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89554:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89554:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89554:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89554:Assign_L9_C8"}, {"f": "ajibawa-2023/Python-Code...
import rope.base.exceptions import rope.base.pyobjects from rope.base.builtins import Lambda from rope.base import worder class DefinitionInfo(object): def __init__(self, function_name, is_method, args_with_defaults, args_arg, keywords_arg): self.function_name = function_name sel...
ajibawa-2023/Python-Code-Large/train/row_89555
159
222
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89555:Import_L1_C0", "label": "rope.base.exceptions import rope.base.exceptions", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0045, 0.0045, 0, 0.66, 0.0, 296, 0, 1, 0, 0, 296, 0, 0], "semantic": {"name": "rope.base.exceptions", "arg_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89555:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89555:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89555:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89555:Assign_L11_C8"}, {"f": "ajibawa-2023/Python-Cod...
import rope.refactor.importutils from rope.base.change import ChangeSet, ChangeContents, MoveResource, CreateFolder class ModuleToPackage(object): def __init__(self, project, resource): self.project = project self.pycore = project.pycore self.resource = resource def get_changes(self)...
ajibawa-2023/Python-Code-Large/train/row_89556
26
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89556:Import_L1_C0", "label": "rope.refactor.importutils import rope.refactor.importutils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0312, 0.0312, 0, 0.66, 0.0, 488, 0, 1, 0, 0, 488, 0, 0], "semantic": {"name": "rope.refactor.impor...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89556:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89556:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89556:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89556:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code...
import warnings from rope.base import pyobjects, exceptions, change, evaluate, codeanalyze from rope.refactor import sourceutils, occurrences, rename class MethodObject(object): def __init__(self, project, resource, offset): self.pycore = project.pycore this_pymodule = self.pycore.resource_to_py...
ajibawa-2023/Python-Code-Large/train/row_89557
59
87
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89557:Import_L1_C0", "label": "warnings import warnings", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0115, 0.0115, 0, 0.66, 0.0, 358, 0, 1, 0, 0, 358, 0, 0], "semantic": {"name": "warnings", "arg_names": [], "import_names": ["warning...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89557:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89557:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89557:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89557:Assign_L10_C8"}, {"f": "ajibawa-2023/Python-Cod...
from rope.base import ast, codeanalyze def get_indents(lines, lineno): return codeanalyze.count_line_indents(lines.get_line(lineno)) def find_minimum_indents(source_code): result = 80 lines = source_code.split('\n') for line in lines: if line.strip() == '': continue resul...
ajibawa-2023/Python-Code-Large/train/row_89558
68
92
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89558:ImportFrom_L1_C0", "label": "from rope.base import ast, codeanalyze", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0109, 0.0109, 0, 0.66, 0.0, 632, 0, 2, 0, 0, 632, 0, 0], "semantic": {"name": "rope.base", "arg_names": [], "impor...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89558:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89558:Return_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89558:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89558:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import re import rope.base.pynames from rope.base import pynames, pyobjects, codeanalyze, evaluate, exceptions, utils, worder class Finder(object): """For finding occurrences of a name The constructor takes a `filters` argument. It should be a list of functions that take a single argument. For each po...
ajibawa-2023/Python-Code-Large/train/row_89559
210
334
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89559:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.003, 0.003, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": "", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89559:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89559:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89559:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89559:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""A module containing classes for move refactoring `create_move()` is a factory for creating move refactoring objects based on inputs. """ from rope.base import pyobjects, codeanalyze, exceptions, pynames, taskhandle, evaluate, worder from rope.base.change import ChangeSet, ChangeContents, MoveResource from rope.ref...
ajibawa-2023/Python-Code-Large/train/row_89560
412
629
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89560:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0056, 0.0095, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89560:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89560:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89560:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89560:If_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
import rope.base.exceptions import rope.base.pyobjects from rope.base import taskhandle, evaluate from rope.base.change import (ChangeSet, ChangeContents) from rope.refactor import rename, occurrences, sourceutils, importutils class IntroduceFactory(object): def __init__(self, project, resource, offset): ...
ajibawa-2023/Python-Code-Large/train/row_89561
79
133
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89561:Import_L1_C0", "label": "rope.base.exceptions import rope.base.exceptions", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0075, 0.0075, 0, 0.66, 0.0, 296, 0, 1, 0, 0, 296, 0, 0], "semantic": {"name": "rope.base.exceptions", "arg_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89561:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89561:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89561:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89561:Assign_L11_C8"}, {"f": "ajibawa-2023/Python-C...
"""rope refactor package This package contains modules that perform python refactorings. Refactoring classes perform refactorings in 4 steps: 1. Collect some data for performing the refactoring and use them to construct a refactoring class. Like:: renamer = Rename(project, resource, offset) 2. Some refacto...
ajibawa-2023/Python-Code-Large/train/row_89562
4
55
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89562:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 47], "level": 0, "parent": null, "vector": [8, 0, 0.4364, 0.8545, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[]
"""This module can be used for performing cross-project refactorings See the "cross-project refactorings" section of ``docs/library.txt`` file. """ from rope.base import resources, project, libutils class MultiProjectRefactoring(object): def __init__(self, refactoring, projects, addpath=True): """Crea...
ajibawa-2023/Python-Code-Large/train/row_89563
46
78
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89563:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0449, 0.0769, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89563:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89563:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89563:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89563:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Co...
# Known Bugs when inlining a function/method # The values passed to function are inlined using _inlined_variable. # This may cause two problems, illustrated in the examples below # # def foo(var1): # var1 = var1*10 # return var1 # # If a call to foo(20) is inlined, the result of inlined function is 20, # but it...
ajibawa-2023/Python-Code-Large/train/row_89564
399
615
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89564:Import_L19_C0", "label": "re import re", "type": "import", "loc": [19, 19], "level": 0, "parent": null, "vector": [1, 0, 0.0309, 0.0016, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89564:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89564:Assign_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89564:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89564:While_L31_C4"}, {"f": "ajibawa-2023/Python-Cod...
import warnings from rope.base import change, taskhandle, builtins, ast, codeanalyze from rope.refactor import patchedast, similarfinder, sourceutils from rope.refactor.importutils import module_imports class Restructure(object): """A class to perform python restructurings A restructuring transforms pieces ...
ajibawa-2023/Python-Code-Large/train/row_89565
166
307
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89565:Import_L1_C0", "label": "warnings import warnings", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0033, 0.0033, 0, 0.66, 0.0, 358, 0, 1, 0, 0, 358, 0, 0], "semantic": {"name": "warnings", "arg_names": [], "import_names": ["warning...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89565:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89565:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89565:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89565:FunctionDef_L75_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
import rope.base.evaluate from rope.base import change, pyobjects, exceptions, pynames, worder, codeanalyze from rope.refactor import sourceutils, importutils, functionutils, suites def create_generate(kind, project, resource, offset): """A factory for creating `Generate` objects `kind` can be 'variable', 'f...
ajibawa-2023/Python-Code-Large/train/row_89566
259
355
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89566:Import_L1_C0", "label": "rope.base.evaluate import rope.base.evaluate", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0028, 0.0028, 0, 0.66, 0.0, 790, 0, 1, 0, 0, 790, 0, 0], "semantic": {"name": "rope.base.evaluate", "arg_names":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89566:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89566:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89566:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89566:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-La...
import re from rope.base import (exceptions, pynames, resourceobserver, taskhandle, pyobjects, builtins, resources) from rope.refactor import importutils class AutoImport(object): """A class for finding the module that provides a name This class maintains a cache of global names in py...
ajibawa-2023/Python-Code-Large/train/row_89568
144
217
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89568:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0046, 0.0046, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89568:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89568:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89568:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89568:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""For performing many refactorings as a single command `changestack` module can be used to perform many refactorings on top of each other as one bigger command. It can be used like:: stack = ChangeStack(project, 'my big command') #.. stack.push(refactoring1.get_changes()) #.. stack.push(refactoring2.get_...
ajibawa-2023/Python-Code-Large/train/row_89569
25
52
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89569:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1923, 0.3654, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89569:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89569:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89569:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89569:Assign_L27_C8"}, {"f": "ajibawa-2023/Python-...
import rope.base.codeanalyze import rope.base.evaluate import rope.base.pyobjects from rope.base import taskhandle, exceptions, worder from rope.contrib import fixsyntax from rope.refactor import occurrences def find_occurrences(project, resource, offset, unsure=False, resources=None, in_hierarch...
ajibawa-2023/Python-Code-Large/train/row_89570
70
110
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89570:Import_L1_C0", "label": "rope.base.codeanalyze import rope.base.codeanalyze", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0091, 0.0091, 0, 0.66, 0.0, 341, 0, 1, 0, 0, 341, 0, 0], "semantic": {"name": "rope.base.codeanalyze", "ar...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89570:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89570:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89570:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89570:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-L...
"""rope IDE tools package This package contains modules that can be used in IDEs but do not depend on the UI. So these modules will be used by `rope.ui` modules. """
ajibawa-2023/Python-Code-Large/train/row_89571
1
7
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89571:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.5714, 1.0, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[]
"""Fix the name of modules This module is useful when you want to rename many of the modules in your project. That can happen specially when you want to change their naming style. For instance:: fixer = FixModuleNames(project) changes = fixer.get_changes(fixer=str.lower) project.do(changes) Here it renames a...
ajibawa-2023/Python-Code-Large/train/row_89572
35
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89572:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 17], "level": 0, "parent": null, "vector": [8, 0, 0.1304, 0.2464, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89572:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89572:FunctionDef_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89572:FunctionDef_L25_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89572:Assign_L26_C8"}, {"f": "ajibawa-2023/Python-...
"""Finding bad name and attribute accesses `find_errors` function can be used to find possible bad name and attribute accesses. As an example:: errors = find_errors(project, project.get_resource('mod.py')) for error in errors: print '%s: %s' % (error.lineno, error.error) prints possible errors for ``mod.p...
ajibawa-2023/Python-Code-Large/train/row_89574
48
91
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89574:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 25], "level": 0, "parent": null, "vector": [8, 0, 0.1429, 0.2747, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89574:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89574:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89574:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89574:Assign_L34_C4"}, {"f": "ajibawa-2023/Python-Code...
"""rope, a python refactoring library""" INFO = __doc__ VERSION = '0.9.4' COPYRIGHT = """\ Copyright (C) 2006-2012 Ali Gholami Rudi Copyright (C) 2009-2012 Anton Gritsay This program is free software; you can redistribute it and/or modify it under the terms of GNU General Public License as published by the Free Softw...
ajibawa-2023/Python-Code-Large/train/row_89575
4
17
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89575:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0588, 0.0588, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
from spyderlib.qt.QtGui import (QApplication, QMainWindow, QWidget, QLabel, QLineEdit, QHBoxLayout, QDockWidget, QFont) from spyderlib.qt.QtCore import Qt from spyderlib.widgets.internalshell import InternalShell class MyWidget(QWidget): def __init__(self): QWid...
ajibawa-2023/Python-Code-Large/train/row_89577
47
72
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89577:ImportFrom_L2_C0", "label": "from spyderlib.qt.QtGui import QApplication, QMainWindow, QWidget\u2026", "type": "import", "loc": [2, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0347, 0.0278, 0, 0.66, 0.0, 314, 0, 8, 0, 0, 314, 0, 0], "semantic": {"name": "sp...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89577:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89577:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89577:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89577:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Cod...
# -*- coding:utf-8 -*- # # Copyright © 2011 Santiago Jaramillo # based on p_pylint.py by Pierre Raybaut # # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Profiler Plugin""" from spyderlib.qt.QtGui import QVBoxLayout, QGroupBox, QLabel from spyderlib.qt.QtCore import SIGNAL, ...
ajibawa-2023/Python-Code-Large/train/row_89579
78
141
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89579:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0638, 0.0071, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89579:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89579:FunctionDef_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89579:FunctionDef_L25_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89579:Assign_L26_C8"}, {"f": "ajibawa-2023/Python-...
# -*- coding: utf-8 -*- # # Copyright © 2011 Santiago Jaramillo # based on pylintgui.py by Pierre Raybaut # # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ Profiler widget See the official documentation on python profiling: http://docs.python.org/library/profile.html Quest...
ajibawa-2023/Python-Code-Large/train/row_89580
333
535
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89580:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0243, 0.0168, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89580:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89580:ImportFrom_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89580:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89580:Return_L46_C4"}, {"f": "ajibawa-2023/Pytho...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Pylint widget""" # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 from __future__ import with_stateme...
ajibawa-2023/Python-Code-Large/train/row_89581
303
451
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89581:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0155, 0.0022, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89581:ClassDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89581:FunctionDef_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89581:FunctionDef_L45_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89581:Expr_L46_C8"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ spyderlib.widgets ================= Widgets defined in this module may be used in any other Qt-based application They are also used in Spyder throug...
ajibawa-2023/Python-Code-Large/train/row_89582
1
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89582:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 15], "level": 0, "parent": null, "vector": [8, 0, 0.7333, 0.6, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[]
# -*- coding: utf-8 -*- # # Copyright © 2012 Jed Ludlow # based loosley on pylintgui.py by Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Breakpoint widget""" # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disabl...
ajibawa-2023/Python-Code-Large/train/row_89583
153
223
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89583:Expr_L8_C0", "label": "expression", "type": "expression", "loc": [8, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0359, 0.0045, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89583:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89583:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89583:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89583:FunctionDef_L38_C4"}, {"f": "ajibawa-2023/Python-Code-...
# -*- coding:utf-8 -*- # # Copyright © 2009-2011 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Pylint Code Analysis Plugin""" # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 from spyderlib.qt.QtGu...
ajibawa-2023/Python-Code-Large/train/row_89584
94
173
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89584:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0405, 0.0058, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89584:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89584:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89584:FunctionDef_L27_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89584:Assign_L28_C8"}, {"f": "ajibawa-2023/Python-...
# -*- coding:utf-8 -*- # # Copyright © 2012 Jed Ludlow # Based loosely on p_pylint.py by Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Breakpoint Plugin""" # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=...
ajibawa-2023/Python-Code-Large/train/row_89587
58
123
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89587:Expr_L8_C0", "label": "expression", "type": "expression", "loc": [8, 8], "level": 0, "parent": null, "vector": [8, 0, 0.065, 0.0081, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89587:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89587:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89587:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89587:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ Spyder ====== The Scientific PYthon Development EnviRonment """ from distutils.core import setup from distutils.command.build import build from distutils.comman...
ajibawa-2023/Python-Code-Large/train/row_89588
69
169
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89588:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0562, 0.0355, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89588:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89588:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89588:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89588:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright © 2012 The Spyder development team # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ Create a stand-alone Mac OS X app using py2app To be used like this: $ python create_app.py py2app """ from setuptools import setup from distutils.sysc...
ajibawa-2023/Python-Code-Large/train/row_89589
80
201
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89589:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0473, 0.0299, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89589:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89589:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89589:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89589:Assign_L44_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python from spyderlib import start_app start_app.main()
ajibawa-2023/Python-Code-Large/train/row_89590
2
3
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89590:ImportFrom_L2_C0", "label": "from spyderlib import start_app", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.6667, 0.3333, 0, 0.66, 0.0, 498, 0, 1, 0, 0, 498, 0, 0], "semantic": {"name": "spyderlib", "arg_names": [], "import_names...
[]
# postinstall script for Spyder """Create Spyder start menu entries""" import os import sys import os.path as osp import struct import _winreg as winreg EWS = "Edit with Spyder" KEY_C = r"Software\Classes\%s" KEY_C0 = KEY_C % r"Python.%sFile\shell\%s" KEY_C1 = KEY_C0 + r"\command" def install(): """Function exec...
ajibawa-2023/Python-Code-Large/train/row_89591
53
86
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89591:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 2], "level": 0, "parent": null, "vector": [8, 0, 0.0233, 0.0116, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89591:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89591:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89591:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89591:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code...
import numpy numpy.
ajibawa-2023/Python-Code-Large/train/row_89592
1
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89592:Import_L1_C0", "label": "numpy import numpy", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 1.0, 1.0, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["numpy"], "rhs_call_nam...
[]
import numpy numpy.linspace
ajibawa-2023/Python-Code-Large/train/row_89593
2
2
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89593:Import_L1_C0", "label": "numpy import numpy", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.5, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["numpy"], "rhs_call_nam...
[]
# -*- coding: utf-8 -*- """ Created on Wed Feb 23 15:44:03 2011 @author: Pierre Raybaut """ import time, os.path as osp import rope.base.project import rope.base.libutils import rope.contrib.codeassist ROPE_PREFS = { 'ignore_syntax_errors': True, 'ignore_bad_imports': Tr...
ajibawa-2023/Python-Code-Large/train/row_89594
56
105
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89594:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0381, 0.0476, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89594:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89594:Assign_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89594:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89594:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- test-case-name: pyflakes -*- # (c) 2005-2010 Divmod, Inc. # See LICENSE file for details import __builtin__ import os.path import _ast from pyflakes import messages # utility function to iterate over an AST node's children, adapted # from Python 2.6's standard ast module try: import ast iter_child_nod...
ajibawa-2023/Python-Code-Large/train/row_89595
304
624
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89595:Import_L5_C0", "label": "__builtin__ import __builtin__", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.008, 0.0016, 0, 0.66, 0.0, 364, 0, 1, 0, 0, 364, 0, 0], "semantic": {"name": "__builtin__", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89595:Try_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89595:Import_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89595:Try_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89595:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# (c) 2005 Divmod, Inc. See LICENSE file for details class Message(object): message = '' message_args = () def __init__(self, filename, lineno): self.filename = filename self.lineno = lineno def __str__(self): return '%s:%s: %s' % (self.filename, self.lineno, self.message % sel...
ajibawa-2023/Python-Code-Large/train/row_89597
64
94
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89597:ClassDef_L3_C0", "label": "Message", "type": "class", "loc": [3, 10], "level": 0, "parent": null, "vector": [3, 0, 0.0691, 0.0851, 0, 0.66, 0.0, 6, 0, 2, 0, 0, 186, 0, 0], "semantic": {"name": "Message", "arg_names": [], "import_names": [], "rhs_call_name": "", "a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89597:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89597:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89597:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89597:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
__version__ = '0.5.0'
ajibawa-2023/Python-Code-Large/train/row_89598
1
2
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89598:Assign_L2_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [2, 2], "level": 0, "parent": null, "vector": [14, 0, 1.0, 0.5, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call...
[]
import textwrap import _ast from twisted.trial import unittest from pyflakes import checker class Test(unittest.TestCase): def flakes(self, input, *expectedOutputs, **kw): ast = compile(textwrap.dedent(input), "<test>", "exec", _ast.PyCF_ONLY_AST) w = checker.Checker(ast,...
ajibawa-2023/Python-Code-Large/train/row_89599
14
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89599:Import_L2_C0", "label": "textwrap import textwrap", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0741, 0.037, 0, 0.66, 0.0, 641, 0, 1, 0, 0, 641, 0, 0], "semantic": {"name": "textwrap", "arg_names": [], "import_names": ["textwrap...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89599:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89599:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89599:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89599:Assign_L13_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ Bootstrapping Spyder (Executing Spyder from source checkout) This script is a contribution from techtonik: http://code.google.com/p/spyderlib/issues/detail?id=741 """ # pylint: ...
ajibawa-2023/Python-Code-Large/train/row_89600
38
91
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89600:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 13], "level": 0, "parent": null, "vector": [8, 0, 0.1099, 0.0769, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89600:Try_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89600:Expr_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89600:Try_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89600:Expr_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_8...
#!/usr/bin/python # pep8.py - Check Python source code formatting, according to PEP 8 # Copyright (C) 2006 Johann C. Rocholl <johann@rocholl.net> # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Soft...
ajibawa-2023/Python-Code-Large/train/row_89602
638
1,360
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89602:Expr_L25_C0", "label": "expression", "type": "expression", "loc": [25, 93], "level": 0, "parent": null, "vector": [8, 0, 0.0434, 0.0507, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89602:Try_L106_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89602:Expr_L107_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89602:Try_L106_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89602:ImportFrom_L109_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Shell Interpreter""" import sys import atexit import threading import ctypes import os import re import os.path as osp import pydoc from subproces...
ajibawa-2023/Python-Code-Large/train/row_89603
203
333
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89603:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.021, 0.003, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89603:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89603:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89603:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89603:If_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Patching matplotlib's FigureManager""" import sys def is_available(): """Is Matplotlib installed version supported by this patch?""" import...
ajibawa-2023/Python-Code-Large/train/row_89604
95
156
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89604:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0449, 0.0064, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89604:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89604:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89604:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89604:Import_L14_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright © 2012 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) import os if os.environ['QT_API'] == 'pyqt': from PyQt4.QtSvg import * # analysis:ignore else: from PySide.QtSvg import * # analysis:ignore
ajibawa-2023/Python-Code-Large/train/row_89606
4
12
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89606:Import_L7_C0", "label": "os import os", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.5833, 0.0833, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89606:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89606:ImportFrom_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89606:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89606:ImportFrom_L12_C4"}]
# -*- coding: utf-8 -*- # # Copyright © 2011 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ spyderlib.qt.compat ------------------- Transitional module providing compatibility functions intended to help migrating from PyQt to PySide. This modu...
ajibawa-2023/Python-Code-Large/train/row_89607
94
205
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89607:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 18], "level": 0, "parent": null, "vector": [8, 0, 0.061, 0.0585, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89607:If_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89607:Import_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89607:If_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89607:Try_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89...
# -*- coding: utf-8 -*- # # Copyright © 2011 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) import os if os.environ['QT_API'] == 'pyqt': from PyQt4.QtWebKit import * # analysis:ignore else: from PySide.QtWebKit import * # analysis:ignore
ajibawa-2023/Python-Code-Large/train/row_89608
4
12
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89608:Import_L7_C0", "label": "os import os", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.5833, 0.0833, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89608:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89608:ImportFrom_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89608:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89608:ImportFrom_L12_C4"}]
# -*- coding: utf-8 -*- # # Copyright © 2011 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) import os if os.environ['QT_API'] == 'pyqt': from PyQt4.Qt import QKeySequence, QTextCursor # analysis:ignore from PyQt4.QtGui import * # analysis:ignore else: ...
ajibawa-2023/Python-Code-Large/train/row_89609
5
13
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89609:Import_L7_C0", "label": "os import os", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.5385, 0.0769, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89609:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89609:ImportFrom_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89609:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89609:ImportFrom_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# -*- coding: utf-8 -*- # # Copyright © 2011 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Transitional package (PyQt4 --> PySide)""" import os os.environ.setdefault('QT_API', 'pyqt') assert os.environ['QT_API'] in ('pyqt', 'pyside') API = os.environ['QT_A...
ajibawa-2023/Python-Code-Large/train/row_89610
19
50
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89610:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.14, 0.02, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89610:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89610:Try_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89610:Try_L28_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89610:ImportFrom_L29_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# -*- coding: utf-8 -*- # # Copyright © 2011 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) import os if os.environ['QT_API'] == 'pyqt': from PyQt4.QtCore import * # analysis:ignore from PyQt4.Qt import QCoreApplication # analysis:ignore from PyQt4...
ajibawa-2023/Python-Code-Large/train/row_89611
12
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89611:Import_L7_C0", "label": "os import os", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.35, 0.05, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", "a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89611:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89611:ImportFrom_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89611:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89611:ImportFrom_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# -*- coding: utf-8 -*- # # Copyright © 2012 The Spyder development team # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) import optparse def get_options(): """ Convert options into commands return commands, message """ parser = optparse.OptionParser(usage="s...
ajibawa-2023/Python-Code-Large/train/row_89612
16
48
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89612:Import_L7_C0", "label": "optparse import optparse", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1458, 0.0208, 0, 0.66, 0.0, 323, 0, 1, 0, 0, 323, 0, 0], "semantic": {"name": "optparse", "arg_names": [], "import_names": ["optpars...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89612:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89612:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89612:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89612:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- # # Copyright © 2009-2011 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Running programs utilities""" from distutils.version import LooseVersion import os import os.path as osp import sys import subprocess import imp imp...
ajibawa-2023/Python-Code-Large/train/row_89613
124
228
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89613:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0307, 0.0044, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89613:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89613:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89613:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89613:For_L21_C4"}, {"f": "ajibawa-2023/Python-Code-La...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ Text encoding utilities, text file I/O Functions 'get_coding', 'decode', 'encode' and 'to_unicode' come from Eric4 source code (Utilities/__init___.py)...
ajibawa-2023/Python-Code-Large/train/row_89614
103
220
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89614:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0432, 0.0273, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89614:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89614:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89614:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89614:Try_L27_C4"}, {"f": "ajibawa-2023/Python-Code-La...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Utilities and wrappers around inspect module""" import inspect import re # Local imports: from spyderlib.utils import encoding SYMBOLS = r"[^\'\"a...
ajibawa-2023/Python-Code-Large/train/row_89615
184
295
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89615:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0237, 0.0034, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89615:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89615:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89615:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89615:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright © 2012 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Windows-specific utilities""" set_attached_console_visible = None is_attached_console_visible = None try: import win32gui, win32console, win32con ...
ajibawa-2023/Python-Code-Large/train/row_89616
12
29
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89616:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.2414, 0.0345, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89616:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89616:Import_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89616:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89616:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# -*- coding: utf-8 -*- # # Copyright © 2011 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Utilities for version control systems""" import os.path as osp import subprocess # Local imports from spyderlib.baseconfig import _ from spyderlib.utils import progra...
ajibawa-2023/Python-Code-Large/train/row_89617
47
103
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89617:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.068, 0.0097, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89617:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89617:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89617:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89617:For_L34_C4"}, {"f": "ajibawa-2023/Python-Code-La...
# -*- coding: utf-8 -*- # # Copyright © 2009-2011 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Qt utilities""" from spyderlib.qt.QtGui import (QAction, QStyle, QWidget, QIcon, QApplication, QLabel, QVBoxLayout, QHBox...
ajibawa-2023/Python-Code-Large/train/row_89618
283
419
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89618:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0167, 0.0024, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89618:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89618:Expr_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89618:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89618:If_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ Environment variable utilities """ from spyderlib.qt.QtGui import QDialog, QMessageBox import os # Local imports from spyderlib.baseconfig impor...
ajibawa-2023/Python-Code-Large/train/row_89619
86
139
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89619:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0576, 0.0216, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89619:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89619:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89619:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89619:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright (C) 2009 Tim Dumol <tim@timdumol.com> # Copyright (C) 2013 The Spyder Development Team # Distributed under the terms of the BSD License """Sphinx conf file for the object inspector rich text mode""" # 3rd party imports from sphinx import __version__ as sphinx_version # Local imp...
ajibawa-2023/Python-Code-Large/train/row_89620
28
115
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89620:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0609, 0.0087, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89620:If_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89620:Assign_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89620:If_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89620:Assign_L33_C4"}]
# -*- coding: utf-8 -*- # # Copyright © 2012 Spyder Development team # Licensed under the terms of the MIT or BSD Licenses # (See every file for its license) """ spyderlib.utils.inspector ======================== Configuration files for the object inspector rich text mode """ import sys from spyderlib...
ajibawa-2023/Python-Code-Large/train/row_89621
4
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89621:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 12], "level": 0, "parent": null, "vector": [8, 0, 0.5938, 0.375, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
# -*- coding: utf-8 -* """ Process docstrings with Sphinx AUTHORS: - Tim Joseph Dumol (2009-09-29): initial version - The Spyder Development Team: Several changes to make it work with Spyder Copyright (C) 2009 Tim Dumol <tim@timdumol.com> Copyright (C) 2013 The Spyder Development Team Distributed under the terms of ...
ajibawa-2023/Python-Code-Large/train/row_89622
82
241
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89622:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0415, 0.0622, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89622:FunctionDef_L65_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89622:Expr_L66_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89622:FunctionDef_L65_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89622:Return_L69_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- """Module completion auxiliary functions""" #------------------------------------------------------------------------------ # # Most functions on this file were taken from the file core/completerlib, # which belongs to the IPython project (v0.13). They were added here because # a) IPython is...
ajibawa-2023/Python-Code-Large/train/row_89623
154
322
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89623:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 2], "level": 0, "parent": null, "vector": [8, 0, 0.0062, 0.0031, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89623:If_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89623:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89623:If_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89623:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Debug utilities""" import inspect import traceback import time def log_time(fd): timestr = "Logging time: %s" % time.ctime(time.time()) p...
ajibawa-2023/Python-Code-Large/train/row_89624
49
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89624:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0933, 0.0133, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89624:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89624:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89624:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89624:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright © 2012 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Operating system utilities""" import os # Local imports from spyderlib.utils import programs def windows_memory_usage(): """Return physical mem...
ajibawa-2023/Python-Code-Large/train/row_89625
15
34
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89625:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0294, 0.0294, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89625:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89625:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89625:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89625:ImportFrom_L9_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright © 2011 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """BSD socket interface communication utilities""" # Be extra careful here. The interface is used to communicate with subprocesses # by redirecting output stream...
ajibawa-2023/Python-Code-Large/train/row_89626
76
177
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89626:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0395, 0.0056, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89626:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89626:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89626:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89626:While_L23_C4"}, {"f": "ajibawa-2023/Python-Code-...
# -*- coding: utf-8 -*- # # Copyright © 2011 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ Source code analysis utilities """ import sys import re import os from subprocess import Popen, PIPE import tempfile # Local import from spyderlib.u...
ajibawa-2023/Python-Code-Large/train/row_89627
82
146
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89627:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0548, 0.0205, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89627:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89627:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89627:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89627:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright © 2009 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ Python class/function parser Derived from "Demo/parser/example.py" from Python distribution ******************************** WARNING *********************...
ajibawa-2023/Python-Code-Large/train/row_89629
111
196
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89629:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0612, 0.0561, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89629:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89629:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89629:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89629:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ Source code text utilities """ # Order is important: EOL_CHARS = (("\r\n", 'nt'), ("\n", 'posix'), ("\r", 'mac')) def get_eol_chars(text): """...
ajibawa-2023/Python-Code-Large/train/row_89631
35
54
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89631:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 9], "level": 0, "parent": null, "vector": [8, 0, 0.1481, 0.0556, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89631:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89631:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89631:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89631:For_L16_C4"}, {"f": "ajibawa-2023/Python-Code-La...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ spyderlib.utils =============== Spyder utilities """
ajibawa-2023/Python-Code-Large/train/row_89632
1
12
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89632:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 12], "level": 0, "parent": null, "vector": [8, 0, 0.7917, 0.5, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[]
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Find/Replace widget""" # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 from spyderlib.qt.QtGui impor...
ajibawa-2023/Python-Code-Large/train/row_89638
241
388
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89638:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.018, 0.0026, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89638:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89638:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89638:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89638:Return_L30_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """pydoc widget""" from spyderlib.qt.QtGui import QApplication, QCursor from spyderlib.qt.QtCore import QThread, QUrl, Qt import sys import os.path as o...
ajibawa-2023/Python-Code-Large/train/row_89640
78
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89640:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0614, 0.0088, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89640:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89640:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89640:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89640:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-...
# -*- coding: utf-8 -*- # # Copyright © 2012 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Status bar widgets""" from spyderlib.qt.QtGui import QWidget, QHBoxLayout, QLabel from spyderlib.qt.QtCore import QTimer, SIGNAL # Local import from spyderlib.basecon...
ajibawa-2023/Python-Code-Large/train/row_89641
139
191
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89641:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0366, 0.0052, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89641:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89641:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89641:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89641:Expr_L19_C8"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Internal shell widget : PythonShellWidget + Interpreter""" # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0...
ajibawa-2023/Python-Code-Large/train/row_89642
279
451
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89642:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0155, 0.0022, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89642:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89642:Expr_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89642:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89642:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- from spyderlib.qt.QtGui import (QLineEdit, QIcon, QHBoxLayout, QColor, QPushButton, QColorDialog, QPixmap) from spyderlib.qt.QtCore import SIGNAL, QSize, Slot, Property class ColorButton(QPushButton): """ Color choosing push button """ ...
ajibawa-2023/Python-Code-Large/train/row_89643
59
87
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89643:ImportFrom_L3_C0", "label": "from spyderlib.qt.QtGui import QLineEdit, QIcon, QHBoxLayout\u2026", "type": "import", "loc": [3, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0402, 0.023, 0, 0.66, 0.0, 314, 0, 7, 0, 0, 314, 0, 0], "semantic": {"name": "spyderli...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89643:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89643:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89643:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89643:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
# -*- coding: utf-8 -*- # # Copyright © 2011 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """External shell's introspection and notification servers""" from spyderlib.qt.QtCore import QThread, SIGNAL, Signal import threading import socket import e...
ajibawa-2023/Python-Code-Large/train/row_89645
123
197
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89645:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0355, 0.0051, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89645:If_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89645:Import_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89645:If_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89645:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_8...
# -*- coding: utf-8 -*- # # Copyright © 2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 import sys import os import os.path as osp from time import ...
ajibawa-2023/Python-Code-Large/train/row_89646
208
322
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89646:Import_L12_C0", "label": "sys import sys", "type": "import", "loc": [12, 12], "level": 0, "parent": null, "vector": [1, 0, 0.0373, 0.0031, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89646:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89646:Assign_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89646:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89646:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """External System Shell widget: execute terminal in a separate process""" import os from spyderlib.qt.QtGui import QMessageBox from spyderlib.qt.QtCore ...
ajibawa-2023/Python-Code-Large/train/row_89647
66
143
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89647:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.049, 0.007, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89647:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89647:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89647:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89647:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- # # Copyright © 2009-2012 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Startup file used by ExternalPythonShell exclusively for IPython kernels (see spyderlib/widgets/externalshell/pythonshell.py)""" import sys import os.pa...
ajibawa-2023/Python-Code-Large/train/row_89649
84
186
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89649:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0403, 0.0108, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89649:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89649:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89649:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89649:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """External Python Shell widget: execute Python script in a separate process""" import sys import os import os.path as osp import socket from spyderlib...
ajibawa-2023/Python-Code-Large/train/row_89650
362
615
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89650:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0114, 0.0016, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89650:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89650:FunctionDef_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89650:FunctionDef_L36_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89650:Expr_L37_C8"}, {"f": "ajibawa-2023/Python-Co...