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
# Copyright (C) 2010 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_77839
201
483
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77839:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0342, 0.0083, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77839:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77839:ImportFrom_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77839:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77839:ImportFrom_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2010 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_77841
55
135
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77841:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1259, 0.037, 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_77841:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77841:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77841:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77841:Assign_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2010 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_77843
28
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_77843:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.2619, 0.0635, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77843:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77843:Expr_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77843:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77843:FunctionDef_L31_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 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_77844
29
56
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77844:Import_L15_C0", "label": "apiclient import apiclient", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2679, 0.0179, 0, 0.66, 0.0, 629, 0, 1, 0, 0, 629, 0, 0], "semantic": {"name": "apiclient", "arg_names": [], "import_names": ["a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77844:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77844:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77844:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77844:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/python2.4 # # Copyright (C) 2010 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_77845
145
366
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77845:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0546, 0.0191, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77845:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77845:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77845:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77845:FunctionDef_L53_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python2.4 # # Copyright (C) 2010 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_77846
49
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77846:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1667, 0.0439, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77846:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77846:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77846:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77846:Expr_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" iri2uri Converts an IRI to a URI. """ __author__ = "Joe Gregorio (joe@bitworking.org)" __copyright__ = "Copyright 2006, Joe Gregorio" __contributors__ = [] __version__ = "1.0.0" __license__ = "MIT" __history__ = """ """ import urlparse # Convert an IRI to a URI following the rules in RFC 3987 # # The characte...
ajibawa-2023/Python-Code-Large/train/row_77847
43
110
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77847:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0318, 0.0545, 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_77847:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77847:Assign_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77847:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77847:Assign_L55_C4"}, {"f": "ajibawa-2023/Python-Co...
"""SocksiPy - Python SOCKS module. Version 1.00 Copyright 2006 Dan-Haim. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
ajibawa-2023/Python-Code-Large/train/row_77849
213
438
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77849:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 31], "level": 0, "parent": null, "vector": [8, 0, 0.0365, 0.0708, 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_77849:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77849:Expr_L97_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77849:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77849:Assign_L102_C4"}, {"f": "ajibawa-2023/Python-Cod...
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
ajibawa-2023/Python-Code-Large/train/row_77850
115
168
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77850:Import_L1_C0", "label": "Cookie import Cookie", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.006, 0.006, 0, 0.66, 0.0, 32, 0, 1, 0, 0, 32, 0, 0], "semantic": {"name": "Cookie", "arg_names": [], "import_names": ["Cookie"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77850:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77850:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77850:FunctionDef_L26_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_77850:If_L27_C4"}, {"f": "ajibawa-2023/Python-Code...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
ajibawa-2023/Python-Code-Large/train/row_77851
8
18
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77851:Assign_L3_C0", "label": "manual_verstr =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 189, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "manual_verstr", "arg_names": [], "import_names": [],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77851:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77851:ImportFrom_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77851:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77851:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
ajibawa-2023/Python-Code-Large/train/row_77852
10
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_77852:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.2927, 0.561, 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_77852:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77852:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77852:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77852:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
ajibawa-2023/Python-Code-Large/train/row_77853
9
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_77853:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.3, 0.575, 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_77853:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77853:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77853:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77853:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
ajibawa-2023/Python-Code-Large/train/row_77855
112
147
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77855:Import_L3_C0", "label": "re import re", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0068, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77855:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77855:If_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77855:If_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_77855:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/python2.6 # # Simple http server to emulate api.playfoursquare.com import logging import shutil import sys import urlparse import SimpleHTTPServer import BaseHTTPServer class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """Handle playfoursquare.com requests, for testing.""" def do_GET(self...
ajibawa-2023/Python-Code-Large/train/row_77856
63
85
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77856:Import_L5_C0", "label": "logging import logging", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0588, 0.0118, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77856:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77856:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77856:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77856:FunctionDef_L17_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
ajibawa-2023/Python-Code-Large/train/row_77857
20
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77857:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.037, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77857:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77857:Assign_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77857:For_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77857:Assign_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/python """ Pull a oAuth protected page from foursquare. Expects ~/.oget to contain (one on each line): CONSUMER_KEY CONSUMER_KEY_SECRET USERNAME PASSWORD Don't forget to chmod 600 the file! """ import httplib import os import re import sys import urllib import urllib2 import urlparse import user from xml....
ajibawa-2023/Python-Code-Large/train/row_77858
50
111
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77858:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0631, 0.0991, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77858:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77858:Return_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77858:FunctionDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77858:Assign_L57_C2"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python import datetime import sys import textwrap import common from xml.dom import pulldom PARSER = """\ /** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquare.parsers; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joel...
ajibawa-2023/Python-Code-Large/train/row_77859
42
149
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77859:Import_L3_C0", "label": "datetime import datetime", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0201, 0.0067, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["datetim...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77859:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77859:Assign_L83_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77859:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77859:Expr_L85_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python import logging from xml.dom import minidom from xml.dom import pulldom BOOLEAN = "boolean" STRING = "String" GROUP = "Group" # Interfaces that all FoursquareTypes implement. DEFAULT_INTERFACES = ['FoursquareType'] # Interfaces that specific FoursqureTypes implement. INTERFACES = { } DEFAULT_CLA...
ajibawa-2023/Python-Code-Large/train/row_77860
44
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77860:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0263, 0.0088, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77860:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77860:Expr_L60_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77860:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77860:Assign_L71_C2"}, {"f": "ajibawa-2023/Python-Code...
''' 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_77861
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_77861: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": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77861:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77861:Expr_L10_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77861:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77861:FunctionDef_L14_C2"}, {"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_77862
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_77862: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": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77862:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77862:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77862:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77862:Assign_L18_C2"}, {"f": "ajibawa-2023/Python-Code...
''' 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_77863
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_77863: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": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77863:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77863:Expr_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77863:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77863:FunctionDef_L19_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/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_77864
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_77864: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": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77864:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77864:Expr_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77864:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77864:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-L...
''' 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_77865
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_77865: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": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77865:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77865:FunctionDef_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77865:FunctionDef_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_77865:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Co...
''' 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_77866
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_77866: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": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77866:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77866:Expr_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77866:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77866:Assign_L19_C2"}, {"f": "ajibawa-2023/Python-Code...
#! /usr/bin/env python from pygame.locals import * import pygame # initialise pygame before we import anything else pygame.mixer.pre_init(44100, -16, 2, 1024) pygame.init() import gravity FRAMES_PER_SEC = 60 def playMain(): currentState = gravity.startGame() clock = pygame.time.Clock() while True:...
ajibawa-2023/Python-Code-Large/train/row_77867
20
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_77867:ImportFrom_L3_C0", "label": "from pygame.locals import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1071, 0.0357, 0, 0.66, 0.0, 515, 0, 1, 0, 0, 515, 0, 0], "semantic": {"name": "pygame.locals", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77867:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77867:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77867:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77867:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/env python from pygame.locals import * import pygame # initialise pygame before we import anything else pygame.mixer.pre_init(44100, -16, 2, 1024) pygame.init() import gravity FRAMES_PER_SEC = 60 def playMain(): currentState = gravity.startGame() clock = pygame.time.Clock() while True:...
ajibawa-2023/Python-Code-Large/train/row_77868
20
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_77868:ImportFrom_L3_C0", "label": "from pygame.locals import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1071, 0.0357, 0, 0.66, 0.0, 515, 0, 1, 0, 0, 515, 0, 0], "semantic": {"name": "pygame.locals", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77868:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77868:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77868:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77868:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Co...
from Tkinter import * import pygame, sys import random #from nesne import Ball import time from pygame.sprite import Sprite def startGame(): pygame.init() pencere = pygame.display.set_mode((500,400)) pencere.fill((255,255,255)) map_sheet = pygame.image.load('image/map.bmp').convert() shuttle = Ball((250,2...
ajibawa-2023/Python-Code-Large/train/row_77869
63
89
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77869:ImportFrom_L1_C0", "label": "from Tkinter import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0112, 0.0112, 0, 0.66, 0.0, 368, 0, 1, 0, 0, 368, 0, 0], "semantic": {"name": "Tkinter", "arg_names": [], "import_names": ["*"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77869:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77869:Expr_L10_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77869:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77869:Assign_L12_C1"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python # Copyright 2011 Google, Inc. All Rights Reserved. # simple script to walk source tree looking for third-party licenses # dumps resulting html page to stdout import os, re, mimetypes, sys # read source directories to scan from command line SOURCE = sys.argv[1:] # regex to find /* */ style commen...
ajibawa-2023/Python-Code-Large/train/row_77870
51
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_77870:Import_L8_C0", "label": "os import os, re, mimetypes\u2026", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.0816, 0.0102, 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_77870:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77870:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77870:FunctionDef_L32_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77870:Assign_L33_C8"}, {"f": "ajibawa-2023/Python-...
''' 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_77871
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_77871: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": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77871:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77871:Expr_L10_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77871:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77871:FunctionDef_L14_C2"}, {"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_77872
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_77872: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": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77872:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77872:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77872:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77872:Assign_L18_C2"}, {"f": "ajibawa-2023/Python-Code...
''' 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_77873
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_77873: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": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77873:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77873:Expr_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77873:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77873:FunctionDef_L19_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/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_77874
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_77874: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": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77874:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77874:Expr_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77874:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77874:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-L...
''' 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_77875
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_77875: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": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77875:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77875:FunctionDef_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77875:FunctionDef_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_77875:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Co...
''' 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_77876
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_77876: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": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77876:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77876:Expr_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77876:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77876:Assign_L19_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python import time t = time.time() u = time.gmtime(t) s = time.strftime('%a, %e %b %Y %T GMT', u) print 'Content-Type: text/javascript' print 'Cache-Control: no-cache' print 'Date: ' + s print 'Expires: ' + s print '' print 'var timeskew = new Date().getTime() - ' + str(t*1000) + ';'
ajibawa-2023/Python-Code-Large/train/row_77877
10
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_77877:Import_L2_C0", "label": "time import time", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1818, 0.0909, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call_n...
[]
######################################################################## import operator import math class vec2d(object): """2d vector class, supports vector and scalar operators, and also provides a bunch of high level functions """ __slots__ = ['x', 'y'] def __init__(self, x_or...
ajibawa-2023/Python-Code-Large/train/row_77878
316
455
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77878:Import_L2_C0", "label": "operator import operator", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0044, 0.0022, 0, 0.66, 0.0, 616, 0, 1, 0, 0, 616, 0, 0], "semantic": {"name": "operator", "arg_names": [], "import_names": ["operato...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77878:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77878:Expr_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77878:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77878:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python import codecs import re import jinja2 import markdown def process_slides(): with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile: md = codecs.open('slides.md', encoding='utf8').read() md_slides = md.split('\n---\n') print 'Compiled %s slides.' % len(m...
ajibawa-2023/Python-Code-Large/train/row_77880
41
57
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77880:Import_L3_C0", "label": "codecs import codecs", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0175, 0, 0.66, 0.0, 220, 0, 1, 0, 0, 220, 0, 0], "semantic": {"name": "codecs", "arg_names": [], "import_names": ["codecs"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77880:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77880:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77880:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77880:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
ajibawa-2023/Python-Code-Large/train/row_77881
38
74
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77881:Import_L26_C0", "label": "os import os", "type": "import", "loc": [26, 26], "level": 0, "parent": null, "vector": [1, 0, 0.3514, 0.0135, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77881:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77881:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77881:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77881:For_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2012 Zdenko Podobný # Author: Zdenko Podobný # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ajibawa-2023/Python-Code-Large/train/row_77883
3
4
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77883:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.25, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", "a...
[]
#!/usr/bin/env python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to ...
ajibawa-2023/Python-Code-Large/train/row_77884
8
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_77884:ImportFrom_L2_C0", "label": "from django.core.management import execute_manager", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1818, 0.0909, 0, 0.66, 0.0, 879, 0, 1, 0, 0, 879, 0, 0], "semantic": {"name": "django.core.management"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77884:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77884:Import_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77884:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77884:Import_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_7...
from django import forms from django.contrib.auth.models import User class ContactForm(forms.Form): name = forms.CharField(max_length=100, help_text="Full Name", widget=forms.TextInput(attrs={'size':'40'}),required=False) subject = forms.CharField(max_length=100, help_text="Subject of ...
ajibawa-2023/Python-Code-Large/train/row_77885
8
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_77885:ImportFrom_L1_C0", "label": "from django import forms", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0667, 0.0667, 0, 0.66, 0.0, 294, 0, 1, 0, 0, 294, 0, 0], "semantic": {"name": "django", "arg_names": [], "import_names": ["forms...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77885:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77885:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77885:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77885:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
from django.conf.urls.defaults import * from views import * urlpatterns = patterns('', (r'^', contact), (r'^thanks/$', static, {'template':'contact_thanks.html'}), )
ajibawa-2023/Python-Code-Large/train/row_77886
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_77886:ImportFrom_L1_C0", "label": "from django.conf.urls.defaults import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.125, 0.125, 0, 0.66, 0.0, 341, 0, 1, 0, 0, 341, 0, 0], "semantic": {"name": "django.conf.urls.defaults", "arg_nam...
[]
#r!/usr/bin/env python # # Copyright 2010 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_77887
22
51
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77887:ImportFrom_L17_C0", "label": "from django.conf import settings", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.0196, 0, 0.66, 0.0, 128, 0, 1, 0, 0, 128, 0, 0], "semantic": {"name": "django.conf", "arg_names": [], "import...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77887:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77887:Return_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77887:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77887:If_L28_C2"}, {"f": "ajibawa-2023/Python-Code-L...
from django.conf import settings from django.conf.urls.defaults import * from django.contrib import databrowse from django.contrib import admin admin.autodiscover() #from shapeft.custom_admin import editor #from registration.views import register urlpatterns = patterns('', (r'^_admin_/', include(admin.site.url...
ajibawa-2023/Python-Code-Large/train/row_77888
6
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_77888:ImportFrom_L1_C0", "label": "from django.conf import settings", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0357, 0.0357, 0, 0.66, 0.0, 128, 0, 1, 0, 0, 128, 0, 0], "semantic": {"name": "django.conf", "arg_names": [], "import_na...
[]
#!/usr/bin/env python # # Copyright 2010 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_77890
20
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_77890:ImportFrom_L17_C0", "label": "from django.db import models", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.4146, 0.0244, 0, 0.66, 0.0, 40, 0, 1, 0, 0, 40, 0, 0], "semantic": {"name": "django.db", "arg_names": [], "import_names":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77890:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77890:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77890:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77890:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python # # Copyright 2010 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_77891
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_77891:ImportFrom_L17_C0", "label": "from django.conf.urls.defaults import *", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.68, 0.04, 0, 0.66, 0.0, 341, 0, 1, 0, 0, 341, 0, 0], "semantic": {"name": "django.conf.urls.defaults", "arg_na...
[]
#!/usr/bin/env python # # Copyright 2007 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_77892
53
118
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77892:Import_L16_C0", "label": "os import os", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.1356, 0.0085, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77892:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77892:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77892:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77892:Try_L45_C2"}, {"f": "ajibawa-2023/Python-Code-La...
import random import md5 from django.db import models from ft_auth.models import OAuthAccessToken STATUS_CODES = { 1 : 'In Queue (%s ahead of you)', 2 : 'Initial Processing', 3 : 'Importing into Fusion Tables', 4 : 'Complete', 6 : 'Error' } class shapeUpload(models.Model): """An upload -- includes location ...
ajibawa-2023/Python-Code-Large/train/row_77893
35
49
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77893:Import_L1_C0", "label": "random import random", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0204, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "random", "arg_names": [], "import_names": ["random"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77893:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77893:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77893:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77893:Assign_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python # # Copyright 2010 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_77894
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_77894:ImportFrom_L16_C0", "label": "from django.conf.urls.defaults import *", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.64, 0.04, 0, 0.66, 0.0, 341, 0, 1, 0, 0, 341, 0, 0], "semantic": {"name": "django.conf.urls.defaults", "arg_na...
[]
#!/usr/bin/python # # Copyright (C) 2012 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_77897
189
572
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77897:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0297, 0.0017, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77897:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77897:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77897:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77897:Return_L54_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright (C) 2012 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_77898
133
305
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77898:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0557, 0.0033, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77898:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77898:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77898:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77898:Assign_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
ajibawa-2023/Python-Code-Large/train/row_77900
8
18
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77900:Assign_L3_C0", "label": "manual_verstr =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 189, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "manual_verstr", "arg_names": [], "import_names": [],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77900:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77900:ImportFrom_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77900:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77900:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
ajibawa-2023/Python-Code-Large/train/row_77901
9
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_77901:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.3, 0.575, 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_77901:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77901:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77901:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77901:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
ajibawa-2023/Python-Code-Large/train/row_77902
10
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_77902:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.2927, 0.561, 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_77902:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77902:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77902:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77902:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2011 Google Inc. All Rights Reserved. """Multi-credential file store with lock support. This module implements a JSON credential store where multiple credentials can be stored in one file. That file supports locking both in a single process and across processes. The credential themselves are keyed off o...
ajibawa-2023/Python-Code-Large/train/row_77904
155
366
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77904:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 30], "level": 0, "parent": null, "vector": [8, 0, 0.0451, 0.0765, 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_77904:Try_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77904:Import_L41_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77904:Try_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77904:Try_L43_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Copyright (C) 2010 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_77905
348
953
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77905:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0173, 0.0042, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77905:Try_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77905:ImportFrom_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77905:Try_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77905:ImportFrom_L38_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2010 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_77906
38
92
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77906:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1848, 0.0543, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77906:Try_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77906:Import_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77906:Try_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77906:Try_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Copyright (C) 2010 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_77907
55
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77907:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1491, 0.0439, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77907:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77907:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77907:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77907:FunctionDef_L34_C2"}, {"f": "ajibawa-2023/Python-Cod...
# Copyright (C) 2010 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_77908
214
544
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77908:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0303, 0.0074, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77908:Try_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77908:Import_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77908:Try_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77908:Try_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 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 ...
ajibawa-2023/Python-Code-Large/train/row_77909
90
253
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77909:Import_L18_C0", "label": "base64 import base64", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.0711, 0.004, 0, 0.66, 0.0, 177, 0, 1, 0, 0, 177, 0, 0], "semantic": {"name": "base64", "arg_names": [], "import_names": ["base64"], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77909:Try_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77909:Import_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77909:Try_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77909:Try_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Copyright (C) 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_77910
37
113
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77910:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1504, 0.0442, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77910:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77910:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77910:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77910:Try_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
ajibawa-2023/Python-Code-Large/train/row_77911
115
168
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77911:Import_L1_C0", "label": "Cookie import Cookie", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.006, 0.006, 0, 0.66, 0.0, 32, 0, 1, 0, 0, 32, 0, 0], "semantic": {"name": "Cookie", "arg_names": [], "import_names": ["Cookie"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77911:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77911:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77911:FunctionDef_L26_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_77911:If_L27_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
ajibawa-2023/Python-Code-Large/train/row_77912
57
172
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77912:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0814, 0.1105, 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_77912:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77912:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77912:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77912:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright (C) 2010 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_77913
374
940
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77913:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 20], "level": 0, "parent": null, "vector": [8, 0, 0.0186, 0.0064, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77913:ClassDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77913:Expr_L52_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77913:ClassDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77913:FunctionDef_L54_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 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_77914
201
483
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77914:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0342, 0.0083, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77914:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77914:ImportFrom_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77914:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77914:ImportFrom_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python2.4 # # Copyright (C) 2010 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_77915
145
366
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77915:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0546, 0.0191, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77915:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77915:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77915:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77915:FunctionDef_L53_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 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_77917
28
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_77917:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.2619, 0.0635, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77917:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77917:Expr_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77917:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77917:FunctionDef_L31_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 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_77918
29
56
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77918:Import_L15_C0", "label": "apiclient import apiclient", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2679, 0.0179, 0, 0.66, 0.0, 629, 0, 1, 0, 0, 629, 0, 0], "semantic": {"name": "apiclient", "arg_names": [], "import_names": ["a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77918:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77918:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77918:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77918:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Cod...
# Copyright (C) 2010 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_77919
55
135
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77919:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1259, 0.037, 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_77919:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77919:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77919:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77919:Assign_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python2.4 # # Copyright (C) 2010 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_77921
49
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77921:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1667, 0.0439, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77921:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77921:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77921:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77921:Expr_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (C) 2010 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_77922
114
303
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77922:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 58], "level": 0, "parent": null, "vector": [8, 0, 0.1205, 0.1452, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77922:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77922:Expr_L69_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77922:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77922:FunctionDef_L71_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 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_77923
7
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77923:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.5312, 0.1562, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77923:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77923:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77923:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77923:Try_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
ajibawa-2023/Python-Code-Large/train/row_77924
112
147
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77924:Import_L3_C0", "label": "re import re", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0068, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77924:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77924:If_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77924:If_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_77924:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/env python # Copyright (c) 2010, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this l...
ajibawa-2023/Python-Code-Large/train/row_77925
51
187
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77925:Expr_L32_C0", "label": "expression", "type": "expression", "loc": [32, 36], "level": 0, "parent": null, "vector": [8, 0, 0.1818, 0.0267, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77925:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77925:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77925:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77925:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
"""SocksiPy - Python SOCKS module. Version 1.00 Copyright 2006 Dan-Haim. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
ajibawa-2023/Python-Code-Large/train/row_77926
213
438
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77926:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 31], "level": 0, "parent": null, "vector": [8, 0, 0.0365, 0.0708, 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_77926:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77926:Expr_L97_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77926:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77926:Assign_L102_C4"}, {"f": "ajibawa-2023/Python-Cod...
""" iri2uri Converts an IRI to a URI. """ __author__ = "Joe Gregorio (joe@bitworking.org)" __copyright__ = "Copyright 2006, Joe Gregorio" __contributors__ = [] __version__ = "1.0.0" __license__ = "MIT" __history__ = """ """ import urlparse # Convert an IRI to a URI following the rules in RFC 3987 # # The characte...
ajibawa-2023/Python-Code-Large/train/row_77927
43
110
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77927:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0318, 0.0545, 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_77927:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77927:Assign_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77927:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77927:Assign_L55_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # Copyright 2013 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_77930
40
74
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77930:Import_L16_C0", "label": "re import re", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2162, 0.0135, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77930:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77930:Assign_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77930:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77930:For_L27_C2"}, {"f": "ajibawa-2023/Python-Code-...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
ajibawa-2023/Python-Code-Large/train/row_77931
38
74
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77931:Import_L26_C0", "label": "os import os", "type": "import", "loc": [26, 26], "level": 0, "parent": null, "vector": [1, 0, 0.3514, 0.0135, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77931:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77931:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77931:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77931:For_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python2.6 # # Simple http server to emulate api.playfoursquare.com import logging import shutil import sys import urlparse import SimpleHTTPServer import BaseHTTPServer class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """Handle playfoursquare.com requests, for testing.""" def do_GET(self...
ajibawa-2023/Python-Code-Large/train/row_77932
63
85
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77932:Import_L5_C0", "label": "logging import logging", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0588, 0.0118, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77932:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77932:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77932:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77932:FunctionDef_L17_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
ajibawa-2023/Python-Code-Large/train/row_77933
20
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77933:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.037, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77933:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77933:Assign_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77933:For_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77933:Assign_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/python """ Pull a oAuth protected page from foursquare. Expects ~/.oget to contain (one on each line): CONSUMER_KEY CONSUMER_KEY_SECRET USERNAME PASSWORD Don't forget to chmod 600 the file! """ import httplib import os import re import sys import urllib import urllib2 import urlparse import user from xml....
ajibawa-2023/Python-Code-Large/train/row_77934
50
111
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77934:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0631, 0.0991, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77934:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77934:Return_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77934:FunctionDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77934:Assign_L57_C2"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python import datetime import sys import textwrap import common from xml.dom import pulldom PARSER = """\ /** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquare.parsers; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joel...
ajibawa-2023/Python-Code-Large/train/row_77935
42
149
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77935:Import_L3_C0", "label": "datetime import datetime", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0201, 0.0067, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["datetim...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77935:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77935:Assign_L83_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77935:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77935:Expr_L85_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python import logging from xml.dom import minidom from xml.dom import pulldom BOOLEAN = "boolean" STRING = "String" GROUP = "Group" # Interfaces that all FoursquareTypes implement. DEFAULT_INTERFACES = ['FoursquareType'] # Interfaces that specific FoursqureTypes implement. INTERFACES = { } DEFAULT_CLA...
ajibawa-2023/Python-Code-Large/train/row_77936
44
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77936:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0263, 0.0088, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77936:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77936:Expr_L60_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77936:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77936:Assign_L71_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python import os, sys, re import xbmc, xbmcaddon __plugin_handle__ = int(sys.argv[1]) def get_addoninfo(id): dict = {} dict["id"] = id dict["addon"] = xbmcaddon.Addon(id) dict["language"] = dict["addon"].getLocalizedString dict["version"] = dict["addon"].getAddonInfo("version...
ajibawa-2023/Python-Code-Large/train/row_77937
17
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_77937:Import_L3_C0", "label": "os import os, sys, re", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0476, 0, 0.66, 0.0, 688, 0, 3, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys", "re"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77937:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77937:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77937:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77937:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python import os, sys, re import xbmc, xbmcaddon __plugin_handle__ = int(sys.argv[1]) def get_addoninfo(id): dict = {} dict["id"] = id dict["addon"] = xbmcaddon.Addon(id) dict["language"] = dict["addon"].getLocalizedString dict["version"] = dict["addon"].getAddonInfo("version...
ajibawa-2023/Python-Code-Large/train/row_77938
17
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_77938:Import_L3_C0", "label": "os import os, sys, re", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0476, 0, 0.66, 0.0, 688, 0, 3, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys", "re"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77938:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77938:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77938:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77938:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-...
"""SocksiPy - Python SOCKS module. Version 1.00 Copyright 2006 Dan-Haim. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
ajibawa-2023/Python-Code-Large/train/row_77941
212
439
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77941:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 31], "level": 0, "parent": null, "vector": [8, 0, 0.0364, 0.0706, 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_77941:FunctionDef_L93_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77941:Expr_L94_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77941:FunctionDef_L93_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77941:Assign_L99_C4"}, {"f": "ajibawa-2023/Python-Code...
""" iri2uri Converts an IRI to a URI. """ __author__ = "Joe Gregorio (joe@bitworking.org)" __copyright__ = "Copyright 2006, Joe Gregorio" __contributors__ = [] __version__ = "1.0.0" __license__ = "MIT" __history__ = """ """ import urlparse # Convert an IRI to a URI following the rules in RFC 3987 # # The characte...
ajibawa-2023/Python-Code-Large/train/row_77942
43
110
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77942:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0318, 0.0545, 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_77942:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77942:Assign_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77942:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77942:Assign_L55_C4"}, {"f": "ajibawa-2023/Python-Co...
import xbmc, xbmcgui, xbmcaddon import sys, os, re import urllib, urllib2 __plugin__ = 'International TV' __author__ = 'Joel' __svn_url__ = 'http://xbmc-tv.googlecode.com/svn/trunk/plugin.video.lihattv/' __credits__ = 'Joel' __version__ = '1.0' addon = xbmcaddon.Addon(id='plugin.video.internationaltv') roo...
ajibawa-2023/Python-Code-Large/train/row_77945
21
26
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77945:Import_L1_C0", "label": "xbmc import xbmc, xbmcgui, xbmcaddon", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0385, 0.0385, 0, 0.66, 0.0, 877, 0, 3, 0, 0, 877, 0, 0], "semantic": {"name": "xbmc", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77945:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77945:Assign_L13_C22"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77945:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77945:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: utf-8 -*- import xbmc, xbmcgui import urllib import os import zipfile repo_url = 'http://xbmc-development-with-passion.googlecode.com/svn/branches/custom/' pluginDataDir = xbmc.translatePath('special://profile/addon_data/plugin.video.SportsDevil') customModulesDir = os.path.join(pluginDataDir...
ajibawa-2023/Python-Code-Large/train/row_77946
43
64
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77946:Import_L1_C0", "label": "xbmc import xbmc, xbmcgui", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0156, 0.0156, 0, 0.66, 0.0, 877, 0, 2, 0, 0, 877, 0, 0], "semantic": {"name": "xbmc", "arg_names": [], "import_names": ["xbmc", "xb...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77946:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77946:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77946:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77946:If_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
############################################################################# # Documentation # ############################################################################# # Author: Todd Whiteman # Date: 16th March, 2009 # Verion: 2.0.0 # License: Public Domain - free to do as you wish # Homepage...
ajibawa-2023/Python-Code-Large/train/row_77948
331
853
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77948:Expr_L27_C0", "label": "expression", "type": "expression", "loc": [27, 85], "level": 0, "parent": null, "vector": [8, 0, 0.0657, 0.0692, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77948:ClassDef_L108_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77948:FunctionDef_L109_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77948:FunctionDef_L109_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_77948:If_L110_C2"}, {"f": "ajibawa-2023/Python-...
# -*- coding: latin-1 -*- import regexUtils as re import urllib import urlparse def findJS(data): idName = 'f*id' jsName = '(.*?\.js)' regex = "(?:java)?script[^<]+" + idName + "\s*=\s*[\"']([^\"']+)[\"'][^<]*</script\s*>[^<]*<script[^<]*src=[\"']" + jsName + "[\"']" jscript = re.f...
ajibawa-2023/Python-Code-Large/train/row_77949
158
227
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77949:Import_L4_C0", "label": "regexUtils import re", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0176, 0.0044, 0, 0.66, 0.0, 228, 0, 1, 0, 0, 228, 0, 0], "semantic": {"name": "regexUtils", "arg_names": [], "import_names": ["re"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77949:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77949:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77949:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77949:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: latin-1 -*- import time, datetime from string import lower import re import traceback import sys ####################################### # Time and Date Helpers ####################################### def timediff(mytime, unit='seconds'): dtNow = datetime.datetime.utcnow() datePar...
ajibawa-2023/Python-Code-Large/train/row_77950
112
229
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77950:Import_L3_C0", "label": "time import time, datetime", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0131, 0.0044, 0, 0.66, 0.0, 654, 0, 2, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time", "d...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77950:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77950:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77950:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77950:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: latin-1 -*- import os import datetime, time import random from encodingUtils import smart_unicode import hashlib ####################################### # File Helpers ####################################### def getFileExtension(filename): ext_pos = filename.rfind('.') if ext_pos ...
ajibawa-2023/Python-Code-Large/train/row_77951
76
107
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77951:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.028, 0.0093, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77951:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77951:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77951:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77951:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: latin-1 -*- import xbmcgui, xbmc, xbmcplugin enable_debug = True ####################################### # Xbmc Helpers ####################################### def select(title, menuItems): select = xbmcgui.Dialog().select(title, menuItems) if select == -1: return None ...
ajibawa-2023/Python-Code-Large/train/row_77953
47
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77953:Import_L3_C0", "label": "xbmcgui import xbmcgui, xbmc, xbmcplugin", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.04, 0.0133, 0, 0.66, 0.0, 280, 0, 3, 0, 0, 280, 0, 0], "semantic": {"name": "xbmcgui", "arg_names": [], "import_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77953:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77953:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77953:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77953:If_L13_C4"}, {"f": "ajibawa-2023/Python-Code-L...
from github import Github from hashlib import sha1 from cStringIO import StringIO import datetime import datetimeUtils # max. 60 API calls per hour # ATM 12 * getFiles per hour def getFiles(userName, repoName, branchName, folderName=None): try: g = Github() user = g.get_user(use...
ajibawa-2023/Python-Code-Large/train/row_77954
46
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_77954:ImportFrom_L1_C0", "label": "from github import Github", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0149, 0.0149, 0, 0.66, 0.0, 92, 0, 1, 0, 0, 92, 0, 0], "semantic": {"name": "github", "arg_names": [], "import_names": ["Github...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77954:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77954:Try_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77954:Try_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77954:Assign_L12_C8"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
# -*- coding: latin-1 -*- import pyDes import urllib import re from string import join from regexUtils import parseTextToGroups from webUtils import get_redirected_url def encryptDES_ECB(data, key): data = data.encode() k = pyDes.des(key, pyDes.ECB, IV=None, pad=None, padmode=pyDes.PAD_PKCS5)...
ajibawa-2023/Python-Code-Large/train/row_77956
141
212
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77956:Import_L3_C0", "label": "pyDes import pyDes", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0142, 0.0047, 0, 0.66, 0.0, 276, 0, 1, 0, 0, 276, 0, 0], "semantic": {"name": "pyDes", "arg_names": [], "import_names": ["pyDes"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77956:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77956:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77956:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77956:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: latin-1 -*- import htmlentitydefs import re import sys, traceback enable_debug = True entitydefs = { 'AElig': u'\u00C6', # latin capital letter AE = latin capital ligature AE, U+00C6 ISOlat1' 'Aacute': u'\u00C1', # latin capital letter A with acute, U+00C1 ISOlat1' 'Acir...
ajibawa-2023/Python-Code-Large/train/row_77957
138
495
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77957:Import_L3_C0", "label": "htmlentitydefs import htmlentitydefs", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0061, 0.002, 0, 0.66, 0.0, 744, 0, 1, 0, 0, 744, 0, 0], "semantic": {"name": "htmlentitydefs", "arg_names": [], "import_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77957:FunctionDef_L312_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77957:If_L313_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77957:If_L313_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77957:Return_L314_C8"}, {"f": "ajibawa-2023/Python-Code-Large/...
''' StorageServer override. Version: 1.0 ''' import xbmc try: import hashlib except: import md5 import xbmcvfs import os import time import sys if hasattr(sys.modules["__main__"], "settings"): settings = sys.modules["__main__"].settings else: settings = False class StorageServer: def _...
ajibawa-2023/Python-Code-Large/train/row_77958
68
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_77958:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 4], "level": 0, "parent": null, "vector": [8, 0, 0.026, 0.0417, 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_77958:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77958:Import_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77958:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77958:Import_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_7...
# -*- coding: utf-8 -*- # Copyright 2012 Vincent Jacques # vincent@vincent-jacques.net # This file is part of PyGithub. http://vincent-jacques.net/PyGithub # PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License # as published by the Free Softwar...
ajibawa-2023/Python-Code-Large/train/row_77959
31
78
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77959:Import_L16_C0", "label": "urllib import urllib", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2051, 0.0128, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "urllib", "arg_names": [], "import_names": ["urllib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77959:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77959:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77959:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77959:Expr_L24_C8"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: utf-8 -*- # Copyright 2012 Vincent Jacques # vincent@vincent-jacques.net # This file is part of PyGithub. http://vincent-jacques.net/PyGithub # PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License # as published by the Free Softwar...
ajibawa-2023/Python-Code-Large/train/row_77960
90
137
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77960:Import_L16_C0", "label": "urlparse import urlparse", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.1168, 0.0073, 0, 0.66, 0.0, 857, 0, 1, 0, 0, 857, 0, 0], "semantic": {"name": "urlparse", "arg_names": [], "import_names": ["urlp...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77960:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77960:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77960:FunctionDef_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77960:Expr_L23_C8"}, {"f": "ajibawa-2023/Python-Co...