code
stringlengths
1
1.49M
file_id
stringlengths
42
46
node_count
int64
0
7.38k
total_lines
int64
1
20.9k
vector_dim
int64
15
15
vector_labels
stringclasses
1 value
nodes
stringlengths
2
3.75M
connections
stringlengths
2
964k
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2010 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") h...
ajibawa-2023/Python-Code-Large/train/row_4714
3
5
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4714:Import_L1_C0", "label": "cgi import cgi", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name": "", "...
[]
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2010 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") h...
ajibawa-2023/Python-Code-Large/train/row_4715
2
3
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4715:Import_L1_C0", "label": "cgi import cgi", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name":...
[]
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2010 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") h...
ajibawa-2023/Python-Code-Large/train/row_4716
3
5
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4716:Import_L1_C0", "label": "cgi import cgi", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name": "", "...
[]
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2010 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") h...
ajibawa-2023/Python-Code-Large/train/row_4717
2
3
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4717:Import_L1_C0", "label": "cgi import cgi", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name":...
[]
#-*- coding: utf-8 -*- from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render_to_response from django.template.loader import get_template from django.template import RequestContext from google.appengine.ext import db from django.conf import settings from models.main import App_u...
ajibawa-2023/Python-Code-Large/train/row_4718
50
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_4718:ImportFrom_L2_C0", "label": "from django.http import HttpResponse, HttpResponseRedirect", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.023, 0.0115, 0, 0.66, 0.0, 779, 0, 2, 0, 0, 779, 0, 0], "semantic": {"name": "django.http", "ar...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4718:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4718:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4718:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4718:If_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
#-*- coding: utf-8 -*- from django.http import HttpResponse, HttpResponseRedirect from google.appengine.api import images from google.appengine.ext import db from models.main import App_user, Post, Comment, Tag from common.view_decorator import role_required from logics.main import get_user, set_user import datetime i...
ajibawa-2023/Python-Code-Large/train/row_4719
38
54
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4719:ImportFrom_L2_C0", "label": "from django.http import HttpResponse, HttpResponseRedirect", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.037, 0.0185, 0, 0.66, 0.0, 779, 0, 2, 0, 0, 779, 0, 0], "semantic": {"name": "django.http", "ar...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4719:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4719:Return_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4719:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4719:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/env python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll ha...
ajibawa-2023/Python-Code-Large/train/row_4720
8
11
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4720:ImportFrom_L2_C0", "label": "from django.core.management import execute_manager", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1818, 0.0909, 0, 0.66, 0.0, 879, 0, 1, 0, 0, 879, 0, 0], "semantic": {"name": "django.core.management",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4720:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4720:Import_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4720:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4720:Import_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4720:...
import logging, os, sys # Google App Engine imports. from google.appengine.ext.webapp import util # Remove the standard version of Django. for k in [k for k in sys.modules if k.startswith('django')]: del sys.modules[k] # Force sys.path to have our own directory first, in case we want to import # from it. #sys.pa...
ajibawa-2023/Python-Code-Large/train/row_4721
23
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_4721:Import_L1_C0", "label": "logging import logging, os, sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0182, 0.0182, 0, 0.66, 0.0, 715, 0, 3, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["lo...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4721:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4721:Expr_L29_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4721:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4721:If_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#-*- coding: utf-8 -*- import os, sys, tempfile has_set = False BASE_DIR = os.path.dirname(os.path.dirname(__file__)) import logging logging.basicConfig(format='%(asctime)s %(levelname)8s %(message)s', stream=sys.stdout) #logging.basicConfig(format='%(asctime)s %(levelname)8s %(message)s', # filenam...
ajibawa-2023/Python-Code-Large/train/row_4722
25
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_4722:Import_L2_C0", "label": "os import os, sys, tempfile", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0364, 0.0182, 0, 0.66, 0.0, 688, 0, 3, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4722:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4722:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4722:If_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4722:Return_L16_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#-*- coding: utf-8 -*- import set_app_evn from set_app_evn import BASE_DIR import ai import Image, ImageFilter, ImageEnhance def register(opener): reg_info = { 'user': 'aksdj990sddddf', 'passwd': 'wushiyito', 'passwdAgain': 'wushiyito', 'answer': 'asdfasdfa', 'question': '...
ajibawa-2023/Python-Code-Large/train/row_4723
20
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_4723:Import_L2_C0", "label": "set_app_evn import set_app_evn", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0303, 0.0152, 0, 0.66, 0.0, 920, 0, 1, 0, 0, 920, 0, 0], "semantic": {"name": "set_app_evn", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4723:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4723:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4723:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4723:Expr_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
#-*- coding: utf-8 -*- from threading import local _thread_locals = local() def get_user(): try: return _thread_locals.user except: return None def set_user(u): _thread_locals.user = u
ajibawa-2023/Python-Code-Large/train/row_4724
8
13
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4724:ImportFrom_L2_C0", "label": "from threading import local", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1538, 0.0769, 0, 0.66, 0.0, 83, 0, 1, 0, 0, 83, 0, 0], "semantic": {"name": "threading", "arg_names": [], "import_names": ["lo...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4724:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4724:Try_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4724:Try_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4724:Return_L8_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
#-*- coding: utf-8 -*- from google.appengine.ext import db import datetime import generalcounter from logics.main import get_user, set_user import re class App_user(db.Model): email = db.EmailProperty(required = True) nickname = db.StringProperty(required = True) link = db.StringProperty() level = d...
ajibawa-2023/Python-Code-Large/train/row_4725
126
190
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4725:ImportFrom_L2_C0", "label": "from google.appengine.ext import db", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0105, 0.0053, 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_4725:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4725:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4725:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4725:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/env python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll ha...
ajibawa-2023/Python-Code-Large/train/row_4726
8
11
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4726:ImportFrom_L2_C0", "label": "from django.core.management import execute_manager", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1818, 0.0909, 0, 0.66, 0.0, 879, 0, 1, 0, 0, 879, 0, 0], "semantic": {"name": "django.core.management",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4726:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4726:Import_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4726:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4726:Import_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4726:...
from django.conf.urls.defaults import * urlpatterns = patterns('views.main', ('^$', 'index'), ('^(?P<page>\d+)/$', 'index'), ('^p/(?P<post_key>.+)/$', 'show_post'), ('^add_comment/$', 'add_comment'), ('^atom.xml$', 'atom'), ('^sitemap.xml$', 'sitemap'), (r'^admin/', include...
ajibawa-2023/Python-Code-Large/train/row_4727
2
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_4727:ImportFrom_L1_C0", "label": "from django.conf.urls.defaults import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.05, 0.05, 0, 0.66, 0.0, 341, 0, 1, 0, 0, 341, 0, 0], "semantic": {"name": "django.conf.urls.defaults", "arg_names"...
[]
#-*- coding: utf-8 -*- import os, sys, os.path VERSION = '0.001' LOCAL = False DEBUG = True TEMPLATE_DEBUG = DEBUG APPEND_SLASH = True ROOT_PATH = os.path.dirname(__file__) if LOCAL: BASE_URL = 'http://localhost:8080' DOMAIN = 'localhost' else: BASE_URL = 'http://www.3kkk.me' DOMAIN = 'www.3kkk.me'...
ajibawa-2023/Python-Code-Large/train/row_4728
31
101
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4728:Import_L2_C0", "label": "os import os, sys, os.path", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0198, 0.0099, 0, 0.66, 0.0, 688, 0, 3, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4728:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4728:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4728:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4728:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_472...
from django.conf.urls.defaults import * urlpatterns = patterns('admin.views', ('^$', 'index'), ('^left/$', 'left'), ('^post_list/$', 'post_list'), ('^add_post/', 'add_post'), ('^comment_list/$', 'comment_list'), ('^user_list/', 'user_list'), ('^add_post_post/', 'add_post_post')...
ajibawa-2023/Python-Code-Large/train/row_4729
2
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4729:ImportFrom_L1_C0", "label": "from django.conf.urls.defaults import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0323, 0.0323, 0, 0.66, 0.0, 341, 0, 1, 0, 0, 341, 0, 0], "semantic": {"name": "django.conf.urls.defaults", "arg_na...
[]
#-*- coding: utf-8 -*- from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render_to_response from django.template.loader import get_template from django.template import RequestContext from google.appengine.ext import db from common.view_decorator import role_required from models.m...
ajibawa-2023/Python-Code-Large/train/row_4730
115
202
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4730:ImportFrom_L2_C0", "label": "from django.http import HttpResponse, HttpResponseRedirect", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0099, 0.005, 0, 0.66, 0.0, 779, 0, 2, 0, 0, 779, 0, 0], "semantic": {"name": "django.http", "ar...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4730:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4730:Return_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4730:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4730:Return_L24_C4"}, {"f": "ajibawa-2023/Python-Code-L...
''' Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
ajibawa-2023/Python-Code-Large/train/row_4731
32
50
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4731:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 11], "level": 0, "parent": null, "vector": [8, 0, 0.12, 0.22, 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_4731:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4731:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4731:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4731:Assign_L24_C8"}, {"f": "ajibawa-2023/Python-Code...
""" Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and ...
ajibawa-2023/Python-Code-Large/train/row_4732
400
759
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4732:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.0178, 0.0343, 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_4732:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4732:Expr_L53_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4732:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4732:Assign_L58_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and ...
ajibawa-2023/Python-Code-Large/train/row_4734
46
121
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4734:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1116, 0.2149, 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_4734:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4734:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4734:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4734:FunctionDef_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
import Cookie import os from appengine_utilities import sessions class SessionMiddleware(object): TEST_COOKIE_NAME = 'testcookie' TEST_COOKIE_VALUE = 'worked' def process_request(self, request): """ Check to see if a valid session token exists, if not, then use a cookie only sess...
ajibawa-2023/Python-Code-Large/train/row_4735
36
62
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4735:Import_L1_C0", "label": "Cookie import Cookie", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0161, 0.0161, 0, 0.66, 0.0, 32, 0, 1, 0, 0, 32, 0, 0], "semantic": {"name": "Cookie", "arg_names": [], "import_names": ["Cookie"], "rhs_c...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4735:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4735:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4735:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4735:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
""" Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and ...
ajibawa-2023/Python-Code-Large/train/row_4736
27
76
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4736:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1776, 0.3421, 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_4736:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4736:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4736:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4736:FunctionDef_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
""" Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and ...
ajibawa-2023/Python-Code-Large/train/row_4737
43
119
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4737:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1134, 0.2185, 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_4737:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4737:Expr_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4737:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4737:FunctionDef_L63_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
""" Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and ...
ajibawa-2023/Python-Code-Large/train/row_4738
9
46
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4738:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.2935, 0.5652, 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_4738:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4738:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4738:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4738:FunctionDef_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
""" Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and ...
ajibawa-2023/Python-Code-Large/train/row_4739
136
265
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4739:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.0509, 0.0981, 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_4739:ClassDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4739:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4739:ClassDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4739:Assign_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#-*- coding: utf-8 -*- from google.appengine.api import users from models.main import App_user from django.http import HttpResponse, HttpResponseRedirect import datetime from logics.main import get_user, set_user def logout(request): url = request.GET.get('url', '/') request.session['email'] = '' return ...
ajibawa-2023/Python-Code-Large/train/row_4740
31
43
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4740:ImportFrom_L2_C0", "label": "from google.appengine.api import users", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0465, 0.0233, 0, 0.66, 0.0, 279, 0, 1, 0, 0, 279, 0, 0], "semantic": {"name": "google.appengine.api", "arg_names": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4740:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4740:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4740:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4740:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-L...
from django.conf import settings def bind_settings(request): return { 'settings': settings }
ajibawa-2023/Python-Code-Large/train/row_4741
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_4741:ImportFrom_L1_C0", "label": "from django.conf import settings", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.1667, 0, 0.66, 0.0, 128, 0, 1, 0, 0, 128, 0, 0], "semantic": {"name": "django.conf", "arg_names": [], "import_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4741:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4741:Return_L4_C4"}]
#-*- coding: utf-8 -*- from django.http import HttpResponsePermanentRedirect from django.conf import settings class Domain_transMiddleware(object): def process_request(self, request): base_url = settings.BASE_URL domain = settings.DOMAIN if request.META['SERVER_NAME']!='localhost' and req...
ajibawa-2023/Python-Code-Large/train/row_4742
11
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4742:ImportFrom_L3_C0", "label": "from django.http import HttpResponsePermanentRedirect", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.0667, 0, 0.66, 0.0, 779, 0, 1, 0, 0, 779, 0, 0], "semantic": {"name": "django.http", "arg_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4742:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4742:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4742:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4742:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
#-*- coding: utf-8 -*- from django import template from models.main import App_user, Post, Comment, Tag, Sidebar from django.template import Node, NodeList, Template, Context, Variable register = template.Library() class Sidebar_c(template.Node): def __init__(self, nodelist_loop): self.nodelist_...
ajibawa-2023/Python-Code-Large/train/row_4743
36
54
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4743:ImportFrom_L1_C0", "label": "from django import template", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0185, 0.0185, 0, 0.66, 0.0, 294, 0, 1, 0, 0, 294, 0, 0], "semantic": {"name": "django", "arg_names": [], "import_names": ["tem...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4743:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4743:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4743:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4743:Assign_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
#coding=utf-8 from django import template from django.template.defaultfilters import stringfilter import datetime register = template.Library() from common import time_utils from common.utils import process_html import hashlib from google.appengine.api import users def make_list(start, end): """ ...
ajibawa-2023/Python-Code-Large/train/row_4744
48
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_4744:ImportFrom_L2_C0", "label": "from django import template", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0303, 0.0152, 0, 0.66, 0.0, 294, 0, 1, 0, 0, 294, 0, 0], "semantic": {"name": "django", "arg_names": [], "import_names": ["tem...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4744:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4744:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4744:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4744:Return_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#-*- coding: utf-8 -*- import traceback, sys, cStringIO import datetime, time, cgi import pytz from django.conf import settings def get_utc_time(dt = None): if dt is None: dt = datetime.datetime.utcnow() if dt.tzinfo is None: dt = dt.replace(tzinfo = pytz.utc) if dt.tzname()!='UTC': ...
ajibawa-2023/Python-Code-Large/train/row_4745
56
79
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4745:Import_L2_C0", "label": "traceback import traceback, sys, cStringIO", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0253, 0.0127, 0, 0.66, 0.0, 423, 0, 3, 0, 0, 423, 0, 0], "semantic": {"name": "traceback", "arg_names": [], "import...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4745:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4745:If_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4745:If_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4745:Assign_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_47...
#-*- coding: utf-8 -*- import traceback, sys, cStringIO import datetime, time, cgi import pytz, re from django.conf import settings from BeautifulSoup import BeautifulSoup def get_err(): f = cStringIO.StringIO( ) traceback.print_exc(file=f) return f.getvalue( ) def print_err(): sys.stderr.write('err ...
ajibawa-2023/Python-Code-Large/train/row_4746
45
64
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4746:Import_L2_C0", "label": "traceback import traceback, sys, cStringIO", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0312, 0.0156, 0, 0.66, 0.0, 423, 0, 3, 0, 0, 423, 0, 0], "semantic": {"name": "traceback", "arg_names": [], "import...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4746:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4746:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4746:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4746:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
from google.appengine.api import users from logics.main import get_user, set_user from django.http import HttpResponse, HttpResponseRedirect, HttpResponseForbidden def role_required(role): def wrapper(handler_method): def check_login(request, *args, **kwargs): user = get_user() if n...
ajibawa-2023/Python-Code-Large/train/row_4747
18
22
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4747:ImportFrom_L1_C0", "label": "from google.appengine.api import users", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0455, 0.0455, 0, 0.66, 0.0, 279, 0, 1, 0, 0, 279, 0, 0], "semantic": {"name": "google.appengine.api", "arg_names": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4747:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4747:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4747:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4747:FunctionDef_L7_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
ajibawa-2023/Python-Code-Large/train/row_4749
129
315
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4749:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 37], "level": 0, "parent": null, "vector": [8, 0, 0.0857, 0.0667, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4749:ClassDef_L78_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4749:Expr_L79_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4749:ClassDef_L78_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4749:Assign_L101_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
#-*- coding: utf-8 -*- import socks_proxy as socks import browser_agent as ai import urllib2, os, threading, time def get_one_proxy_opener(p): #proxy=urllib2.ProxyHandler({'http':p[0]}) cookie=urllib2.HTTPCookieProcessor() #opener=urllib2.build_opener(proxy, cookie) opener=urllib2.build_op...
ajibawa-2023/Python-Code-Large/train/row_4751
62
105
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4751:Import_L3_C0", "label": "socks_proxy import socks", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0286, 0.0095, 0, 0.66, 0.0, 525, 0, 1, 0, 0, 525, 0, 0], "semantic": {"name": "socks_proxy", "arg_names": [], "import_names": ["socks...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4751:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4751:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4751:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4751:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
from browser_agent import *
ajibawa-2023/Python-Code-Large/train/row_4753
1
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4753:ImportFrom_L1_C0", "label": "from browser_agent import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 1.0, 1.0, 0, 0.66, 0.0, 33, 0, 1, 0, 0, 33, 0, 0], "semantic": {"name": "browser_agent", "arg_names": [], "import_names": ["*"],...
[]
#!/usr/bin/env python ''' $Id: tzfile.py,v 1.8 2004/06/03 00:15:24 zenzen Exp $ ''' from cStringIO import StringIO from datetime import datetime, timedelta from struct import unpack, calcsize from pytz.tzinfo import StaticTzInfo, DstTzInfo, memorized_ttinfo from pytz.tzinfo import memorized_datetime, memorized_timede...
ajibawa-2023/Python-Code-Large/train/row_4757
60
113
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4757:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0265, 0.0265, 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_4757:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4757:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4757:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4757:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python ''' $Id: tzfile.py,v 1.8 2004/06/03 00:15:24 zenzen Exp $ ''' from cStringIO import StringIO from datetime import datetime, timedelta from struct import unpack, calcsize from pytz.tzinfo import StaticTzInfo, DstTzInfo, memorized_ttinfo from pytz.tzinfo import memorized_datetime, memorized_timede...
ajibawa-2023/Python-Code-Large/train/row_4758
60
113
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4758:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0265, 0.0265, 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_4758:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4758:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4758:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4758:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-L...
''' Reference tzinfo implementations from the Python docs. Used for testing against as they are only correct for the years 1987 to 2006. Do not use these for real code. ''' from datetime import tzinfo, timedelta, datetime from pytz import utc, UTC, HOUR, ZERO # A class building tzinfo objects for fixed-offset time zo...
ajibawa-2023/Python-Code-Large/train/row_4759
69
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_4759:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0236, 0.0394, 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_4759:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4759:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4759:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4759:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
ajibawa-2023/Python-Code-Large/train/row_4761
129
315
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4761:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 37], "level": 0, "parent": null, "vector": [8, 0, 0.0857, 0.0667, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4761:ClassDef_L78_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4761:Expr_L79_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4761:ClassDef_L78_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4761:Assign_L101_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
#-*- coding: utf-8 -*- import math class Pager(object): def __init__(self, total, pageSize, page, page_list_num = 10): pageCount = int(math.ceil((total+0.0)/pageSize)) if page < 1: page = 1 if page > pageCount: page = pageCount offset = 2 ...
ajibawa-2023/Python-Code-Large/train/row_4763
67
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_4763:Import_L2_C0", "label": "math import math", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0154, 0.0077, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["math"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4763:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4763:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4763:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4763:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
ajibawa-2023/Python-Code-Large/train/row_4764
52
100
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4764:ImportFrom_L16_C0", "label": "from google.appengine.api import memcache", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.16, 0.01, 0, 0.66, 0.0, 279, 0, 1, 0, 0, 279, 0, 0], "semantic": {"name": "google.appengine.api", "arg_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4764:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4764:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4764:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4764:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # Copyright (C) 2009 The Android Open Source Project # # 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 requ...
ajibawa-2023/Python-Code-Large/train/row_4765
104
220
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4765:Import_L17_C0", "label": "os import os", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.0773, 0.0045, 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_4765:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4765:If_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4765:If_L33_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_4765:Assign_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/env python import os import re import sys def fail_with_usage(): sys.stderr.write("usage: java-layers.py DEPENDENCY_FILE SOURCE_DIRECTORIES...\n") sys.stderr.write("\n") sys.stderr.write("Enforces layering between java packages. Scans\n") sys.stderr.write("DIRECTORY and prints errors when the pack...
ajibawa-2023/Python-Code-Large/train/row_4766
207
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_4766:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0117, 0.0039, 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_4766:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4766:Expr_L8_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4766:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4766:Expr_L9_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # This file uses the following encoding: utf-8 import sys import re if len(sys.argv) == 1: print 'usage: ' + sys.argv[0] + ' <build.log>' sys.exit() # if you add another level, don't forget to give it a color below class severity: UNKNOWN=0 SKIP=100 FIXMENOW=1 HIGH=2 ...
ajibawa-2023/Python-Code-Large/train/row_4768
144
563
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4768:Import_L4_C0", "label": "sys import sys", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0071, 0.0018, 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_4768:If_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4768:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4768:If_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4768:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4768:ClassD...
#!/usr/bin/env python # vim: ts=2 sw=2 nocindent import re import sys def choose_regex(regs, line): for func,reg in regs: m = reg.match(line) if m: return (func,m) return (None,None) def gather(included, deps): result = set() for inc in included: result.add(inc) for d in deps: if ...
ajibawa-2023/Python-Code-Large/train/row_4772
49
68
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4772:Import_L4_C0", "label": "re import re", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0588, 0.0147, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4772:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4772:For_L8_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4772:For_L8_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_4772:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
#!/usr/bin/env python # # Copyright (C) 2009 The Android Open Source Project # # 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 req...
ajibawa-2023/Python-Code-Large/train/row_4773
47
85
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4773:Import_L17_C0", "label": "sys import sys", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.0118, 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_4773:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4773:If_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4773:If_L29_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_4773:Assign_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/env python # # Copyright (C) 2012 The Android Open Source Project # # 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 req...
ajibawa-2023/Python-Code-Large/train/row_4774
47
76
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4774:Import_L17_C0", "label": "sys import sys", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.2237, 0.0132, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4774:Try_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4774:ImportFrom_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4774:Try_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4774:ImportFrom_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # # Copyright (C) 2008 The Android Open Source Project # # 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 req...
ajibawa-2023/Python-Code-Large/train/row_4778
171
268
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4778:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0037, 0.0037, 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_4778:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4778:Assign_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4778:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4778:For_L17_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/env python # # Copyright (C) 2009 The Android Open Source Project # # 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 req...
ajibawa-2023/Python-Code-Large/train/row_4784
20
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_4784:Import_L18_C0", "label": "operator import operator, os, sys", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.4, 0.0222, 0, 0.66, 0.0, 616, 0, 3, 0, 0, 616, 0, 0], "semantic": {"name": "operator", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4784:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4784:Assign_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4784:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4784:Return_L22_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # # Copyright (C) 2009 The Android Open Source Project # # 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 req...
ajibawa-2023/Python-Code-Large/train/row_4785
51
98
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4785:Import_L23_C0", "label": "os import os", "type": "import", "loc": [23, 23], "level": 0, "parent": null, "vector": [1, 0, 0.2347, 0.0102, 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_4785:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4785:Assign_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4785:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4785:Assign_L28_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # # Copyright (C) 2012 The Android Open Source Project # # 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 req...
ajibawa-2023/Python-Code-Large/train/row_4786
41
90
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4786:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 35], "level": 0, "parent": null, "vector": [8, 0, 0.2889, 0.2111, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4786:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4786:If_L40_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4786:If_L40_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_4786:Expr_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
#!/usr/bin/env python # # Copyright (C) 2009 The Android Open Source Project # # 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 req...
ajibawa-2023/Python-Code-Large/train/row_4787
11
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4787:Import_L1_C0", "label": "cStringIO import cStringIO", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0667, 0.0667, 0, 0.66, 0.0, 764, 0, 1, 0, 0, 764, 0, 0], "semantic": {"name": "cStringIO", "arg_names": [], "import_names": ["cStri...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4787:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4787:Assign_L11_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4787:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4787:If_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python -E import sys, os, re excludes = [r'.*?/\.obj.*?', r'.*?~', r'.*?\/.DS_Store', r'.*?\/.gdb_history', r'.*?\/buildspec.mk', r'.*?/\..*?\.swp', r'.*?/out/.*?', r'.*?/install/.*?'] excludes_compiled = map(re.compile, e...
ajibawa-2023/Python-Code-Large/train/row_4788
41
54
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4788:Import_L1_C0", "label": "sys import sys, os, re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0185, 0.0185, 0, 0.66, 0.0, 509, 0, 3, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "os", "re...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4788:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4788:For_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4788:For_L4_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4788:If_L5_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4788...
#!/usr/bin/env python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to ...
ajibawa-2023/Python-Code-Large/train/row_4789
8
11
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4789:ImportFrom_L2_C0", "label": "from django.core.management import execute_manager", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1818, 0.0909, 0, 0.66, 0.0, 879, 0, 1, 0, 0, 879, 0, 0], "semantic": {"name": "django.core.management",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4789:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4789:Import_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4789:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4789:Import_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4789:...
#!/usr/bin/env python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to ...
ajibawa-2023/Python-Code-Large/train/row_4790
8
11
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4790:ImportFrom_L2_C0", "label": "from django.core.management import execute_manager", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1818, 0.0909, 0, 0.66, 0.0, 879, 0, 1, 0, 0, 879, 0, 0], "semantic": {"name": "django.core.management",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4790:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4790:Import_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4790:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4790:Import_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4790:...
from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', (r'^accounts/', 'amfgateway.gateway'), # Uncomment the next line to enable admin documentation: # (r'^admin/doc/', include('djan...
ajibawa-2023/Python-Code-Large/train/row_4791
2
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4791:ImportFrom_L1_C0", "label": "from django.conf.urls.defaults import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0667, 0.0667, 0, 0.66, 0.0, 341, 0, 1, 0, 0, 341, 0, 0], "semantic": {"name": "django.conf.urls.defaults", "arg_na...
[]
# Django settings for 3rdear project. import os PROJECT_PATH = os.path.abspath(os.path.dirname(__file__)) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( ('zengsun', 'zengsun.gm@gmail.com'), ) MANAGERS = ADMINS DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'o...
ajibawa-2023/Python-Code-Large/train/row_4792
28
102
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4792:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0294, 0.0098, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "",...
[]
#!/usr/bin/env python # -*- coding: UTF-8 -*- from django import newforms as forms from django.utils.translation import gettext_lazy as _ from models import Profile class ProfileForm(forms.ModelForm): class Meta: model = Profile exclude = ('user', 'report_to',) class UserForm(forms.Form): l...
ajibawa-2023/Python-Code-Large/train/row_4793
28
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_4793:ImportFrom_L4_C0", "label": "from django import forms", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0727, 0.0182, 0, 0.66, 0.0, 294, 0, 1, 0, 0, 294, 0, 0], "semantic": {"name": "django", "arg_names": [], "import_names": ["forms"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4793:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4793:ClassDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4793:ClassDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4793:Assign_L11_C8"}, {"f": "ajibawa-2023/Python-Code-Large/...
#!/usr/bin/env python # -*- coding: UTF-8 -*- from django.db import models from django.contrib.auth.models import User from django.utils.translation import gettext_lazy as _ # Create your models here. GENDER_CHOICES = ( ('M', _('Male')), ('F', _('Female')), ) class Profile(models.Model): """Employee ...
ajibawa-2023/Python-Code-Large/train/row_4794
22
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_4794:ImportFrom_L4_C0", "label": "from django.db import models", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0976, 0.0244, 0, 0.66, 0.0, 40, 0, 1, 0, 0, 40, 0, 0], "semantic": {"name": "django.db", "arg_names": [], "import_names": ["m...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4794:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4794:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4794:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4794:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # -*- coding: UTF-8 -*- from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render_to_response, get_object_or_404 from django.template import RequestContext #from django.contrib import auth from django.contrib.auth.models import User from models import Profile ...
ajibawa-2023/Python-Code-Large/train/row_4795
25
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_4795:ImportFrom_L3_C0", "label": "from django.http import HttpResponse, HttpResponseRedirect", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.075, 0.025, 0, 0.66, 0.0, 779, 0, 2, 0, 0, 779, 0, 0], "semantic": {"name": "django.http", "arg...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4795:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4795:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4795:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4795:If_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/env python # -*- coding: UTF-8 -*- from django import newforms as forms from django.utils.translation import gettext_lazy as _ from models import Profile class ProfileForm(forms.ModelForm): class Meta: model = Profile exclude = ('user', 'report_to',) class UserForm(forms.Form): l...
ajibawa-2023/Python-Code-Large/train/row_4796
28
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_4796:ImportFrom_L4_C0", "label": "from django import forms", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0727, 0.0182, 0, 0.66, 0.0, 294, 0, 1, 0, 0, 294, 0, 0], "semantic": {"name": "django", "arg_names": [], "import_names": ["forms"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4796:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4796:ClassDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4796:ClassDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4796:Assign_L11_C8"}, {"f": "ajibawa-2023/Python-Code-Large/...
#!/usr/bin/env python # -*- coding: UTF-8 -*- from django.db import models from django.contrib.auth.models import User from django.utils.translation import gettext_lazy as _ # Create your models here. GENDER_CHOICES = ( ('M', _('Male')), ('F', _('Female')), ) class Profile(models.Model): """Employee ...
ajibawa-2023/Python-Code-Large/train/row_4797
22
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_4797:ImportFrom_L4_C0", "label": "from django.db import models", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0976, 0.0244, 0, 0.66, 0.0, 40, 0, 1, 0, 0, 40, 0, 0], "semantic": {"name": "django.db", "arg_names": [], "import_names": ["m...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4797:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4797:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4797:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4797:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # -*- coding: UTF-8 -*- from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import render_to_response, get_object_or_404 from django.template import RequestContext #from django.contrib import auth from django.contrib.auth.models import User from models import Profile ...
ajibawa-2023/Python-Code-Large/train/row_4798
25
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_4798:ImportFrom_L3_C0", "label": "from django.http import HttpResponse, HttpResponseRedirect", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.075, 0.025, 0, 0.66, 0.0, 779, 0, 2, 0, 0, 779, 0, 0], "semantic": {"name": "django.http", "arg...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4798:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4798:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4798:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4798:If_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
from django.contrib.auth.models import User from pyamf.remoting.gateway.django import DjangoGateway def user_list(request): return User.objects.all() gateway = DjangoGateway({ 'userlist': user_list, })
ajibawa-2023/Python-Code-Large/train/row_4799
5
9
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4799:ImportFrom_L1_C0", "label": "from django.contrib.auth.models import User", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.1111, 0, 0.66, 0.0, 808, 0, 1, 0, 0, 808, 0, 0], "semantic": {"name": "django.contrib.auth.models", "a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4799:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4799:Return_L5_C4"}]
#!/usr/bin/env python # -*- coding: UTF-8 -*- from django.db import models from django.contrib.auth.models import User # Create your models here. class Music(models.Model): """音乐 """ title = models.CharField(max_length=50) artist = models.CharField(max_length=50) counting = models.IntegerField() ...
ajibawa-2023/Python-Code-Large/train/row_4800
51
94
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4800:ImportFrom_L3_C0", "label": "from django.db import models", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0319, 0.0106, 0, 0.66, 0.0, 40, 0, 1, 0, 0, 40, 0, 0], "semantic": {"name": "django.db", "arg_names": [], "import_names": ["m...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4800:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4800:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4800:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4800:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
#!/usr/bin/env python # -*- coding: UTF-8 -*- from django.db import models from django.contrib.auth.models import User # Create your models here. class Music(models.Model): """音乐 """ title = models.CharField(max_length=50) artist = models.CharField(max_length=50) counting = models.IntegerField() ...
ajibawa-2023/Python-Code-Large/train/row_4801
51
94
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4801:ImportFrom_L3_C0", "label": "from django.db import models", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0319, 0.0106, 0, 0.66, 0.0, 40, 0, 1, 0, 0, 40, 0, 0], "semantic": {"name": "django.db", "arg_names": [], "import_names": ["m...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4801:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4801:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4801:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4801:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
# Create your views here.
ajibawa-2023/Python-Code-Large/train/row_4802
0
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# # 3DStudyMaze is a Panda3D application for building and # running an education course in virtual environment. # # It will feature: # - Simple maze definition language # - Connectivity between mazes # - Auto-adjusting room and tunnel sizes # - Support-ticket instructor locks # - LaTeX-editable walls # # It is based on...
ajibawa-2023/Python-Code-Large/train/row_4803
675
1,017
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4803:Import_L26_C0", "label": "direct.directbase.DirectStart import direct.directbase.DirectStart", "type": "import", "loc": [26, 26], "level": 0, "parent": null, "vector": [1, 0, 0.0256, 0.001, 0, 0.66, 0.0, 135, 0, 1, 0, 0, 135, 0, 0], "semantic": {"name": "direct.dir...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4803:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4803:FunctionDef_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4803:FunctionDef_L48_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4803:Assign_L50_C8"}, {"f": "ajibawa-2023/Python-Code...
# Maze Root root = Entrance(Point3(0,-10,0), dim=Point2(0,0), direction='back') for directory in sorted([d for d in os.listdir('mazes') if os.path.isdir(os.path.join('mazes',d))]): guess = os.path.join(os.getcwd(),os.path.join(os.path.join('mazes',directory),'maze.py')) if os.path.exists(guess): # Tod...
ajibawa-2023/Python-Code-Large/train/row_4804
5
9
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4804:Assign_L3_C0", "label": "root = Entrance()", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.3333, 0.1111, 0, 0.66, 0.0, 696, 3, 3, 0, 0, 554, 10, 3], "semantic": {"name": "root", "arg_names": [], "import_names": [], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4804:For_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4804:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4804:For_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4804:If_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4804:If_L...
XXX101_r1 = MazeRoom(root, dim=Point3(50,50,50), offset=Point2(25,25), music='mazes/XXX101/basic.ogg') self.mazeAreas.append(XXX101_r1)
ajibawa-2023/Python-Code-Large/train/row_4805
2
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"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4805:Assign_L1_C0", "label": "XXX101_r1 = MazeRoom()", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.5, 0.5, 0, 0.66, 0.0, 50, 3, 4, 0, 0, 65, 10, 3], "semantic": {"name": "XXX101_r1", "arg_names": [], "import_names": [], "r...
[]
""" FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http://www.gnu.org/licenses/gpl.html...
ajibawa-2023/Python-Code-Large/train/row_4806
80
160
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4806:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.0719, 0.1375, 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_4806:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4806:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4806:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4806:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http://www.gn...
ajibawa-2023/Python-Code-Large/train/row_4810
23
58
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4810:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 27], "level": 0, "parent": null, "vector": [8, 0, 0.2586, 0.431, 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_4810:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4810:Expr_L37_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4810:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4810:If_L38_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http://www.gnu.or...
ajibawa-2023/Python-Code-Large/train/row_4812
28
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_4812:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0213, 0.0213, 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_4812:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4812:FunctionDef_L11_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4812:FunctionDef_L11_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4812:Expr_L12_C2"}, {"f": "ajibawa-2023/Python-Code-La...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http://www.gnu.or...
ajibawa-2023/Python-Code-Large/train/row_4813
41
90
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4813:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 27], "level": 0, "parent": null, "vector": [8, 0, 0.1667, 0.2778, 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_4813:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4813:Expr_L36_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4813:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4813:FunctionDef_L38_C1"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http://www.gn...
ajibawa-2023/Python-Code-Large/train/row_4814
43
79
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4814:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0127, 0.0127, 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_4814:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4814:Expr_L15_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4814:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4814:FunctionDef_L16_C1"}, {"f": "ajibawa-2023/Python-Code-Large/...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http://www.gnu.or...
ajibawa-2023/Python-Code-Large/train/row_4816
48
119
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4816:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 25], "level": 0, "parent": null, "vector": [8, 0, 0.1176, 0.1933, 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_4816:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4816:Expr_L31_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4816:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4816:Assign_L38_C1"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http://www.gnu.or...
ajibawa-2023/Python-Code-Large/train/row_4818
41
90
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4818:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 27], "level": 0, "parent": null, "vector": [8, 0, 0.1667, 0.2778, 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_4818:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4818:Expr_L36_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4818:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4818:FunctionDef_L38_C1"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http://www.gn...
ajibawa-2023/Python-Code-Large/train/row_4819
43
79
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4819:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0127, 0.0127, 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_4819:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4819:Expr_L15_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4819:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4819:FunctionDef_L16_C1"}, {"f": "ajibawa-2023/Python-Code-Large/...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http://www.gnu.or...
ajibawa-2023/Python-Code-Large/train/row_4821
48
119
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4821:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 25], "level": 0, "parent": null, "vector": [8, 0, 0.1176, 0.1933, 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_4821:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4821:Expr_L31_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4821:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4821:Assign_L38_C1"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http://www.gn...
ajibawa-2023/Python-Code-Large/train/row_4822
23
58
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4822:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 27], "level": 0, "parent": null, "vector": [8, 0, 0.2586, 0.431, 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_4822:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4822:Expr_L37_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4822:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4822:If_L38_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2009 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http://www.gnu.or...
ajibawa-2023/Python-Code-Large/train/row_4823
28
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_4823:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0213, 0.0213, 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_4823:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4823:FunctionDef_L11_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4823:FunctionDef_L11_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4823:Expr_L12_C2"}, {"f": "ajibawa-2023/Python-Code-La...
#!/usr/bin/env python # encoding: utf-8 import random """ ' Author: Jonathan Potter ' ' Name: parameters ' ' Description: The simulation parameters, or knobs. These can be changed by the user to tailor the ' simulation to his needs. These are described more in depth in the User's Manual of the documentation. ' ' ...
ajibawa-2023/Python-Code-Large/train/row_4825
3
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4825:Import_L4_C0", "label": "random import random", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.1081, 0.027, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "random", "arg_names": [], "import_names": ["random"], "rhs_...
[]
#!/usr/bin/env python # encoding: utf-8 import sys import os from parameters import * from driver import Driver """ ' ' Author: Jonathan Potter ' ' Name: Simulation ' ' Description: The main simulation entry point. This is the file you run, and it simply ' passes off control to the driver. ' ' Return: None. ' """ d...
ajibawa-2023/Python-Code-Large/train/row_4826
10
29
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4826:Import_L4_C0", "label": "sys import sys", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.1379, 0.0345, 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_4826:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4826:Assign_L23_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4826:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4826:Expr_L24_C1"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python # encoding: utf-8 import networkx as nx import matplotlib.pyplot as plt import sys import os import random import math from protocols import Simple from protocols import Crowds from protocols import OnionRouting from protocols import Utilities """ ' ' Author: Jonathan Potter ' ' Name: Driver ...
ajibawa-2023/Python-Code-Large/train/row_4828
114
320
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4828:Import_L4_C0", "label": "networkx import nx", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0125, 0.0031, 0, 0.66, 0.0, 691, 0, 1, 0, 0, 691, 0, 0], "semantic": {"name": "networkx", "arg_names": [], "import_names": ["nx"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4828:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4828:Assign_L32_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4828:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4828:Assign_L35_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python import codecs import re import jinja2 import markdown def process_slides(): with codecs.open('../presentation.html', 'w', encoding='utf8') as outfile: md = codecs.open('slides.md', encoding='utf8').read() md_slides = md.split('\n---\n')...
ajibawa-2023/Python-Code-Large/train/row_4829
38
53
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4829:Import_L2_C0", "label": "codecs import codecs", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0377, 0.0189, 0, 0.66, 0.0, 220, 0, 1, 0, 0, 220, 0, 0], "semantic": {"name": "codecs", "arg_names": [], "import_names": ["codecs"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4829:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4829:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4829:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4829:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python2.6 # # Simple http server to emulate api.playfoursquare.com import logging import shutil import sys import urlparse import SimpleHTTPServer import BaseHTTPServer class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """Handle playfoursquare.com requests, for testing.""" def do_GET(self...
ajibawa-2023/Python-Code-Large/train/row_4830
63
85
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4830:Import_L5_C0", "label": "logging import logging", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0588, 0.0118, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4830:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4830:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4830:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4830:FunctionDef_L17_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python import datetime import sys import textwrap import common from xml.dom import pulldom PARSER = """\ /** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquare.parsers; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joel...
ajibawa-2023/Python-Code-Large/train/row_4831
42
149
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4831:Import_L3_C0", "label": "datetime import datetime", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0201, 0.0067, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["datetime...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4831:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4831:Assign_L83_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4831:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4831:Expr_L85_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python """ Pull a oAuth protected page from foursquare. Expects ~/.oget to contain (one on each line): CONSUMER_KEY CONSUMER_KEY_SECRET USERNAME PASSWORD Don't forget to chmod 600 the file! """ import httplib import os import re import sys import urllib import urllib2 import urlparse import user from xml....
ajibawa-2023/Python-Code-Large/train/row_4832
50
111
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4832:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0631, 0.0991, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4832:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4832:Return_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4832:FunctionDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4832:Assign_L57_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
ajibawa-2023/Python-Code-Large/train/row_4833
20
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4833:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.037, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4833:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4833:Assign_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4833:For_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4833:Assign_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_48...
#!/usr/bin/python import logging from xml.dom import minidom from xml.dom import pulldom BOOLEAN = "boolean" STRING = "String" GROUP = "Group" # Interfaces that all FoursquareTypes implement. DEFAULT_INTERFACES = ['FoursquareType'] # Interfaces that specific FoursqureTypes implement. INTERFACES = { } DEFAULT_CLA...
ajibawa-2023/Python-Code-Large/train/row_4834
44
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4834:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0263, 0.0088, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4834:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4834:Expr_L60_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4834:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4834:Assign_L71_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#coding=utf-8 from django.db import models from django.contrib.auth.models import User #记录订单的表,请根据自己需求完成 class Transaction(models.Model): out_trade_no=models.CharField(max_length=32) user=models.ForeignKey(User)
ajibawa-2023/Python-Code-Large/train/row_4835
5
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_4835:ImportFrom_L2_C0", "label": "from django.db import models", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.125, 0, 0.66, 0.0, 40, 0, 1, 0, 0, 40, 0, 0], "semantic": {"name": "django.db", "arg_names": [], "import_names": ["mode...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4835:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4835:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4835:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4835:Assign_L8_C4"}]
#encoding=utf-8 from django.conf.urls.defaults import patterns,include,url from views import * urlpatterns=patterns('alipay.views', url(r'checkout$',alipayTo), url(r'alipay_notify$',alipay_notify), url(r'alipay_return$',alipay_return), )
ajibawa-2023/Python-Code-Large/train/row_4836
3
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_4836:ImportFrom_L3_C0", "label": "from django.conf.urls.defaults import patterns, include, url", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.3, 0.1, 0, 0.66, 0.0, 341, 0, 3, 0, 0, 341, 0, 0], "semantic": {"name": "django.conf.urls.def...
[]
#!/usr/bin/env python #coding=utf-8 ''' #============================================================================= # FileName: views.py # Desc: 支付宝接口调用类 # Author: GitFree # Email: pengzhao.lh@gmail.com # LastChange: 2011-11-21 13:52:52 #==========================================...
ajibawa-2023/Python-Code-Large/train/row_4837
75
169
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4837:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0355, 0.0533, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4837:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4837:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4837:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4837:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python #coding=utf-8 ''' #============================================================================= # FileName: AlipayConfig.py # Desc: 基础配置类 # Author: GitFree # Email: pengzhao.lh@gmail.com # LastChange: 2011-11-21 13:53:39 #======================================...
ajibawa-2023/Python-Code-Large/train/row_4838
11
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4838:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1875, 0.2812, 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_4838:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4838:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4838:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4838:Assign_L16_C8"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python #coding=utf-8 ''' #============================================================================= # FileName: AlipayNotify.py # Desc: 支付宝通知处理类 # Author: GitFree # Email: pengzhao.lh@gmail.com # LastChange: 2011-09-27 00:52:09 #===================================...
ajibawa-2023/Python-Code-Large/train/row_4839
36
104
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4839:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0577, 0.0865, 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_4839:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4839:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4839:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4839:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/env python #coding=utf-8 ''' #============================================================================= # FileName: AlipaySubmit.py # Desc: 支付宝各接口请求提交类 # Author: GitFree # Email: pengzhao.lh@gmail.com # LastChange: 2011-09-24 14:20:35 #================================...
ajibawa-2023/Python-Code-Large/train/row_4840
33
172
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4840:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0349, 0.0523, 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_4840:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4840:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4840:FunctionDef_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4840:Assign_L16_C8"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python #coding=utf-8 ''' #============================================================================= # FileName: AlipayService.py # Desc: 支付宝接口构造类 # Author: GitFree # Email: pengzhao.lh@gmail.com # LastChange: 2011-09-24 01:47:10 #==================================...
ajibawa-2023/Python-Code-Large/train/row_4841
31
93
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4841:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0645, 0.0968, 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_4841:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4841:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4841:FunctionDef_L17_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4841:Assign_L19_C8"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python #coding=utf-8 ''' #============================================================================= # FileName: AlipayCore.py # Desc: 支付宝接口共用函数类 # Author: GitFree # Email: pengzhao.lh@gmail.com # LastChange: 2011-09-24 03:32:13 #===================================...
ajibawa-2023/Python-Code-Large/train/row_4842
38
89
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4842:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0674, 0.1011, 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_4842:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4842:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4842:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4842:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Co...
import os numInput = 0 numOutput = 0 folderName = raw_input("Enter the folder containing the data files to convert ... ") files = os.listdir(folderName) for each in files: if(os.path.isdir(each)): files.remove(each) fileStr = "" for eachFile in files: fileStr += eachFile + ", " print("Conver...
ajibawa-2023/Python-Code-Large/train/row_4843
34
53
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4843:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0189, 0.0189, 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_4843:For_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4843:If_L10_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4843:If_L10_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4843:Expr_L11_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4843:If_L...