code
stringlengths
1
1.49M
file_id
stringlengths
42
46
node_count
int64
0
7.38k
total_lines
int64
1
20.9k
vector_dim
int64
15
15
vector_labels
stringclasses
1 value
nodes
stringlengths
2
3.75M
connections
stringlengths
2
964k
#!/usr/bin/python2.4 # # 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 o...
ajibawa-2023/Python-Code-Large/train/row_2800
19
52
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2800:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.3558, 0.0769, 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_2800:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2800:FunctionDef_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2800:FunctionDef_L32_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_2800:Assign_L33_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/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_2803
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_2803: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2803:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2803:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2803:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2803:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train...
# Copyright 2010 Google Inc. All Rights Reserved. """Classes to encapsulate a single HTTP request. The classes implement a command pattern, with every object supporting an execute() method that does the actuall HTTP request. """ __author__ = 'jcgregorio@google.com (Joe Gregorio)' __all__ = [ 'HttpRequest', 'Requ...
ajibawa-2023/Python-Code-Large/train/row_2805
107
312
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2805:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0176, 0.0192, 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_2805:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2805:Expr_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2805:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2805:FunctionDef_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
# Copyright 2010 Google Inc. All Rights Reserved. """Utilities for OAuth. Utilities for making it easier to work with OAuth. """ __author__ = 'jcgregorio@google.com (Joe Gregorio)' import copy import httplib2 import logging import oauth2 as oauth import urllib import urlparse from anyjson import simplejson try: ...
ajibawa-2023/Python-Code-Large/train/row_2806
142
327
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2806:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0138, 0.0122, 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_2806:Try_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2806:ImportFrom_L20_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2806:Try_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2806:ImportFrom_L22_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/python2.4 # # Copyright 2010 Google Inc. All Rights Reserved. """Model objects for requests and responses. Each API may support one or more serializations, such as JSON, Atom, etc. The model classes are responsible for converting between the wire format and the Python object representation. """ __author__...
ajibawa-2023/Python-Code-Large/train/row_2807
88
234
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2807:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 11], "level": 0, "parent": null, "vector": [8, 0, 0.0342, 0.0299, 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_2807:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2807:Expr_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2807:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2807:FunctionDef_L43_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python2.4 # # Copyright 2010 Google Inc. All Rights Reserved. """Model objects for requests and responses. Each API may support one or more serializations, such as JSON, Atom, etc. The model classes are responsible for converting between the wire format and the Python object representation. """ __author__...
ajibawa-2023/Python-Code-Large/train/row_2809
88
234
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2809:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 11], "level": 0, "parent": null, "vector": [8, 0, 0.0342, 0.0299, 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_2809:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2809:Expr_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2809:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2809:FunctionDef_L43_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python2.4 # # Copyright 2010 Google Inc. All Rights Reserved. """Errors for the library. All exceptions defined by the library should be defined in this file. """ __author__ = 'jcgregorio@google.com (Joe Gregorio)' from anyjson import simplejson class Error(Exception): """Base error for this module....
ajibawa-2023/Python-Code-Large/train/row_2810
29
60
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2810:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 9], "level": 0, "parent": null, "vector": [8, 0, 0.1167, 0.0833, 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_2810:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2810:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2810:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2810:Expr_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train...
# Copyright 2010 Google Inc. All Rights Reserved. """Utilities for OAuth. Utilities for making it easier to work with OAuth 1.0 credentials. """ __author__ = 'jcgregorio@google.com (Joe Gregorio)' import pickle import threading from apiclient.oauth import Storage as BaseStorage class Storage(BaseStorage): """S...
ajibawa-2023/Python-Code-Large/train/row_2811
28
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_2811:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0882, 0.0784, 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_2811:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2811:Expr_L17_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2811:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2811:FunctionDef_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
import apiclient import base64 import pickle from django.db import models class OAuthCredentialsField(models.Field): __metaclass__ = models.SubfieldBase def db_type(self): return 'VARCHAR' def to_python(self, value): if value is None: return None if isinstance(value, apiclient.oauth.Creden...
ajibawa-2023/Python-Code-Large/train/row_2812
29
42
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2812:Import_L1_C0", "label": "apiclient import apiclient", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0238, 0.0238, 0, 0.66, 0.0, 629, 0, 1, 0, 0, 629, 0, 0], "semantic": {"name": "apiclient", "arg_names": [], "import_names": ["apicl...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2812:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2812:Assign_L10_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2812:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2812:FunctionDef_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
# 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_2813
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_2813: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": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2813:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2813:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2813:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2813:Assign_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/python2.4 # # Copyright 2010 Google Inc. All Rights Reserved. """Errors for the library. All exceptions defined by the library should be defined in this file. """ __author__ = 'jcgregorio@google.com (Joe Gregorio)' from anyjson import simplejson class Error(Exception): """Base error for this module....
ajibawa-2023/Python-Code-Large/train/row_2815
29
60
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2815:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 9], "level": 0, "parent": null, "vector": [8, 0, 0.1167, 0.0833, 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_2815:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2815:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2815:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2815:Expr_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train...
# 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_2816
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_2816: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2816:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2816:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2816:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2816:Try_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2816...
# 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_2817
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_2817: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_2817:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2817:If_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2817:If_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_2817:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_28...
#!/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_2819
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_2819: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2819:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2819:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2819:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2819:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train...
"""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_2820
206
440
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2820:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 31], "level": 0, "parent": null, "vector": [8, 0, 0.0364, 0.0705, 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_2820:If_L58_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2820:FunctionDef_L59_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2820:FunctionDef_L59_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2820:Return_L60_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
""" 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_2821
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_2821: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": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2821:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2821:Assign_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2821:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2821:Assign_L55_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python2.4 # # Copyright 2010 Google Inc. All Rights Reserved. """Discovery document tests Functional tests that verify we can retrieve data from existing services. """ __author__ = 'ade@google.com (Ade Oshineye)' import httplib2 import pprint from apiclient.discovery import build import httplib2 import ...
ajibawa-2023/Python-Code-Large/train/row_2824
150
279
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2824:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0233, 0.0143, 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_2824:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2824:FunctionDef_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2824:FunctionDef_L27_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_2824:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Simple command-line example for running against a local server. """ __author__ = 'jcgregorio@google.com (Joe Gregorio)' # Enable this sample to be run from the top-level directory import os import sys sys.path.inse...
ajibawa-2023/Python-Code-Large/train/row_2830
17
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2830:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 9], "level": 0, "parent": null, "vector": [8, 0, 0.2027, 0.1081, 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_2830:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2830:Assign_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2830:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2830:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Simple command-line example for running against a local server. """ __author__ = 'jcgregorio@google.com (Joe Gregorio)' # Enable this sample to be run from the top-level directory import os import sys sys.path.inse...
ajibawa-2023/Python-Code-Large/train/row_2831
17
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2831:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 9], "level": 0, "parent": null, "vector": [8, 0, 0.2027, 0.1081, 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_2831:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2831:Assign_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2831:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2831:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/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 o...
ajibawa-2023/Python-Code-Large/train/row_2836
48
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_2836:Assign_L18_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.1622, 0.009, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2836:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2836:Assign_L40_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2836:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2836:FunctionDef_L46_C2"}, {"f": "ajibawa-2023/Python-Code-La...
#!/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_2837
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_2837: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2837:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2837:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2837:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2837:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train...
#!/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 o...
ajibawa-2023/Python-Code-Large/train/row_2838
48
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_2838:Assign_L18_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.1622, 0.009, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2838:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2838:Assign_L40_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2838:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2838:FunctionDef_L46_C2"}, {"f": "ajibawa-2023/Python-Code-La...
#!/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_2840
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_2840: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2840:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2840:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2840:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2840:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Simple command-line example for Latitude. Command-line application that sets the users current location. """ __author__ = 'jcgregorio@google.com (Joe Gregorio)' import httplib2 from apiclient.discovery import build ...
ajibawa-2023/Python-Code-Large/train/row_2842
24
59
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2842:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1356, 0.0847, 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_2842:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2842:Assign_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2842:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2842:Assign_L28_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Simple command-line example for Latitude. Command-line application that sets the users current location. """ __author__ = 'jcgregorio@google.com (Joe Gregorio)' import httplib2 from apiclient.discovery import build ...
ajibawa-2023/Python-Code-Large/train/row_2843
24
59
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2843:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1356, 0.0847, 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_2843:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2843:Assign_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2843:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2843:Assign_L28_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/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 o...
ajibawa-2023/Python-Code-Large/train/row_2844
49
109
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2844:Assign_L18_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.1651, 0.0092, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2844:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2844:Assign_L40_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2844:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2844:FunctionDef_L46_C2"}, {"f": "ajibawa-2023/Python-Code-La...
#!/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_2845
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_2845: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2845:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2845:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2845:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2845:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train...
#!/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 o...
ajibawa-2023/Python-Code-Large/train/row_2846
49
109
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2846:Assign_L18_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.1651, 0.0092, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2846:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2846:Assign_L40_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2846:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2846:FunctionDef_L46_C2"}, {"f": "ajibawa-2023/Python-Code-La...
#!/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_2848
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_2848: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2848:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2848:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2848:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2848:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train...
import pickle import base64 from django.contrib import admin from django.contrib.auth.models import User from django.db import models from oauth2client.django_orm import FlowField from oauth2client.django_orm import CredentialsField # The Flow could also be stored in memcache since it is short lived. class FlowMod...
ajibawa-2023/Python-Code-Large/train/row_2850
17
33
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2850:Import_L1_C0", "label": "pickle import pickle", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0303, 0.0303, 0, 0.66, 0.0, 848, 0, 1, 0, 0, 848, 0, 0], "semantic": {"name": "pickle", "arg_names": [], "import_names": ["pickle"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2850:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2850:Assign_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2850:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2850:Assign_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" This file demonstrates two different styles of tests (one doctest and one unittest). These will both pass when you run "manage.py test". Replace these with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): ""...
ajibawa-2023/Python-Code-Large/train/row_2851
7
24
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2851:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1458, 0.25, 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_2851:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2851:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2851:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2851:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-L...
import os import logging import httplib2 from django.http import HttpResponse from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_required from oauth2client.django_orm import Storage from oauth2client.client import OAuth2WebServerFlow from django_sample.buzz.models import Cre...
ajibawa-2023/Python-Code-Large/train/row_2852
38
61
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2852:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0164, 0.0164, 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_2852:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2852:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2852:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2852:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/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. You'll have to run...
ajibawa-2023/Python-Code-Large/train/row_2853
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_2853:ImportFrom_L2_C0", "label": "from django.core.management import execute_manager", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1333, 0.0667, 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_2853:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2853:Import_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2853:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2853:Import_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2853:...
#!/usr/bin/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. You'll have to run...
ajibawa-2023/Python-Code-Large/train/row_2854
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_2854:ImportFrom_L2_C0", "label": "from django.core.management import execute_manager", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1333, 0.0667, 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_2854:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2854:Import_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2854:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2854:Import_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2854:...
import os from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Example: (r'^$', 'django_sample.buzz.views.index'), (r'^auth_return', 'django_sample.buzz.views.auth_return'), # Unc...
ajibawa-2023/Python-Code-Large/train/row_2855
5
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_2855:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.04, 0.04, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", "an...
[]
# Django settings for django_sample project. import os DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = 'database.sqlite3' DATABASE_USER = '' DATABASE_PASSWORD = '' DATABASE_HOST = '' DATABASE_PORT = '' # Lo...
ajibawa-2023/Python-Code-Large/train/row_2856
24
83
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2856:Import_L2_C0", "label": "os import os", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0241, 0.012, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", ...
[]
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Simple command-line example for Latitude. Command-line application that sets the users current location. """ __author__ = 'jcgregorio@google.com (Joe Gregorio)' from apiclient.discovery import build import httplib2...
ajibawa-2023/Python-Code-Large/train/row_2857
23
68
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2857:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1176, 0.0735, 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_2857:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2857:Assign_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2857:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2857:Assign_L31_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Simple command-line example for Latitude. Command-line application that sets the users current location. """ __author__ = 'jcgregorio@google.com (Joe Gregorio)' from apiclient.discovery import build import httplib2...
ajibawa-2023/Python-Code-Large/train/row_2858
23
68
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2858:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1176, 0.0735, 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_2858:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2858:Assign_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2858:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2858:Assign_L31_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/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 o...
ajibawa-2023/Python-Code-Large/train/row_2859
51
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2859:Assign_L18_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.1698, 0.0094, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2859:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2859:Assign_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2859:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2859:FunctionDef_L48_C2"}, {"f": "ajibawa-2023/Python-Code-La...
#!/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_2860
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_2860: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2860:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2860:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2860:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2860:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train...
#!/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 o...
ajibawa-2023/Python-Code-Large/train/row_2861
51
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2861:Assign_L18_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.1698, 0.0094, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2861:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2861:Assign_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2861:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2861:FunctionDef_L48_C2"}, {"f": "ajibawa-2023/Python-Code-La...
#!/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_2863
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_2863: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2863:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2863:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2863:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2863:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query with ranked results against the shopping search API""" from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """Get and prin...
ajibawa-2023/Python-Code-Large/train/row_2865
21
54
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2865:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1111, 0.0185, 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_2865:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2865:Expr_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2865:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2865:Assign_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Full text search query against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """...
ajibawa-2023/Python-Code-Large/train/row_2867
14
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_2867:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.15, 0.025, 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_2867:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2867:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2867:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2867:Assign_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Basic query against the public shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """Get ...
ajibawa-2023/Python-Code-Large/train/row_2868
14
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_2868:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1875, 0.0312, 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_2868:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2868:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2868:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2868:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query that is restricted by a parameter against the public shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfI...
ajibawa-2023/Python-Code-Large/train/row_2869
14
44
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2869:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 7], "level": 0, "parent": null, "vector": [8, 0, 0.1477, 0.0455, 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_2869:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2869:Expr_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2869:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2869:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query with ranked results against the shopping search API""" from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """Get and prin...
ajibawa-2023/Python-Code-Large/train/row_2870
21
54
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2870:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1111, 0.0185, 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_2870:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2870:Expr_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2870:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2870:Assign_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query with grouping against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """Get...
ajibawa-2023/Python-Code-Large/train/row_2871
14
48
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2871:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.125, 0.0208, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2871:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2871:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2871:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2871:Assign_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Queries with paginated results against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(...
ajibawa-2023/Python-Code-Large/train/row_2872
21
47
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2872:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1277, 0.0213, 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_2872:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2872:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2872:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2872:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Full text search query against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """...
ajibawa-2023/Python-Code-Large/train/row_2873
14
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_2873:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.15, 0.025, 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_2873:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2873:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2873:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2873:Assign_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query with ranked results against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): ...
ajibawa-2023/Python-Code-Large/train/row_2875
14
46
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2875:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1304, 0.0217, 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_2875:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2875:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2875:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2875:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Basic query against the public shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """Get ...
ajibawa-2023/Python-Code-Large/train/row_2876
14
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_2876:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1875, 0.0312, 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_2876:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2876:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2876:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2876:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query that is restricted by a parameter against the public shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfI...
ajibawa-2023/Python-Code-Large/train/row_2877
14
44
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2877:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 7], "level": 0, "parent": null, "vector": [8, 0, 0.1477, 0.0455, 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_2877:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2877:Expr_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2877:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2877:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Queries with paginated results against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(...
ajibawa-2023/Python-Code-Large/train/row_2878
21
47
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2878:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1277, 0.0213, 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_2878:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2878:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2878:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2878:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query with grouping against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """Get...
ajibawa-2023/Python-Code-Large/train/row_2879
14
48
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2879:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.125, 0.0208, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2879:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2879:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2879:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2879:Assign_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query with ranked results against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): ...
ajibawa-2023/Python-Code-Large/train/row_2880
14
46
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2880:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1304, 0.0217, 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_2880:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2880:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2880:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2880:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/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 o...
ajibawa-2023/Python-Code-Large/train/row_2881
47
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_2881:Assign_L18_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.1837, 0.0102, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2881:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2881:FunctionDef_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2881:FunctionDef_L37_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_2881:Assign_L38_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/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_2882
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_2882: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2882:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2882:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2882:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2882:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train...
#!/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 o...
ajibawa-2023/Python-Code-Large/train/row_2883
47
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_2883:Assign_L18_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.1837, 0.0102, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2883:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2883:FunctionDef_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2883:FunctionDef_L37_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_2883:Assign_L38_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/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_2885
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_2885: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2885:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2885:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2885:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2885:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train...
#!/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 o...
ajibawa-2023/Python-Code-Large/train/row_2889
49
109
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2889:Assign_L18_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.1651, 0.0092, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2889:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2889:Assign_L40_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2889:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2889:FunctionDef_L46_C2"}, {"f": "ajibawa-2023/Python-Code-La...
#!/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_2890
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_2890: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2890:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2890:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2890:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2890:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train...
#!/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 o...
ajibawa-2023/Python-Code-Large/train/row_2891
49
109
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2891:Assign_L18_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.1651, 0.0092, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2891:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2891:Assign_L40_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2891:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2891:FunctionDef_L46_C2"}, {"f": "ajibawa-2023/Python-Code-La...
#!/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_2893
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_2893: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": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2893:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2893:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2893:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2893:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train...
#!/usr/bin/python2.4 # # -*- coding: utf-8 -*- # # Copyright 2011 Google Inc. All Rights Reserved. """Simple command-line example for Google Prediction API. Command-line application that trains on some data. This sample does the same thing as the Hello Prediction! example. http://code.google.com/apis/predict/docs/...
ajibawa-2023/Python-Code-Large/train/row_2895
36
79
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2895:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 13], "level": 0, "parent": null, "vector": [8, 0, 0.1266, 0.0886, 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_2895:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2895:Assign_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2895:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2895:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python2.4 # # -*- coding: utf-8 -*- # # Copyright 2011 Google Inc. All Rights Reserved. """Simple command-line example for Google Prediction API. Command-line application that trains on some data. This sample does the same thing as the Hello Prediction! example. http://code.google.com/apis/predict/docs/...
ajibawa-2023/Python-Code-Large/train/row_2896
36
79
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2896:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 13], "level": 0, "parent": null, "vector": [8, 0, 0.1266, 0.0886, 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_2896:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2896:Assign_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2896:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2896:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code-L...
import pickle import base64 from django.contrib import admin from django.contrib.auth.models import User from django.db import models from oauth2client.django_orm import FlowField from oauth2client.django_orm import CredentialsField # The Flow could also be stored in memcache since it is short lived. class FlowMod...
ajibawa-2023/Python-Code-Large/train/row_2897
17
33
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2897:Import_L1_C0", "label": "pickle import pickle", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0303, 0.0303, 0, 0.66, 0.0, 848, 0, 1, 0, 0, 848, 0, 0], "semantic": {"name": "pickle", "arg_names": [], "import_names": ["pickle"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2897:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2897:Assign_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2897:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2897:Assign_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" This file demonstrates two different styles of tests (one doctest and one unittest). These will both pass when you run "manage.py test". Replace these with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): ""...
ajibawa-2023/Python-Code-Large/train/row_2898
7
24
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2898:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1458, 0.25, 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_2898:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2898:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2898:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2898:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-L...
import os import logging import httplib2 from django.http import HttpResponse from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_required from oauth2client.django_orm import Storage from oauth2client.client import OAuth2WebServerFlow from django_sample.buzz.models import Cre...
ajibawa-2023/Python-Code-Large/train/row_2899
38
61
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2899:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0164, 0.0164, 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_2899:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2899:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2899:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2899:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/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. You'll have to run...
ajibawa-2023/Python-Code-Large/train/row_2900
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_2900:ImportFrom_L2_C0", "label": "from django.core.management import execute_manager", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1333, 0.0667, 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_2900:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2900:Import_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2900:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2900:Import_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2900:...
#!/usr/bin/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. You'll have to run...
ajibawa-2023/Python-Code-Large/train/row_2901
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_2901:ImportFrom_L2_C0", "label": "from django.core.management import execute_manager", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1333, 0.0667, 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_2901:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2901:Import_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2901:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2901:Import_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2901:...
import os from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Example: (r'^$', 'django_sample.buzz.views.index'), (r'^auth_return', 'django_sample.buzz.views.auth_return'), # Unc...
ajibawa-2023/Python-Code-Large/train/row_2902
5
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_2902:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.04, 0.04, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", "an...
[]
# Django settings for django_sample project. import os DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = 'database.sqlite3' DATABASE_USER = '' DATABASE_PASSWORD = '' DATABASE_HOST = '' DATABASE_PORT = '' # Lo...
ajibawa-2023/Python-Code-Large/train/row_2903
24
84
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2903:Import_L2_C0", "label": "os import os", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0238, 0.0119, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "",...
[]
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Simple command-line example for Custom Search. Command-line application that does a search. """ __author__ = 'jcgregorio@google.com (Joe Gregorio)' from apiclient.discovery import build import pprint # Uncomment th...
ajibawa-2023/Python-Code-Large/train/row_2904
10
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2904:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 9], "level": 0, "parent": null, "vector": [8, 0, 0.2419, 0.129, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2904:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2904:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2904:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2904:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Simple command-line example for Custom Search. Command-line application that does a search. """ __author__ = 'jcgregorio@google.com (Joe Gregorio)' from apiclient.discovery import build import pprint # Uncomment th...
ajibawa-2023/Python-Code-Large/train/row_2905
10
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2905:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 9], "level": 0, "parent": null, "vector": [8, 0, 0.2419, 0.129, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2905:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2905:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2905:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2905:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-L...
''' Created on 29/03/2011 @author: Eran_Z Searching ''' from math import log import random import sys import google_m def __search(searchStr): """Searches given search string on the web. Returns number of hits.""" temp = int(sys.maxint*random.random()) print searchStr + " : " + str(...
ajibawa-2023/Python-Code-Large/train/row_2910
42
68
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2910:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0588, 0.1029, 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_2910:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2910:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2910:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2910:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
''' Created on 27/03/2011 @author: Eran_Z Feasibility study (main) ''' import weights_m import scores_m import io_m def generateWeights(algorithm, context, world): """Generates a list of weights for the context items. This is a list of numbers (preferrably positive)""" return algorithm(co...
ajibawa-2023/Python-Code-Large/train/row_2911
22
60
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2911:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0667, 0.1167, 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_2911:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2911:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2911:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2911:Return_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python """ generatepot.py script. This script generates the imdbpy.pot file, from the DTD. Copyright 2009 H. Turgut Uyar <uyar@tekir.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundati...
ajibawa-2023/Python-Code-Large/train/row_2913
3
5
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2913:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": "", "anno...
[]
#!/usr/bin/env python """ generatepot.py script. This script generates the imdbpy.pot file, from the DTD. Copyright 2009 H. Turgut Uyar <uyar@tekir.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundati...
ajibawa-2023/Python-Code-Large/train/row_2914
3
5
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2914:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": "", "anno...
[]
#!/usr/bin/env python """ rebuildmo.py script. This script builds the .mo files, from the .po files. Copyright 2009 H. Turgut Uyar <uyar@tekir.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; e...
ajibawa-2023/Python-Code-Large/train/row_2915
21
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_2915:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 22], "level": 0, "parent": null, "vector": [8, 0, 0.2449, 0.4286, 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_2915:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2915:Assign_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2915:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2915:Assign_L32_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python """ rebuildmo.py script. This script builds the .mo files, from the .po files. Copyright 2009 H. Turgut Uyar <uyar@tekir.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; e...
ajibawa-2023/Python-Code-Large/train/row_2916
21
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_2916:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 22], "level": 0, "parent": null, "vector": [8, 0, 0.2449, 0.4286, 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_2916:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2916:Assign_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2916:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2916:Assign_L32_C4"}, {"f": "ajibawa-2023/Python-Code-L...
""" locale package (imdb package). This package provides scripts and files for internationalization of IMDbPY. Copyright 2009 H. Turgut Uyar <uyar@tekir.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Fou...
ajibawa-2023/Python-Code-Large/train/row_2917
5
29
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2917:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.3966, 0.7586, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
""" Movie module (imdb package). This module provides the Movie class, used to store information about a given movie. Copyright 2004-2010 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the F...
ajibawa-2023/Python-Code-Large/train/row_2918
183
398
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2918:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.0289, 0.0553, 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_2918:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2918:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2918:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2918:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" Person module (imdb package). This module provides the Person class, used to store information about a given person. Copyright 2004-2010 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by th...
ajibawa-2023/Python-Code-Large/train/row_2919
121
275
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2919:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.0418, 0.08, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2919:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2919:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2919:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2919:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" Character module (imdb package). This module provides the Character class, used to store information about a given character. Copyright 2007-2010 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publis...
ajibawa-2023/Python-Code-Large/train/row_2920
98
197
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2920:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.0584, 0.1117, 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_2920:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2920:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2920:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2920:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#-*- encoding: utf-8 -*- """ parser.sql.dbschema module (imdb.parser.sql package). This module provides the schema used to describe the layout of the database used by the imdb.parser.sql package; functions to create/drop tables and indexes are also provided. Copyright 2005-2010 Davide Alberani <da@erlug.linux.it> ...
ajibawa-2023/Python-Code-Large/train/row_2922
99
461
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2922:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 25], "level": 0, "parent": null, "vector": [8, 0, 0.0293, 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_2922:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2922:Expr_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2922:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2922:FunctionDef_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
""" parser.http.movieParser module (imdb package). This module provides the classes (and the instances), used to parse the IMDb pages on the akas.imdb.com server about a movie. E.g., for Brian De Palma's "The Untouchables", the referred pages would be: combined details: http://akas.imdb.com/title/tt0094226/combi...
ajibawa-2023/Python-Code-Large/train/row_2925
711
1,965
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2925:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 28], "level": 0, "parent": null, "vector": [8, 0, 0.0074, 0.0142, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2925:FunctionDef_L95_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2925:Expr_L96_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2925:FunctionDef_L95_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2925:Assign_L98_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
""" parser.http.personParser module (imdb package). This module provides the classes (and the instances), used to parse the IMDb pages on the akas.imdb.com server about a person. E.g., for "Mel Gibson" the referred pages would be: categorized: http://akas.imdb.com/name/nm0000154/maindetails biography: ...
ajibawa-2023/Python-Code-Large/train/row_2926
139
559
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2926:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 27], "level": 0, "parent": null, "vector": [8, 0, 0.025, 0.0483, 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_2926:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2926:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2926:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2926:Assign_L43_C4"}, {"f": "ajibawa-2023/Python-Code-L...
""" parser.http.searchMovieParser module (imdb package). This module provides the HTMLSearchMovieParser class (and the search_movie_parser instance), used to parse the results of a search for a given title. E.g., for when searching for the title "the passion", the parsed page would be: http://akas.imdb.com/find?q=...
ajibawa-2023/Python-Code-Large/train/row_2927
82
178
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2927:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 27], "level": 0, "parent": null, "vector": [8, 0, 0.0787, 0.1517, 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_2927:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2927:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2927:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2927:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" parser.http.topBottomParser module (imdb package). This module provides the classes (and the instances), used to parse the lists of top 250 and bottom 100 movies. E.g.: http://akas.imdb.com/chart/top http://akas.imdb.com/chart/bottom Copyright 2009 Davide Alberani <da@erlug.linux.it> This program is free...
ajibawa-2023/Python-Code-Large/train/row_2928
40
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2928:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 25], "level": 0, "parent": null, "vector": [8, 0, 0.1226, 0.2358, 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_2928:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2928:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2928:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2928:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" parser.http.searchKeywordParser module (imdb package). This module provides the HTMLSearchKeywordParser class (and the search_company_parser instance), used to parse the results of a search for a given keyword. E.g., when searching for the keyword "alabama", the parsed page would be: http://akas.imdb.com/find?...
ajibawa-2023/Python-Code-Large/train/row_2929
33
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_2929:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 25], "level": 0, "parent": null, "vector": [8, 0, 0.1171, 0.2252, 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_2929:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2929:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2929:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2929:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" parser.http.searchCompanyParser module (imdb package). This module provides the HTMLSearchCompanyParser class (and the search_company_parser instance), used to parse the results of a search for a given company. E.g., when searching for the name "Columbia Pictures", the parsed page would be: http://akas.imdb.co...
ajibawa-2023/Python-Code-Large/train/row_2930
15
71
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2930:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1901, 0.3662, 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_2930:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2930:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2930:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2930:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" parser.http.searchPersonParser module (imdb package). This module provides the HTMLSearchPersonParser class (and the search_person_parser instance), used to parse the results of a search for a given person. E.g., when searching for the name "Mel Gibson", the parsed page would be: http://akas.imdb.com/find?q=Me...
ajibawa-2023/Python-Code-Large/train/row_2931
28
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_2931:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1467, 0.2826, 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_2931:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2931:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2931:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2931:If_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" parser.http.bsouplxml.etree module (imdb.parser.http package). This module adapts the beautifulsoup interface to lxml.etree module. Copyright 2008 H. Turgut Uyar <uyar@tekir.org> 2008 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the t...
ajibawa-2023/Python-Code-Large/train/row_2934
30
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_2934:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.1533, 0.2933, 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_2934:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2934:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2934:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2934:Return_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
""" parser.http.bsoupxpath module (imdb.parser.http package). This module provides XPath support for BeautifulSoup. Copyright 2008 H. Turgut Uyar <uyar@tekir.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Softwar...
ajibawa-2023/Python-Code-Large/train/row_2935
262
394
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2935:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 21], "level": 0, "parent": null, "vector": [8, 0, 0.0279, 0.0533, 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_2935:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2935:Expr_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2935:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2935:Assign_L56_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
""" parser.http.bsouplxml.html module (imdb.parser.http package). This module adapts the beautifulsoup interface to lxml.html module. Copyright 2008 H. Turgut Uyar <uyar@tekir.org> 2008 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the ter...
ajibawa-2023/Python-Code-Large/train/row_2936
5
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2936:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.371, 0.7097, 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_2936:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2936:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2936:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2936:Return_L29_C4"}]
""" parser.http.companyParser module (imdb package). This module provides the classes (and the instances), used to parse the IMDb pages on the akas.imdb.com server about a company. E.g., for "Columbia Pictures [us]" the referred page would be: main details: http://akas.imdb.com/company/co0071509/ Copyright 2008...
ajibawa-2023/Python-Code-Large/train/row_2938
18
91
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2938:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 25], "level": 0, "parent": null, "vector": [8, 0, 0.1429, 0.2747, 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_2938:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2938:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2938:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2938:Assign_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" parser.http.characterParser module (imdb package). This module provides the classes (and the instances), used to parse the IMDb pages on the akas.imdb.com server about a character. E.g., for "Jesse James" the referred pages would be: main details: http://www.imdb.com/character/ch0000001/ biography: ...
ajibawa-2023/Python-Code-Large/train/row_2939
35
203
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2939:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 27], "level": 0, "parent": null, "vector": [8, 0, 0.069, 0.133, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2939:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2939:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2939:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2939:Assign_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" parser.http.searchCharacterParser module (imdb package). This module provides the HTMLSearchCharacterParser class (and the search_character_parser instance), used to parse the results of a search for a given character. E.g., when searching for the name "Jesse James", the parsed page would be: http://akas.imdb....
ajibawa-2023/Python-Code-Large/train/row_2940
15
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2940:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1957, 0.3768, 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_2940:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2940:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2940:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2940:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" parser package (imdb package). This package provides various parsers to access IMDb data (e.g.: a parser for the web/http interface, a parser for the SQL database interface, etc.). So far, the http/httpThin, mobile and sql parsers are implemented. Copyright 2004-2009 Davide Alberani <da@erlug.linux.it> This prog...
ajibawa-2023/Python-Code-Large/train/row_2942
2
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_2942:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 24], "level": 0, "parent": null, "vector": [8, 0, 0.4464, 0.8571, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]