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 rope.base.evaluate from rope.base import ast class Arguments(object): """A class for evaluating parameters passed to a function You can use the `create_arguments` factory. It handles implicit first arguments. """ def __init__(self, args, scope): self.args = args self.sco...
ajibawa-2023/Python-Code-Large/train/row_90012
74
109
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_90012:Import_L1_C0", "label": "rope.base.evaluate import rope.base.evaluate", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0092, 0.0092, 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_90012:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90012:Expr_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90012:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90012:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
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_90013
281
428
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_90013:Import_L1_C0", "label": "cPickle import pickle", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0023, 0.0023, 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_90013:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90013:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90013:FunctionDef_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90013:Assign_L16_C8"}, {"f": "ajibawa-2023/Python-...
# The default ``config.py`` def set_prefs(prefs): """This function is called before opening the project""" # Specify which files and folders to ignore in the project. # Changes to ignored resources are not added to the history and # VCSs. Also they are not returned in `Project.get_files()`. # No...
ajibawa-2023/Python-Code-Large/train/row_90016
19
85
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_90016:FunctionDef_L4_C0", "label": "set_prefs", "type": "function", "loc": [4, 80], "level": 0, "parent": null, "vector": [2, 0, 0.4941, 0.9059, 0, 0.66, 0.0, 770, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "set_prefs", "arg_names": ["prefs"], "import_names": [], "rhs_c...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90016:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90016:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90016:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90016:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-La...
"""This module trys to support builtin types and functions.""" import inspect import rope.base.evaluate from rope.base import pynames, pyobjects, arguments, utils class BuiltinModule(pyobjects.AbstractModule): def __init__(self, name, pycore=None, initial={}): super(BuiltinModule, self).__init__() ...
ajibawa-2023/Python-Code-Large/train/row_90017
485
728
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_90017:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0014, 0.0014, 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_90017:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90017:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90017:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90017:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Cod...
"""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_90018
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_90018: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...
[]
from rope.base import ast def get_name_levels(node): """Return a list of ``(name, level)`` tuples for assigned names The `level` is `None` for simple assignments and is a list of numbers for tuple assignments for example in:: a, (b, c) = x The levels for for `a` is ``[0]``, for `b` is ``[1, 0...
ajibawa-2023/Python-Code-Large/train/row_90019
37
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_90019:ImportFrom_L1_C0", "label": "from rope.base import ast", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0164, 0.0164, 0, 0.66, 0.0, 632, 0, 1, 0, 0, 632, 0, 0], "semantic": {"name": "rope.base", "arg_names": [], "import_names": ["a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90019:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90019:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90019:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90019:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-La...
"""Project file system commands. This modules implements file system operations used by rope. Different version control systems can be supported by implementing the interface provided by `FileSystemCommands` class. See `SubversionCommands` and `MercurialCommands` for example. """ import os import shutil import subp...
ajibawa-2023/Python-Code-Large/train/row_90020
173
267
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_90020:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0169, 0.03, 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_90020:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90020:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90020:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90020:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Co...
from rope.base.fscommands import _decode_data from rope.base import ast, exceptions, utils class PyObject(object): def __init__(self, type_): if type_ is None: type_ = self self.type = type_ def get_attributes(self): if self.type is self: return {} ret...
ajibawa-2023/Python-Code-Large/train/row_90021
182
311
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_90021:ImportFrom_L1_C0", "label": "from rope.base.fscommands import _decode_data", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0032, 0.0032, 0, 0.66, 0.0, 851, 0, 1, 0, 0, 851, 0, 0], "semantic": {"name": "rope.base.fscommands", "arg_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90021:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90021:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90021:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90021:If_L8_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
import os import sys from rope.base import utils def _stdlib_path(): import inspect return os.path.dirname(inspect.getsourcefile(inspect)) @utils.cached(1) def standard_modules(): return python_modules() | dynload_modules() @utils.cached(1) def python_modules(): result = set() lib_path = _stdli...
ajibawa-2023/Python-Code-Large/train/row_90022
30
40
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_90022:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.025, 0.025, 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_90022:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90022:Import_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90022:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90022:Return_L9_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import bisect import difflib import sys import warnings import rope.base.oi.doa import rope.base.oi.objectinfo import rope.base.oi.soa from rope.base import ast, exceptions, taskhandle, utils, stdmods from rope.base.exceptions import ModuleNotFoundError from rope.base.pyobjectsdef import PyModule, PyPackage, PyClass i...
ajibawa-2023/Python-Code-Large/train/row_90023
280
407
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_90023:Import_L1_C0", "label": "bisect import bisect", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0025, 0.0025, 0, 0.66, 0.0, 325, 0, 1, 0, 0, 325, 0, 0], "semantic": {"name": "bisect", "arg_names": [], "import_names": ["bisect"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90023:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90023:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90023:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90023:Assign_L20_C8"}, {"f": "ajibawa-2023/Python-...
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_90024
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_90024: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_90024:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90024:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90024:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90024:Assign_L10_C8"}, {"f": "ajibawa-2023/Python-Cod...
import rope.base.oi.soi from rope.base import pynames from rope.base.pynames import * class AssignedName(pynames.AssignedName): def __init__(self, lineno=None, module=None, pyobject=None): self.lineno = lineno self.module = module self.assignments = [] self.pyobject = _Inferred(se...
ajibawa-2023/Python-Code-Large/train/row_90025
38
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_90025:Import_L1_C0", "label": "rope.base.oi.soi import rope.base.oi.soi", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0182, 0.0182, 0, 0.66, 0.0, 666, 0, 1, 0, 0, 666, 0, 0], "semantic": {"name": "rope.base.oi.soi", "arg_names": [], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90025:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90025:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90025:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90025:Assign_L9_C8"}, {"f": "ajibawa-2023/Python-Code...
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_90026
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_90026: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_90026:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90026:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90026:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90026:Assign_L4_C8"}, {"f": "ajibawa-2023/Python-Code...
"""rope, a python refactoring library""" INFO = __doc__ VERSION = '0.9.3' COPYRIGHT = """\ Copyright (C) 2006-2010 Ali Gholami Rudi Copyright (C) 2009-2010 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_90028
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_90028: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 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_90029
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_90029: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_90029:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90029:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90029:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90029:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code...
import re import rope.base.exceptions import rope.refactor.functionutils from rope.base import (pynames, pyobjects, codeanalyze, taskhandle, evaluate, worder, utils) from rope.base.change import ChangeSet, ChangeContents from rope.refactor import (occurrences, rename, sourceutils, ...
ajibawa-2023/Python-Code-Large/train/row_90030
377
553
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_90030:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0018, 0.0018, 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_90030:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90030:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90030:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90030:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code...
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_90031
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_90031: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_90031:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90031:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90031:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90031:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code...
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_90032
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_90032: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_90032:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90032:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90032:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90032:FunctionDef_L16_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_90033
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_90033: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_90033:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90033:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90033:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90033:Assign_L11_C8"}, {"f": "ajibawa-2023/Python-C...
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_90034
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_90034: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_90034:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90034:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90034:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90034:FunctionDef_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
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_90035
558
732
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_90035: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_90035:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90035:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90035:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90035:Return_L14_C4"}, {"f": "ajibawa-2023/Python-Code-La...
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_90036
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_90036: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_90036:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90036:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90036:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90036:Assign_L9_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_90037
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_90037: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_90037:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90037:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90037:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90037:Assign_L10_C8"}, {"f": "ajibawa-2023/Python-Cod...
import rope.base.exceptions import rope.base.pyobjects 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 self.is_method = is_method self.a...
ajibawa-2023/Python-Code-Large/train/row_90038
152
213
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_90038:Import_L1_C0", "label": "rope.base.exceptions import rope.base.exceptions", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0047, 0.0047, 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_90038:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90038:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90038:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90038:Assign_L10_C8"}, {"f": "ajibawa-2023/Python-Cod...
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_90039
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_90039: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_90039:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90039:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90039:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90039: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_90040
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_90040: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_90040:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90040:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90040:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90040:Assign_L12_C8"}, {"f": "ajibawa-2023/Python-C...
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_90041
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_90041: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_90041:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90041:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90041:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90041:FunctionDef_L75_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_90042
409
625
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_90042:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0056, 0.0096, 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_90042:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90042:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90042:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90042:If_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
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_90043
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_90043: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_90043:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90043:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90043:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90043:FunctionDef_L22_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_90044
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_90044: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_90044:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90044:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90044:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90044:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
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_90045
329
454
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_90045: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_90045:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90045:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90045:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90045:Assign_L10_C8"}, {"f": "ajibawa-2023/Python-Cod...
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_90046
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_90046: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_90046:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90046:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90046:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90046:Try_L12_C8"}, {"f": "ajibawa-2023/Python-Code...
"""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_90047
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_90047: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_90047:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90047:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90047:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90047: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_90048
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_90048: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_90048:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90048:Expr_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90048:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90048:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
"""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_90049
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_90049: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...
[]
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_90050
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_90050: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_90050:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90050:Return_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90050:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90050:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-L...
"""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_90051
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_90051: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_90051:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90051:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90051:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90051:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-...
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_90052
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_90052: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_90052:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90052:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90052:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90052: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_90053
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_90053: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_90053:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90053:FunctionDef_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90053:FunctionDef_L36_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90053:Assign_L38_C8"}, {"f": "ajibawa-2023/Python-...
"""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_90054
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_90054: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_90054:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90054:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90054:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90054:Expr_L14_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) """Namespace Browser Plugin""" import sys from spyderlib.qt.QtGui import QStackedWidget, QGroupBox, QVBoxLayout from spyderlib.qt.QtCore import SIGNAL ...
ajibawa-2023/Python-Code-Large/train/row_90055
128
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_90055:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0341, 0.0049, 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_90055:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90055:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90055:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90055:Assign_L27_C8"}, {"f": "ajibawa-2023/Python-...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Console History Plugin""" from spyderlib.qt.QtGui import (QVBoxLayout, QFontDialog, QInputDialog, QToolButton, QMenu, QFo...
ajibawa-2023/Python-Code-Large/train/row_90057
176
269
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_90057:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.026, 0.0037, 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_90057:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90057:FunctionDef_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90057:FunctionDef_L31_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90057:Assign_L32_C8"}, {"f": "ajibawa-2023/Python-...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Files and Directories Explorer Plugin""" # pylint: disable-msg=C0103 # pylint: disable-msg=R0903 # pylint: disable-msg=R0911 # pylint: disable-msg=R020...
ajibawa-2023/Python-Code-Large/train/row_90058
78
149
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_90058:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.047, 0.0067, 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_90058:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90058:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90058:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90058:Assign_L31_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) """Configuration dialog / Preferences""" import os, os.path as osp from spyderlib.config import (get_icon, CONF, CUSTOM_COLOR_SCHEME_NAME, ...
ajibawa-2023/Python-Code-Large/train/row_90059
535
716
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_90059:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0098, 0.0014, 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_90059:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90059:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90059:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90059:FunctionDef_L30_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) """Outline Explorer Plugin""" from spyderlib.qt.QtCore import SIGNAL import sys # For debugging purpose: STDOUT = sys.stdout # Local imports from spyde...
ajibawa-2023/Python-Code-Large/train/row_90060
62
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_90060: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_90060:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90060:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90060:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90060:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Cod...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Online Help Plugin""" import sys, os.path as osp # For debugging purpose: STDOUT = sys.stdout # Local imports from spyderlib.config import get_con...
ajibawa-2023/Python-Code-Large/train/row_90061
51
88
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_90061:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0795, 0.0114, 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_90061:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90061:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90061:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90061:Assign_L24_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) """Editor Plugin""" # pylint: disable-msg=C0103 # pylint: disable-msg=R0903 # pylint: disable-msg=R0911 # pylint: disable-msg=R0201 from spyderlib.qt.Q...
ajibawa-2023/Python-Code-Large/train/row_90062
1,212
1,977
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_90062:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0035, 0.0005, 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_90062:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90062:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90062:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90062:For_L47_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) """ spyderlib.plugins ================= Here, 'plugins' are widgets designed specifically for Spyder These plugins inherit the following classes (SpyderP...
ajibawa-2023/Python-Code-Large/train/row_90063
174
302
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_90063:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0348, 0.0265, 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_90063:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90063:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90063:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90063:FunctionDef_L39_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) """Working Directory Plugin""" # pylint: disable-msg=C0103 # pylint: disable-msg=R0903 # pylint: disable-msg=R0911 # pylint: disable-msg=R0201 from spy...
ajibawa-2023/Python-Code-Large/train/row_90064
198
339
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_90064:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0206, 0.0029, 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_90064:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90064:FunctionDef_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90064:FunctionDef_L36_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90064:Assign_L37_C8"}, {"f": "ajibawa-2023/Python-...
# -*- coding: utf-8 -*- # # Copyright © 2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Shortcut management""" from spyderlib.qt.QtGui import (QVBoxLayout, QComboBox, QItemDelegate, QTableView, QMessageBox, QPushBu...
ajibawa-2023/Python-Code-Large/train/row_90065
256
354
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_90065:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0198, 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_90065:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90065:Assign_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90065:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90065:Assign_L41_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) """External Console plugin""" # pylint: disable-msg=C0103 # pylint: disable-msg=R0903 # pylint: disable-msg=R0911 # pylint: disable-msg=R0201 from spyd...
ajibawa-2023/Python-Code-Large/train/row_90066
605
981
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_90066:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0071, 0.001, 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_90066:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90066:FunctionDef_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90066:FunctionDef_L38_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90066:Assign_L39_C8"}, {"f": "ajibawa-2023/Python-...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Find in Files Plugin""" # pylint: disable-msg=C0103 # pylint: disable-msg=R0903 # pylint: disable-msg=R0911 # pylint: disable-msg=R0201 import sys, ...
ajibawa-2023/Python-Code-Large/train/row_90067
90
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_90067:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0479, 0.0068, 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_90067:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90067:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90067:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90067:Assign_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- # # Copyright © 2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Run configurations related dialogs and widgets and data models""" from spyderlib.qt.QtGui import (QVBoxLayout, QFileDialog, QDialog, QWidget, ...
ajibawa-2023/Python-Code-Large/train/row_90068
232
327
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_90068:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0214, 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_90068:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90068:FunctionDef_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90068:FunctionDef_L28_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90068:Assign_L29_C8"}, {"f": "ajibawa-2023/Python-...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Internal Console Plugin""" # pylint: disable-msg=C0103 # pylint: disable-msg=R0903 # pylint: disable-msg=R0911 # pylint: disable-msg=R0201 from spyd...
ajibawa-2023/Python-Code-Large/train/row_90069
184
325
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_90069:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0215, 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_90069:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90069:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90069:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90069:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- # # Copyright © 2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Project Explorer Plugin""" from spyderlib.qt.QtGui import QFontDialog from spyderlib.qt.QtCore import SIGNAL import sys, cPickle, os.path as osp # For d...
ajibawa-2023/Python-Code-Large/train/row_90070
104
168
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_90070:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0417, 0.006, 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_90070:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90070:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90070:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90070:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- 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['PYTHON_QT_LIBRARY'] == 'PyQt4': from PyQt4.QtCore import * def QVariant(obj=None): import PyQt4.QtCore return PyQt4.QtCor...
ajibawa-2023/Python-Code-Large/train/row_90071
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_90071: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_90071:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90071:ImportFrom_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90071:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90071:FunctionDef_L11_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) import os if os.environ['PYTHON_QT_LIBRARY'] == 'PyQt4': from PyQt4.Qt import QKeySequence, QTextCursor from PyQt4.QtGui import * else: from PySide.QtGui impo...
ajibawa-2023/Python-Code-Large/train/row_90072
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_90072: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_90072:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90072:ImportFrom_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90072:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90072: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 _modname = os.environ.setdefault('PYTHON_QT_LIBRARY', 'PyQt4') if _modname == 'PyQt4': import sip try: ...
ajibawa-2023/Python-Code-Large/train/row_90073
7
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_90073:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.35, 0.05, 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_90073:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90073:Import_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90073:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90073:Try_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90...
# -*- 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['PYTHON_QT_LIBRARY'] == 'PyQt4': from PyQt4.QtWebKit import * else: from PySide.QtWebKit import *
ajibawa-2023/Python-Code-Large/train/row_90074
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_90074: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_90074:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90074:ImportFrom_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90074:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90074:ImportFrom_L12_C4"}]
# -*- 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""" def set_backend(backend): """Set matplotlib's backend: Qt4Agg, WXAgg, ...""" import matplotlib mat...
ajibawa-2023/Python-Code-Large/train/row_90075
85
137
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_90075:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0511, 0.0073, 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_90075:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90075:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90075:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90075:Import_L12_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) """ Module checking Spyder requirements """ def check_requirement(package, module_name, version_attr, required_str): wng = "\n%s v%s or higher is requ...
ajibawa-2023/Python-Code-Large/train/row_90076
31
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_90076: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_90076:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90076:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90076:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90076:Try_L13_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, os, os.path as osp, socket # Debug STDOUT = sys.stdout STDER...
ajibawa-2023/Python-Code-Large/train/row_90078
337
560
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_90078:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0125, 0.0018, 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_90078:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90078:FunctionDef_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90078:FunctionDef_L35_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90078:Expr_L36_C8"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: utf-8 -*- # # Copyright © 2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) # pylint: disable-msg=C0103 # pylint: disable-msg=R0903 # pylint: disable-msg=R0911 # pylint: disable-msg=R0201 import sys, os, os.path as osp from time impor...
ajibawa-2023/Python-Code-Large/train/row_90081
203
315
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_90081:Import_L12_C0", "label": "sys import sys, os, osp", "type": "import", "loc": [12, 12], "level": 0, "parent": null, "vector": [1, 0, 0.0381, 0.0032, 0, 0.66, 0.0, 509, 0, 3, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "os"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90081:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90081:Assign_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90081:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90081:Assign_L34_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) """ spyderlib.widgets.externalshell =============================== External Shell widget: execute Python script/terminal in a separate process """
ajibawa-2023/Python-Code-Large/train/row_90082
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_90082: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) """External System Shell widget: execute terminal in a separate process""" import sys, os # Debug STDOUT = sys.stdout STDERR = sys.stderr from spyder...
ajibawa-2023/Python-Code-Large/train/row_90084
65
140
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_90084:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.05, 0.0071, 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_90084:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90084:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90084:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90084:Assign_L29_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) """ Object Editor Dialog based on Qt """ from spyderlib.qt.QtCore import QObject, SIGNAL class DialogKeeper(QObject): def __init__(self): ...
ajibawa-2023/Python-Code-Large/train/row_90085
78
134
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_90085:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0597, 0.0224, 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_90085:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90085:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90085:FunctionDef_L14_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90085:Expr_L15_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) """Customized combobox widgets""" # pylint: disable-msg=C0103 # pylint: disable-msg=R0903 # pylint: disable-msg=R0911 # pylint: disable-msg=R0201 from ...
ajibawa-2023/Python-Code-Large/train/row_90086
131
203
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_90086:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0345, 0.0049, 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_90086:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90086:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90086:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90086:FunctionDef_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) """ Editor widget syntax highlighters based on QtGui.QSyntaxHighlighter (Python syntax highlighting rules are inspired from idlelib) """ import sys, re, k...
ajibawa-2023/Python-Code-Large/train/row_90087
422
707
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_90087:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 10], "level": 0, "parent": null, "vector": [8, 0, 0.012, 0.0057, 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_90087:ClassDef_L123_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90087:Expr_L124_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90087:ClassDef_L123_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90087:Assign_L126_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """QPlainTextEdit base class""" # pylint: disable-msg=C0103 # pylint: disable-msg=R0903 # pylint: disable-msg=R0911 # pylint: disable-msg=R0201 import ...
ajibawa-2023/Python-Code-Large/train/row_90088
838
1,213
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_90088:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0058, 0.0008, 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_90088:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90088:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90088:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90088:FunctionDef_L34_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) """ spyderlib.widgets.codeeditor ============================ Code editor-related widgets based exclusively on Qt """
ajibawa-2023/Python-Code-Large/train/row_90089
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_90089: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) """ Editor widget based on QtGui.QPlainTextEdit """ # pylint: disable-msg=C0103 # pylint: disable-msg=R0903 # pylint: disable-msg=R0911 # pylint: disabl...
ajibawa-2023/Python-Code-Large/train/row_90090
1,214
1,811
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_90090:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0044, 0.0017, 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_90090:ClassDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90090:FunctionDef_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90090:FunctionDef_L49_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90090:Expr_L50_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) """Terminal emulation tools""" import os class ANSIEscapeCodeHandler(object): """ANSI Escape sequences handler""" if os.name == 'nt': #...
ajibawa-2023/Python-Code-Large/train/row_90091
51
107
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_90091:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0654, 0.0093, 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_90091:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90091:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90091:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90091:If_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ Text Editor Dialog based on Qt """ from spyderlib.qt.QtCore import Qt, SIGNAL, SLOT from spyderlib.qt.QtGui import QVBoxLayout, QTextEdit, QDialog, QD...
ajibawa-2023/Python-Code-Large/train/row_90092
47
79
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_90092:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 9], "level": 0, "parent": null, "vector": [8, 0, 0.1013, 0.038, 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_90092:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90092:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90092:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90092:FunctionDef_L20_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) """ 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_90093
142
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_90093:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0507, 0.0415, 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_90093:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90093:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90093:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90093:Expr_L27_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) """ Outline explorer widget ******************************** WARNING *************************************** This module is not used anymore in Spyder ...
ajibawa-2023/Python-Code-Large/train/row_90099
83
118
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_90099:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0932, 0.0763, 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_90099:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90099:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90099:FunctionDef_L33_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90099:Expr_L34_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-msg=C0103 # pylint: disable-msg=R0903 # pylint: disable-msg=R0911 # pylint...
ajibawa-2023/Python-Code-Large/train/row_90100
240
391
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_90100:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0179, 0.0026, 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_90100:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90100:ImportFrom_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90100:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90100:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# -*- 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-msg=C0103 # pylint: disable-msg=R0903 # pylint: disable-msg=R0911 # pylint: disable-msg=R0201 from spyderli...
ajibawa-2023/Python-Code-Large/train/row_90101
171
291
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_90101:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0241, 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_90101:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90101:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90101:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90101:Assign_L36_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) """Simple web browser widget""" from spyderlib.qt.QtGui import (QHBoxLayout, QWidget, QVBoxLayout, QProgressBar, QLabel, QMe...
ajibawa-2023/Python-Code-Large/train/row_90102
160
254
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_90102:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0276, 0.0039, 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_90102:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90102:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90102:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90102:FunctionDef_L29_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, pyqtSignature, pyqtProperty class ColorButton(QPushButton): """ Color choosing push button...
ajibawa-2023/Python-Code-Large/train/row_90103
60
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_90103: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_90103:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90103:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90103:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90103:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
# -*- 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_90105
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_90105: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 © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Tabs widget""" # pylint: disable-msg=C0103 # pylint: disable-msg=R0903 # pylint: disable-msg=R0911 # pylint: disable-msg=R0201 from spyderlib.qt.QtG...
ajibawa-2023/Python-Code-Large/train/row_90107
192
288
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_90107:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0243, 0.0035, 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_90107:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90107:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90107:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90107:FunctionDef_L31_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, os.path as osp #...
ajibawa-2023/Python-Code-Large/train/row_90108
79
117
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_90108:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0598, 0.0085, 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_90108:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90108:Expr_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90108:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90108:FunctionDef_L25_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) """Find in files widget""" # pylint: disable-msg=C0103 # pylint: disable-msg=R0903 # pylint: disable-msg=R0911 # pylint: disable-msg=R0201 from __futur...
ajibawa-2023/Python-Code-Large/train/row_90109
492
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_90109:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0089, 0.0013, 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_90109:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90109:Import_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90109:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90109:Expr_L47_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) """Module that provides a GUI-based editor for matplotlib's figure options""" from spyderlib.widgets.formlayout import fedit from spyderlib.config import ge...
ajibawa-2023/Python-Code-Large/train/row_90110
215
398
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_90110:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0176, 0.0025, 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_90110:FunctionDef_L78_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90110:Expr_L79_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90110:FunctionDef_L78_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90110:If_L80_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) """Spyder path manager""" from __future__ import with_statement from spyderlib.qt.QtGui import (QDialog, QListWidget, QFileDialog, ...
ajibawa-2023/Python-Code-Large/train/row_90112
146
240
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_90112:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0292, 0.0042, 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_90112:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90112:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90112:FunctionDef_L27_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90112:Expr_L28_C8"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding:utf-8 -*- """ Importing guiqwt's pyplot module or matplotlib's pyplot """ try: from guiqwt.pyplot import * except ImportError: from matplotlib.pyplot import *
ajibawa-2023/Python-Code-Large/train/row_90114
4
9
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_90114:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 4], "level": 0, "parent": null, "vector": [8, 0, 0.3333, 0.3333, 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_90114:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90114:ImportFrom_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90114:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90114:ImportFrom_L9_C4"}]
# -*- coding: utf-8 -*- """ Spyder License Agreement (MIT License) -------------------------------------- Copyright (c) 2009-2010 Pierre Raybaut 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 So...
ajibawa-2023/Python-Code-Large/train/row_90115
3
33
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_90115:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 28], "level": 0, "parent": null, "vector": [8, 0, 0.4545, 0.8182, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[]
# -*- 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_90119
27
43
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_90119:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 9], "level": 0, "parent": null, "vector": [8, 0, 0.186, 0.0698, 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_90119:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90119:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90119:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90119: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) """Utilities and wrappers around inspect module""" import inspect, re # Local imports: from spyderlib.utils import encoding SYMBOLS = r"[^\'\"a-zA-Z0-...
ajibawa-2023/Python-Code-Large/train/row_90120
156
215
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_90120:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0326, 0.0047, 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_90120:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90120:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90120:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90120:Assign_L18_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) """Qt utilities""" import os.path as osp import os, webbrowser from spyderlib.qt.QtGui import (QAction, QStyle, QWidget, QIcon, QApplication, ...
ajibawa-2023/Python-Code-Large/train/row_90121
250
351
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_90121:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0199, 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_90121:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90121:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90121:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90121:Assign_L37_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- """ Python class/function parser Derived from "Demo/parser/example.py" from Python distribution ******************************** WARNING *************************************** This module is not used anymore in Spyder since v1.1.0. However, it will still be part of spyderlib m...
ajibawa-2023/Python-Code-Large/train/row_90123
111
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_90123:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0366, 0.0576, 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_90123:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90123:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90123:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90123:Assign_L22_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) """ Running programs utilities """ import os, sys, subprocess, imp, os.path as osp def get_nt_program_name(name): """Return Windows-specific prog...
ajibawa-2023/Python-Code-Large/train/row_90125
64
108
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_90125:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0741, 0.0278, 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_90125:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90125:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90125:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90125:If_L16_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) """ 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_90126
77
160
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_90126:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0594, 0.0375, 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_90126:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90126:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90126:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90126:Try_L23_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) """ Environment variable utilities """ from spyderlib.qt.QtGui import QDialog, QMessageBox import os # Local imports from spyderlib.config import _ ...
ajibawa-2023/Python-Code-Large/train/row_90128
86
138
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_90128:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 9], "level": 0, "parent": null, "vector": [8, 0, 0.058, 0.0217, 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_90128:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90128:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90128:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90128:Assign_L21_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) """Shell Interpreter""" import sys, atexit, threading, ctypes import os, re, os.path as osp, pydoc from subprocess import Popen, PIPE from code import Int...
ajibawa-2023/Python-Code-Large/train/row_90130
185
315
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_90130:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0222, 0.0032, 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_90130:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90130:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90130:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90130:If_L27_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) """ Spyder configuration management Important note regarding shortcuts: For compatibility with QWERTZ keyboards, one must avoid using the following ...
ajibawa-2023/Python-Code-Large/train/row_90131
181
515
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_90131:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0204, 0.0155, 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_90131:If_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90131:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90131:Try_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90131:ImportFrom_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
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_90132
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_90132: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_90132:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90132:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90132:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90132:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Buiding instructions: # python setup.py py2exe from distutils.core import setup import py2exe # Patching distutils setup from guidata.disthelpers import (remove_build_dist, get_default_excludes, get_default_dll_excludes, create_vs2008_...
ajibawa-2023/Python-Code-Large/train/row_90133
12
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_90133:ImportFrom_L7_C0", "label": "from distutils.core import setup", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1346, 0.0192, 0, 0.66, 0.0, 152, 0, 1, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": [], "import...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90133:For_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90133:Expr_L24_C4"}]
# -*- coding:utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Pylint Code Analysis Plugin""" # pylint: disable-msg=C0103 # pylint: disable-msg=R0903 # pylint: disable-msg=R0911 # pylint: disable-msg=R0201 from s...
ajibawa-2023/Python-Code-Large/train/row_90134
78
149
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_90134:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.047, 0.0067, 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_90134:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90134:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90134:FunctionDef_L33_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90134:Assign_L34_C8"}, {"f": "ajibawa-2023/Python-...
# -*- 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 PyQt4.QtGui import QVBoxLayout, QGroupBox, QLabel from PyQt4.QtCore import SIGNAL, Qt import sys...
ajibawa-2023/Python-Code-Large/train/row_90135
69
128
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_90135:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0703, 0.0078, 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_90135:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90135:FunctionDef_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90135:FunctionDef_L31_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90135:Assign_L32_C8"}, {"f": "ajibawa-2023/Python-...