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
""" Implementation of JSONEncoder """ import re try: from simplejson._speedups import encode_basestring_ascii as c_encode_basestring_ascii except ImportError: pass ESCAPE = re.compile(r'[\x00-\x1f\\"\b\f\n\r\t]') ESCAPE_ASCII = re.compile(r'([\\"]|[^\ -~])') HAS_UTF8 = re.compile(r'[\x80-\xff]') ESCAPE_DCT = ...
ajibawa-2023/Python-Code-Large/train/row_1528
202
385
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1528:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0052, 0.0078, 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_1528:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1528:ImportFrom_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1528:For_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1528:Expr_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1...
""" Implementation of JSONDecoder """ import re import sys from simplejson.scanner import Scanner, pattern try: from simplejson._speedups import scanstring as c_scanstring except ImportError: pass FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL def _floatconstants(): import struct import sys _BYTES...
ajibawa-2023/Python-Code-Large/train/row_1529
177
343
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1529:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0058, 0.0087, 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_1529:Try_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1529:ImportFrom_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1529:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1529:Import_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
r""" A simple, fast, extensible JSON encoder and decoder JSON (JavaScript Object Notation) <http://json.org> is a subset of JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data interchange format. simplejson exposes an API familiar to uses of the standard library marshal and pickle modules. Encoding b...
ajibawa-2023/Python-Code-Large/train/row_1530
69
376
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1530:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 101], "level": 0, "parent": null, "vector": [8, 0, 0.1356, 0.2686, 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_1530:If_L108_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1530:Import_L109_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1530:If_L108_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1530:Expr_L110_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1...
""" Iterator based sre token scanner """ import re from re import VERBOSE, MULTILINE, DOTALL import sre_parse import sre_compile import sre_constants from sre_constants import BRANCH, SUBPATTERN __all__ = ['Scanner', 'pattern'] FLAGS = (VERBOSE | MULTILINE | DOTALL) class Scanner(object): def __init__(self, lexi...
ajibawa-2023/Python-Code-Large/train/row_1532
49
67
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1532:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0299, 0.0448, 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_1532:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1532:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1532:FunctionDef_L16_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1532:Assign_L17_C8"}, {"f": "ajibawa-2023/Python-Code...
# Much the below modified from the gae-json-rest project import plistlib import logging import re import touchengineutil def id_of(entity): """ Make a {'id': <string-of-digits>} dict for an entity. Args: entity: an entity Returns: a jobj corresponding to the entity """ return dict(id=touchengineut...
ajibawa-2023/Python-Code-Large/train/row_1533
23
53
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1533:Import_L4_C0", "label": "plistlib import plistlib", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0755, 0.0189, 0, 0.66, 0.0, 592, 0, 1, 0, 0, 592, 0, 0], "semantic": {"name": "plistlib", "arg_names": [], "import_names": ["plistlib...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1533:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1533:Expr_L10_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1533:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1533:Return_L17_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python import logging import time import re import wsgiref.handlers from google.appengine.ext import webapp from google.appengine.ext.db import Key import cookutil import touchengineutil import plistutil # RE to match: optional /, classname, optional /, ID of 0+ numeric digits CLASSNAME_ID_RE = re.co...
ajibawa-2023/Python-Code-Large/train/row_1535
99
161
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1535:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0186, 0.0062, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1535:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1535:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1535:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1535:Assign_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
""" Utilities for JSON REST CRUD support for GAE db models. Terminology: a subclass of db.Model is known as "a Model"; an instance of such a subclass is known as "an entity". Data is said to be in JSONed or JSONable form if it contains only dicts, lists and scalars (strings, numbers) in a form that is correctly seria...
ajibawa-2023/Python-Code-Large/train/row_1537
57
147
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1537:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 14], "level": 0, "parent": null, "vector": [8, 0, 0.051, 0.0952, 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_1537:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1537:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1537:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1537:Return_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""A toy-level example of a data model in Google Appengine DB terms. """ import logging from touchengine import touchengineutil from Doctor import Doctor from Pager import Pager touchengineutil.decorateModuleNamed(__name__) logging.info('touchengine Models in %r decorated', __name__)
ajibawa-2023/Python-Code-Large/train/row_1538
7
10
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1538:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 2], "level": 0, "parent": null, "vector": [8, 0, 0.15, 0.2, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ...
[]
"""A toy-level example of a RESTful app running on Google Appengine. """ import logging import time import wsgiref.handlers from google.appengine.ext import webapp import models from touchengine import cookutil from touchengine import touchengineutil from touchengine import plistutil from touchengine.plistHandler impo...
ajibawa-2023/Python-Code-Large/train/row_1539
16
22
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1539:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 2], "level": 0, "parent": null, "vector": [8, 0, 0.0682, 0.0909, 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_1539:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1539:Expr_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1539:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1539:Assign_L17_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
import cgi import doctest import logging import os import re logger = logging.getLogger() logger.setLevel(getattr(logging, os.environ.get('LOGLEVEL', 'WARNING'))) class UrlParser(object): """ Parse a URL path and perform appropriate an callback on regex-matching. Instantiate h with a prefix (to be matched, b...
ajibawa-2023/Python-Code-Large/train/row_1540
88
202
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1540:Import_L1_C0", "label": "cgi import cgi", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.005, 0.005, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1540:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1540:Expr_L11_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1540:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1540:FunctionDef_L50_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/env python #Python sonnet maker import wsgiref.handlers from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app #external imports import sonnet import plistlib class MainHandler(webapp.RequestHandler): """Returns sonnets dictionary as a converted plist""" ...
ajibawa-2023/Python-Code-Large/train/row_1543
19
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_1543:Import_L4_C0", "label": "wsgiref.handlers import wsgiref.handlers", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.087, 0.0217, 0, 0.66, 0.0, 709, 0, 1, 0, 0, 709, 0, 0], "semantic": {"name": "wsgiref.handlers", "arg_names": [], "im...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1543:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1543:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1543:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1543:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
verses={"verses":[["I","""FROM fairest creatures we desire increase, That thereby beauty's rose might never die, But as the riper should by time decease, His tender heir might bear his memory: But thou, contracted to thine own bright eyes, Feed'st thy light'st flame with self-substantial fuel, Making a famine where abu...
ajibawa-2023/Python-Code-Large/train/row_1544
1
2,142
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1544:Assign_L1_C0", "label": "verses =", "type": "assigned_variable", "loc": [1, 2142], "level": 0, "parent": null, "vector": [14, 0, 0.5002, 1.0, 0, 0.66, 0.0, 344, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "verses", "arg_names": [], "import_names": [], "rhs_call_name...
[]
#!/usr/bin/env python import wsgiref.handlers from google.appengine.api import users from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app from google.appengine.ext import db from google.appengine.ext.webapp import template from django.utils import simplejson from touchen...
ajibawa-2023/Python-Code-Large/train/row_1546
102
161
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1546:Import_L3_C0", "label": "wsgiref.handlers import wsgiref.handlers", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0186, 0.0062, 0, 0.66, 0.0, 709, 0, 1, 0, 0, 709, 0, 0], "semantic": {"name": "wsgiref.handlers", "arg_names": [], "i...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1546:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1546:Expr_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1546:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1546:FunctionDef_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1547
233
727
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1547:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0193, 0.0014, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1547:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1547:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1547:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1547:ImportFrom_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1548
164
251
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1548:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.0558, 0.004, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest"]...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1548:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1548:ImportFrom_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1548:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1548:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2008 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1549
201
464
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1549:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.0302, 0.0022, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1549:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1549:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1549:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1549:Assign_L27_C8"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright (C) 2006,2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1550
69
94
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1550:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.1489, 0.0106, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1550:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1550:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1550:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1550:Assign_L24_C8"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright (C) 2006 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consists of ...
ajibawa-2023/Python-Code-Large/train/row_1551
301
697
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1551:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.0201, 0.0014, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1551:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1551:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1551:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1551:Assign_L24_C8"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1552
206
265
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1552:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.0528, 0.0038, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1552:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1552:FunctionDef_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1552:FunctionDef_L25_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1552:Assign_L26_C8"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright (C) 2006 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consists of ...
ajibawa-2023/Python-Code-Large/train/row_1553
18
34
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1553:Import_L14_C0", "label": "unittest import unittest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.4118, 0.0294, 0, 0.66, 0.0, 88, 0, 1, 0, 0, 88, 0, 0], "semantic": {"name": "unittest", "arg_names": [], "import_names": ["unittes...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1553:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1553:Import_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1553:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1553:ImportFrom_L18_C4"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: utf-8 -*- # # Copyright (C) 2006 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consists of ...
ajibawa-2023/Python-Code-Large/train/row_1554
40
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1554:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.1867, 0.0133, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1554:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1554:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1554:FunctionDef_L24_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1554:Assign_L25_C8"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1555
467
838
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1555:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 16], "level": 0, "parent": null, "vector": [8, 0, 0.0179, 0.0036, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1555:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1555:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1555:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1555:If_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1556
123
274
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1556:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0511, 0.0036, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1556:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1556:Expr_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1556:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1556:ClassDef_L60_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1557
978
1,528
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1557:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 39], "level": 0, "parent": null, "vector": [8, 0, 0.0173, 0.017, 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_1557:Try_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1557:Expr_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1557:Try_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1557:ImportFrom_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1562
125
274
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1562:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.0511, 0.0036, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1562:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1562:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1562:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1562:FunctionDef_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2007 Edgewall Software # Copyright (C) 2006 Matthew Good # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/...
ajibawa-2023/Python-Code-Large/train/row_1563
127
264
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1563:Import_L15_C0", "label": "doctest import doctest", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.0568, 0.0038, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1563:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1563:FunctionDef_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1563:FunctionDef_L31_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1563:Assign_L32_C8"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1564
9
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_1564:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.56, 0.04, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest"], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1564:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1564:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1564:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1564:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1565
16
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1565:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.4375, 0.0312, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1565:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1565:ImportFrom_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1565:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1565:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2008 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1567
259
462
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1567:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.0303, 0.0022, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1567:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1567:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1567:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1567:FunctionDef_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2009 Edgewall Software # Copyright (C) 2006 Matthew Good # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/...
ajibawa-2023/Python-Code-Large/train/row_1570
104
176
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1570:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0909, 0.017, 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_1570:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1570:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1570:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1570:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
# -*- coding: utf-8 -*- # # Copyright (C) 2008-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1571
325
505
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1571:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0277, 0.002, 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_1571:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1571:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1571:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1571:If_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1573
6
23
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1573:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 14], "level": 0, "parent": null, "vector": [8, 0, 0.6087, 0.0435, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[]
# -*- coding: utf-8 -*- # # Copyright (C) 2008-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1574
569
778
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1574:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 14], "level": 0, "parent": null, "vector": [8, 0, 0.018, 0.0013, 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_1574:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1574:Import_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1574:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1574:ImportFrom_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1576
116
335
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1576:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0418, 0.003, 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_1576:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1576:Import_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1576:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1576:Import_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1...
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1579
504
1,310
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1579:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 48], "level": 0, "parent": null, "vector": [8, 0, 0.0237, 0.0267, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1579:ClassDef_L61_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1579:Expr_L62_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1579:ClassDef_L61_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1579:Assign_L63_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consists of ...
ajibawa-2023/Python-Code-Large/train/row_1580
377
1,497
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1580:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.0094, 0.0007, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1580:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1580:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1580:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1580:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Cod...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1581
195
475
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1581:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.0295, 0.0021, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1581:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1581:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1581:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1581:Assign_L24_C8"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2008 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1582
12
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_1582:Import_L14_C0", "label": "doctest import doctest", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.5185, 0.037, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "doctest", "arg_names": [], "import_names": ["doctest"]...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1582:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1582:ImportFrom_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1582:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1582:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1583
649
1,634
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1583:ImportFrom_L14_C0", "label": "from datetime import datetime", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.0086, 0.0006, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1583:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1583:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1583:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1583:FunctionDef_L29_C4"}, {"f": "ajibawa-2023/Python-Code-La...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1584
210
453
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1584:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0309, 0.0022, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1584:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1584:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1584:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1584:ImportFrom_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1585
5
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1585:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 14], "level": 0, "parent": null, "vector": [8, 0, 0.7, 0.05, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[]
# -*- coding: utf-8 -*- # # Copyright (C) 2007-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1586
539
1,171
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1586:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 19], "level": 0, "parent": null, "vector": [8, 0, 0.0141, 0.0051, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1586:Try_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1586:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1586:Try_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1586:ImportFrom_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1587
5
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_1587:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 20], "level": 0, "parent": null, "vector": [8, 0, 0.6538, 0.2692, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[]
# -*- coding: utf-8 -*- # # Copyright (C) 2006-2009 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://genshi.edgewall.org/wiki/License. # # This software consist...
ajibawa-2023/Python-Code-Large/train/row_1588
100
359
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1588:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 69], "level": 0, "parent": null, "vector": [8, 0, 0.1156, 0.156, 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_1588:ClassDef_L78_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1588:Expr_L79_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1588:ClassDef_L78_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1588:Assign_L82_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
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_1589
34
63
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1589:Import_L1_C0", "label": "unittest import unittest", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0159, 0.0159, 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_1589:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1589:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1589:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1589:Import_L7_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""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_1590
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_1590: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": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1590:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1590:Try_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1590:Try_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1590:ImportFrom_L8_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
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_1592
77
437
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1592:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 99], "level": 0, "parent": null, "vector": [8, 0, 0.1144, 0.2265, 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_1592:FunctionDef_L113_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1592:Import_L114_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1592:FunctionDef_L113_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1592:Try_L115_C4"}, {"f": "ajibawa-2023/Python-Code-...
"""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_1594
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_1594: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": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1594:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1594:Try_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1594:Try_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1594:ImportFrom_L6_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
"""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_1595
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_1595: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": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1595:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1595:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1595:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1595:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
import logging import os #initialize logging def create_env(): """Sets logging level if LOGGING_DEBUG is set""" default_log_level = logging.INFO if os.environ.get("LOGGING_DEBUG") in ("1", "True", "on"): default_log_level = logging.DEBUG return default_log_level class Formatter(object): ...
ajibawa-2023/Python-Code-Large/train/row_1596
35
49
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1596:Import_L1_C0", "label": "logging import logging", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0204, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1596:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1596:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1596:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1596:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" Author: Noah Gift Date: 08/05/2009 A really simple set of defaults for logging ============================================ You simply do this:: >>> from sensible.loginit import logger >>> log = logger("MyApp") >>> log.info("stuff") 2009-08-04 23:56:22,583 - MyApp - INFO - stuff Environmental ...
ajibawa-2023/Python-Code-Large/train/row_1597
1
22
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1597:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.5227, 1.0, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[]
from _BookShelf import _BookShelf class BookShelf(_BookShelf): pass # Custom logic goes here.
ajibawa-2023/Python-Code-Large/train/row_1598
2
5
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1598:ImportFrom_L1_C0", "label": "from _BookShelf import _BookShelf", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 291, 0, 1, 0, 0, 291, 0, 0], "semantic": {"name": "_BookShelf", "arg_names": [], "import_names": [...
[]
""" Copyright (c) 2003-2010 Gustavo Niemeyer <gustavo@niemeyer.net> This module offers extensions to the standard python 2.3+ datetime module. """ __author__ = "Gustavo Niemeyer <gustavo@niemeyer.net>" __license__ = "PSF License" __version__ = "1.5"
ajibawa-2023/Python-Code-Large/train/row_1603
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_1603:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.3889, 0.6667, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
""" Copyright (c) 2003-2005 Gustavo Niemeyer <gustavo@niemeyer.net> This module offers extensions to the standard python 2.3+ datetime module. """ from dateutil.tz import tzfile from tarfile import TarFile import os __author__ = "Gustavo Niemeyer <gustavo@niemeyer.net>" __license__ = "PSF License" __all__ = ["setca...
ajibawa-2023/Python-Code-Large/train/row_1604
62
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_1604:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0402, 0.069, 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_1604:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1604:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1604:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1604:Return_L21_C8"}, {"f": "ajibawa-2023/Python-Code...
# This code was originally contributed by Jeffrey Harris. import datetime import struct import _winreg __author__ = "Jeffrey Harris & Gustavo Niemeyer <gustavo@niemeyer.net>" __all__ = ["tzwin", "tzwinlocal"] ONEWEEK = datetime.timedelta(7) TZKEYNAMENT = r"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones" TZ...
ajibawa-2023/Python-Code-Large/train/row_1605
108
180
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1605:Import_L2_C0", "label": "datetime import datetime", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0111, 0.0056, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["datetime...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1605:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1605:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1605:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1605:Try_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
from _Book import _Book class Book(_Book): pass # Custom logic goes here.
ajibawa-2023/Python-Code-Large/train/row_1606
2
5
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1606:ImportFrom_L1_C0", "label": "from _Book import _Book", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 208, 0, 1, 0, 0, 208, 0, 0], "semantic": {"name": "_Book", "arg_names": [], "import_names": ["_Book"], "rhs_...
[]
''' Module which brings history information about files from Mercurial. @author: Rodrigo Damazio ''' import re import subprocess REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*') def _GetOutputLines(args): ''' Runs an external process and returns its output as a list of lines. @param args: the argume...
ajibawa-2023/Python-Code-Large/train/row_1607
38
94
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1607:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0319, 0.0532, 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_1607:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1607:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1607:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1607:Assign_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python ''' Entry point for My Tracks i18n tool. @author: Rodrigo Damazio ''' import mytracks.files import mytracks.translate import mytracks.validate import sys def Usage(): print 'Usage: %s <command> [<language> ...]\n' % sys.argv[0] print 'Commands are:' print ' cleanup' print ' translate' p...
ajibawa-2023/Python-Code-Large/train/row_1608
58
96
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1608:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0417, 0.0521, 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_1608:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1608:Expr_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1608:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1608:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
''' Module which prompts the user for translations and saves them. TODO: implement @author: Rodrigo Damazio ''' class Translator(object): ''' classdocs ''' def __init__(self, language): ''' Constructor ''' self._language = language def Translate(self, string_names): print string_names
ajibawa-2023/Python-Code-Large/train/row_1609
8
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_1609:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.1905, 0.3333, 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_1609:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1609:Expr_L10_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1609:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1609:FunctionDef_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/...
''' Module which compares languague files to the master file and detects issues. @author: Rodrigo Damazio ''' import os from mytracks.parser import StringsParser import mytracks.history class Validator(object): def __init__(self, languages): ''' Builds a strings file validator. Params: @para...
ajibawa-2023/Python-Code-Large/train/row_1610
65
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_1610:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0304, 0.0522, 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_1610:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1610:FunctionDef_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1610:FunctionDef_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_1610:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-L...
''' Module for dealing with resource files (but not their contents). @author: Rodrigo Damazio ''' import os.path from glob import glob import re MYTRACKS_RES_DIR = 'MyTracks/res' ANDROID_MASTER_VALUES = 'values' ANDROID_VALUES_MASK = 'values-*' def GetMyTracksDir(): ''' Returns the directory in which the MyTrac...
ajibawa-2023/Python-Code-Large/train/row_1611
25
45
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1611:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0667, 0.1111, 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_1611:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1611:Expr_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1611:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1611:Assign_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
''' Module which parses a string XML file. @author: Rodrigo Damazio ''' from xml.parsers.expat import ParserCreate import re #import xml.etree.ElementTree as ET class StringsParser(object): ''' Parser for string XML files. This object is not thread-safe and should be used for parsing a single file at a time...
ajibawa-2023/Python-Code-Large/train/row_1612
54
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_1612:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0261, 0.0435, 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_1612:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1612:Expr_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1612:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1612:FunctionDef_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/bin/env python import xml.dom.minidom as dom import sys import struct WEAP_NUM = 780 struct_fmt = "<H BBHBBBB 8B8B8b8b8b8b8H bbBBBB" def pack_weapon(dict): l = [] l.append(dict['drain']) l.append(dict['shotRepeat']) l.append(dict['multi']) l.append(dict['weapAni']) l.append(dict['max']) l.append(dict['tx...
ajibawa-2023/Python-Code-Large/train/row_1613
167
233
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1613:Import_L3_C0", "label": "xml.dom.minidom import dom", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0129, 0.0043, 0, 0.66, 0.0, 770, 0, 1, 0, 0, 770, 0, 0], "semantic": {"name": "xml.dom.minidom", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1613:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1613:Assign_L12_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1613:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1613:Expr_L14_C1"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python2.6 # # Simple http server to emulate api.playfoursquare.com import logging import shutil import sys import urlparse import SimpleHTTPServer import BaseHTTPServer class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """Handle playfoursquare.com requests, for testing.""" def do_GET(self...
ajibawa-2023/Python-Code-Large/train/row_1614
63
85
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1614:Import_L5_C0", "label": "logging import logging", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0588, 0.0118, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1614:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1614:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1614:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1614:FunctionDef_L17_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python import datetime import sys import textwrap import common from xml.dom import pulldom PARSER = """\ /** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquare.parsers; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joel...
ajibawa-2023/Python-Code-Large/train/row_1615
42
149
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1615:Import_L3_C0", "label": "datetime import datetime", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0201, 0.0067, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["datetime...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1615:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1615:Assign_L83_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1615:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1615:Expr_L85_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python """ Pull a oAuth protected page from foursquare. Expects ~/.oget to contain (one on each line): CONSUMER_KEY CONSUMER_KEY_SECRET USERNAME PASSWORD Don't forget to chmod 600 the file! """ import httplib import os import re import sys import urllib import urllib2 import urlparse import user from xml....
ajibawa-2023/Python-Code-Large/train/row_1616
50
111
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1616:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0631, 0.0991, 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_1616:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1616:Return_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1616:FunctionDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1616:Assign_L57_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
ajibawa-2023/Python-Code-Large/train/row_1617
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_1617:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.037, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1617:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1617:Assign_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1617:For_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1617:Assign_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_16...
#!/usr/bin/python import logging from xml.dom import minidom from xml.dom import pulldom BOOLEAN = "boolean" STRING = "String" GROUP = "Group" # Interfaces that all FoursquareTypes implement. DEFAULT_INTERFACES = ['FoursquareType'] # Interfaces that specific FoursqureTypes implement. INTERFACES = { } DEFAULT_CLA...
ajibawa-2023/Python-Code-Large/train/row_1618
44
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_1618:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0263, 0.0088, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1618:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1618:Expr_L60_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1618:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1618:Assign_L71_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2012 Zdenko Podobný # Author: Zdenko Podobný # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ajibawa-2023/Python-Code-Large/train/row_1620
3
4
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1620:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.25, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", "an...
[]
#!/usr/bin/env python from distutils.core import setup from crawle import VERSION setup(name='CRAWL-E', version=VERSION, description='Highly distributed web crawling framework', author='Bryce Boe', author_email='bboe (_at_) cs.ucsb.edu', url='http://code.google.com/p/crawl-e', py_mo...
ajibawa-2023/Python-Code-Large/train/row_1623
3
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_1623:ImportFrom_L2_C0", "label": "from distutils.core import setup", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.0833, 0, 0.66, 0.0, 152, 0, 1, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": [], "import_...
[]
''' Module which brings history information about files from Mercurial. @author: Rodrigo Damazio ''' import re import subprocess REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*') def _GetOutputLines(args): ''' Runs an external process and returns its output as a list of lines. @param args: the argume...
ajibawa-2023/Python-Code-Large/train/row_1625
38
94
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1625:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0319, 0.0532, 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_1625:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1625:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1625:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1625:Assign_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python ''' Entry point for My Tracks i18n tool. @author: Rodrigo Damazio ''' import mytracks.files import mytracks.translate import mytracks.validate import sys def Usage(): print 'Usage: %s <command> [<language> ...]\n' % sys.argv[0] print 'Commands are:' print ' cleanup' print ' translate' p...
ajibawa-2023/Python-Code-Large/train/row_1626
58
96
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1626:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0417, 0.0521, 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_1626:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1626:Expr_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1626:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1626:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
''' Module which prompts the user for translations and saves them. TODO: implement @author: Rodrigo Damazio ''' class Translator(object): ''' classdocs ''' def __init__(self, language): ''' Constructor ''' self._language = language def Translate(self, string_names): print string_names
ajibawa-2023/Python-Code-Large/train/row_1627
8
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_1627:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.1905, 0.3333, 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_1627:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1627:Expr_L10_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1627:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1627:FunctionDef_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/...
''' Module which compares languague files to the master file and detects issues. @author: Rodrigo Damazio ''' import os from mytracks.parser import StringsParser import mytracks.history class Validator(object): def __init__(self, languages): ''' Builds a strings file validator. Params: @para...
ajibawa-2023/Python-Code-Large/train/row_1628
65
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_1628:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0304, 0.0522, 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_1628:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1628:FunctionDef_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1628:FunctionDef_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_1628:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-L...
''' Module for dealing with resource files (but not their contents). @author: Rodrigo Damazio ''' import os.path from glob import glob import re MYTRACKS_RES_DIR = 'MyTracks/res' ANDROID_MASTER_VALUES = 'values' ANDROID_VALUES_MASK = 'values-*' def GetMyTracksDir(): ''' Returns the directory in which the MyTrac...
ajibawa-2023/Python-Code-Large/train/row_1629
25
45
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1629:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0667, 0.1111, 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_1629:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1629:Expr_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1629:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1629:Assign_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
''' Module which parses a string XML file. @author: Rodrigo Damazio ''' from xml.parsers.expat import ParserCreate import re #import xml.etree.ElementTree as ET class StringsParser(object): ''' Parser for string XML files. This object is not thread-safe and should be used for parsing a single file at a time...
ajibawa-2023/Python-Code-Large/train/row_1630
54
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_1630:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0261, 0.0435, 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_1630:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1630:Expr_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1630:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1630:FunctionDef_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
import socket import urllib __author__="uli" __date__ ="$12.01.2009 16:48:52$" if __name__ == "__main__": url = raw_input("URL: ") count = int(raw_input("Count: ")) traffic = 0 #Traffic in bytes for i in xrange(count): print "Starting %ith download" % (i+1) socket = urllib.urlopen(url)...
ajibawa-2023/Python-Code-Large/train/row_1631
15
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_1631:Import_L1_C0", "label": "socket import socket", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0556, 0.0556, 0, 0.66, 0.0, 687, 0, 1, 0, 0, 687, 0, 0], "semantic": {"name": "socket", "arg_names": [], "import_names": ["socket"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1631:If_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1631:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1631:If_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1631:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1631:If...
# -*- coding: UTF-8 -*- # # gameOver.py # # 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_1632
33
58
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1632:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 17], "level": 0, "parent": null, "vector": [8, 0, 0.2672, 0.069, 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_1632:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1632:FunctionDef_L24_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1632:FunctionDef_L24_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_1632:Assign_L25_C2"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: UTF-8 -*- # # menu.py # # 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_1633
86
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_1633:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 17], "level": 0, "parent": null, "vector": [8, 0, 0.1281, 0.0331, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1633:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1633:Expr_L24_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1633:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1633:FunctionDef_L27_C1"}, {"f": "ajibawa-2023/Python-Code-Larg...
# -*- coding: UTF-8 -*- # # intro.py # # 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_1634
33
62
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1634:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 17], "level": 0, "parent": null, "vector": [8, 0, 0.25, 0.0645, 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_1634:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1634:Expr_L22_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1634:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1634:FunctionDef_L27_C1"}, {"f": "ajibawa-2023/Python-Code-Larg...
# -*- coding: UTF-8 -*- # # funciones.py # # 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_1635
77
142
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1635:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 17], "level": 0, "parent": null, "vector": [8, 0, 0.1092, 0.0282, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1635:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1635:Expr_L24_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1635:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1635:Assign_L38_C1"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# -*- coding: UTF-8 -*- # # nivel_1.py # # 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_1636
142
210
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1636:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0738, 0.019, 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_1636:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1636:Expr_L23_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1636:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1636:FunctionDef_L25_C1"}, {"f": "ajibawa-2023/Python-Code-Larg...
# -*- coding: UTF-8 -*- # # puntajes.py # # 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_1637
32
62
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1637:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 17], "level": 0, "parent": null, "vector": [8, 0, 0.25, 0.0645, 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_1637:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1637:FunctionDef_L23_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1637:FunctionDef_L23_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_1637:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: UTF-8 -*- # # objetos.py # # 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_1638
175
250
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1638:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 17], "level": 0, "parent": null, "vector": [8, 0, 0.062, 0.016, 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_1638:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1638:FunctionDef_L28_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1638:FunctionDef_L28_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_1638:Expr_L29_C2"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: UTF-8 -*- # # creditos.py # # 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_1639
36
58
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1639:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 17], "level": 0, "parent": null, "vector": [8, 0, 0.2672, 0.069, 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_1639:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1639:FunctionDef_L23_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1639:FunctionDef_L23_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_1639:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python import sys import string if len( sys.argv ) == 1 : for asc_line in sys.stdin.readlines(): mpw_line = string.replace(asc_line, "\\xA5", "\245") mpw_line = string.replace(mpw_line, "\\xB6", "\266") mpw_line = string.replace(mpw_line, "\\xC4", "\304") mpw_line = string.replace(mpw_...
ajibawa-2023/Python-Code-Large/train/row_1640
22
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_1640:Import_L2_C0", "label": "sys import sys", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0833, 0.0417, 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_1640:If_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1640:For_L6_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1640:For_L6_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_1640:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1640:For_...
#!/usr/bin/env python import sys import string if len( sys.argv ) == 1 : for asc_line in sys.stdin.readlines(): mpw_line = string.replace(asc_line, "\\xA5", "\245") mpw_line = string.replace(mpw_line, "\\xB6", "\266") mpw_line = string.replace(mpw_line, "\\xC4", "\304") mpw_line = string.replace(mpw_...
ajibawa-2023/Python-Code-Large/train/row_1641
22
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_1641:Import_L2_C0", "label": "sys import sys", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0833, 0.0417, 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_1641:If_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1641:For_L6_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1641:For_L6_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_1641:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1641:For_...
#!/usr/bin/env python # # # FreeType 2 glyph name builder # # Copyright 1996-2000, 2003, 2005, 2007, 2008, 2011 by # David Turner, Robert Wilhelm, and Werner Lemberg. # # This file is part of the FreeType project, and may only be used, modified, # and distributed under the terms of the FreeType project license, # LI...
ajibawa-2023/Python-Code-Large/train/row_1642
213
5,487
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1642:Expr_L19_C0", "label": "expression", "type": "expression", "loc": [19, 27], "level": 0, "parent": null, "vector": [8, 0, 0.0042, 0.0016, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1642:ClassDef_L4908_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1642:FunctionDef_L4909_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1642:FunctionDef_L4909_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_1642:Assign_L4910_C4"}, {"f": "ajibawa-2023/Pyt...
# compute arctangent table for CORDIC computations in fttrigon.c import sys, math #units = 64*65536.0 # don't change !! units = 256 scale = units/math.pi shrink = 1.0 comma = "" def calc_val( x ): global units, shrink angle = math.atan(x) shrink = shrink * math.cos(angle) return angle/math.pi *...
ajibawa-2023/Python-Code-Large/train/row_1643
47
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_1643:Import_L2_C0", "label": "sys import sys, math", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.026, 0.013, 0, 0.66, 0.0, 509, 0, 2, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "math"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1643:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1643:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1643:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1643:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # # Check trace components in FreeType 2 source. # Author: suzuki toshiya, 2009 # # This code is explicitly into the public domain. import sys import os import re SRC_FILE_LIST = [] USED_COMPONENT = {} KNOWN_COMPONENT = {} SRC_FILE_DIRS = [ "src" ] TRACE_DEF_FILES = [ "include/freetype/in...
ajibawa-2023/Python-Code-Large/train/row_1644
71
113
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1644:Import_L9_C0", "label": "sys import sys", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0796, 0.0088, 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_1644:For_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1644:If_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1644:If_L26_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_1644:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1644:If_...
#!/usr/bin/env python # # # FreeType 2 glyph name builder # # Copyright 1996-2000, 2003, 2005, 2007, 2008, 2011 by # David Turner, Robert Wilhelm, and Werner Lemberg. # # This file is part of the FreeType project, and may only be used, modified, # and distributed under the terms of the FreeType project license, # LI...
ajibawa-2023/Python-Code-Large/train/row_1645
213
5,487
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1645:Expr_L19_C0", "label": "expression", "type": "expression", "loc": [19, 27], "level": 0, "parent": null, "vector": [8, 0, 0.0042, 0.0016, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1645:ClassDef_L4908_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1645:FunctionDef_L4909_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1645:FunctionDef_L4909_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_1645:Assign_L4910_C4"}, {"f": "ajibawa-2023/Pyt...
#!/usr/bin/env python # # Check trace components in FreeType 2 source. # Author: suzuki toshiya, 2009 # # This code is explicitly into the public domain. import sys import os import re SRC_FILE_LIST = [] USED_COMPONENT = {} KNOWN_COMPONENT = {} SRC_FILE_DIRS = [ "src" ] TRACE_DEF_FILES = [ "include/freetype/in...
ajibawa-2023/Python-Code-Large/train/row_1646
71
113
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1646:Import_L9_C0", "label": "sys import sys", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0796, 0.0088, 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_1646:For_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1646:If_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1646:If_L26_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_1646:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1646:If_...
#!/usr/bin/env python # # DocMaker (c) 2002, 2004, 2008 David Turner <david@freetype.org> # # This program is a re-write of the original DocMaker took used # to generate the API Reference of the FreeType font engine # by converting in-source comments into structured HTML. # # This new version is capable of outputting ...
ajibawa-2023/Python-Code-Large/train/row_1647
55
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1647:ImportFrom_L16_C0", "label": "from sources import *", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.1509, 0.0094, 0, 0.66, 0.0, 648, 0, 1, 0, 0, 648, 0, 0], "semantic": {"name": "sources", "arg_names": [], "import_names": ["*"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1647:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1647:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1647:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1647:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python # # DocBeauty (c) 2003, 2004, 2008 David Turner <david@freetype.org> # # This program is used to beautify the documentation comments used # in the FreeType 2 public headers. # from sources import * from content import * from utils import * import utils import sys, os, time, string, getopt ...
ajibawa-2023/Python-Code-Large/train/row_1648
63
113
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1648:ImportFrom_L9_C0", "label": "from sources import *", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0796, 0.0088, 0, 0.66, 0.0, 648, 0, 1, 0, 0, 648, 0, 0], "semantic": {"name": "sources", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1648:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1648:If_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1648:If_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1648:Expr_L23_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Sources (c) 2002, 2003, 2004, 2006, 2007, 2008, 2009 # David Turner <david@freetype.org> # # # this file contains definitions of classes needed to decompose # C sources files into a series of multi-line "blocks". There are # two kinds of blocks: # # - normal blocks, which contain source code or ordinary comment...
ajibawa-2023/Python-Code-Large/train/row_1649
113
347
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1649:Import_L22_C0", "label": "fileinput import fileinput, re, sys\u2026", "type": "import", "loc": [22, 22], "level": 0, "parent": null, "vector": [1, 0, 0.0634, 0.0029, 0, 0.66, 0.0, 286, 0, 5, 0, 0, 286, 0, 0], "semantic": {"name": "fileinput", "arg_names": [], "impo...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1649:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1649:FunctionDef_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1649:FunctionDef_L39_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1649:Expr_L40_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# Formatter (c) 2002, 2004, 2007, 2008 David Turner <david@freetype.org> # from sources import * from content import * from utils import * # This is the base Formatter class. Its purpose is to convert # a content processor's data into specific documents (i.e., table of # contents, global index, and individual API...
ajibawa-2023/Python-Code-Large/train/row_1650
90
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_1650:ImportFrom_L4_C0", "label": "from sources import *", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0213, 0.0053, 0, 0.66, 0.0, 648, 0, 1, 0, 0, 648, 0, 0], "semantic": {"name": "sources", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1650:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1650:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1650:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1650:Assign_L20_C8"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # # DocMaker (c) 2002, 2004, 2008 David Turner <david@freetype.org> # # This program is a re-write of the original DocMaker took used # to generate the API Reference of the FreeType font engine # by converting in-source comments into structured HTML. # # This new version is capable of outputting ...
ajibawa-2023/Python-Code-Large/train/row_1652
55
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1652:ImportFrom_L16_C0", "label": "from sources import *", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.1509, 0.0094, 0, 0.66, 0.0, 648, 0, 1, 0, 0, 648, 0, 0], "semantic": {"name": "sources", "arg_names": [], "import_names": ["*"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1652:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1652:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1652:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1652:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Utils (c) 2002, 2004, 2007, 2008 David Turner <david@freetype.org> # import string, sys, os, glob # current output directory # output_dir = None # This function is used to sort the index. It is a simple lexicographical # sort, except that it places capital letters before lowercase ones. # def index_sort( s1, ...
ajibawa-2023/Python-Code-Large/train/row_1653
70
132
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1653:Import_L4_C0", "label": "string import string, sys, os\u2026", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0303, 0.0076, 0, 0.66, 0.0, 890, 0, 4, 0, 0, 890, 0, 0], "semantic": {"name": "string", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1653:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1653:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1653:If_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1653:Return_L16_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
# Content (c) 2002, 2004, 2006, 2007, 2008, 2009 # David Turner <david@freetype.org> # # This file contains routines used to parse the content of documentation # comment blocks and build more structured objects out of them. # from sources import * from utils import * import string, re # this regular expression...
ajibawa-2023/Python-Code-Large/train/row_1654
348
584
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1654:ImportFrom_L8_C0", "label": "from sources import *", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.0137, 0.0017, 0, 0.66, 0.0, 648, 0, 1, 0, 0, 648, 0, 0], "semantic": {"name": "sources", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1654:ClassDef_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1654:FunctionDef_L57_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1654:FunctionDef_L57_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1654:Assign_L58_C8"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # # DocBeauty (c) 2003, 2004, 2008 David Turner <david@freetype.org> # # This program is used to beautify the documentation comments used # in the FreeType 2 public headers. # from sources import * from content import * from utils import * import utils import sys, os, time, string, getopt ...
ajibawa-2023/Python-Code-Large/train/row_1655
63
113
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1655:ImportFrom_L9_C0", "label": "from sources import *", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0796, 0.0088, 0, 0.66, 0.0, 648, 0, 1, 0, 0, 648, 0, 0], "semantic": {"name": "sources", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1655:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1655:If_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1655:If_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1655:Expr_L23_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...