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
""" This module defines functions to implement HTTP Digest Authentication (:rfc:`2617`). This has full compliance with 'Digest' and 'Basic' authentication methods. In 'Digest' it supports both MD5 and MD5-sess algorithms. Usage: First use 'doAuth' to request the client authentication for a certain resource. Yo...
ajibawa-2023/Python-Code-Large/train/row_86940
113
354
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86940:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 20], "level": 0, "parent": null, "vector": [8, 0, 0.0297, 0.0565, 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_86940:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86940:Expr_L83_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86940:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86940:Try_L89_C4"}, {"f": "ajibawa-2023/Python-Code-La...
# This file is part of CherryPy <http://www.cherrypy.org/> # -*- coding: utf-8 -*- # vim:ts=4:sw=4:expandtab:fileencoding=utf-8 __doc__ = """This module provides a CherryPy 3.x tool which implements the server-side of HTTP Basic Access Authentication, as described in :rfc:`2617`. Example usage, using the built-in che...
ajibawa-2023/Python-Code-Large/train/row_86941
28
87
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86941:Assign_L5_C0", "label": "__doc__ =", "type": "assigned_variable", "loc": [5, 19], "level": 0, "parent": null, "vector": [14, 0, 0.1379, 0.1724, 0, 0.66, 0.0, 155, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__doc__", "arg_names": [], "import_names": [], "rhs_call_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_86941:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86941:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86941:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86941:FunctionDef_L37_C4"}, {"f": "ajibawa-2023/Python...
"""CherryPy Library""" # Deprecated in CherryPy 3.2 -- remove in CherryPy 3.3 from cherrypy.lib.reprconf import unrepr, modules, attributes class file_generator(object): """Yield the given input (a file object) in chunks (default 64k). (Core)""" def __init__(self, input, chunkSize=65536): self.in...
ajibawa-2023/Python-Code-Large/train/row_86942
32
45
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86942:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0222, 0.0222, 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_86942:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86942:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86942:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86942:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
"""CPStats, a package for collecting and reporting on program statistics. Overview ======== Statistics about program operation are an invaluable monitoring and debugging tool. Unfortunately, the gathering and reporting of these critical values is usually ad-hoc. This package aims to add a centralized place for gather...
ajibawa-2023/Python-Code-Large/train/row_86943
232
662
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86943:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 183], "level": 0, "parent": null, "vector": [8, 0, 0.139, 0.2764, 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_86943:If_L188_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86943:Assign_L188_C39"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86943:FunctionDef_L190_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86943:Expr_L191_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""Code-coverage tools for CherryPy. To use this module, or the coverage tools in the test suite, you need to download 'coverage.py', either Gareth Rees' `original implementation <http://www.garethrees.org/2001/12/04/python-coverage/>`_ or Ned Batchelder's `enhanced version: <http://www.nedbatchelder.com/code/modules...
ajibawa-2023/Python-Code-Large/train/row_86944
155
365
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86944:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 21], "level": 0, "parent": null, "vector": [8, 0, 0.0301, 0.0575, 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_86944:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86944:ImportFrom_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86944:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86944:Assign_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" CherryPy implements a simple caching system as a pluggable Tool. This tool tries to be an (in-process) HTTP/1.1-compliant cache. It's not quite there yet, but it's probably good enough for most sites. In general, GET responses are cached (along with selecting headers) and, if another request arrives for the same r...
ajibawa-2023/Python-Code-Large/train/row_86945
234
465
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86945:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 33], "level": 0, "parent": null, "vector": [8, 0, 0.0366, 0.071, 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_86945:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86945:Expr_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86945:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86945:FunctionDef_L48_C4"}, {"f": "ajibawa-2023/Python-Code-...
import sys import cherrypy from cherrypy._cpcompat import ntob def get_xmlrpclib(): try: import xmlrpc.client as x except ImportError: import xmlrpclib as x return x def process_body(): """Return (params, method) from request body.""" try: return get_xmlrpclib().loads(cher...
ajibawa-2023/Python-Code-Large/train/row_86946
34
55
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86946:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0182, 0.0182, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_86946:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86946:Try_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86946:Try_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_86946:Import_L8_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
"""Wrapper for mod_wsgi, for use as a CherryPy HTTP server. To autostart modwsgi, the "apache" executable or script must be on your system path, or you must override the global APACHE_PATH. On some platforms, "apache" may be called "apachectl" or "apache2ctl"-- create a symlink to them if needed. KNOWN BUGS ========...
ajibawa-2023/Python-Code-Large/train/row_86947
56
148
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86947:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 33], "level": 0, "parent": null, "vector": [8, 0, 0.1149, 0.223, 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_86947:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86947:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86947:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86947:Try_L47_C4"}, {"f": "ajibawa-2023/Python-Code-...
"""CherryPy Benchmark Tool Usage: benchmark.py --null --notests --help --cpmodpy --modpython --ab=path --apache=path --null: use a null Request object (to bench the HTTP server only) --notests: start the server but do not run the tests; this allows you to check th...
ajibawa-2023/Python-Code-Large/train/row_86948
185
409
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86948:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.0281, 0.0538, 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_86948:ClassDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86948:FunctionDef_L52_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86948:FunctionDef_L52_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_86948:Return_L53_C8"}, {"f": "ajibawa-2023/Python-...
"""Demonstration app for cherrypy.checker. This application is intentionally broken and badly designed. To demonstrate the output of the CherryPy Checker, simply execute this module. """ import os import cherrypy thisdir = os.path.dirname(os.path.abspath(__file__)) class Root: pass if __name__ == '__main__': ...
ajibawa-2023/Python-Code-Large/train/row_86949
8
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_86949:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0745, 0.1277, 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_86949:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86949:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86949:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86949:Expr_L47_C4"}]
"""Test module for the @-decorator syntax, which is version-specific""" from cherrypy import expose, tools from cherrypy._cpcompat import ntob class ExposeExamples(object): @expose def no_call(self): return "Mr E. R. Bradshaw" @expose() def call_empty(self): return "Mrs. B.J...
ajibawa-2023/Python-Code-Large/train/row_86950
18
41
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86950:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0244, 0.0244, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_86950:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86950:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86950:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_86950:Return_L11_C8"}, {"f": "ajibawa-2023/Python-C...
import os import sys import time starttime = time.time() import cherrypy class Root: def index(self): return "Hello World" index.exposed = True def mtimes(self): return repr(cherrypy.engine.publish("Autoreloader", "mtimes")) mtimes.exposed = True def pid(self): ...
ajibawa-2023/Python-Code-Large/train/row_86951
44
66
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86951:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0152, 0.0152, 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_86951:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86951:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86951:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_86951:Return_L12_C8"}, {"f": "ajibawa-2023/Python-C...
"""logtest, a unittest.TestCase helper for testing log output.""" import sys import time import cherrypy from cherrypy._cpcompat import basestring, ntob, unicodestr try: # On Windows, msvcrt.getch reads a single char without output. import msvcrt def getchar(): return msvcrt.getch() except Impor...
ajibawa-2023/Python-Code-Large/train/row_86952
116
188
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86952:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0053, 0.0053, 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_86952:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86952:Import_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86952:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86952:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
"""Wrapper for mod_fastcgi, for use as a CherryPy HTTP server when testing. To autostart fastcgi, the "apache" executable or script must be on your system path, or you must override the global APACHE_PATH. On some platforms, "apache" may be called "apachectl", "apache2ctl", or "httpd"--create a symlink to them if need...
ajibawa-2023/Python-Code-Large/train/row_86953
57
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_86953:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 34], "level": 0, "parent": null, "vector": [8, 0, 0.1296, 0.2519, 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_86953:FunctionDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86953:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86953:FunctionDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86953:Try_L49_C4"}, {"f": "ajibawa-2023/Python-Code-...
"""A library of helper functions for the CherryPy test suite.""" import datetime import logging log = logging.getLogger(__name__) import os thisdir = os.path.abspath(os.path.dirname(__file__)) serverpem = os.path.join(os.getcwd(), thisdir, 'test.pem') import re import sys import time import warnings import cherrypy ...
ajibawa-2023/Python-Code-Large/train/row_86954
290
493
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86954:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.002, 0.002, 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_86954:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86954:If_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86954:If_L28_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_86954:Assign_L29_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
"""Regression test suite for CherryPy. Run 'nosetests -s test/' to exercise all tests. The '-s' flag instructs nose to output stdout messages, wihch is crucial to the 'interactive' mode of webtest.py. If you run these tests without the '-s' flag, don't be surprised if the test seems to hang: it's waiting for your int...
ajibawa-2023/Python-Code-Large/train/row_86955
12
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86955:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 9], "level": 0, "parent": null, "vector": [8, 0, 0.1852, 0.3333, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_86955:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86955:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86955:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86955:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code...
"""Wrapper for mod_python, for use as a CherryPy HTTP server when testing. To autostart modpython, the "apache" executable or script must be on your system path, or you must override the global APACHE_PATH. On some platforms, "apache" may be called "apachectl" or "apache2ctl"-- create a symlink to them if needed. If ...
ajibawa-2023/Python-Code-Large/train/row_86956
60
163
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86956:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 35], "level": 0, "parent": null, "vector": [8, 0, 0.1104, 0.2147, 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_86956:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86956:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86956:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86956:Try_L47_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python """A session demonstration app.""" import calendar from datetime import datetime import sys import cherrypy from cherrypy.lib import sessions from cherrypy._cpcompat import copyitems page = """ <html> <head> <style type='text/css'> table { border-collapse: collapse; border: 1px solid #663333; } th ...
ajibawa-2023/Python-Code-Large/train/row_86957
38
153
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86957:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 2], "level": 0, "parent": null, "vector": [8, 0, 0.0131, 0.0065, 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_86957:ClassDef_L98_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86957:FunctionDef_L100_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86957:FunctionDef_L100_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_86957:Assign_L101_C8"}, {"f": "ajibawa-2023/Pyth...
"""Extensions to unittest for web frameworks. Use the WebCase.getPage method to request a page from your HTTP server. Framework Integration ===================== If you have control over your server process, you can handle errors in the server-side of the HTTP conversation a bit better. You must run both the client ...
ajibawa-2023/Python-Code-Large/train/row_86958
372
575
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86958:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0157, 0.0296, 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_86958:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86958:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86958:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86958:If_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""Wrapper for mod_fcgid, for use as a CherryPy HTTP server when testing. To autostart fcgid, the "apache" executable or script must be on your system path, or you must override the global APACHE_PATH. On some platforms, "apache" may be called "apachectl", "apache2ctl", or "httpd"--create a symlink to them if needed. ...
ajibawa-2023/Python-Code-Large/train/row_86959
52
125
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86959:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 34], "level": 0, "parent": null, "vector": [8, 0, 0.14, 0.272, 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_86959:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86959:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86959:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86959:Try_L50_C4"}, {"f": "ajibawa-2023/Python-Code-...
# -*- coding: utf-8 -*- """ webapp2_extras.sessions_ndb =========================== Extended sessions stored in datastore using the ndb library. App Engine-specific modules were moved to webapp2_extras.appengine. This module is here for compatibility purposes. :copyright: 2011 by tipfy.org. ...
ajibawa-2023/Python-Code-Large/train/row_86961
4
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86961:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 13], "level": 0, "parent": null, "vector": [8, 0, 0.375, 0.6, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[]
# -*- coding: utf-8 -*- """ webapp2_extras.users ==================== Helpers for google.appengine.api.users. App Engine-specific modules were moved to webapp2_extras.appengine. This module is here for compatibility purposes. :copyright: 2011 tipfy.org. :license: Apache Sotware License, s...
ajibawa-2023/Python-Code-Large/train/row_86962
4
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86962:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 13], "level": 0, "parent": null, "vector": [8, 0, 0.375, 0.6, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[]
# -*- coding: utf-8 -*- """ webapp2_extras.auth =================== Utilities for authentication and authorization. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ import logging import time import webapp2 from webapp2_extras import security from web...
ajibawa-2023/Python-Code-Large/train/row_86963
217
644
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86963:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0093, 0.014, 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_86963:ClassDef_L66_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86963:Expr_L67_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86963:ClassDef_L70_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86963:Expr_L71_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# -*- coding: utf-8 -*- """ webapp2_extras.routes ===================== Extra route classes for webapp2. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ import re import urllib from webob import exc import webapp2 class MultiRoute(object): """B...
ajibawa-2023/Python-Code-Large/train/row_86964
132
353
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86964:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.017, 0.0255, 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_86964:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86964:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86964:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86964:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- """ webapp2_extras.protorpc ======================= Support for Google ProtoRPC library in webapp2. Ported from protorpc.service_handlers. See: http://code.google.com/p/google-protorpc/ .. warning:: This is an experimental package, as the ProtoRPC API is not st...
ajibawa-2023/Python-Code-Large/train/row_86965
72
215
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86965:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0465, 0.0791, 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_86965:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86965:FunctionDef_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86965:FunctionDef_L31_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_86965:Assign_L33_C8"}, {"f": "ajibawa-2023/Python-...
# -*- coding: utf-8 -*- """ webapp2_extras.json =================== JSON helpers for webapp2. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ from __future__ import absolute_import import base64 import urllib try: # Preference for installed libra...
ajibawa-2023/Python-Code-Large/train/row_86966
29
108
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86966:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0556, 0.0833, 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_86966:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86966:Import_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86966:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86966:Try_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# -*- coding: utf-8 -*- """ webapp2_extras.sessions ======================= Lightweight but flexible session support for webapp2. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ import re import webapp2 from webapp2_extras import securecookie from we...
ajibawa-2023/Python-Code-Large/train/row_86968
148
476
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86968:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0126, 0.0189, 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_86968:ClassDef_L80_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86968:Expr_L81_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86968:ClassDef_L80_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86968:Assign_L86_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- """ webapp2_extras.local_app ~~~~~~~~~~~~~~~~~~~~~~~~ This module is deprecated. The functionality is now available directly in webapp2. Previously it implemented a WSGIApplication adapted for threaded environments. :copyright: 2011 by tipfy.org. :license: Apac...
ajibawa-2023/Python-Code-Large/train/row_86969
5
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_86969:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 14], "level": 0, "parent": null, "vector": [8, 0, 0.3333, 0.5417, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[]
# -*- coding: utf-8 -*- """ webapp2_extras.local ~~~~~~~~~~~~~~~~~~~~ This module implements thread-local utilities. This implementation comes from werkzeug.local. :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ try: ...
ajibawa-2023/Python-Code-Large/train/row_86970
134
231
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86970:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0303, 0.0476, 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_86970:Try_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86970:ImportFrom_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86970:Try_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86970:Try_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
# -*- coding: utf-8 -*- """ webapp2_extras.config ===================== Configuration object for webapp2. This module is deprecated. See :class:`webapp2.WSGIApplication.config`. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ from __future__ impor...
ajibawa-2023/Python-Code-Large/train/row_86971
71
228
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86971:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0307, 0.0482, 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_86971:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86971:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86971:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86971:Assign_L63_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- """ webapp2_extras.appengine.sessions_ndb ===================================== Extended sessions stored in datastore using the ndb library. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ from __future__ import absolute_import ...
ajibawa-2023/Python-Code-Large/train/row_86972
61
130
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86972:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0462, 0.0692, 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_86972:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86972:Assign_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86972:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86972:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: utf-8 -*- """ webapp2_extras.appengine.users ============================== Helpers for google.appengine.api.users. :copyright: 2011 tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ from google.appengine.api import users def login_required(handler_method): ...
ajibawa-2023/Python-Code-Large/train/row_86973
24
70
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86973:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0857, 0.1286, 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_86973:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86973:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86973:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86973:FunctionDef_L28_C4"}, {"f": "ajibawa-2023/Python...
# -*- coding: utf-8 -*- """ webapp2_extras.appengine.auth.models ==================================== Auth related models. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ import time from ndb import model from webapp2_extras import auth from webapp2_...
ajibawa-2023/Python-Code-Large/train/row_86974
112
390
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86974:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0154, 0.0231, 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_86974:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86974:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86974:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86974:FunctionDef_L65_C4"}, {"f": "ajibawa-2023/Python-Code-...
# -*- coding: utf-8 -*- """ webapp2_extras.appengine.auth ============================= Authentication and authorization utilities. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """
ajibawa-2023/Python-Code-Large/train/row_86975
1
10
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86975:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.6, 0.9, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[]
# -*- coding: utf-8 -*- """ webapp2_extras.appengine ======================== App Engine-specific modules. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """
ajibawa-2023/Python-Code-Large/train/row_86976
1
10
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86976:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.6, 0.9, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[]
# -*- coding: utf-8 -*- """ webapp2_extras.appengine.sessions_memcache ========================================== Extended sessions stored in memcache. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ from google.appengine.api import memcache from weba...
ajibawa-2023/Python-Code-Large/train/row_86977
19
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_86977:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1176, 0.1765, 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_86977:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86977:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86977:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86977:FunctionDef_L34_C4"}, {"f": "ajibawa-2023/Python-Code-...
# -*- coding: utf-8 -*- """ webapp2_extras.mako =================== Mako template support for webapp2. Learn more about Mako: http://www.makotemplates.org/ :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ from __future__ import absolute_import fro...
ajibawa-2023/Python-Code-Large/train/row_86978
31
136
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86978:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0515, 0.0809, 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_86978:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86978:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86978:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86978:Assign_L58_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- """ webapp2_extras ============== Extra modules for webapp2. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """
ajibawa-2023/Python-Code-Large/train/row_86979
1
10
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86979:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.6, 0.9, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[]
# -*- coding: utf-8 -*- """ webapp2_extras.jinja2 ===================== Jinja2 template support for webapp2. Learn more about Jinja2: http://jinja.pocoo.org/ :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ from __future__ import absolute_import i...
ajibawa-2023/Python-Code-Large/train/row_86980
50
230
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86980:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0304, 0.0478, 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_86980:ClassDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86980:Expr_L61_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86980:ClassDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86980:Assign_L90_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- """ webapp2_extras.i18n =================== Internationalization support for webapp2. Several ideas borrowed from tipfy.i18n and Flask-Babel. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ import datetime import gettext as...
ajibawa-2023/Python-Code-Large/train/row_86981
267
915
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86981:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0077, 0.012, 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_86981:Try_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86981:Import_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86981:ClassDef_L90_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86981:Expr_L91_C4"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
# -*- coding: utf-8 -*- """ webapp2_extras.security ======================= Security related helpers such as secure password hashing tools and a random token generator. :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. :co...
ajibawa-2023/Python-Code-Large/train/row_86982
64
218
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86982:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 13], "level": 0, "parent": null, "vector": [8, 0, 0.0344, 0.055, 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_86982:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86982:Expr_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86982:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86982:Assign_L83_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- """ webapp2_extras.sessions_memcache ================================ Extended sessions stored in memcache. App Engine-specific modules were moved to webapp2_extras.appengine. This module is here for compatibility purposes. :copyright: 2011 by tipfy.org. :license: ...
ajibawa-2023/Python-Code-Large/train/row_86983
4
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86983:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 13], "level": 0, "parent": null, "vector": [8, 0, 0.375, 0.6, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[]
#!/usr/bin/python # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
ajibawa-2023/Python-Code-Large/train/row_86984
3
36
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86984:ImportFrom_L17_C0", "label": "from distutils.core import setup", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.4722, 0.0278, 0, 0.66, 0.0, 152, 0, 1, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": [], "imp...
[]
#!/usr/bin/python # # Copyright 2007 Google Inc. # Licensed to PSF under a Contributor Agreement. # # 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/LICE...
ajibawa-2023/Python-Code-Large/train/row_86985
716
1,896
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86985:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0108, 0.0032, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_86985:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86985:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86985:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86985:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# -*- coding: utf-8 -*- """ webapp2_extras.sessions_ndb =========================== Extended sessions stored in datastore using the ndb library. App Engine-specific modules were moved to webapp2_extras.appengine. This module is here for compatibility purposes. :copyright: 2011 by tipfy.org. ...
ajibawa-2023/Python-Code-Large/train/row_86987
4
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86987:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 13], "level": 0, "parent": null, "vector": [8, 0, 0.375, 0.6, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[]
# -*- coding: utf-8 -*- """ webapp2_extras.users ==================== Helpers for google.appengine.api.users. App Engine-specific modules were moved to webapp2_extras.appengine. This module is here for compatibility purposes. :copyright: 2011 tipfy.org. :license: Apache Sotware License, s...
ajibawa-2023/Python-Code-Large/train/row_86988
4
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86988:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 13], "level": 0, "parent": null, "vector": [8, 0, 0.375, 0.6, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[]
# -*- coding: utf-8 -*- """ webapp2_extras.auth =================== Utilities for authentication and authorization. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ import logging import time import webapp2 from webapp2_extras import security from web...
ajibawa-2023/Python-Code-Large/train/row_86989
217
644
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86989:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0093, 0.014, 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_86989:ClassDef_L66_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86989:Expr_L67_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86989:ClassDef_L70_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86989:Expr_L71_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# -*- coding: utf-8 -*- """ webapp2_extras.routes ===================== Extra route classes for webapp2. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ import re import urllib from webob import exc import webapp2 class MultiRoute(object): """B...
ajibawa-2023/Python-Code-Large/train/row_86990
132
353
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86990:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.017, 0.0255, 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_86990:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86990:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86990:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86990:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- """ webapp2_extras.json =================== JSON helpers for webapp2. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ from __future__ import absolute_import import base64 import urllib try: # Preference for installed libra...
ajibawa-2023/Python-Code-Large/train/row_86991
29
108
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86991:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0556, 0.0833, 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_86991:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86991:Import_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86991:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86991:Try_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# -*- coding: utf-8 -*- """ webapp2_extras.sessions ======================= Lightweight but flexible session support for webapp2. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ import re import webapp2 from webapp2_extras import securecookie from we...
ajibawa-2023/Python-Code-Large/train/row_86993
148
476
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86993:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0126, 0.0189, 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_86993:ClassDef_L80_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86993:Expr_L81_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86993:ClassDef_L80_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86993:Assign_L86_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- """ webapp2_extras.local_app ~~~~~~~~~~~~~~~~~~~~~~~~ This module is deprecated. The functionality is now available directly in webapp2. Previously it implemented a WSGIApplication adapted for threaded environments. :copyright: 2011 by tipfy.org. :license: Apac...
ajibawa-2023/Python-Code-Large/train/row_86994
5
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_86994:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 14], "level": 0, "parent": null, "vector": [8, 0, 0.3333, 0.5417, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[]
# -*- coding: utf-8 -*- """ webapp2_extras.local ~~~~~~~~~~~~~~~~~~~~ This module implements thread-local utilities. This implementation comes from werkzeug.local. :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ try: ...
ajibawa-2023/Python-Code-Large/train/row_86995
134
231
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86995:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0303, 0.0476, 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_86995:Try_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86995:ImportFrom_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86995:Try_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86995:Try_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
# -*- coding: utf-8 -*- """ webapp2_extras.config ===================== Configuration object for webapp2. This module is deprecated. See :class:`webapp2.WSGIApplication.config`. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ from __future__ impor...
ajibawa-2023/Python-Code-Large/train/row_86996
71
228
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86996:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0307, 0.0482, 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_86996:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86996:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86996:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86996:Assign_L63_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- """ webapp2_extras.appengine.sessions_ndb ===================================== Extended sessions stored in datastore using the ndb library. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ from __future__ import absolute_import ...
ajibawa-2023/Python-Code-Large/train/row_86997
56
117
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86997:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0513, 0.0769, 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_86997:Try_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86997:ImportFrom_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86997:Try_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86997:ImportFrom_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- """ webapp2_extras.appengine.users ============================== Helpers for google.appengine.api.users. :copyright: 2011 tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ from google.appengine.api import users def login_required(handler_method): ...
ajibawa-2023/Python-Code-Large/train/row_86998
24
70
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86998:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0857, 0.1286, 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_86998:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86998:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86998:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86998:FunctionDef_L28_C4"}, {"f": "ajibawa-2023/Python...
# -*- coding: utf-8 -*- """ webapp2_extras.appengine.auth.models ==================================== Auth related models. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ import time try: from ndb import model except ImportError: # pragma: no cove...
ajibawa-2023/Python-Code-Large/train/row_86999
123
416
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_86999:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0144, 0.0216, 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_86999:Try_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86999:ImportFrom_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_86999:Try_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_86999:ImportFrom_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- """ webapp2_extras.appengine.auth ============================= Authentication and authorization utilities. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """
ajibawa-2023/Python-Code-Large/train/row_87000
1
10
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87000:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.6, 0.9, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[]
# -*- coding: utf-8 -*- """ webapp2_extras.appengine ======================== App Engine-specific modules. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """
ajibawa-2023/Python-Code-Large/train/row_87001
1
10
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87001:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.6, 0.9, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[]
# -*- coding: utf-8 -*- """ webapp2_extras.appengine.sessions_memcache ========================================== Extended sessions stored in memcache. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ from google.appengine.api import memcache from weba...
ajibawa-2023/Python-Code-Large/train/row_87002
19
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_87002:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1176, 0.1765, 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_87002:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87002:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87002:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87002:FunctionDef_L34_C4"}, {"f": "ajibawa-2023/Python-Code-...
# -*- coding: utf-8 -*- """ webapp2_extras.mako =================== Mako template support for webapp2. Learn more about Mako: http://www.makotemplates.org/ :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ from __future__ import absolute_import fro...
ajibawa-2023/Python-Code-Large/train/row_87003
31
136
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87003:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0515, 0.0809, 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_87003:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87003:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87003:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87003:Assign_L58_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- """ webapp2_extras ============== Extra modules for webapp2. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """
ajibawa-2023/Python-Code-Large/train/row_87004
1
10
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87004:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.6, 0.9, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[]
# -*- coding: utf-8 -*- """ webapp2_extras.jinja2 ===================== Jinja2 template support for webapp2. Learn more about Jinja2: http://jinja.pocoo.org/ :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ from __future__ import absolute_import i...
ajibawa-2023/Python-Code-Large/train/row_87005
50
230
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87005:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0304, 0.0478, 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_87005:ClassDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87005:Expr_L61_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87005:ClassDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87005:Assign_L90_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- """ webapp2_extras.i18n =================== Internationalization support for webapp2. Several ideas borrowed from tipfy.i18n and Flask-Babel. :copyright: 2011 by tipfy.org. :license: Apache Sotware License, see LICENSE for details. """ import datetime import gettext as...
ajibawa-2023/Python-Code-Large/train/row_87006
267
915
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87006:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0077, 0.012, 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_87006:Try_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87006:Import_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87006:ClassDef_L90_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87006:Expr_L91_C4"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
# -*- coding: utf-8 -*- """ webapp2_extras.security ======================= Security related helpers such as secure password hashing tools and a random token generator. :copyright: (c) 2010 by the Werkzeug Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. :co...
ajibawa-2023/Python-Code-Large/train/row_87007
64
218
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87007:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 13], "level": 0, "parent": null, "vector": [8, 0, 0.0344, 0.055, 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_87007:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87007:Expr_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87007:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87007:Assign_L83_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- """ webapp2_extras.sessions_memcache ================================ Extended sessions stored in memcache. App Engine-specific modules were moved to webapp2_extras.appengine. This module is here for compatibility purposes. :copyright: 2011 by tipfy.org. :license: ...
ajibawa-2023/Python-Code-Large/train/row_87008
4
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87008:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 13], "level": 0, "parent": null, "vector": [8, 0, 0.375, 0.6, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[]
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Local Shared Object implementation. Local Shared Object (LSO), sometimes known as Adobe Flash cookies, is a cookie-like data entity used by the Adobe Flash Player and Gnash. The players allow web content to read and write LSO data to the computer's...
ajibawa-2023/Python-Code-Large/train/row_87009
87
201
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87009:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0473, 0.0597, 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_87009:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87009:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87009:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87009:If_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ AMF0 implementation. C{AMF0} supports the basic data types used for the NetConnection, NetStream, LocalConnection, SharedObjects and other classes in the Adobe Flash Player. @since: 0.1 @see: U{Official AMF0 Specification in English (external) ...
ajibawa-2023/Python-Code-Large/train/row_87010
355
749
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87010:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 17], "level": 0, "parent": null, "vector": [8, 0, 0.014, 0.0187, 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_87010:ClassDef_L93_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87010:Expr_L94_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87010:ClassDef_L93_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87010:FunctionDef_L97_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ AMF0 Remoting support. @since: 0.1.0 """ import traceback import sys from pyamf import remoting from pyamf.remoting import gateway class RequestProcessor(object): def __init__(self, gateway): self.gateway = gateway def authenti...
ajibawa-2023/Python-Code-Large/train/row_87011
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_87011:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0444, 0.037, 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_87011:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87011:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87011:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_87011:Assign_L19_C8"}, {"f": "ajibawa-2023/Python-...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ AMF3 RemoteObject support. @see: U{RemoteObject on LiveDocs <http://livedocs.adobe.com/flex/3/langref/mx/rpc/remoting/RemoteObject.html>} @since: 0.1.0 """ import calendar import time import uuid import sys import pyamf.python from pyamf import ...
ajibawa-2023/Python-Code-Large/train/row_87013
89
191
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87013:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 11], "level": 0, "parent": null, "vector": [8, 0, 0.0393, 0.0419, 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_87013:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87013:Expr_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87013:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87013:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ AMF Remoting support. A Remoting request from the client consists of a short preamble, headers, and bodies. The preamble contains basic information about the nature of the request. Headers can be used to request debugging information, send authenti...
ajibawa-2023/Python-Code-Large/train/row_87014
300
688
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87014:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 27], "level": 0, "parent": null, "vector": [8, 0, 0.0225, 0.0349, 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_87014:ClassDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87014:Expr_L63_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87014:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87014:Expr_L69_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Gateway for Google App Engine. This gateway allows you to expose functions in Google App Engine web applications to AMF clients and servers. @see: U{Google App Engine homepage <http://code.google.com/appengine/docs/python/overview.html>} @sinc...
ajibawa-2023/Python-Code-Large/train/row_87015
85
171
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87015:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 13], "level": 0, "parent": null, "vector": [8, 0, 0.0497, 0.0585, 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_87015:Try_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87015:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87015:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87015:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Gateway for the Django framework. This gateway allows you to expose functions in Django to AMF clients and servers. @see: U{Django homepage<http://djangoproject.com>} @since: 0.1.0 """ django = __import__('django.http') http = django.http conf = ...
ajibawa-2023/Python-Code-Large/train/row_87016
75
183
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87016:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0437, 0.0492, 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_87016:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87016:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87016:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87016:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Twisted server implementation. This gateway allows you to expose functions in Twisted to AMF clients and servers. @see: U{Twisted homepage<http://twistedmatrix.com>} @since: 0.1.0 """ import sys import os.path try: sys.path.remove('') except...
ajibawa-2023/Python-Code-Large/train/row_87017
203
417
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87017:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0192, 0.0216, 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_87017:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87017:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87017:Try_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87017:Expr_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_8...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Remoting server implementations. @since: 0.1.0 """ import sys import types import datetime import pyamf from pyamf import remoting, util, python try: from platform import python_implementation impl = python_implementation() except Import...
ajibawa-2023/Python-Code-Large/train/row_87018
256
598
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87018:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.01, 0.0084, 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_87018:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87018:ImportFrom_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87018:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87018:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ WSGI server implementation. The Python Web Server Gateway Interface (WSGI) is a simple and universal interface between web servers and web applications or frameworks. The WSGI interface has two sides: the "server" or "gateway" side, and the "appli...
ajibawa-2023/Python-Code-Large/train/row_87019
64
182
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87019:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0742, 0.1099, 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_87019:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87019:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87019:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87019:FunctionDef_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Flex Data Management Service implementation. This module contains the message classes used with Flex Data Management Service. @since: 0.1.0 """ import pyamf from pyamf.flex.messaging import AsyncMessage, AcknowledgeMessage, ErrorMessage #: Names...
ajibawa-2023/Python-Code-Large/train/row_87020
33
124
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87020:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 11], "level": 0, "parent": null, "vector": [8, 0, 0.0605, 0.0645, 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_87020:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87020:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87020:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87020:FunctionDef_L43_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Flex Messaging implementation. This module contains the message classes used with Flex Data Services. @see: U{RemoteObject on OSFlash (external) <http://osflash.org/documentation/amf3#remoteobject>} @since: 0.1 """ import uuid import pyamf.util...
ajibawa-2023/Python-Code-Large/train/row_87021
221
539
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87021:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 13], "level": 0, "parent": null, "vector": [8, 0, 0.0158, 0.0186, 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_87021:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87021:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87021:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87021:ClassDef_L65_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Compatibility classes/functions for Flex. @note: Not available in ActionScript 1.0 and 2.0. @see: U{Flex on Wikipedia<http://en.wikipedia.org/wiki/Adobe_Flex>} @since: 0.1 """ import pyamf __all__ = ['ArrayCollection', 'ObjectProxy'] class Arra...
ajibawa-2023/Python-Code-Large/train/row_87022
101
263
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87022:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0266, 0.0266, 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_87022:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87022:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87022:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87022:ClassDef_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Class alias base functionality. @since: 0.6 """ import inspect import pyamf from pyamf import python, util class UnknownClassAlias(Exception): """ Raised if the AMF stream specifies an Actionscript class that does not have a Python ...
ajibawa-2023/Python-Code-Large/train/row_87023
301
546
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87023:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.011, 0.0092, 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_87023:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87023:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87023:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87023:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ AMF3 implementation. C{AMF3} is the default serialization for U{ActionScript<http://en.wikipedia.org/wiki/ActionScript>} 3.0 and provides various advantages over L{AMF0<pyamf.amf0>}, which is used for ActionScript 1.0 and 2.0. It adds support for s...
ajibawa-2023/Python-Code-Large/train/row_87024
679
1,595
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87024:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 22], "level": 0, "parent": null, "vector": [8, 0, 0.0082, 0.0119, 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_87024:ClassDef_L124_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87024:Expr_L125_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87024:ClassDef_L124_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87024:Assign_L132_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Python compatibility values and helpers. """ try: import __builtin__ as builtins except ImportError: import builtins import types func_types = ( types.BuiltinFunctionType, types.BuiltinMethodType, types.CodeType, types.FunctionTy...
ajibawa-2023/Python-Code-Large/train/row_87025
35
78
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87025:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0641, 0.0385, 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_87025:Try_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87025:Import_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87025:Try_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87025:Import_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details.
ajibawa-2023/Python-Code-Large/train/row_87026
0
2
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Remoting tests. @since: 0.1.0 """
ajibawa-2023/Python-Code-Large/train/row_87027
1
8
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87027:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.75, 0.625, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[]
from google.appengine.ext import db class PetModel(db.Model): """ """ # 'borrowed' from http://code.google.com/appengine/docs/datastore/entitiesandmodels.html name = db.StringProperty(required=True) type = db.StringProperty(required=True, choices=set(["cat", "dog", "bird"])) birthdate = db.Da...
ajibawa-2023/Python-Code-Large/train/row_87028
30
56
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87028:ImportFrom_L1_C0", "label": "from google.appengine.ext import db", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0179, 0.0179, 0, 0.66, 0.0, 167, 0, 1, 0, 0, 167, 0, 0], "semantic": {"name": "google.appengine.ext", "arg_names": []...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87028:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87028:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87028:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87028:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# The simplest Django settings possible DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = ':memory:' INSTALLED_APPS = ('adapters',)
ajibawa-2023/Python-Code-Large/train/row_87029
3
6
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87029:Assign_L3_C0", "label": "DATABASE_ENGINE =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.5, 0.1667, 0, 0.66, 0.0, 96, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "DATABASE_ENGINE", "arg_names": [], "import_names": [],...
[]
from django.db import models class SimplestModel(models.Model): """ The simplest Django model you can have """ class TimeClass(models.Model): """ A model with all the time based fields """ t = models.TimeField() d = models.DateField() dt = models.DateTimeField() class ParentRe...
ajibawa-2023/Python-Code-Large/train/row_87030
68
127
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87030:ImportFrom_L1_C0", "label": "from django.db import models", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0079, 0.0079, 0, 0.66, 0.0, 40, 0, 1, 0, 0, 40, 0, 0], "semantic": {"name": "django.db", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_87030:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87030:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87030:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87030:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ File included to make the directory a Python package. The test_*.py files are special in this directory in that they refer to the top level module names of the adapter to test. An attempt will be made to import that module but ignored if it fails (...
ajibawa-2023/Python-Code-Large/train/row_87031
1
10
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87031:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.7, 0.7, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[]
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Test utilities. @since: 0.1.0 """ import unittest import copy import pyamf from pyamf import python class ClassicSpam: def __readamf__(self, input): pass def __writeamf__(self, output): pass class Spam(object): ""...
ajibawa-2023/Python-Code-Large/train/row_87032
136
257
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87032:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0233, 0.0195, 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_87032:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87032:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87032:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87032:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Pytho...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Unit tests. @since: 0.1.0 """ import os.path try: import unittest2 as unittest import sys sys.modules['unittest'] = unittest except ImportError: import unittest if not hasattr(unittest.TestCase, 'assertIdentical'): def asse...
ajibawa-2023/Python-Code-Large/train/row_87033
55
118
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87033:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0508, 0.0424, 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_87033:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87033:Import_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87033:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87033:Import_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Unit tests for Remoting gateways. @since: 0.1.0 """
ajibawa-2023/Python-Code-Large/train/row_87034
1
8
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87034:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.75, 0.625, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[]
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Because there is disparity between Python packaging (and it is being sorted out ...) we currently provide our own way to get the string of a version tuple. @since: 0.6 """ class Version(tuple): _version = None def __new__(cls, *args): ...
ajibawa-2023/Python-Code-Large/train/row_87035
18
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_87035:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.1625, 0.15, 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_87035:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87035:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87035:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87035:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Cod...
""" """ from django.contrib.auth import models import pyamf.adapters models.User.__amf__ = { 'exclude': ('message_set', 'password'), 'readonly': ('username',) } # ensure that the adapter that we depend on is loaded .. pyamf.adapters.get_adapter('django.db.models.base') pyamf.register_package(models, model...
ajibawa-2023/Python-Code-Large/train/row_87036
6
17
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87036:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 2], "level": 0, "parent": null, "vector": [8, 0, 0.0882, 0.1176, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
# Copyright (c) The PyAMF Project. # See LICENSE for details. """ SQLAlchemy adapter module. @see: U{SQLAlchemy homepage<http://www.sqlalchemy.org>} @since: 0.4 """ from sqlalchemy.orm import collections import pyamf from pyamf.adapters import util pyamf.add_type(collections.InstrumentedList, util.to_list) pyamf...
ajibawa-2023/Python-Code-Large/train/row_87037
7
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87037:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.35, 0.35, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[]
# Copyright (c) The PyAMF Project. # See LICENSE for details. """ Elixir adapter module. Elixir adds a number of properties to the mapped instances. @see: U{Elixir homepage<http://elixir.ematia.de>} @since: 0.6 """ import elixir.entity import pyamf from pyamf import adapters adapter = adapters.get_adapter('sqlalch...
ajibawa-2023/Python-Code-Large/train/row_87038
30
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_87038:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.1102, 0.1017, 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_87038:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87038:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87038:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87038:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Cod...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Adapter module for U{google.appengine.ext.blobstore<http:// code.google.com/appengine/docs/python/blobstore/>}. @since: 0.6 """ from google.appengine.ext import blobstore import pyamf bi = blobstore.BlobInfo class BlobInfoStub(object): ""...
ajibawa-2023/Python-Code-Large/train/row_87039
24
77
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87039:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0844, 0.0779, 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_87039:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87039:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87039:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87039:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ U{collections<http://docs.python.org/library/collections.html>} adapter module. @since: 0.5 """ import collections import pyamf from pyamf.adapters import util if hasattr(collections, 'deque'): pyamf.add_type(collections.deque, util.to_list...
ajibawa-2023/Python-Code-Large/train/row_87040
8
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87040:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.3, 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_87040:If_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87040:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87040:If_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87040:Expr_L20_C4"}]
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Adapter for the U{decimal<http://docs.python.org/library/decimal.html>} module. @since: 0.4 """ import decimal import pyamf def convert_Decimal(x, encoder): """ Called when an instance of U{decimal.Decimal<http:// docs.python.org/li...
ajibawa-2023/Python-Code-Large/train/row_87041
9
34
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87041:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1765, 0.1471, 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_87041:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87041:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87041:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87041:If_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ C{django.db.models} adapter module. @see: U{Django Project<http://www.djangoproject.com>} @since: 0.4.1 """ from django.db.models.base import Model from django.db.models import fields from django.db.models.fields import related, files import date...
ajibawa-2023/Python-Code-Large/train/row_87042
138
281
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87042:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0231, 0.0214, 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_87042:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87042:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87042:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87042:FunctionDef_L28_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Google App Engine adapter module. Sets up basic type mapping and class mappings for using the Datastore API in Google App Engine. @see: U{Datastore API on Google App Engine<http:// code.google.com/appengine/docs/python/datastore>} @since: 0.3....
ajibawa-2023/Python-Code-Large/train/row_87043
145
331
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87043:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 13], "level": 0, "parent": null, "vector": [8, 0, 0.0257, 0.0302, 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_87043:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87043:Expr_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87043:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87043:FunctionDef_L36_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (c) The PyAMF Project. # See LICENSE.txt for details. """ Adapter for the stdlib C{sets} module. @since: 0.4 """ import sets import pyamf from pyamf.adapters import util if hasattr(sets, 'ImmutableSet'): pyamf.add_type(sets.ImmutableSet, util.to_tuple) if hasattr(sets, 'Set'): pyamf.add_type(...
ajibawa-2023/Python-Code-Large/train/row_87044
8
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_87044:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 8], "level": 0, "parent": null, "vector": [8, 0, 0.3, 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_87044:If_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87044:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_87044:If_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_87044:Expr_L20_C4"}]