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
#!/usr/bin/env python # View events and jpg images import pygtk pygtk.require('2.0') import gtk #import pango #cell renderer alignment, couldn't get this to work import glob import os.path import re import datetime GMOTION_DIR = "/usr/local/var/gmotion" GROUP_DIR = "default" JPG_WINDOW_COLS = 5 EVENT_END_GAP = 60 ...
ajibawa-2023/Python-Code-Large/train/row_87878
191
234
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87878:Import_L5_C0", "label": "pygtk import pygtk", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0214, 0.0043, 0, 0.66, 0.0, 106, 0, 1, 0, 0, 106, 0, 0], "semantic": {"name": "pygtk", "arg_names": [], "import_names": ["pygtk"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87878:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87878:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87878:FunctionDef_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87878:Return_L23_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python # View live images from a single or group of webcams import gobject import gtk import pygtk pygtk.require('2.0') import glob GMOTION_DIR = "/usr/local/var/gmotion" GROUP_DIR = "default" MOTION_SNAPSHOT_INTERVAL = 1 # seconds class MainWindow: def destroy(self, widget): gtk.main_...
ajibawa-2023/Python-Code-Large/train/row_87879
41
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_87879:Import_L5_C0", "label": "gobject import gobject", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0806, 0.0161, 0, 0.66, 0.0, 90, 0, 1, 0, 0, 90, 0, 0], "semantic": {"name": "gobject", "arg_names": [], "import_names": ["gobject"], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87879:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87879:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87879:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87879:Expr_L19_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # -*- coding: cp1252 -*- #Opciones puerto = 1111 user_agent = 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; ' \ 'Trident/4.0; .NET CLR 1.1.4322)'
ajibawa-2023/Python-Code-Large/train/row_87880
2
7
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87880:Assign_L5_C0", "label": "puerto =", "type": "assigned_variable", "loc": [5, 5], "level": 0, "parent": null, "vector": [14, 0, 0.7143, 0.1429, 0, 0.66, 0.0, 84, 1, 0, 0, 0, 0, 1, 0], "semantic": {"name": "puerto", "arg_names": [], "import_names": [], "rhs_call_name...
[]
#!/usr/bin/python # -*- coding: latin-1 -*- """App para Bottle de constancia.py """ __license__ = "MIT" __version__ = "0.02" import sys #Parche para que pueda cargar opciones.py con py2exe if len(sys.path) == 1: sys.path.append(sys.prefix) import os import webbrowser import uuid import bottle from bottle impor...
ajibawa-2023/Python-Code-Large/train/row_87881
85
158
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87881:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0285, 0.0127, 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_87881:If_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87881:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87881:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87881:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
# Para hacer el ejecutable: # python setup.py py2exe # "Creador de instalador para PyConstanciaLite" __author__ = "None" __copyright__ = "Copyright (C) 2011 None" from distutils.core import setup import py2exe import sys opts = { 'py2exe': { 'optimize':2, 'excludes' : ['opciones'] }...
ajibawa-2023/Python-Code-Large/train/row_87882
8
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_87882:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2083, 0.0417, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
#!/usr/bin/python import sys, tokenize, re from cStringIO import StringIO from Token import * TWOARGS = re.compile(r"^(\.|\*|union)$") ONEARG = re.compile(r"^(det|min|push|rmeps|epsn|sync|proj)$") class Transducersaurus( ): """ Transducersauricize everything. """ def __init__(self, command, kwargs...
ajibawa-2023/Python-Code-Large/train/row_87885
67
91
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87885:Import_L2_C0", "label": "sys import sys, tokenize, re", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.022, 0.011, 0, 0.66, 0.0, 509, 0, 3, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "tok...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87885:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87885:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87885:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87885:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-La...
#!/usr/bin/python ######################################### # Copyright (c) [2010-2011], Josef Robert Novak # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted #provided that the following conditions # are met: # # * Redistributions of source cod...
ajibawa-2023/Python-Code-Large/train/row_87886
98
169
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87886:Import_L30_C0", "label": "re import re", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.1775, 0.0059, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87886:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87886:Assign_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87886:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87886:Assign_L34_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python ######################################### # Copyright (c) [2010-2011], Josef Robert Novak # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted #provided that the following conditions # are met: # # * Redistributions of source cod...
ajibawa-2023/Python-Code-Large/train/row_87887
92
138
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87887:Import_L30_C0", "label": "re import re, math", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.2174, 0.0072, 0, 0.66, 0.0, 540, 0, 2, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re", "math"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87887:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87887:FunctionDef_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87887:FunctionDef_L34_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87887:Assign_L35_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python ######################################### # Copyright (c) [2010-2011], Josef Robert Novak # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted #provided that the following conditions # are met: # # * Redistributions of source cod...
ajibawa-2023/Python-Code-Large/train/row_87889
131
246
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87889:ImportFrom_L30_C0", "label": "from t3mdef import T3Mdef", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.122, 0.0041, 0, 0.66, 0.0, 350, 0, 1, 0, 0, 350, 0, 0], "semantic": {"name": "t3mdef", "arg_names": [], "import_names": ["T3...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87889:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87889:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87889:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87889:FunctionDef_L41_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python ######################################### # Copyright (c) [2010-2011], Josef Robert Novak # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted #provided that the following conditions # are met: # # * Redistributions of source cod...
ajibawa-2023/Python-Code-Large/train/row_87890
145
237
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87890:Import_L30_C0", "label": "re import re, math", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.1266, 0.0042, 0, 0.66, 0.0, 540, 0, 2, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re", "math"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87890:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87890:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87890:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87890:FunctionDef_L43_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python ######################################### # Copyright (c) [2010-2011], Josef Robert Novak # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted #provided that the following conditions # are met: # # * Redistributions of source cod...
ajibawa-2023/Python-Code-Large/train/row_87891
138
212
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87891:Import_L30_C0", "label": "re import re, math", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.1415, 0.0047, 0, 0.66, 0.0, 540, 0, 2, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re", "math"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87891:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87891:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87891:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87891:FunctionDef_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (c) 2010 Josef Robert Novak # # You may copy and modify this freely under the same terms as # Sphinx-III """Read/write Sphinx-III model definition files. This module reads and writes the text format model definiton (triphone to senone mapping) files used by SphinxTrain, Sphinx-III, and PocketSphinx. MODI...
ajibawa-2023/Python-Code-Large/train/row_87892
40
70
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87892:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 16], "level": 0, "parent": null, "vector": [8, 0, 0.1571, 0.1571, 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_87892:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87892:Return_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87892:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87892:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-La...
#!/usr/bin/python import re from copy import deepcopy #Shorthand for the DSL label_map = { 'weights' : 'w', 'w' : 'w', 'labels' : 's', 's' : 's', 'log' : 'l', 'l' : 'l', 'tropical' : 't', 't' : 't', 'standard' : 't', 'symbols' : 's', 'pweights' : 'e', 'e' : 'e', 'plabels' : 'a', 'a...
ajibawa-2023/Python-Code-Large/train/row_87893
52
207
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87893:Import_L2_C0", "label": "re import re", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0097, 0.0048, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87893:ClassDef_L144_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87893:FunctionDef_L146_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87893:FunctionDef_L146_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87893:Assign_L147_C8"}, {"f": "ajibawa-2023/Pyt...
#!/usr/bin/python ######################################### # Copyright (c) [2010-2011], Josef Robert Novak # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted #provided that the following conditions # are met: # # * Redistributions of source cod...
ajibawa-2023/Python-Code-Large/train/row_87894
191
282
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87894:Import_L30_C0", "label": "re import re", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.1064, 0.0035, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87894:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87894:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87894:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87894:FunctionDef_L38_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python ######################################### # Copyright (c) [2010-2011], Josef Robert Novak # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted #provided that the following conditions # are met: # # * Redistributions of source cod...
ajibawa-2023/Python-Code-Large/train/row_87895
33
73
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87895:Import_L30_C0", "label": "re import re", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.411, 0.0137, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87895:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87895:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87895:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87895:FunctionDef_L35_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python ######################################### # Copyright (c) [2010-2011], Josef Robert Novak # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted #provided that the following conditions # are met: # # * Redistributions of source cod...
ajibawa-2023/Python-Code-Large/train/row_87896
230
346
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87896:Import_L30_C0", "label": "re import re", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.0867, 0.0029, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87896:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87896:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87896:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87896:FunctionDef_L39_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python # encoding=UTF-8 # Copyright © 2009 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import rainbow image = rainbow(100, ...
ajibawa-2023/Python-Code-Large/train/row_87898
3
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87898:ImportFrom_L10_C0", "label": "from common import rainbow", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.6667, 0.0667, 0, 0.66, 0.0, 718, 0, 1, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_names": [], "import_names": ["...
[]
#!/usr/bin/python # encoding=UTF-8 # Copyright © 2009 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import rainbow image = rainbow(255, ...
ajibawa-2023/Python-Code-Large/train/row_87899
3
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87899:ImportFrom_L10_C0", "label": "from common import rainbow", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.6667, 0.0667, 0, 0.66, 0.0, 718, 0, 1, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_names": [], "import_names": ["...
[]
# encoding=UTF-8 # Copyright © 2011, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. import re from common import ( case, ) class test(case)...
ajibawa-2023/Python-Code-Large/train/row_87900
8
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_87900:Import_L9_C0", "label": "re import re", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.36, 0.04, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": "", "a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87900:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87900:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87900:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87900:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python # encoding=UTF-8 # Copyright © 2009 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import rainbow image = rainbow(100, ...
ajibawa-2023/Python-Code-Large/train/row_87901
3
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87901:ImportFrom_L10_C0", "label": "from common import rainbow", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.6667, 0.0667, 0, 0.66, 0.0, 718, 0, 1, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_names": [], "import_names": ["...
[]
# encoding=UTF-8 # Copyright © 2009, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. import re from common import ( assert_not_equal, cas...
ajibawa-2023/Python-Code-Large/train/row_87902
12
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87902:Import_L9_C0", "label": "re import re", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.2903, 0.0323, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87902:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87902:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87902:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87902:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-...
# encoding=UTF-8 # Copyright © 2009, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import ( case, ) class test(case): ''' ...
ajibawa-2023/Python-Code-Large/train/row_87903
6
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_87903:ImportFrom_L9_C0", "label": "from common import case", "type": "import", "loc": [9, 11], "level": 0, "parent": null, "vector": [1, 0, 0.4545, 0.1364, 0, 0.66, 0.0, 718, 0, 1, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_names": [], "import_names": ["case"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87903:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87903:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87903:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87903:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python # encoding=UTF-8 # Copyright © 2009 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import rainbow image = rainbow(100, ...
ajibawa-2023/Python-Code-Large/train/row_87904
3
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87904:ImportFrom_L10_C0", "label": "from common import rainbow", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.6667, 0.0667, 0, 0.66, 0.0, 718, 0, 1, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_names": [], "import_names": ["...
[]
# encoding=UTF-8 # Copyright © 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. import os execfile(os.path.join( os.path.dirname(__file__), ...
ajibawa-2023/Python-Code-Large/train/row_87905
2
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87905:Import_L9_C0", "label": "os import os", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.5625, 0.0625, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[]
# encoding=UTF-8 # Copyright © 2009, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import ( case, assert_true, assert_gr...
ajibawa-2023/Python-Code-Large/train/row_87906
12
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87906:ImportFrom_L9_C0", "label": "from common import case, assert_true, assert_grep\u2026", "type": "import", "loc": [9, 14], "level": 0, "parent": null, "vector": [1, 0, 0.371, 0.1935, 0, 0.66, 0.0, 718, 0, 4, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87906:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87906:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87906:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87906:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-...
# encoding=UTF-8 # Copyright © 2009, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import ( case, ) class test(case): ''' ...
ajibawa-2023/Python-Code-Large/train/row_87907
5
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_87907:ImportFrom_L9_C0", "label": "from common import case", "type": "import", "loc": [9, 11], "level": 0, "parent": null, "vector": [1, 0, 0.4762, 0.1429, 0, 0.66, 0.0, 718, 0, 1, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_names": [], "import_names": ["case"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87907:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87907:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87907:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87907:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-...
# encoding=UTF-8 # Copyright © 2009, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. import re from common import ( case, ) class test(case)...
ajibawa-2023/Python-Code-Large/train/row_87908
10
30
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87908:Import_L9_C0", "label": "re import re", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.3, 0.0333, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": "", "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87908:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87908:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87908:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87908:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-...
# encoding=UTF-8 # Copyright © 2009, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import ( case, re, ) class test(case): ...
ajibawa-2023/Python-Code-Large/train/row_87909
7
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_87909:ImportFrom_L9_C0", "label": "from common import case, re", "type": "import", "loc": [9, 12], "level": 0, "parent": null, "vector": [1, 0, 0.4565, 0.1739, 0, 0.66, 0.0, 718, 0, 2, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_names": [], "import_names": ["c...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87909:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87909:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87909:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87909:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python # encoding=UTF-8 # Copyright © 2009 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import rainbow image = rainbow(100, ...
ajibawa-2023/Python-Code-Large/train/row_87910
3
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87910:ImportFrom_L10_C0", "label": "from common import rainbow", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.6667, 0.0667, 0, 0.66, 0.0, 718, 0, 1, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_names": [], "import_names": ["...
[]
# encoding=UTF-8 # Copyright © 2009, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. import unicodedata from common import ( case, re, ) ...
ajibawa-2023/Python-Code-Large/train/row_87911
15
35
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87911:Import_L9_C0", "label": "unicodedata import unicodedata", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.2571, 0.0286, 0, 0.66, 0.0, 759, 0, 1, 0, 0, 759, 0, 0], "semantic": {"name": "unicodedata", "arg_names": [], "import_names": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87911:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87911:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87911:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87911:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# encoding=UTF-8 # Copyright © 2010, 2011, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import ( case, ) class test(case): ...
ajibawa-2023/Python-Code-Large/train/row_87912
11
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87912:ImportFrom_L9_C0", "label": "from common import case", "type": "import", "loc": [9, 11], "level": 0, "parent": null, "vector": [1, 0, 0.3226, 0.0968, 0, 0.66, 0.0, 718, 0, 1, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_names": [], "import_names": ["case"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87912:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87912:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87912:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87912:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# encoding=UTF-8 # Copyright © 2010, 2011, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import ( case, ) class test(case): ...
ajibawa-2023/Python-Code-Large/train/row_87913
11
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87913:ImportFrom_L9_C0", "label": "from common import case", "type": "import", "loc": [9, 11], "level": 0, "parent": null, "vector": [1, 0, 0.3226, 0.0968, 0, 0.66, 0.0, 718, 0, 1, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_names": [], "import_names": ["case"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87913:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87913:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87913:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87913:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# encoding=UTF-8 # Copyright © 2009, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import ( case, re, ) class test(case): ...
ajibawa-2023/Python-Code-Large/train/row_87914
8
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_87914:ImportFrom_L9_C0", "label": "from common import case, re", "type": "import", "loc": [9, 12], "level": 0, "parent": null, "vector": [1, 0, 0.4375, 0.1667, 0, 0.66, 0.0, 718, 0, 2, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_names": [], "import_names": ["c...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87914:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87914:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87914:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87914:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-...
# encoding=UTF-8 # Copyright © 2009, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import ( case ) class test(case): ''' ...
ajibawa-2023/Python-Code-Large/train/row_87915
5
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_87915:ImportFrom_L9_C0", "label": "from common import case", "type": "import", "loc": [9, 11], "level": 0, "parent": null, "vector": [1, 0, 0.4762, 0.1429, 0, 0.66, 0.0, 718, 0, 1, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_names": [], "import_names": ["case"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87915:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87915:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87915:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87915:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python # encoding=UTF-8 # Copyright © 2009, 2011 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import rainbow image = rainbow...
ajibawa-2023/Python-Code-Large/train/row_87916
3
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87916:ImportFrom_L10_C0", "label": "from common import rainbow", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.6667, 0.0667, 0, 0.66, 0.0, 718, 0, 1, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_names": [], "import_names": ["...
[]
# encoding=UTF-8 # Copyright © 2009, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import ( case, assert_grep, ) class test...
ajibawa-2023/Python-Code-Large/train/row_87917
11
36
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87917:ImportFrom_L9_C0", "label": "from common import case, assert_grep", "type": "import", "loc": [9, 12], "level": 0, "parent": null, "vector": [1, 0, 0.2917, 0.1111, 0, 0.66, 0.0, 718, 0, 2, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87917:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87917:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87917:FunctionDef_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87917:Expr_L16_C8"}, {"f": "ajibawa-2023/Python-Co...
# encoding=UTF-8 # Copyright © 2009, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import ( case, assert_grep, assert_we...
ajibawa-2023/Python-Code-Large/train/row_87918
13
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_87918:ImportFrom_L9_C0", "label": "from common import case, assert_grep, assert_well_formed_xml", "type": "import", "loc": [9, 13], "level": 0, "parent": null, "vector": [1, 0, 0.3438, 0.1562, 0, 0.66, 0.0, 718, 0, 3, 0, 0, 718, 0, 0], "semantic": {"name": "common", "ar...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87918:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87918:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87918:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87918:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-...
# encoding=UTF-8 # Copyright © 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. import os execfile(os.path.join( os.path.dirname(__file__), ...
ajibawa-2023/Python-Code-Large/train/row_87919
2
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87919:Import_L9_C0", "label": "os import os", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.5625, 0.0625, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[]
# encoding=UTF-8 # Copyright © 2010, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import ( case, ) class test(case): ''' ...
ajibawa-2023/Python-Code-Large/train/row_87920
5
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_87920:ImportFrom_L10_C0", "label": "from common import case", "type": "import", "loc": [10, 12], "level": 0, "parent": null, "vector": [1, 0, 0.5238, 0.1429, 0, 0.66, 0.0, 718, 0, 1, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_names": [], "import_names": ["cas...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87920:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87920:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87920:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87920:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-...
# encoding=UTF-8 # Copyright © 2009, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. import re from common import ( case, ) class test(case)...
ajibawa-2023/Python-Code-Large/train/row_87921
8
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_87921:Import_L9_C0", "label": "re import re", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.36, 0.04, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": "", "a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87921:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87921:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87921:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87921:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-...
# encoding=UTF-8 # Copyright © 2009, 2011, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import ( case, ) class test(case): ...
ajibawa-2023/Python-Code-Large/train/row_87923
6
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_87923:ImportFrom_L9_C0", "label": "from common import case", "type": "import", "loc": [9, 11], "level": 0, "parent": null, "vector": [1, 0, 0.4762, 0.1429, 0, 0.66, 0.0, 718, 0, 1, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_names": [], "import_names": ["case"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87923:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87923:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87923:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87923:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-...
# encoding=UTF-8 # Copyright © 2009, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. import re from common import ( case, ) class test(case)...
ajibawa-2023/Python-Code-Large/train/row_87924
12
30
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87924:Import_L9_C0", "label": "re import re", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.3, 0.0333, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": "", "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87924:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87924:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87924:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87924:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-...
# encoding=UTF-8 # Copyright © 2009, 2012 Jakub Wilk # # This package 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; version 2 dated June, 1991. from common import ( case, re, ) class test(case): ...
ajibawa-2023/Python-Code-Large/train/row_87925
7
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_87925:ImportFrom_L9_C0", "label": "from common import case, re", "type": "import", "loc": [9, 12], "level": 0, "parent": null, "vector": [1, 0, 0.4375, 0.1667, 0, 0.66, 0.0, 718, 0, 2, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_names": [], "import_names": ["c...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87925:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87925:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87925:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87925:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-...
''' Cookie-handlin' mix-in helper; inspired by WebOb. This module offers a cookie-handling mixin class meant to be used with Google App Engine; this class can in fact be mixed into any class that shares the following features with webapp.RequestHandler subclasses: - a self.request.cookies object with a get(key, defa...
ajibawa-2023/Python-Code-Large/train/row_87926
48
130
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87926:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 13], "level": 0, "parent": null, "vector": [8, 0, 0.0538, 0.1, 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_87926:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87926:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87926:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87926:Return_L25_C2"}, {"f": "ajibawa-2023/Python-Co...
""" 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_87928
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_87928: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": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87928:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87928:ImportFrom_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87928:For_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87928:Expr_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
""" 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_87929
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_87929: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": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87929:Try_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87929:ImportFrom_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87929:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87929:Import_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
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_87930
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_87930: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87930:If_L108_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87930:Import_L109_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87930:If_L108_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87930:Expr_L110_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
""" 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_87932
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_87932: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": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87932:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87932:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87932:FunctionDef_L16_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87932:Assign_L17_C8"}, {"f": "ajibawa-2023/Python-...
# 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_87933
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_87933: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": ["plistli...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87933:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87933:Expr_L10_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87933:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87933:Return_L17_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/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_87935
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_87935: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_87935:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87935:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87935:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87935:Assign_L31_C2"}, {"f": "ajibawa-2023/Python-Code...
""" 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_87937
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_87937: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": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87937:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87937:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87937:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87937:Return_L28_C2"}, {"f": "ajibawa-2023/Python-Code...
"""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_87938
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_87938: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_87939
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_87939: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": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87939:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87939:Expr_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87939:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87939:Assign_L17_C2"}, {"f": "ajibawa-2023/Python-Code...
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_87940
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_87940: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_87940:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87940:Expr_L11_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87940:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87940:FunctionDef_L50_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/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_87943
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_87943: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": [], "i...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87943:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87943:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87943:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87943:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-...
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_87944
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_87944: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_nam...
[]
#!/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_87946
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_87946: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": [], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87946:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87946:Expr_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87946:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87946:FunctionDef_L25_C4"}, {"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_87947
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_87947: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": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87947:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87947:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87947:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87947:ImportFrom_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
# -*- 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_87948
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_87948: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_87948:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87948:ImportFrom_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87948:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87948:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# -*- 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_87949
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_87949: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_87949:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87949:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87949:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87949:Assign_L27_C8"}, {"f": "ajibawa-2023/Python-...
# -*- 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_87950
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_87950: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_87950:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87950:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87950:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87950:Assign_L24_C8"}, {"f": "ajibawa-2023/Python-...
# -*- 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_87951
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_87951: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_87951:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87951:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87951:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87951:Assign_L24_C8"}, {"f": "ajibawa-2023/Python-...
# -*- 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_87952
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_87952: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_87952:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87952:FunctionDef_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87952:FunctionDef_L25_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87952:Assign_L26_C8"}, {"f": "ajibawa-2023/Python-...
# -*- 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_87953
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_87953: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": ["unitte...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87953:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87953:Import_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87953:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87953:ImportFrom_L18_C4"}, {"f": "ajibawa-2023/Pytho...
# -*- 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_87954
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_87954: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_87954:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87954:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87954:FunctionDef_L24_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87954:Assign_L25_C8"}, {"f": "ajibawa-2023/Python-...
# -*- 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_87955
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_87955: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": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87955:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87955:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87955:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87955:If_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- 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_87956
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_87956: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": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87956:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87956:Expr_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87956:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87956:ClassDef_L60_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- 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_87957
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_87957: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87957:Try_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87957:Expr_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87957:Try_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87957:ImportFrom_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
# -*- 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_87962
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_87962: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_87962:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87962:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87962:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87962:FunctionDef_L28_C4"}, {"f": "ajibawa-2023/Python-Code-...
# -*- 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_87963
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_87963: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_87963:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87963:FunctionDef_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87963:FunctionDef_L31_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87963:Assign_L32_C8"}, {"f": "ajibawa-2023/Python-...
# -*- 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_87964
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_87964: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_87964:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87964:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87964:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87964:Expr_L21_C4"}, {"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_87965
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_87965: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_87965:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87965:ImportFrom_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87965:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87965:Assign_L20_C4"}, {"f": "ajibawa-2023/Pytho...
# -*- 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_87967
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_87967: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_87967:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87967:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87967:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87967:FunctionDef_L28_C4"}, {"f": "ajibawa-2023/Python-Code-...
# -*- 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_87970
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_87970: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87970:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87970:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87970:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87970:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# -*- 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_87971
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_87971: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87971:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87971:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87971:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87971:If_L27_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- 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_87973
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_87973: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": "", "anno...
[]
# -*- 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_87974
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_87974: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87974:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87974:Import_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87974:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87974:ImportFrom_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# -*- 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_87976
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_87976: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87976:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87976:Import_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87976:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87976:Import_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# -*- 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_87979
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_87979: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": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87979:ClassDef_L61_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87979:Expr_L62_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87979:ClassDef_L61_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87979:Assign_L63_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- 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_87980
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_87980: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_87980:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87980:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87980:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87980:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python...
# -*- 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_87981
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_87981: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_87981:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87981:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87981:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87981:Assign_L24_C8"}, {"f": "ajibawa-2023/Python-...
# -*- 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_87982
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_87982: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_87982:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87982:ImportFrom_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87982:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87982:Assign_L19_C4"}, {"f": "ajibawa-2023/Pytho...
# -*- 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_87983
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_87983: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_87983:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87983:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87983:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87983:FunctionDef_L29_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_87984
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_87984: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": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87984:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87984:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87984:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87984:ImportFrom_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
# -*- 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_87985
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_87985: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": "", "annotatio...
[]
# -*- 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_87986
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_87986: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": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87986:Try_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87986:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87986:Try_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87986:ImportFrom_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
# -*- 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_87987
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_87987: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": "", "anno...
[]
# -*- 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_87988
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_87988: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87988:ClassDef_L78_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87988:Expr_L79_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87988:ClassDef_L78_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87988:Assign_L82_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
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_87989
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_87989: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_87989:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87989:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87989:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87989:Import_L7_C8"}, {"f": "ajibawa-2023/Python-Code...
"""Implementation of JSONEncoder """ import re from decimal import Decimal def _import_speedups(): try: from simplejson import _speedups return _speedups.encode_basestring_ascii, _speedups.make_encoder except ImportError: return None, None c_encode_basestring_ascii, c_make_encoder = _im...
ajibawa-2023/Python-Code-Large/train/row_87990
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_87990:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 2], "level": 0, "parent": null, "vector": [8, 0, 0.003, 0.004, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87990:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87990:Try_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87990:Try_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87990:ImportFrom_L8_C8"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
r"""JSON (JavaScript Object Notation) <http://json.org> is a subset of JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data interchange format. :mod:`simplejson` exposes an API familiar to users of the standard library :mod:`marshal` and :mod:`pickle` modules. It is the externally maintained version of ...
ajibawa-2023/Python-Code-Large/train/row_87992
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_87992: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": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87992:FunctionDef_L113_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87992:Import_L114_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87992:FunctionDef_L113_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87992:Try_L115_C4"}, {"f": "ajibawa-2023/Python-C...
"""JSON token scanner """ import re def _import_c_make_scanner(): try: from simplejson._speedups import make_scanner return make_scanner except ImportError: return None c_make_scanner = _import_c_make_scanner() __all__ = ['make_scanner'] NUMBER_RE = re.compile( r'(-?(?:0|[1-9]\d*))...
ajibawa-2023/Python-Code-Large/train/row_87994
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_87994:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 2], "level": 0, "parent": null, "vector": [8, 0, 0.0195, 0.026, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87994:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87994:Try_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87994:Try_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87994:ImportFrom_L6_C8"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
"""Drop-in replacement for collections.OrderedDict by Raymond Hettinger http://code.activestate.com/recipes/576693/ """ from UserDict import DictMixin # Modified from original to support Python 2.4, see # http://code.google.com/p/simplejson/issues/detail?id=53 try: all except NameError: def all(seq): ...
ajibawa-2023/Python-Code-Large/train/row_87995
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_87995:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0252, 0.042, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87995:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87995:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87995:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87995:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
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_87996
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_87996: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_87996:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87996:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87996:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87996:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
""" 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_87997
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_87997: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": "", "annotatio...
[]
from _BookShelf import _BookShelf class BookShelf(_BookShelf): pass # Custom logic goes here.
ajibawa-2023/Python-Code-Large/train/row_87998
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_87998: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_88003
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_88003: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": "", "annotat...
[]
""" 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_88004
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_88004: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": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88004:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88004:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88004:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88004:Return_L21_C8"}, {"f": "ajibawa-2023/Python-...
# 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_88005
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_88005: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": ["datetim...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88005:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88005:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88005:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88005:Try_L19_C4"}, {"f": "ajibawa-2023/Python-Code-...
from _Book import _Book class Book(_Book): pass # Custom logic goes here.
ajibawa-2023/Python-Code-Large/train/row_88006
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_88006: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...
[]