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
# -*- 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_89651
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_89651: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 -*- # # Spyder's MacOS X App site.py additions # # It includes missing variables and paths that are not added by # py2app to its own site.py # # These functions were taken verbatim from Python 2.7.3 site.py # import sys import os import __builtin__ # for distutils.commands.install # These values a...
ajibawa-2023/Python-Code-Large/train/row_89652
87
154
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_89652:Import_L11_C0", "label": "sys import sys", "type": "import", "loc": [11, 11], "level": 0, "parent": null, "vector": [1, 0, 0.0714, 0.0065, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89652:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89652:Expr_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89652:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89652:If_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding:utf-8 -*- # # Copyright © 2011-2012 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ IPython v0.13+ client's widget """ # IPython imports from IPython.frontend.qt.console.rich_ipython_widget import RichIPythonWidget # Qt imports fro...
ajibawa-2023/Python-Code-Large/train/row_89654
122
212
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_89654:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0377, 0.0142, 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_89654:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89654:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89654:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89654: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) """Terminal emulation tools""" import os class ANSIEscapeCodeHandler(object): """ANSI Escape sequences handler""" if os.name == 'nt': #...
ajibawa-2023/Python-Code-Large/train/row_89656
53
115
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89656:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0609, 0.0087, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89656:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89656:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89656:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89656:If_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# -*- coding: utf-8 -*- # # Copyright © 2012 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Mix-in classes These classes were created to be able to provide Spyder's regular text and console widget features to an independant widget based on QTextEdit ...
ajibawa-2023/Python-Code-Large/train/row_89657
410
592
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_89657:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 12], "level": 0, "parent": null, "vector": [8, 0, 0.016, 0.0101, 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_89657:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89657:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89657:FunctionDef_L33_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89657:Assign_L34_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) """QPlainTextEdit base class""" # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 import os import re i...
ajibawa-2023/Python-Code-Large/train/row_89658
690
1,022
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_89658:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0068, 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_89658:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89658:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89658:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89658:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-...
# -*- coding: utf-8 -*- # # Copyright © 2009-2011 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ spyderlib.widgets.sourcecode ============================ Source code related widgets (code editor, console) based exclusively on Qt """
ajibawa-2023/Python-Code-Large/train/row_89659
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_89659: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 syntax highlighters based on QtGui.QSyntaxHighlighter (Python syntax highlighting rules are inspired from idlelib) """ import re import keyword imp...
ajibawa-2023/Python-Code-Large/train/row_89660
530
935
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_89660:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0091, 0.0043, 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_89660:ClassDef_L140_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89660:Expr_L141_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89660:ClassDef_L140_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89660:Assign_L143_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) """Simple web browser widget""" from spyderlib.qt.QtGui import (QHBoxLayout, QWidget, QVBoxLayout, QProgressBar, QLabel, QMe...
ajibawa-2023/Python-Code-Large/train/row_89661
160
252
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_89661:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0278, 0.004, 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_89661:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89661:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89661:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89661:FunctionDef_L26_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) """ Utilities for the Dictionary Editor Widget and Dialog based on Qt """ import re #----Numpy arrays support class FakeObject(object): """Fake class u...
ajibawa-2023/Python-Code-Large/train/row_89662
139
241
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89662:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0332, 0.0124, 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_89662:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89662:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89662:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89662:ImportFrom_L18_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) """ 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_89663
144
220
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89663:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 15], "level": 0, "parent": null, "vector": [8, 0, 0.05, 0.0409, 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_89663:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89663:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89663:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89663:FunctionDef_L28_C4"}, {"f": "ajibawa-2023/Python-Code-...
# -*- coding: utf-8 -*- """ formlayout ========== Module creating Qt form dialogs/layouts to edit various type of parameters formlayout License Agreement (MIT License) ------------------------------------------ Copyright (c) 2009 Pierre Raybaut Permission is hereby granted, free of charge, to any person obtaining ...
ajibawa-2023/Python-Code-Large/train/row_89665
340
562
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_89665:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 34], "level": 0, "parent": null, "vector": [8, 0, 0.032, 0.0587, 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_89665:Try_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89665:Expr_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89665:Try_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89665:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# -*- coding: utf-8 -*- # # Copyright © 2009-2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ 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_89666
54
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_89666:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0842, 0.0316, 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_89666:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89666:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89666:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89666:FunctionDef_L22_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 that provides a GUI-based editor for matplotlib's figure options""" from spyderlib.widgets.formlayout import fedit from spyderlib.utils.qthelpers ...
ajibawa-2023/Python-Code-Large/train/row_89667
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_89667: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_89667:FunctionDef_L78_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89667:Expr_L79_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89667:FunctionDef_L78_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89667: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) """Find in files widget""" # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 from __future__ import with_...
ajibawa-2023/Python-Code-Large/train/row_89668
505
798
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_89668:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0088, 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_89668:ClassDef_L106_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89668:Expr_L107_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89668:ClassDef_L106_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89668:FunctionDef_L108_C4"}, {"f": "ajibawa-2023/Python-C...
# -*- 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_89669
92
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_89669:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 9], "level": 0, "parent": null, "vector": [8, 0, 0.05, 0.0187, 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_89669:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89669:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89669:FunctionDef_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89669:Expr_L16_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) """Spyder path manager""" from __future__ import with_statement from spyderlib.qt.QtGui import (QDialog, QListWidget, QDialogButtonBox, ...
ajibawa-2023/Python-Code-Large/train/row_89670
149
246
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_89670:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0285, 0.0041, 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_89670:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89670:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89670:FunctionDef_L27_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89670:Expr_L28_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 since v1.1...
ajibawa-2023/Python-Code-Large/train/row_89671
83
119
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_89671:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 17], "level": 0, "parent": null, "vector": [8, 0, 0.1008, 0.0924, 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_89671:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89671:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89671:FunctionDef_L33_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89671: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) """ 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_89672
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_89672: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=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 from spyderlib.qt.QtGui import (QTabW...
ajibawa-2023/Python-Code-Large/train/row_89673
205
317
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_89673:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0221, 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_89673:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89673:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89673:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89673: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) """Customized combobox widgets""" # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 from spyderlib.qt.QtG...
ajibawa-2023/Python-Code-Large/train/row_89674
146
225
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_89674:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0311, 0.0044, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89674:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89674:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89674:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89674:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-...
# -*- coding: utf-8 -*- # # Copyright © 2010 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Editor tools: outline explorer, etc.""" import re import os.path as osp from spyderlib.qt.QtGui import (QWidget, QTreeWidgetItem, QHBoxLayout, ...
ajibawa-2023/Python-Code-Large/train/row_89677
365
533
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_89677:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0131, 0.0019, 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_89677:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89677:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89677:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89677:FunctionDef_L35_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) """ Patching PIL (Python Imaging Library) to avoid triggering the error: AccessInit: hash collision: 3 for both 1 and 1 This error is occuring because of a bug ...
ajibawa-2023/Python-Code-Large/train/row_89678
4
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_89678:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 50], "level": 0, "parent": null, "vector": [8, 0, 0.5278, 0.8148, 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-2012 The Spyder development team # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ Spyder GUI-related configuration management (for non-GUI configuration, see spyderlib/baseconfig.py) Important note regarding shortcuts: For com...
ajibawa-2023/Python-Code-Large/train/row_89679
84
121
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_89679:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0909, 0.0744, 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_89679:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89679:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89679:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89679:Return_L26_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright © 2009-2011 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ Spyder configuration options Note: Leave this file free of Qt related imports, so that it can be used to quickly load a user config file """ import...
ajibawa-2023/Python-Code-Large/train/row_89681
56
433
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_89681:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0219, 0.0139, 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_89681:If_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89681:Assign_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89681:If_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89681:If_L35_C0"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_896...
# -*- coding: utf-8 -*- import os.path as osp import socket import time import atexit import random # Local imports from spyderlib.cli_options import get_options from spyderlib.baseconfig import get_conf_path from spyderlib.config import CONF from spyderlib.utils.external import lockfile def send_arg...
ajibawa-2023/Python-Code-Large/train/row_89683
37
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_89683:Import_L3_C0", "label": "os.path import osp", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0417, 0.0139, 0, 0.66, 0.0, 79, 0, 1, 0, 0, 79, 0, 0], "semantic": {"name": "os.path", "arg_names": [], "import_names": ["osp"], "rhs_call...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89683:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89683:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89683:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89683:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- 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, QDialog, QWidget, QGroupBox, ...
ajibawa-2023/Python-Code-Large/train/row_89684
262
365
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_89684:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0192, 0.0027, 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_89684:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89684:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89684:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89684:FunctionDef_L29_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) """Files and Directories Explorer Plugin""" # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 from spyder...
ajibawa-2023/Python-Code-Large/train/row_89685
60
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_89685:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0593, 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_89685:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89685:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89685:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89685: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) """Console History Plugin""" from spyderlib.qt.QtGui import (QVBoxLayout, QFontDialog, QInputDialog, QToolButton, QMenu, QFo...
ajibawa-2023/Python-Code-Large/train/row_89686
182
276
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_89686:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0254, 0.0036, 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_89686:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89686:FunctionDef_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89686:FunctionDef_L29_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89686:Assign_L30_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) """Online Help Plugin""" from spyderlib.qt.QtCore import Signal import os.path as osp # Local imports from spyderlib.baseconfig import get_conf_path, ...
ajibawa-2023/Python-Code-Large/train/row_89687
54
93
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_89687:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0753, 0.0108, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89687:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89687:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89687:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89687:Assign_L23_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) """Shortcut management""" from spyderlib.qt.QtGui import (QVBoxLayout, QComboBox, QItemDelegate, QTableView, QMessageBox, QPushBu...
ajibawa-2023/Python-Code-Large/train/row_89688
268
374
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_89688:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0187, 0.0027, 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_89688:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89688:Assign_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89688:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89688:If_L42_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) """Internal Console Plugin""" # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 from spyderlib.qt.QtGui i...
ajibawa-2023/Python-Code-Large/train/row_89690
191
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_89690:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.021, 0.003, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89690:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89690:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89690:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89690:Assign_L41_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) """Namespace Browser Plugin""" from spyderlib.qt.QtGui import QStackedWidget, QGroupBox, QVBoxLayout from spyderlib.qt.QtCore import Signal # Local impor...
ajibawa-2023/Python-Code-Large/train/row_89691
125
198
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_89691:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0354, 0.0051, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89691:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89691:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89691:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89691:Assign_L24_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) """Editor Plugin""" # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 from spyderlib.qt.QtGui import (QVB...
ajibawa-2023/Python-Code-Large/train/row_89692
1,347
2,199
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89692:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0032, 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_89692:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89692:Assign_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89692:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89692:For_L48_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) """Configuration dialog / Preferences""" import os import os.path as osp from spyderlib.baseconfig import _ from spyderlib.config import CONF from spyd...
ajibawa-2023/Python-Code-Large/train/row_89693
577
797
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_89693:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0088, 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_89693:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89693:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89693:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89693:FunctionDef_L37_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=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 from spyderlib.qt.QtGui ...
ajibawa-2023/Python-Code-Large/train/row_89694
199
340
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_89694: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_89694:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89694:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89694:FunctionDef_L33_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89694:Assign_L34_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) """External Console plugin""" # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 from spyderlib.qt.QtGui i...
ajibawa-2023/Python-Code-Large/train/row_89695
709
1,196
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89695:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0059, 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_89695:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89695:Expr_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89695:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89695:If_L44_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) """Find in Files Plugin""" # pylint: disable=C0103 # pylint: disable=R0903 # pylint: disable=R0911 # pylint: disable=R0201 import os from spyderlib....
ajibawa-2023/Python-Code-Large/train/row_89696
93
152
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_89696:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0461, 0.0066, 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_89696:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89696:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89696:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89696:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- # # Copyright © 2011 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Outline Explorer Plugin Data for outline are provided by method .get_outlineexplorer_data() of highlighter of assigned editor. For example, for Python files c...
ajibawa-2023/Python-Code-Large/train/row_89697
63
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_89697:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0872, 0.055, 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_89697:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89697:Assign_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89697:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89697:Assign_L25_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) """ spyderlib.plugins ================= Here, 'plugins' are widgets designed specifically for Spyder These plugins inherit the following classes (SpyderP...
ajibawa-2023/Python-Code-Large/train/row_89698
177
314
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_89698:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0334, 0.0255, 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_89698:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89698:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89698:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89698:FunctionDef_L35_C4"}, {"f": "ajibawa-2023/Python-Code-...
# -*- 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 # Local imports from spyderlib.baseconfig imp...
ajibawa-2023/Python-Code-Large/train/row_89700
90
150
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_89700:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0467, 0.0067, 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_89700:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89700:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89700:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89700:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- # # Copyright © 2011 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """ Spyder third-party plugins configuration management """ import os import os.path as osp import sys import traceback # Local imports from spyderlib.ut...
ajibawa-2023/Python-Code-Large/train/row_89701
33
59
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_89701:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 9], "level": 0, "parent": null, "vector": [8, 0, 0.1356, 0.0508, 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_89701:If_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89701:Import_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89701:If_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89701:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# -*- coding: utf-8 -*- """ Spyder License Agreement (MIT License) -------------------------------------- Copyright (c) 2009-2012 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 Software wi...
ajibawa-2023/Python-Code-Large/train/row_89702
27
76
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_89702:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 28], "level": 0, "parent": null, "vector": [8, 0, 0.1974, 0.3553, 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_89702:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89702:Expr_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89702:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89702:Try_L42_C4"}, {"f": "ajibawa-2023/Python-Code-La...
# -*- 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_89703
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_89703: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_89703:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89703:ImportFrom_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89703:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89703:ImportFrom_L9_C4"}]
# -*- coding: utf-8 -*- # # Copyright © 2009-2012 Pierre Raybaut # Licensed under the terms of the MIT License # (see spyderlib/__init__.py for details) """Module checking Spyder installation requirements""" import sys import os.path as osp from distutils.version import LooseVersion def show_warning(me...
ajibawa-2023/Python-Code-Large/train/row_89704
26
48
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89704:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 7], "level": 0, "parent": null, "vector": [8, 0, 0.1458, 0.0208, 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_89704:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89704:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89704:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89704:Try_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) from guidata.gettext_helpers import do_compile if __name__ == "__main__": do_compile("spyderlib") do_compile("p_pylint", "spyderplugins") do_c...
ajibawa-2023/Python-Code-Large/train/row_89706
5
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_89706:ImportFrom_L7_C0", "label": "from guidata.gettext_helpers import do_compile", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.5833, 0.0833, 0, 0.66, 0.0, 814, 0, 1, 0, 0, 814, 0, 0], "semantic": {"name": "guidata.gettext_helpers", "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89706:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89706:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89706:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89706:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89706...
# To change this template, choose Tools | Templates # and open the template in the editor. import socket import globals try: import json print 'JSON' except ImportError: import simplejson as json print 'SIMPLEJSON' #host = "drakmail.ru" #port = 7712 sock = socket.socket(socket.AF_INET, socket.SOCK_STREA...
ajibawa-2023/Python-Code-Large/train/row_89707
32
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_89707:Import_L3_C0", "label": "socket import socket", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.06, 0.02, 0, 0.66, 0.0, 687, 0, 1, 0, 0, 687, 0, 0], "semantic": {"name": "socket", "arg_names": [], "import_names": ["socket"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89707:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89707:Import_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89707:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89707:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_897...
__author__="chubakur" __date__ ="$08.04.2011 19:30:49$" from setuptools import setup,find_packages setup ( name = 'WizardsMagic', version = '0.1', packages = find_packages(), # Declare your packages' dependencies here, for eg: install_requires=['foo>=3'], # Fill in these to make your Egg ready for uploa...
ajibawa-2023/Python-Code-Large/train/row_89708
4
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89708:Assign_L1_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.037, 0.037, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs_ca...
[]
# -*- coding: utf-8 -*- #import pygame import cards import os import random import globals import sockets try: import pygame yes_pygame = True except ImportError: yes_pygame = False import ai current_folder = os.path.dirname(os.path.abspath(__file__)) class Player(): #Прототип игрока def __init__(self...
ajibawa-2023/Python-Code-Large/train/row_89710
123
157
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_89710:Import_L3_C0", "label": "cards import cards", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0191, 0.0064, 0, 0.66, 0.0, 271, 0, 1, 0, 0, 271, 0, 0], "semantic": {"name": "cards", "arg_names": [], "import_names": ["cards"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89710:Try_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89710:Import_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89710:Try_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89710:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# -*- coding: utf-8 -*- import pygame import os import globals import player current_folder = os.path.dirname(os.path.abspath(__file__)) class CompleteTheCourseButton(pygame.sprite.Sprite): def __init__(self, rect): pygame.sprite.Sprite.__init__(self) #self.panel = panel self.type = 'button...
ajibawa-2023/Python-Code-Large/train/row_89711
36
39
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_89711:Import_L2_C0", "label": "pygame import pygame", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0513, 0.0256, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89711:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89711:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89711:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89711:Expr_L10_C8"}, {"f": "ajibawa-2023/Python-Code-...
# To change this template, choose Tools | Templates # and open the template in the editor. import globals import pygame #TODO: cout as globals.player class NicknameWindow(pygame.sprite.Sprite): def __init__(self,rect, nickname): pygame.sprite.Sprite.__init__(self) self.type = 'nicknamewindow' ...
ajibawa-2023/Python-Code-Large/train/row_89712
18
24
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_89712:Import_L3_C0", "label": "globals import globals", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.125, 0.0417, 0, 0.66, 0.0, 926, 0, 1, 0, 0, 926, 0, 0], "semantic": {"name": "globals", "arg_names": [], "import_names": ["globals"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89712:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89712:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89712:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89712:Expr_L8_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- import pygame import globals class HealthWindow(pygame.sprite.Sprite): def __init__(self, rect): pygame.sprite.Sprite.__init__(self) self.type = 'healthwindow' globals.interface.add(self) self.font = pygame.font.Font(None, 22) text = self.font.render('...
ajibawa-2023/Python-Code-Large/train/row_89713
36
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_89713:Import_L2_C0", "label": "pygame import pygame", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0465, 0.0233, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89713:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89713:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89713:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89713:Expr_L6_C8"}, {"f": "ajibawa-2023/Python-Code-L...
__author__="chubakur" __date__ ="$20.02.2011 13:00:13$" from setuptools import setup,find_packages setup ( name = 'Orions', version = '0.1', packages = find_packages(), # Declare your packages' dependencies here, for eg: install_requires=['foo>=3'], # Fill in these to make your Egg ready for upload to ...
ajibawa-2023/Python-Code-Large/train/row_89714
4
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89714:Assign_L1_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.037, 0.037, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs_ca...
[]
# -*- coding: utf-8 -*- import pygame import globals import threading import os current_folder = os.path.dirname(os.path.abspath(__file__)) class GameInformationPanel(pygame.sprite.Sprite): def __init__(self): pygame.sprite.Sprite.__init__(self) self.type = "gameinformationpanel" self.image...
ajibawa-2023/Python-Code-Large/train/row_89715
37
39
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_89715:Import_L2_C0", "label": "pygame import pygame", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0513, 0.0256, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89715:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89715:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89715:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89715:Expr_L10_C8"}, {"f": "ajibawa-2023/Python-Code-...
import unittest import doctest class OptionalExtensionTestSuite(unittest.TestSuite): def run(self, result): import simplejson run = unittest.TestSuite.run run(self, result) simplejson._toggle_speedups(False) run(self, result) simplejson._toggle_speedups(True) ...
ajibawa-2023/Python-Code-Large/train/row_89716
34
64
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_89716:Import_L1_C0", "label": "unittest import unittest", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0156, 0.0156, 0, 0.66, 0.0, 88, 0, 1, 0, 0, 88, 0, 0], "semantic": {"name": "unittest", "arg_names": [], "import_names": ["unittest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89716:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89716:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89716:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89716:Import_L7_C8"}, {"f": "ajibawa-2023/Python-Code...
"""Implementation of JSONEncoder """ import re from decimal import Decimal def _import_speedups(): try: from simplejson import _speedups return _speedups.encode_basestring_ascii, _speedups.make_encoder except ImportError: return None, None c_encode_basestring_ascii, c_make_encoder = _im...
ajibawa-2023/Python-Code-Large/train/row_89717
261
499
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_89717:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 2], "level": 0, "parent": null, "vector": [8, 0, 0.003, 0.004, 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_89717:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89717:Try_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89717:Try_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89717:ImportFrom_L8_C8"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data interchange format. :mod:`simplejson` exposes an API familiar to users of the standard library :mod:`marshal` and :mod:`pickle` modules. It is the externally maintained version of ...
ajibawa-2023/Python-Code-Large/train/row_89719
77
438
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_89719:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 99], "level": 0, "parent": null, "vector": [8, 0, 0.1142, 0.226, 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_89719:FunctionDef_L113_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89719:Import_L114_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89719:FunctionDef_L113_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89719:Try_L115_C4"}, {"f": "ajibawa-2023/Python-C...
"""JSON token scanner """ import re def _import_c_make_scanner(): try: from simplejson._speedups import make_scanner return make_scanner except ImportError: return None c_make_scanner = _import_c_make_scanner() __all__ = ['make_scanner'] NUMBER_RE = re.compile( r'(-?(?:0|[1-9]\d*))...
ajibawa-2023/Python-Code-Large/train/row_89721
57
77
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_89721:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 2], "level": 0, "parent": null, "vector": [8, 0, 0.0195, 0.026, 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_89721:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89721:Try_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89721:Try_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89721:ImportFrom_L6_C8"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
"""Drop-in replacement for collections.OrderedDict by Raymond Hettinger http://code.activestate.com/recipes/576693/ """ from UserDict import DictMixin # Modified from original to support Python 2.4, see # http://code.google.com/p/simplejson/issues/detail?id=53 try: all except NameError: def all(seq): ...
ajibawa-2023/Python-Code-Large/train/row_89722
85
119
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_89722:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0252, 0.042, 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_89722:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89722:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89722:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89722:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
# -*- coding: utf-8 -*- import pygame import globals import os current_folder = os.path.dirname(os.path.abspath(__file__)) class Cardbox(pygame.sprite.Sprite): def __init__(self, rect, player, position): pygame.sprite.Sprite.__init__(self) self.type = 'cardbox' self.position = position ...
ajibawa-2023/Python-Code-Large/train/row_89723
53
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_89723:Import_L2_C0", "label": "pygame import pygame", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0328, 0.0164, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89723:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89723:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89723:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89723:Expr_L9_C8"}, {"f": "ajibawa-2023/Python-Code-L...
try: import pygame from pygame.locals import * from widgets import TxtInput, CheckBox import menu yes_pygame = True except ImportError: yes_pygame = False import sys import globals import ConfigParser import os.path def launcher(): #Something ,what we need to change after reset...
ajibawa-2023/Python-Code-Large/train/row_89724
109
139
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89724:Try_L1_C0", "label": "try", "type": "try", "loc": [1, 8], "level": 0, "parent": null, "vector": [7, 0, 0.0324, 0.0576, 0, 0.66, 0.0, 0, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ""}, "sni...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89724:Try_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89724:Import_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89724:Try_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89724:ImportFrom_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
#!/usr/bin/env python # vim: set fileencoding=utf-8 : try: import pygame from pygame.locals import * from pygame import Surface, draw yes_pygame = True except ImportError: yes_pygame = False import globals class TxtInput(pygame.sprite.Sprite): ''' class handling input box: pos...
ajibawa-2023/Python-Code-Large/train/row_89725
195
252
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_89725:Try_L3_C0", "label": "try", "type": "try", "loc": [3, 9], "level": 0, "parent": null, "vector": [7, 0, 0.0238, 0.0278, 0, 0.66, 0.0, 0, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ""}, "sni...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89725:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89725:Import_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89725:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89725:ImportFrom_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# -*- coding: utf-8 -*- # Documentation for this class available at the end of this code. # __author__ = "mtsimoni" # __date__ = "$25.05.2011 23:17:00$" try: import pygame yes_pygame = True except ImportError: yes_pygame = False import globals animations_running = [] cards_attacking = [] cards_dying = []...
ajibawa-2023/Python-Code-Large/train/row_89726
83
122
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_89726:Try_L6_C0", "label": "try", "type": "try", "loc": [6, 10], "level": 0, "parent": null, "vector": [7, 0, 0.0656, 0.041, 0, 0.66, 0.0, 0, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ""}, "sni...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89726:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89726:Import_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89726:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89726:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_8...
# -*- coding: utf-8 -*- import globals import cards import random def select_cardbox(): s_cardboxes = [] if globals.player.id == 1: for cardbox in globals.cardboxes[0:5]: if cardbox.card.name is "player": #если есть карта s_cardboxes.append(cardbox) else: for card...
ajibawa-2023/Python-Code-Large/train/row_89727
59
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89727:Import_L2_C0", "label": "globals import globals", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.029, 0.0145, 0, 0.66, 0.0, 926, 0, 1, 0, 0, 926, 0, 0], "semantic": {"name": "globals", "arg_names": [], "import_names": ["globals"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89727:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89727:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89727:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89727:If_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- import pygame import globals import os current_folder = os.path.dirname(os.path.abspath(__file__)) class CardInfo(pygame.sprite.Sprite): """ class to display information about a card """ def __init__(self): pygame.sprite.Sprite.__init__(self) self.type = 'cardinfo' ...
ajibawa-2023/Python-Code-Large/train/row_89728
36
46
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_89728:Import_L2_C0", "label": "pygame import pygame", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0435, 0.0217, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89728:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89728:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89728:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89728:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python2 # -*- coding: utf-8 -*- import pygame.sprite #Wizards Magic #Copyright (C) 2011 сhubakur #This program is free software; you can redistribute it and/or #modify it under the terms of the GNU General Public License #as published by the Free Software Foundation; either version 2 #of the License, or (at...
ajibawa-2023/Python-Code-Large/train/row_89729
250
348
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_89729:Import_L3_C0", "label": "pygame.sprite import pygame.sprite", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0086, 0.0029, 0, 0.66, 0.0, 215, 0, 1, 0, 0, 215, 0, 0], "semantic": {"name": "pygame.sprite", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89729:If_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89729:Import_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89729:FunctionDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89729:Assign_L55_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
import pygame.sprite # To change this template, choose Tools | Templates # and open the template in the editor. __author__="chubakur" __date__ ="$17.03.2011 16:55:19$" import pygame import globals class MessageWindow(pygame.sprite.Sprite): def __init__(self,message): pygame.sprite.Sprite.__init__(self) ...
ajibawa-2023/Python-Code-Large/train/row_89730
18
21
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_89730:Import_L1_C0", "label": "pygame.sprite import pygame.sprite", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0476, 0.0476, 0, 0.66, 0.0, 215, 0, 1, 0, 0, 215, 0, 0], "semantic": {"name": "pygame.sprite", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89730:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89730:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89730:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89730:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Cod...
# -*- coding: utf-8 -*- #Wizards Magic Server #Copyright (C) 2011 сhubakur #This program is free software; you can redistribute it and/or #modify it under the terms of the GNU General Public License #as published by the Free Software Foundation; either version 2 #of the License, or (at your option) any later version. ...
ajibawa-2023/Python-Code-Large/train/row_89732
154
263
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_89732:Import_L31_C0", "label": "sys import sys", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.1179, 0.0038, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89732:Try_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89732:Import_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89732:Try_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89732:Import_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# -*- coding: utf-8 -*- import pygame import globals import os pygame.font.init() current_folder = os.path.dirname(os.path.abspath(__file__)) class ElementShower(pygame.sprite.Sprite): def __init__(self): self.type = 'outer' self.init_text = globals.font2.render('',False,(0,0,0)) pygame.spr...
ajibawa-2023/Python-Code-Large/train/row_89733
167
184
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_89733:Import_L2_C0", "label": "pygame import pygame", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0109, 0.0054, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89733:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89733:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89733:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89733:Assign_L10_C8"}, {"f": "ajibawa-2023/Python-Cod...
# -*- coding: utf-8 -*- import globals import os import pygame #globals.cards_of_element_shower_element содержит стихию class CardsOfElementShower(pygame.sprite.Sprite): #Не прототип! def __init__(self): pygame.sprite.Sprite.__init__(self) #self.player = player self.type = 'cardsofelemen...
ajibawa-2023/Python-Code-Large/train/row_89734
18
28
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_89734:Import_L2_C0", "label": "globals import globals", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0714, 0.0357, 0, 0.66, 0.0, 926, 0, 1, 0, 0, 926, 0, 0], "semantic": {"name": "globals", "arg_names": [], "import_names": ["globals"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89734:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89734:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89734:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89734:Expr_L9_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- try: import pygame yes_pygame = True except ImportError: yes_pygame = False import os current_folder = os.path.dirname(os.path.abspath(__file__)) if yes_pygame: pygame.font.init() panels = pygame.sprite.Group() #Нижний уровень #Lower Level interface = pygame.sprite.Gro...
ajibawa-2023/Python-Code-Large/train/row_89735
80
104
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_89735:Try_L2_C0", "label": "try", "type": "try", "loc": [2, 6], "level": 0, "parent": null, "vector": [7, 0, 0.0385, 0.0481, 0, 0.66, 0.0, 0, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ""}, "sni...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89735:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89735:Import_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89735:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89735:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_8...
# -*- coding: utf-8 -*- try: import pygame.sprite import pygame yes_pygame = True except ImportError: yes_pygame = False import animations import os import gettext from options import read_configuration from math import * import globals import player current_folder = os.path.dirname(os.path.abspath(__f...
ajibawa-2023/Python-Code-Large/train/row_89736
1,880
2,093
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_89736:Try_L2_C0", "label": "try", "type": "try", "loc": [2, 7], "level": 0, "parent": null, "vector": [7, 0, 0.0022, 0.0029, 0, 0.66, 0.0, 0, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ""}, "sni...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89736:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89736:Import_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89736:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89736:Import_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_8...
# To change this template, choose Tools | Templates # and open the template in the editor. import socket try: import json print 'JSON' except ImportError: import simplejson as json print 'SIMPLEJSON' #host = "flareguner.zapto.org" host = "192.168.1.106" port = 7712 sock = socket.socket(socket.AF_INET, s...
ajibawa-2023/Python-Code-Large/train/row_89737
22
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_89737:Import_L3_C0", "label": "socket import socket", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0909, 0.0303, 0, 0.66, 0.0, 687, 0, 1, 0, 0, 687, 0, 0], "semantic": {"name": "socket", "arg_names": [], "import_names": ["socket"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89737:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89737:Import_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89737:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89737:Expr_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_897...
__author__="chubakur" __date__ ="$07.03.2011 15:40:28$" from setuptools import setup,find_packages setup ( name = 'WizardsMagic', version = '0.1', packages = find_packages(), # Declare your packages' dependencies here, for eg: install_requires=['foo>=3'], # Fill in these to make your Egg ready for uploa...
ajibawa-2023/Python-Code-Large/train/row_89738
4
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89738:Assign_L1_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.037, 0.037, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs_ca...
[]
#PGControls #Copyright (C) 2011 chubakur@gmail.com #This program is free software; you can redistribute it and/or #modify it under the terms of the GNU General Public License #as published by the Free Software Foundation; either version 2 #of the License, or (at your option) any later version. #This program is distrib...
ajibawa-2023/Python-Code-Large/train/row_89739
147
183
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_89739:Import_L17_C0", "label": "pygame import pygame", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.0929, 0.0055, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89739:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89739:If_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89739:If_L25_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89739:If_L26_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
# -*- coding: utf-8 -*- #import pygame import cards import random import globals import sockets import pygame #CLIENT! class Player(): #Прототип игрока def __init__(self): self.health = 50 self.name = "player" self.cards_generated = False self.action_points = True #Ходил игрок, или н...
ajibawa-2023/Python-Code-Large/train/row_89740
66
82
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_89740:Import_L3_C0", "label": "cards import cards", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0366, 0.0122, 0, 0.66, 0.0, 271, 0, 1, 0, 0, 271, 0, 0], "semantic": {"name": "cards", "arg_names": [], "import_names": ["cards"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89740:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89740:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89740:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89740:Assign_L11_C8"}, {"f": "ajibawa-2023/Python-C...
# -*- coding: utf-8 -*- import pygame import globals class CompleteTheCourseButton(pygame.sprite.Sprite): def __init__(self, rect, panel): pygame.sprite.Sprite.__init__(self) self.panel = panel self.type = 'completethecoursebutton' self.player = panel.player self.image = pyga...
ajibawa-2023/Python-Code-Large/train/row_89741
18
19
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_89741:Import_L2_C0", "label": "pygame import pygame", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1053, 0.0526, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89741:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89741:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89741:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89741:Expr_L6_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# To change this template, choose Tools | Templates # and open the template in the editor. import globals import pygame class NicknameWindow(pygame.sprite.Sprite): def __init__(self,rect,panel): pygame.sprite.Sprite.__init__(self) self.panel = panel self.type = 'nicknamewindow' #self...
ajibawa-2023/Python-Code-Large/train/row_89742
16
21
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_89742:Import_L3_C0", "label": "globals import globals", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0476, 0, 0.66, 0.0, 926, 0, 1, 0, 0, 926, 0, 0], "semantic": {"name": "globals", "arg_names": [], "import_names": ["globals"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89742:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89742:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89742:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89742:Expr_L7_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- import pygame import globals class HealthWindow(pygame.sprite.Sprite): def __init__(self, rect, panel): pygame.sprite.Sprite.__init__(self) self.panel = panel self.type = 'healthwindow' self.player = panel.player self.image = pygame.image.load('misc/he...
ajibawa-2023/Python-Code-Large/train/row_89743
23
25
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_89743:Import_L2_C0", "label": "pygame import pygame", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.08, 0.04, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "rhs_call...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89743:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89743:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89743:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89743:Expr_L6_C8"}, {"f": "ajibawa-2023/Python-Code-L...
__author__="chubakur" __date__ ="$20.02.2011 13:00:13$" from setuptools import setup,find_packages setup ( name = 'Orions', version = '0.1', packages = find_packages(), # Declare your packages' dependencies here, for eg: install_requires=['foo>=3'], # Fill in these to make your Egg ready for upload to ...
ajibawa-2023/Python-Code-Large/train/row_89744
4
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89744:Assign_L1_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.037, 0.037, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs_ca...
[]
# -*- coding: utf-8 -*- import pygame import globals import threading class GameInformationPanel(pygame.sprite.Sprite): def __init__(self): pygame.sprite.Sprite.__init__(self) self.type = "gameinformationpanel" self.image = pygame.image.load('misc/game_information.gif').convert_alpha() ...
ajibawa-2023/Python-Code-Large/train/row_89745
34
35
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_89745:Import_L2_C0", "label": "pygame import pygame", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0571, 0.0286, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89745:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89745:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89745:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89745:Expr_L7_C8"}, {"f": "ajibawa-2023/Python-Code-L...
import unittest import doctest class OptionalExtensionTestSuite(unittest.TestSuite): def run(self, result): import simplejson run = unittest.TestSuite.run run(self, result) simplejson._toggle_speedups(False) run(self, result) simplejson._toggle_speedups(True) ...
ajibawa-2023/Python-Code-Large/train/row_89746
34
64
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_89746:Import_L1_C0", "label": "unittest import unittest", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0156, 0.0156, 0, 0.66, 0.0, 88, 0, 1, 0, 0, 88, 0, 0], "semantic": {"name": "unittest", "arg_names": [], "import_names": ["unittest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89746:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89746:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89746:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89746:Import_L7_C8"}, {"f": "ajibawa-2023/Python-Code...
"""Implementation of JSONEncoder """ import re from decimal import Decimal def _import_speedups(): try: from simplejson import _speedups return _speedups.encode_basestring_ascii, _speedups.make_encoder except ImportError: return None, None c_encode_basestring_ascii, c_make_encoder = _im...
ajibawa-2023/Python-Code-Large/train/row_89747
261
499
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_89747:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 2], "level": 0, "parent": null, "vector": [8, 0, 0.003, 0.004, 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_89747:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89747:Try_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89747:Try_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89747:ImportFrom_L8_C8"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data interchange format. :mod:`simplejson` exposes an API familiar to users of the standard library :mod:`marshal` and :mod:`pickle` modules. It is the externally maintained version of ...
ajibawa-2023/Python-Code-Large/train/row_89749
77
438
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_89749:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 99], "level": 0, "parent": null, "vector": [8, 0, 0.1142, 0.226, 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_89749:FunctionDef_L113_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89749:Import_L114_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89749:FunctionDef_L113_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89749:Try_L115_C4"}, {"f": "ajibawa-2023/Python-C...
"""JSON token scanner """ import re def _import_c_make_scanner(): try: from simplejson._speedups import make_scanner return make_scanner except ImportError: return None c_make_scanner = _import_c_make_scanner() __all__ = ['make_scanner'] NUMBER_RE = re.compile( r'(-?(?:0|[1-9]\d*))...
ajibawa-2023/Python-Code-Large/train/row_89751
57
77
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_89751:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 2], "level": 0, "parent": null, "vector": [8, 0, 0.0195, 0.026, 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_89751:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89751:Try_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89751:Try_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89751:ImportFrom_L6_C8"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
"""Drop-in replacement for collections.OrderedDict by Raymond Hettinger http://code.activestate.com/recipes/576693/ """ from UserDict import DictMixin # Modified from original to support Python 2.4, see # http://code.google.com/p/simplejson/issues/detail?id=53 try: all except NameError: def all(seq): ...
ajibawa-2023/Python-Code-Large/train/row_89752
85
119
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_89752:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0252, 0.042, 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_89752:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89752:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89752:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89752:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
# -*- coding: utf-8 -*- import sys import pgcontrols import pygame from pygame.locals import * import pygame.sprite screen = pygame.display.set_mode((800, 600)) background = pygame.Surface(screen.get_size()) background = background.convert() background.fill((0, 0, 0)) #pgcontrols_gr = pygame.sprite.Group() #pgcontrols...
ajibawa-2023/Python-Code-Large/train/row_89753
77
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_89753:Import_L2_C0", "label": "sys import sys", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.023, 0.0115, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89753:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89753:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89753:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89753:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- import pygame import globals class Cardbox(pygame.sprite.Sprite): def __init__(self, rect, player, position): pygame.sprite.Sprite.__init__(self) self.type = 'cardbox' self.position = position self.player = player #первый или второй self.image = pygame...
ajibawa-2023/Python-Code-Large/train/row_89754
24
26
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_89754:Import_L2_C0", "label": "pygame import pygame", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0769, 0.0385, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89754:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89754:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89754:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89754:Expr_L6_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- import pygame import globals class Actionpanel(pygame.sprite.Sprite): def __init__(self, rect, player): pygame.sprite.Sprite.__init__(self) self.type = 'actionpanel' self.player = player self.image = pygame.image.load('misc/actionpanel_bg.gif').convert_alpha()...
ajibawa-2023/Python-Code-Large/train/row_89755
16
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_89755:Import_L2_C0", "label": "pygame import pygame", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1176, 0.0588, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89755:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89755:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89755:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89755:Expr_L6_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- import pygame import globals class CardInfo(pygame.sprite.Sprite): def __init__(self): pygame.sprite.Sprite.__init__(self) self.type = 'cardinfo' #self.image = pygame.Surface((450, 300)) #self.image = self.image.convert() #self.image.fill((0, 0, 0)) ...
ajibawa-2023/Python-Code-Large/train/row_89756
29
38
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_89756:Import_L2_C0", "label": "pygame import pygame", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0263, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89756:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89756:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89756:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89756:Expr_L6_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- import thread import pygame.sprite #Wizards Magic Multi-Player Client #Copyright (C) 2011 chubakur@gmail.com #This program is free software; you can redistribute it and/or #modify it under the terms of the GNU General Public License #as published by the Free Software Foundation; either version 2...
ajibawa-2023/Python-Code-Large/train/row_89757
174
238
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_89757:Import_L2_C0", "label": "thread import thread", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0084, 0.0042, 0, 0.66, 0.0, 260, 0, 1, 0, 0, 260, 0, 0], "semantic": {"name": "thread", "arg_names": [], "import_names": ["thread"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89757:Try_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89757:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89757:Try_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89757:Import_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
import pygame.sprite # To change this template, choose Tools | Templates # and open the template in the editor. __author__="chubakur" __date__ ="$17.03.2011 16:55:19$" import pygame import globals class MessageWindow(pygame.sprite.Sprite): def __init__(self,message): pygame.sprite.Sprite.__init__(self) ...
ajibawa-2023/Python-Code-Large/train/row_89758
18
21
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_89758:Import_L1_C0", "label": "pygame.sprite import pygame.sprite", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0476, 0.0476, 0, 0.66, 0.0, 215, 0, 1, 0, 0, 215, 0, 0], "semantic": {"name": "pygame.sprite", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89758:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89758:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89758:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89758:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Cod...
# -*- coding: utf-8 -*- import globals import pygame import player import cards import sockets import sys from pygame.locals import * #CLIENT@! def play_bookopen_sound(): #pygame.mixer.music.load('misc/sounds/book_open.wav') #pygame.mixer.music.play() return def play_bookclose_sound(): #pygame.mixer.mus...
ajibawa-2023/Python-Code-Large/train/row_89759
167
188
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_89759:Import_L2_C0", "label": "globals import globals", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0106, 0.0053, 0, 0.66, 0.0, 926, 0, 1, 0, 0, 926, 0, 0], "semantic": {"name": "globals", "arg_names": [], "import_names": ["globals"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89759:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89759:Return_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89759:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89759:Return_L17_C4"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: utf-8 -*- import pygame import globals class ElementButton(pygame.sprite.Sprite): def __init__(self): #Это прототип! pass def draw(self): self.image = self.surface_backup.copy() #exec("text = globals.font.render(str(globals.player" + str(self.player.id) + "." + self...
ajibawa-2023/Python-Code-Large/train/row_89760
83
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_89760:Import_L2_C0", "label": "pygame import pygame", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.023, 0.0115, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "rhs_c...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89760:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89760:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89760:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89760:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: utf-8 -*- import globals import pygame class CardsOfElementShower(pygame.sprite.Sprite): #Не прототип! def __init__(self, rect, player): pygame.sprite.Sprite.__init__(self) self.player = player self.type = 'cardsofelementshower' self.image = pygame.image.load('misc/...
ajibawa-2023/Python-Code-Large/train/row_89761
53
59
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_89761:Import_L2_C0", "label": "globals import globals", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0339, 0.0169, 0, 0.66, 0.0, 926, 0, 1, 0, 0, 926, 0, 0], "semantic": {"name": "globals", "arg_names": [], "import_names": ["globals"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89761:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89761:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89761:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89761:Expr_L7_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- #Client import pygame pygame.font.init() panels = pygame.sprite.Group() #Нижний уровень interface = pygame.sprite.Group() #Уровень кнопок cards_in_deck = pygame.sprite.Group() #Уровень дополнительный ccards_1 = pygame.sprite.Group() # Карты, которые вывел первый игрок ccards_2 = pygame.sprite.G...
ajibawa-2023/Python-Code-Large/train/row_89762
20
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89762:Import_L3_C0", "label": "pygame import pygame", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.037, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "rhs_c...
[]
# -*- coding: utf-8 -*- import pygame.sprite #from WizardsMagic import cardbox0 # To change this template, choose Tools | Templates # and open the template in the editor. __author__ = "chubakur" __date__ = "$13.02.2011 18:46:32$" water_cards = ["Nixie", "Hydra", "Waterfall", "Leviathan", "IceGuard", "Poseidon", "IceWiz...
ajibawa-2023/Python-Code-Large/train/row_89763
1,644
1,835
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_89763:Import_L2_C0", "label": "pygame.sprite import pygame.sprite", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0011, 0.0005, 0, 0.66, 0.0, 215, 0, 1, 0, 0, 215, 0, 0], "semantic": {"name": "pygame.sprite", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89763:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89763:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89763:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89763:Expr_L23_C8"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: utf-8 -*- import pygame import globals class Infopanel(pygame.sprite.Sprite): def __init__(self, rect, player): pygame.sprite.Sprite.__init__(self) self.type = 'infopanel' self.player = player #self.image = pygame.Surface((screen.get_size()[0],screen.get_size()[1]/25)) ...
ajibawa-2023/Python-Code-Large/train/row_89764
14
18
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_89764:Import_L2_C0", "label": "pygame import pygame", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.0556, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89764:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89764:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89764:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89764:Expr_L6_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- #import pygame import cards import random import globals import pygame class Player(): #Прототип игрока def __init__(self): self.health = 50 self.name = "player" self.action_points = True #Ходил игрок, или нет self.get_cards() self.get_mana() def d...
ajibawa-2023/Python-Code-Large/train/row_89765
92
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_89765:Import_L3_C0", "label": "cards import cards", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0263, 0.0088, 0, 0.66, 0.0, 271, 0, 1, 0, 0, 271, 0, 0], "semantic": {"name": "cards", "arg_names": [], "import_names": ["cards"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89765:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89765:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89765:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89765:Assign_L9_C8"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- import pygame import globals class CompleteTheCourseButton(pygame.sprite.Sprite): def __init__(self, rect, panel): pygame.sprite.Sprite.__init__(self) self.panel = panel self.type = 'completethecoursebutton' self.player = panel.player self.image = pyga...
ajibawa-2023/Python-Code-Large/train/row_89766
18
19
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_89766:Import_L2_C0", "label": "pygame import pygame", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1053, 0.0526, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_89766:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_89766:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_89766:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_89766:Expr_L6_C8"}, {"f": "ajibawa-2023/Python-Code-L...