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 # -*- coding: UTF-8 -*- from google.appengine.ext import webapp from notifiy import constants class Home(webapp.RequestHandler): def get(self): self.redirect(constants.ROBOT_HOME_PAGE)
ajibawa-2023/Python-Code-Large/train/row_1097
5
11
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1097:ImportFrom_L4_C0", "label": "from google.appengine.ext import webapp", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.3636, 0.0909, 0, 0.66, 0.0, 167, 0, 1, 0, 0, 167, 0, 0], "semantic": {"name": "google.appengine.ext", "arg_names":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1097:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1097:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1097:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1097:Expr_L11_C8"}]
# -*- coding: UTF-8 -*- import base64 import urllib def get_url(participant, wave_id): domain = participant.split('@')[1] if wave_id: wave_id = urllib.quote(urllib.quote(wave_id)) if wave_id and domain == 'googlewave.com': return 'https://wave.google.com/wave/#restored:wave:%s' % wave_id...
ajibawa-2023/Python-Code-Large/train/row_1098
46
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_1098:Import_L3_C0", "label": "base64 import base64", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0411, 0.0137, 0, 0.66, 0.0, 177, 0, 1, 0, 0, 177, 0, 0], "semantic": {"name": "base64", "arg_names": [], "import_names": ["base64"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1098:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1098:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1098:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1098:If_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # -*- coding: UTF-8 -*- import urllib import datetime from google.appengine.ext import webapp from google.appengine.ext import deferred from waveapi import simplejson from notifiy import model from notifiy import general from notifiy import preferences from notifiy.robot import create_robot ...
ajibawa-2023/Python-Code-Large/train/row_1099
66
105
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1099:Import_L4_C0", "label": "urllib import urllib", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0381, 0.0095, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "urllib", "arg_names": [], "import_names": ["urllib"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1099:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1099:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1099:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1099:Assign_L21_C8"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: UTF-8 -*- ME = 'cesar.izurieta@googlewave.com' ROBOT_NAME = 'notifiy' ROBOT_ID = 'wave-email-notifications' ROBOT_ADDRESS = '%s@appspot.com' % ROBOT_ID ROBOT_BASE_URL = 'http://%s.appspot.com' % ROBOT_ID ROBOT_EMAIL = '%s@ecuarock.net' % ROBOT_ID ROBOT_HOME_PAGE = 'http://%s.googlecode.com' % ROBOT_ID R...
ajibawa-2023/Python-Code-Large/train/row_1102
10
17
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1102:Assign_L3_C0", "label": "ME =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.1765, 0.0588, 0, 0.66, 0.0, 917, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "ME", "arg_names": [], "import_names": [], "rhs_call_name": "", "...
[]
# -*- coding: UTF-8 -*- import logging from waveapi import appengine_robot_runner from waveapi import events from waveapi.robot import Robot from notifiy import constants from notifiy import model from notifiy import notifications from notifiy import preferences from notifiy import templates from notifiy import gene...
ajibawa-2023/Python-Code-Large/train/row_1103
74
128
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1103:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0234, 0.0078, 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_1103:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1103:If_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1103:If_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1103:Return_L22_C49"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# -*- coding: UTF-8 -*- import logging from waveapi.element import Gadget from notifiy import constants from notifiy import model from notifiy import preferences GADGET_URL = '%s/%s.xml' % (constants.ROBOT_BASE_URL, constants.ROBOT_ID) def is_gadget_present(wavelet): return bool(wavelet.root_blip.first(Gadget...
ajibawa-2023/Python-Code-Large/train/row_1104
25
38
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1104:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0789, 0.0263, 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_1104:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1104:Return_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1104:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1104:If_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python # -*- coding: UTF-8 -*- import random from google.appengine.ext import db # TODO from google.appengine.api import memcache from migrationmodel import MigratingModel, get_by_pk NOTIFY_NONE = 0 NOTIFY_ONCE = 1 NOTIFY_ALL = 2 NOTIFY_TYPE_COUNT = 3 class Phone(MigratingModel): migration_ver...
ajibawa-2023/Python-Code-Large/train/row_1106
83
132
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1106:Import_L4_C0", "label": "random import random", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0303, 0.0076, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "random", "arg_names": [], "import_names": ["random"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1106:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1106:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1106:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1106:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# -*- coding: UTF-8 -*- import logging from waveapi import element from notifiy import constants from notifiy import model from notifiy import templates PARTICIPANT_DATA_DOC = '%s/participant' % constants.ROBOT_ADDRESS VERSION_DATA_DOC = '%s/preferencesVersion' % constants.ROBOT_ADDRESS PREFERENCES_VERSION = '14' ...
ajibawa-2023/Python-Code-Large/train/row_1107
122
182
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1107:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0165, 0.0055, 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_1107:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1107:Return_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1107:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1107:If_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: UTF-8 -*- ################################################### # General mail template ################################################### MESSAGE_TEMPLATE = u'''\ %s --- Reply to this message to add a blip to the wave Visit this wave: %s Change global notification preferences: %s To unsubscribe please ...
ajibawa-2023/Python-Code-Large/train/row_1108
16
82
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1108:Assign_L7_C0", "label": "MESSAGE_TEMPLATE =", "type": "assigned_variable", "loc": [7, 15], "level": 0, "parent": null, "vector": [14, 0, 0.1341, 0.1098, 0, 0.66, 0.0, 755, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "MESSAGE_TEMPLATE", "arg_names": [], "import_names...
[]
#!/usr/bin/python2.4 # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_1110
126
215
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1110:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0791, 0.0047, 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_1110:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1110:Expr_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1110:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1110:FunctionDef_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python2.4 # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_1111
97
145
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1111:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.1172, 0.0069, 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_1111:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1111:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1111:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1111:FunctionDef_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python2.4 # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_1112
499
889
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1112:Import_L17_C0", "label": "element import element", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.0191, 0.0011, 0, 0.66, 0.0, 736, 0, 1, 0, 0, 736, 0, 0], "semantic": {"name": "element", "arg_names": [], "import_names": ["element"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1112:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1112:Expr_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1112:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1112:Assign_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/python2.4 # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_1113
124
261
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1113:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0651, 0.0038, 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_1113:ClassDef_L76_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1113:Expr_L77_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1113:ClassDef_L76_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1113:FunctionDef_L79_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python2.4 # # Copyright 2009 Google Inc. All Rights Reserved. """Run robot from the commandline for testing. This robot_runner let's you define event handlers using flags and takes the json input from the std in and writes out the json output to stdout. for example cat events | commandline_robot_runner....
ajibawa-2023/Python-Code-Large/train/row_1114
36
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1114:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 13], "level": 0, "parent": null, "vector": [8, 0, 0.1304, 0.1304, 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_1114:For_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1114:Expr_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1114:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1114:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
#!/usr/bin/python2.4 # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_1115
124
261
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1115:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0651, 0.0038, 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_1115:ClassDef_L76_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1115:Expr_L77_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1115:ClassDef_L76_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1115:FunctionDef_L79_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python2.4 # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_1116
103
177
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1116:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.096, 0.0056, 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_1116:ClassDef_L58_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1116:Expr_L59_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1116:ClassDef_L58_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1116:FunctionDef_L61_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_1117
3
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_1117:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.76, 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...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1117:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1117:Expr_L25_C2"}]
#!/usr/bin/python2.4 # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_1118
228
418
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1118:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0407, 0.0024, 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_1118:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1118:Expr_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1118:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1118:FunctionDef_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python2.4 # # Copyright 2009 Google Inc. All Rights Reserved. """Tests for google3.walkabout.externalagents.api.commandline_robot_runner.""" __author__ = 'douwe@google.com (Douwe Osinga)' import StringIO from google3.pyglib import app from google3.pyglib import flags from google3.testing.pybase import g...
ajibawa-2023/Python-Code-Large/train/row_1119
27
76
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1119:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0658, 0.0132, 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_1119:ClassDef_L58_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1119:FunctionDef_L60_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1119:FunctionDef_L60_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_1119:Assign_L61_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_1120
15
44
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1120:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.3864, 0.0227, 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_1120:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1120:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1120:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1120:Assign_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python2.4 # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_1121
97
145
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1121:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.1172, 0.0069, 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_1121:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1121:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1121:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1121:FunctionDef_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python2.4 # # Copyright 2009 Google Inc. All Rights Reserved. """Run robot from the commandline for testing. This robot_runner let's you define event handlers using flags and takes the json input from the std in and writes out the json output to stdout. for example cat events | commandline_robot_runner....
ajibawa-2023/Python-Code-Large/train/row_1122
36
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1122:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 13], "level": 0, "parent": null, "vector": [8, 0, 0.1304, 0.1304, 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_1122:For_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1122:Expr_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1122:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1122:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_1123
147
419
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1123:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.0453, 0.0119, 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_1123:ClassDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1123:Expr_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1123:ClassDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1123:FunctionDef_L61_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_1124
90
201
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1124:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0846, 0.005, 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_1124:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1124:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1124:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1124:FunctionDef_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_1125
37
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_1125:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.2537, 0.0149, 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_1125:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1125:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1125:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1125:FunctionDef_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python2.4 # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_1126
67
159
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1126:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.1069, 0.0063, 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_1126:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1126:Expr_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1126:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1126:If_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_1127
1
17
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1127:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 1.0, 0.0588, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
#!/usr/bin/python2.4 # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_1129
253
374
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1129:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0455, 0.0027, 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_1129:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1129:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1129:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1129:FunctionDef_L48_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_1130
17
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1130:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.425, 0.025, 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_1130:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1130:Expr_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1130:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1130:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_1131
119
301
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1131:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.0648, 0.0199, 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_1131:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1131:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1131:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1131:Assign_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/python2.4 # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_1132
499
889
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1132:Import_L17_C0", "label": "element import element", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.0191, 0.0011, 0, 0.66, 0.0, 736, 0, 1, 0, 0, 736, 0, 0], "semantic": {"name": "element", "arg_names": [], "import_names": ["element"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1132:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1132:Expr_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1132:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1132:Assign_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_1133
165
367
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1133:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.0504, 0.0109, 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_1133:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1133:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1133:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1133:Assign_L44_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/python2.4 # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_1134
126
215
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1134:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0791, 0.0047, 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_1134:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1134:Expr_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1134:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1134:FunctionDef_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python2.4 # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_1135
228
418
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1135:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0407, 0.0024, 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_1135:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1135:Expr_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1135:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1135:FunctionDef_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_1136
165
367
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1136:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.0504, 0.0109, 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_1136:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1136:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1136:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1136:Assign_L44_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_1137
15
44
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1137:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.3864, 0.0227, 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_1137:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1137:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1137:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1137:Assign_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_1138
90
201
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1138:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0846, 0.005, 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_1138:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1138:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1138:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1138:FunctionDef_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python2.4 # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_1139
253
374
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1139:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0455, 0.0027, 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_1139:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1139:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1139:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1139:FunctionDef_L48_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_1140
147
419
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1140:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.0453, 0.0119, 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_1140:ClassDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1140:Expr_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1140:ClassDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1140:FunctionDef_L61_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python2.4 # # Copyright 2009 Google Inc. All Rights Reserved. """Tests for google3.walkabout.externalagents.api.commandline_robot_runner.""" __author__ = 'douwe@google.com (Douwe Osinga)' import StringIO from google3.pyglib import app from google3.pyglib import flags from google3.testing.pybase import g...
ajibawa-2023/Python-Code-Large/train/row_1141
27
76
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1141:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0658, 0.0132, 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_1141:ClassDef_L58_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1141:FunctionDef_L60_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1141:FunctionDef_L60_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_1141:Assign_L61_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_1142
37
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_1142:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.2537, 0.0149, 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_1142:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1142:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1142:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1142:FunctionDef_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python2.4 # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_1143
67
159
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1143:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.1069, 0.0063, 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_1143:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1143:Expr_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1143:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1143:If_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_1144
17
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1144:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.425, 0.025, 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_1144:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1144:Expr_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1144:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1144:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
import simplejson import cgi class JSONFilter(object): def __init__(self, app, mime_type='text/x-json'): self.app = app self.mime_type = mime_type def __call__(self, environ, start_response): # Read JSON POST input to jsonfilter.json if matching mime type response = {'status': ...
ajibawa-2023/Python-Code-Large/train/row_1145
31
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1145:Import_L1_C0", "label": "simplejson import simplejson", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.025, 0.025, 0, 0.66, 0.0, 386, 0, 1, 0, 0, 386, 0, 0], "semantic": {"name": "simplejson", "arg_names": [], "import_names": ["simp...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1145:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1145:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1145:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1145:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""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_1147
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_1147:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0252, 0.042, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1147:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1147:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1147:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1147:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
"""JSON token scanner """ import re try: from simplejson._speedups import make_scanner as c_make_scanner except ImportError: c_make_scanner = None __all__ = ['make_scanner'] NUMBER_RE = re.compile( r'(-?(?:0|[1-9]\d*))(\.\d+)?([eE][-+]?\d+)?', (re.VERBOSE | re.MULTILINE | re.DOTALL)) def py_make_scan...
ajibawa-2023/Python-Code-Large/train/row_1148
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_1148:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 2], "level": 0, "parent": null, "vector": [8, 0, 0.0224, 0.0299, 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_1148:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1148:ImportFrom_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1148:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1148:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1...
"""Implementation of JSONEncoder """ import re try: from _speedups import encode_basestring_ascii as \ c_encode_basestring_ascii except ImportError: c_encode_basestring_ascii = None try: from _speedups import make_encoder as c_make_encoder except ImportError: c_make_encoder = None from decoder...
ajibawa-2023/Python-Code-Large/train/row_1149
236
454
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1149:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 2], "level": 0, "parent": null, "vector": [8, 0, 0.0033, 0.0044, 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_1149:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1149:ImportFrom_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1149:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1149:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1...
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_1150
66
406
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1150:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 99], "level": 0, "parent": null, "vector": [8, 0, 0.1232, 0.2438, 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_1150:Try_L111_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1150:ImportFrom_L112_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1150:Try_L111_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1150:ImportFrom_L114_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
import cgi import urllib import time import random import urlparse import hmac import base64 VERSION = '1.0' # Hi Blaine! HTTP_METHOD = 'GET' SIGNATURE_METHOD = 'PLAINTEXT' # Generic exception class class OAuthError(RuntimeError): def __init__(self, message='OAuth error occured.'): self.message = message ...
ajibawa-2023/Python-Code-Large/train/row_1152
281
523
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1152:Import_L1_C0", "label": "cgi import cgi", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0019, 0.0019, 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_1152:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1152:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1152:FunctionDef_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1152:Assign_L16_C8"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python2.4 # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_1153
103
177
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1153:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.096, 0.0056, 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_1153:ClassDef_L58_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1153:Expr_L59_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1153:ClassDef_L58_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1153:FunctionDef_L61_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_1155
1
17
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1155:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 1.0, 0.0588, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_1156
3
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_1156:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.76, 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...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1156:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1156:Expr_L25_C2"}]
#!/usr/bin/python # # Copyright (C) 2009 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_1157
119
301
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1157:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.0648, 0.0199, 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_1157:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1157:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1157:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1157:Assign_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#! /usr/bin/python # -*- coding: UTF-8 -*- from notifiy.robot import create_robot if __name__ == '__main__': create_robot()
ajibawa-2023/Python-Code-Large/train/row_1158
3
8
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1158:ImportFrom_L4_C0", "label": "from notifiy.robot import create_robot", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.125, 0, 0.66, 0.0, 413, 0, 1, 0, 0, 413, 0, 0], "semantic": {"name": "notifiy.robot", "arg_names": [], "import...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1158:If_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1158:Expr_L8_C4"}]
#!/usr/bin/env python # -*- coding: UTF-8 -*- from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app from notifiy.home import Home from notifiy.proc import Process from notifiy.proc_phone import PhoneProcess from notifiy.receive_email import ReceiveEmail if __name__ == "__...
ajibawa-2023/Python-Code-Large/train/row_1159
8
17
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1159:ImportFrom_L4_C0", "label": "from google.appengine.ext import webapp", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.2353, 0.0588, 0, 0.66, 0.0, 167, 0, 1, 0, 0, 167, 0, 0], "semantic": {"name": "google.appengine.ext", "arg_names":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1159:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1159:Expr_L14_C4"}]
#!/usr/bin/env python # -*- coding: UTF-8 -*- from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app class Index(webapp.RequestHandler): def get(self): self.redirect('%s/index.html' % self.request.path) if __name__ == "__main__": run_wsgi_app(webapp.WSGIA...
ajibawa-2023/Python-Code-Large/train/row_1160
7
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_1160:ImportFrom_L4_C0", "label": "from google.appengine.ext import webapp", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.0625, 0, 0.66, 0.0, 167, 0, 1, 0, 0, 167, 0, 0], "semantic": {"name": "google.appengine.ext", "arg_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1160:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1160:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1160:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1160:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Code-La...
''' Module which brings history information about files from Mercurial. @author: Rodrigo Damazio ''' import re import subprocess REVISION_REGEX = re.compile(r'(?P<hash>[0-9a-f]{12}):.*') def _GetOutputLines(args): ''' Runs an external process and returns its output as a list of lines. @param args: the argume...
ajibawa-2023/Python-Code-Large/train/row_1161
38
94
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1161:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0319, 0.0532, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1161:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1161:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1161:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1161:Assign_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python ''' Entry point for My Tracks i18n tool. @author: Rodrigo Damazio ''' import mytracks.files import mytracks.translate import mytracks.validate import sys def Usage(): print 'Usage: %s <command> [<language> ...]\n' % sys.argv[0] print 'Commands are:' print ' cleanup' print ' translate' p...
ajibawa-2023/Python-Code-Large/train/row_1162
58
96
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1162:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0417, 0.0521, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1162:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1162:Expr_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1162:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1162:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
''' Module which prompts the user for translations and saves them. TODO: implement @author: Rodrigo Damazio ''' class Translator(object): ''' classdocs ''' def __init__(self, language): ''' Constructor ''' self._language = language def Translate(self, string_names): print string_names
ajibawa-2023/Python-Code-Large/train/row_1163
8
21
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1163:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.1905, 0.3333, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1163:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1163:Expr_L10_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1163:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1163:FunctionDef_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/...
''' Module which compares languague files to the master file and detects issues. @author: Rodrigo Damazio ''' import os from mytracks.parser import StringsParser import mytracks.history class Validator(object): def __init__(self, languages): ''' Builds a strings file validator. Params: @para...
ajibawa-2023/Python-Code-Large/train/row_1164
65
115
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1164:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0304, 0.0522, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1164:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1164:FunctionDef_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1164:FunctionDef_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_1164:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-L...
''' Module for dealing with resource files (but not their contents). @author: Rodrigo Damazio ''' import os.path from glob import glob import re MYTRACKS_RES_DIR = 'MyTracks/res' ANDROID_MASTER_VALUES = 'values' ANDROID_VALUES_MASK = 'values-*' def GetMyTracksDir(): ''' Returns the directory in which the MyTrac...
ajibawa-2023/Python-Code-Large/train/row_1165
25
45
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1165:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0667, 0.1111, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1165:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1165:Expr_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1165:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1165:Assign_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
''' Module which parses a string XML file. @author: Rodrigo Damazio ''' from xml.parsers.expat import ParserCreate import re #import xml.etree.ElementTree as ET class StringsParser(object): ''' Parser for string XML files. This object is not thread-safe and should be used for parsing a single file at a time...
ajibawa-2023/Python-Code-Large/train/row_1166
54
115
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1166:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0261, 0.0435, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1166:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1166:Expr_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1166:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1166:FunctionDef_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
# # Generate and deploy the jar and associated files to the Sonatype maven repository. # import os, re, tempfile, subprocess #, sys, datetime, zipfile # Location of the source file that defines the current version VERSION_FILE = '../src/com/caverock/androidsvg/SVG.java' # Version regex VERSION_RE = '\sVE...
ajibawa-2023/Python-Code-Large/train/row_1167
48
117
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1167:Import_L5_C0", "label": "os import os, re, tempfile\u2026", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0427, 0.0085, 0, 0.66, 0.0, 688, 0, 4, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1167:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1167:Assign_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1167:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1167:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-L...
import Download pagelist=['http://www.economist.com/'] print("Starting ....") crawler = Download.crawler('') crawler.crawl(pagelist)
ajibawa-2023/Python-Code-Large/train/row_1168
5
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_1168:Import_L1_C0", "label": "Download import Download", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.1429, 0, 0.66, 0.0, 175, 0, 1, 0, 0, 175, 0, 0], "semantic": {"name": "Download", "arg_names": [], "import_names": ["Download...
[]
import urllib import re urlArg = 'http://www.yahoo.com' filehandle = urllib.urlopen(urlArg) for lines in filehandle.readlines(): m = re.search('http\://[\w\./]+/\w+',lines) if m: print m.group(0) filehandle.close()
ajibawa-2023/Python-Code-Large/train/row_1170
9
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_1170:Import_L1_C0", "label": "urllib import urllib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0667, 0.0667, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "urllib", "arg_names": [], "import_names": ["urllib"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1170:For_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1170:Assign_L8_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1170:For_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1170:If_L9_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1170:If_L...
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ajibawa-2023/Python-Code-Large/train/row_1171
42
101
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1171:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 23], "level": 0, "parent": null, "vector": [8, 0, 0.1881, 0.0891, 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_1171:FunctionDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1171:Expr_L52_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1171:FunctionDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1171:Assign_L53_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Removes duplicate nicknames (issue99). # # To run this script: # - Make sure App Engine library (incl. yaml) is in PYTHONPATH. # - Make sure that the remote API is included in app.yaml. # - Run "tools/appengine_console.py APP_ID". # - Import this module. # - update_accounts.run() updates accounts. # - Use the o...
ajibawa-2023/Python-Code-Large/train/row_1172
36
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_1172:ImportFrom_L13_C0", "label": "from google.appengine.ext import db", "type": "import", "loc": [13, 13], "level": 0, "parent": null, "vector": [1, 0, 0.2097, 0.0161, 0, 0.66, 0.0, 167, 0, 1, 0, 0, 167, 0, 0], "semantic": {"name": "google.appengine.ext", "arg_names": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1172:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1172:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1172:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1172:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-L...
"""Configuration.""" import logging import os import re from google.appengine.ext.appstats import recording logging.info('Loading %s from %s', __name__, __file__) # Custom webapp middleware to add Appstats. def webapp_add_wsgi_middleware(app): app = recording.appstats_wsgi_middleware(app) return app # Custom A...
ajibawa-2023/Python-Code-Large/train/row_1173
27
41
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1173:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0244, 0.0244, 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_1173:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1173:Assign_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1173:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1173:Return_L14_C2"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ajibawa-2023/Python-Code-Large/train/row_1174
27
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_1174:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.2381, 0.0159, 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_1174:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1174:Expr_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1174:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1174:FunctionDef_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/env python # Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_1177
66
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_1177:Import_L16_C0", "label": "code import code", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.1345, 0.0084, 0, 0.66, 0.0, 44, 0, 1, 0, 0, 44, 0, 0], "semantic": {"name": "code", "arg_names": [], "import_names": ["code"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1177:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1177:Assign_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1177:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1177:If_L40_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2008-2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_1179
3
28
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1179:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.5357, 0.0357, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[]
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ajibawa-2023/Python-Code-Large/train/row_1180
26
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_1180:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1948, 0.013, 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_1180:Try_L64_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1180:Assign_L65_C4"}]
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ajibawa-2023/Python-Code-Large/train/row_1182
90
163
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1182:Import_L15_C0", "label": "md5 import md5", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.092, 0.0061, 0, 0.66, 0.0, 604, 0, 1, 0, 0, 604, 0, 0], "semantic": {"name": "md5", "arg_names": [], "import_names": ["md5"], "rhs_call_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1182:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1182:Assign_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1182:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1182:Assign_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ajibawa-2023/Python-Code-Large/train/row_1183
216
696
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1183:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 43], "level": 0, "parent": null, "vector": [8, 0, 0.0417, 0.0417, 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_1183:FunctionDef_L92_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1183:Expr_L93_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1183:FunctionDef_L92_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1183:Assign_L105_C2"}, {"f": "ajibawa-2023/Python-Code-La...
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ajibawa-2023/Python-Code-Large/train/row_1184
146
259
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1184:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.0656, 0.0193, 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_1184:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1184:Expr_L41_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1184:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1184:Assign_L50_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ajibawa-2023/Python-Code-Large/train/row_1185
6
101
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1185:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1485, 0.0099, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[]
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ajibawa-2023/Python-Code-Large/train/row_1186
45
83
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1186:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1807, 0.012, 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_1186:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1186:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1186:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1186:FunctionDef_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
# Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ajibawa-2023/Python-Code-Large/train/row_1187
34
96
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1187:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1562, 0.0104, 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_1187:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1187:Expr_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1187:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1187:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ajibawa-2023/Python-Code-Large/train/row_1188
5
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_1188:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.6522, 0.0435, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1188:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1188:Expr_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1188:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1188:Expr_L23_C2"}]
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ajibawa-2023/Python-Code-Large/train/row_1189
141
261
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1189:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0575, 0.0038, 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_1189:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1189:Expr_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1189:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1189:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ajibawa-2023/Python-Code-Large/train/row_1191
311
702
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1191:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0214, 0.0014, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1191:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1191:Expr_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1191:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1191:Assign_L43_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Mimic pyquick exercise -- optional extra exercise. Google's Python Class Read in the ...
ajibawa-2023/Python-Code-Large/train/row_1194
38
91
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1194:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 42], "level": 0, "parent": null, "vector": [8, 0, 0.2802, 0.3736, 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_1194:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1194:Expr_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1194:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1194:Assign_L50_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Additional basic list exercises # D. Given a list of numbers, return a list where # al...
ajibawa-2023/Python-Code-Large/train/row_1198
35
84
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1198:FunctionDef_L15_C0", "label": "remove_adjacent", "type": "function", "loc": [15, 22], "level": 0, "parent": null, "vector": [2, 0, 0.2202, 0.0952, 0, 0.66, 0.0, 855, 0, 1, 1, 0, 0, 0, 2], "semantic": {"name": "remove_adjacent", "arg_names": ["nums"], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1198:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1198:Assign_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1198:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1198:Assign_L17_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Wordcount exercise Google's Python class The main() below is already defined and comp...
ajibawa-2023/Python-Code-Large/train/row_1199
42
105
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1199:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 38], "level": 0, "parent": null, "vector": [8, 0, 0.2238, 0.2857, 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_1199:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1199:Assign_L43_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1199:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1199:Assign_L44_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Mimic pyquick exercise -- optional extra exercise. Google's Python Class Read in the ...
ajibawa-2023/Python-Code-Large/train/row_1200
38
91
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1200:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 42], "level": 0, "parent": null, "vector": [8, 0, 0.2802, 0.3736, 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_1200:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1200:Expr_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1200:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1200:Assign_L50_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Additional basic list exercises # D. Given a list of numbers, return a list where # al...
ajibawa-2023/Python-Code-Large/train/row_1202
35
84
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1202:FunctionDef_L15_C0", "label": "remove_adjacent", "type": "function", "loc": [15, 22], "level": 0, "parent": null, "vector": [2, 0, 0.2202, 0.0952, 0, 0.66, 0.0, 855, 0, 1, 1, 0, 0, 0, 2], "semantic": {"name": "remove_adjacent", "arg_names": ["nums"], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1202:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1202:Assign_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1202:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1202:Assign_L17_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Wordcount exercise Google's Python class The main() below is already defined and comp...
ajibawa-2023/Python-Code-Large/train/row_1203
42
105
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1203:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 38], "level": 0, "parent": null, "vector": [8, 0, 0.2238, 0.2857, 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_1203:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1203:Assign_L43_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1203:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1203:Assign_L44_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Additional basic list exercises # D. Given a list of numbers, return a list where # al...
ajibawa-2023/Python-Code-Large/train/row_1209
30
72
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1209:FunctionDef_L15_C0", "label": "remove_adjacent", "type": "function", "loc": [15, 25], "level": 0, "parent": null, "vector": [2, 0, 0.2778, 0.1528, 0, 0.66, 0.0, 855, 0, 1, 1, 0, 0, 0, 2], "semantic": {"name": "remove_adjacent", "arg_names": ["nums"], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1209:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1209:If_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1209:If_L16_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_1209:Return_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Wordcount exercise Google's Python class The main() below is already defined and comp...
ajibawa-2023/Python-Code-Large/train/row_1210
38
98
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1210:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 38], "level": 0, "parent": null, "vector": [8, 0, 0.2398, 0.3061, 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_1210:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1210:Assign_L50_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1210:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1210:Assign_L51_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Additional basic list exercises # D. Given a list of numbers, return a list where # al...
ajibawa-2023/Python-Code-Large/train/row_1212
30
72
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1212:FunctionDef_L15_C0", "label": "remove_adjacent", "type": "function", "loc": [15, 25], "level": 0, "parent": null, "vector": [2, 0, 0.2778, 0.1528, 0, 0.66, 0.0, 855, 0, 1, 1, 0, 0, 0, 2], "semantic": {"name": "remove_adjacent", "arg_names": ["nums"], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1212:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1212:If_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1212:If_L16_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_1212:Return_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Wordcount exercise Google's Python class The main() below is already defined and comp...
ajibawa-2023/Python-Code-Large/train/row_1213
38
98
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1213:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 38], "level": 0, "parent": null, "vector": [8, 0, 0.2398, 0.3061, 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_1213:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1213:Assign_L50_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1213:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1213:Assign_L51_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Mimic pyquick exercise -- optional extra exercise. Google's Python Class Read in the ...
ajibawa-2023/Python-Code-Large/train/row_1216
38
98
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1216:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 42], "level": 0, "parent": null, "vector": [8, 0, 0.2602, 0.3469, 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_1216:FunctionDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1216:Expr_L51_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1216:FunctionDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1216:Assign_L52_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Additional basic list exercises # D. Given a list of numbers, return a list ...
ajibawa-2023/Python-Code-Large/train/row_1220
22
71
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1220:FunctionDef_L15_C0", "label": "remove_adjacent", "type": "function", "loc": [15, 21], "level": 0, "parent": null, "vector": [2, 0, 0.2535, 0.0986, 0, 0.66, 0.0, 855, 0, 1, 1, 0, 0, 0, 2], "semantic": {"name": "remove_adjacent", "arg_names": ["nums"], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1220:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1220:For_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1220:For_L18_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_1220:If_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Wordcount exercise Google's Python class The main() below is already defined and comp...
ajibawa-2023/Python-Code-Large/train/row_1221
45
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1221:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 38], "level": 0, "parent": null, "vector": [8, 0, 0.2217, 0.283, 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_1221:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1221:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1221:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1221:Assign_L47_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Mimic pyquick exercise -- optional extra exercise. Google's Python Class Read in the ...
ajibawa-2023/Python-Code-Large/train/row_1222
38
98
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1222:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 42], "level": 0, "parent": null, "vector": [8, 0, 0.2602, 0.3469, 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_1222:FunctionDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1222:Expr_L51_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1222:FunctionDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1222:Assign_L52_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Additional basic list exercises # D. Given a list of numbers, return a list ...
ajibawa-2023/Python-Code-Large/train/row_1224
22
71
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1224:FunctionDef_L15_C0", "label": "remove_adjacent", "type": "function", "loc": [15, 21], "level": 0, "parent": null, "vector": [2, 0, 0.2535, 0.0986, 0, 0.66, 0.0, 855, 0, 1, 1, 0, 0, 0, 2], "semantic": {"name": "remove_adjacent", "arg_names": ["nums"], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1224:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1224:For_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1224:For_L18_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_1224:If_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Wordcount exercise Google's Python class The main() below is already defined and comp...
ajibawa-2023/Python-Code-Large/train/row_1225
45
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1225:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 38], "level": 0, "parent": null, "vector": [8, 0, 0.2217, 0.283, 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_1225:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1225:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1225:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1225:Assign_L47_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Mimic pyquick exercise -- optional extra exercise. Google's Python Class Read in the ...
ajibawa-2023/Python-Code-Large/train/row_1228
43
96
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1228:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 42], "level": 0, "parent": null, "vector": [8, 0, 0.2656, 0.3542, 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_1228:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1228:Expr_L50_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1228:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1228:Assign_L51_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Additional basic list exercises # D. Given a list of numbers, return a list where # al...
ajibawa-2023/Python-Code-Large/train/row_1232
25
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_1232:FunctionDef_L15_C0", "label": "remove_adjacent", "type": "function", "loc": [15, 21], "level": 0, "parent": null, "vector": [2, 0, 0.2687, 0.1045, 0, 0.66, 0.0, 855, 0, 1, 1, 0, 0, 0, 3], "semantic": {"name": "remove_adjacent", "arg_names": ["nums"], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1232:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1232:Assign_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1232:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1232:Assign_L17_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ """Wordcount exercise Google's Python class The main() below is already defined and comp...
ajibawa-2023/Python-Code-Large/train/row_1233
43
97
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1233:Expr_L9_C0", "label": "expression", "type": "expression", "loc": [9, 38], "level": 0, "parent": null, "vector": [8, 0, 0.2423, 0.3093, 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_1233:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1233:Assign_L44_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1233:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1233:Assign_L45_C2"}, {"f": "ajibawa-2023/Python-Code-L...