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
#coding=utf8 from django.db import models class Address(models.Model): name = models.CharField(max_length=20) address = models.CharField(max_length=100) pub_date = models.DateField()
ajibawa-2023/Python-Code-Large/train/row_851
5
7
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_851:ImportFrom_L2_C0", "label": "from django.db import models", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.2857, 0.1429, 0, 0.66, 0.0, 40, 0, 1, 0, 0, 40, 0, 0], "semantic": {"name": "django.db", "arg_names": [], "import_names": ["mo...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_851:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_851:Assign_L5_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_851:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_851:Assign_L6_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests...
ajibawa-2023/Python-Code-Large/train/row_852
6
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_852:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.2188, 0.375, 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_852:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_852:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_852:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_852:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
from django.conf.urls.defaults import patterns, url __author__ = 'Administrator' urlpatterns = patterns('address.views', url(r'^test/$','test') )
ajibawa-2023/Python-Code-Large/train/row_853
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_853:ImportFrom_L1_C0", "label": "from django.conf.urls.defaults import patterns, url", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.1667, 0, 0.66, 0.0, 341, 0, 2, 0, 0, 341, 0, 0], "semantic": {"name": "django.conf.urls.default...
[]
from django.contrib import admin from address.models import Address __author__ = 'Administrator' admin.site.register(Address)
ajibawa-2023/Python-Code-Large/train/row_854
4
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_854:ImportFrom_L1_C0", "label": "from django.contrib import admin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 302, 0, 1, 0, 0, 302, 0, 0], "semantic": {"name": "django.contrib", "arg_names": [], "import_names":...
[]
# Create your views here. import urllib2 from django.http import HttpResponse from django.shortcuts import render_to_response from models import Address def latest_address(request): addresslist = Address.objects.order_by('-pub_date')[:10] return render_to_response('latest_address.html', {'addresslist':...
ajibawa-2023/Python-Code-Large/train/row_855
11
14
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_855:Import_L2_C0", "label": "urllib2 import urllib2", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0714, 0, 0.66, 0.0, 345, 0, 1, 0, 0, 345, 0, 0], "semantic": {"name": "urllib2", "arg_names": [], "import_names": ["urllib2"], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_855:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_855:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_855:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_855:Return_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
from BeautifulSoup import BeautifulSoup __author__ = 'Administrator' import urllib,urllib2,cookielib from BeautifulSoup import BeautifulSoup myCookie = urllib2.HTTPCookieProcessor(cookielib.CookieJar()) openner = urllib2.build_opener(myCookie) post_data = {'email':'yinjj472@nenu.edu.cn', 'pass...
ajibawa-2023/Python-Code-Large/train/row_856
12
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_856:ImportFrom_L1_C0", "label": "from BeautifulSoup import BeautifulSoup", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0312, 0.0312, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "BeautifulSoup", "arg_names": [], "im...
[]
#!/usr/bin/env python from django.core.management import execute_manager import imp try: imp.find_module('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 custo...
ajibawa-2023/Python-Code-Large/train/row_857
10
14
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_857:ImportFrom_L2_C0", "label": "from django.core.management import execute_manager", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0714, 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_857:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_857:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_857:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_857:Import_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_857:Try_L4_...
from django.db import models # Create your models here.
ajibawa-2023/Python-Code-Large/train/row_858
1
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_858:ImportFrom_L1_C0", "label": "from django.db import models", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 40, 0, 1, 0, 0, 40, 0, 0], "semantic": {"name": "django.db", "arg_names": [], "import_names": ["mo...
[]
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests...
ajibawa-2023/Python-Code-Large/train/row_859
6
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_859:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.2188, 0.375, 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_859:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_859:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_859:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_859:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
__author__ = 'Administrator' from django.http import HttpResponse def index(request): return HttpResponse("hello, Django.\n jiajia.yin, you must work hard for programing!")
ajibawa-2023/Python-Code-Large/train/row_860
4
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_860:Assign_L1_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.2, 0.2, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs_call_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_860:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_860:Return_L5_C4"}]
__author__ = 'Administrator' from django.http import HttpResponse text = '''<form method="post" action="add"> <input type="text" name="a" value="%d"></input> + <input type="text" name="b" value="%d"></input> <input type="submit" value="="></input> <input type="text" name="c" value="%d"></input> </form>''...
ajibawa-2023/Python-Code-Large/train/row_861
10
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_861:Assign_L1_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.0625, 0.0625, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_861:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_861:If_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_861:If_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_861:Assign_L11_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_861...
#coding=utf-8 __author__ = 'Administrator' from django.shortcuts import render_to_response address = [ {'name':'张三', 'address':'地址一'}, {'name':'李四', 'address':'地址二'} ] def index(request): return render_to_response('list.html', {'address': address})
ajibawa-2023/Python-Code-Large/train/row_862
5
11
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_862:Assign_L2_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [2, 2], "level": 0, "parent": null, "vector": [14, 0, 0.1818, 0.0909, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_862:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_862:Return_L11_C4"}]
# Create your views here.
ajibawa-2023/Python-Code-Large/train/row_863
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"]
[]
[]
#!/usr/bin/env python from django.core.management import execute_manager import imp try: imp.find_module('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 custo...
ajibawa-2023/Python-Code-Large/train/row_864
10
14
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_864:ImportFrom_L2_C0", "label": "from django.core.management import execute_manager", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0714, 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_864:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_864:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_864:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_864:Import_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_864:Try_L4_...
from django.conf.urls.defaults import patterns, include, url # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'DjangoDemo.views.home', name='home'), # url(r'^DjangoDemo/', include('DjangoD...
ajibawa-2023/Python-Code-Large/train/row_865
4
21
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_865:ImportFrom_L1_C0", "label": "from django.conf.urls.defaults import patterns, include, url", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0476, 0.0476, 0, 0.66, 0.0, 341, 0, 3, 0, 0, 341, 0, 0], "semantic": {"name": "django.conf.url...
[]
# Django settings for DjangoDemo project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'orac...
ajibawa-2023/Python-Code-Large/train/row_866
24
144
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_866:Assign_L3_C0", "label": "DEBUG =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.0208, 0.0069, 0, 0.66, 0.0, 309, 1, 0, 0, 0, 0, 4, 0], "semantic": {"name": "DEBUG", "arg_names": [], "import_names": [], "rhs_call_name": ...
[]
from django.db import models # Create your models here. class wiki(models.Model): pagename = models.CharField(max_length=20, unique=True) content = models.TextField()
ajibawa-2023/Python-Code-Large/train/row_867
4
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_867:ImportFrom_L1_C0", "label": "from django.db import models", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.1667, 0, 0.66, 0.0, 40, 0, 1, 0, 0, 40, 0, 0], "semantic": {"name": "django.db", "arg_names": [], "import_names": ["mo...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_867:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_867:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_867:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_867:Assign_L6_C4"}]
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests...
ajibawa-2023/Python-Code-Large/train/row_868
6
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_868:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.2188, 0.375, 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_868:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_868:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_868:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_868:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
# Create your views here. #coding=utf8 from wiki.models import wiki from django.template import loader from django.template import context from django.http import HttpResponse from django.http import HttpResponseRedirect from django.shortcuts import render_to_response def index(request, pagename=""): if ...
ajibawa-2023/Python-Code-Large/train/row_869
9
12
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_869:ImportFrom_L3_C0", "label": "from wiki.models import wiki", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.0833, 0, 0.66, 0.0, 400, 0, 1, 0, 0, 400, 0, 0], "semantic": {"name": "wiki.models", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_869:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_869:If_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_869:If_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_869:Assign_L12_C8"}]
#!/usr/bin/env python from django.core.management import execute_manager import imp try: imp.find_module('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 custo...
ajibawa-2023/Python-Code-Large/train/row_870
10
14
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_870:ImportFrom_L2_C0", "label": "from django.core.management import execute_manager", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0714, 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_870:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_870:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_870:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_870:Import_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_870:Try_L4_...
from django.db import models # Create your models here.
ajibawa-2023/Python-Code-Large/train/row_871
1
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_871:ImportFrom_L1_C0", "label": "from django.db import models", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 40, 0, 1, 0, 0, 40, 0, 0], "semantic": {"name": "django.db", "arg_names": [], "import_names": ["mo...
[]
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests...
ajibawa-2023/Python-Code-Large/train/row_872
6
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_872:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.2188, 0.375, 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_872:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_872:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_872:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_872:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
__author__ = 'Administrator' from django.http import HttpResponse def index(request): return HttpResponse("hello, Django.\n jiajia.yin, you must work hard for programing!")
ajibawa-2023/Python-Code-Large/train/row_873
4
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_873:Assign_L1_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.2, 0.2, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs_call_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_873:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_873:Return_L5_C4"}]
__author__ = 'Administrator' from django.http import HttpResponse text = '''<form method="post" action="add"> <input type="text" name="a" value="%d"></input> + <input type="text" name="b" value="%d"></input> <input type="submit" value="="></input> <input type="text" name="c" value="%d"></input> </form>''...
ajibawa-2023/Python-Code-Large/train/row_874
10
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_874:Assign_L1_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.0625, 0.0625, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_874:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_874:If_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_874:If_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_874:Assign_L11_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_874...
#coding=utf-8 __author__ = 'Administrator' from django.shortcuts import render_to_response address = [ {'name':'张三', 'address':'地址一'}, {'name':'李四', 'address':'地址二'} ] def index(request): return render_to_response('list.html', {'address': address})
ajibawa-2023/Python-Code-Large/train/row_875
5
11
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_875:Assign_L2_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [2, 2], "level": 0, "parent": null, "vector": [14, 0, 0.1818, 0.0909, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_875:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_875:Return_L11_C4"}]
# Create your views here.
ajibawa-2023/Python-Code-Large/train/row_876
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"]
[]
[]
#!/usr/bin/env python from django.core.management import execute_manager import imp try: imp.find_module('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 custo...
ajibawa-2023/Python-Code-Large/train/row_877
10
14
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_877:ImportFrom_L2_C0", "label": "from django.core.management import execute_manager", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0714, 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_877:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_877:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_877:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_877:Import_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_877:Try_L4_...
from django.conf.urls.defaults import patterns, include, url # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'DjangoDemo.views.home', name='home'), # url(r'^DjangoDemo/', include('DjangoD...
ajibawa-2023/Python-Code-Large/train/row_878
4
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_878:ImportFrom_L1_C0", "label": "from django.conf.urls.defaults import patterns, include, url", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.05, 0.05, 0, 0.66, 0.0, 341, 0, 3, 0, 0, 341, 0, 0], "semantic": {"name": "django.conf.urls.de...
[]
# Django settings for DjangoDemo project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'orac...
ajibawa-2023/Python-Code-Large/train/row_879
24
144
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_879:Assign_L3_C0", "label": "DEBUG =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.0208, 0.0069, 0, 0.66, 0.0, 309, 1, 0, 0, 0, 0, 4, 0], "semantic": {"name": "DEBUG", "arg_names": [], "import_names": [], "rhs_call_name": ...
[]
from django.db import models # Create your models here. class wiki(models.Model): pagename = models.CharField(max_length=20, unique=True) content = models.TextField()
ajibawa-2023/Python-Code-Large/train/row_880
4
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_880:ImportFrom_L1_C0", "label": "from django.db import models", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.1667, 0, 0.66, 0.0, 40, 0, 1, 0, 0, 40, 0, 0], "semantic": {"name": "django.db", "arg_names": [], "import_names": ["mo...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_880:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_880:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_880:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_880:Assign_L6_C4"}]
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests...
ajibawa-2023/Python-Code-Large/train/row_881
6
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_881:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.2188, 0.375, 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_881:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_881:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_881:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_881:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
# Create your views here. #coding=utf8 from wiki.models import wiki from django.template import loader from django.template import context from django.http import HttpResponse from django.http import HttpResponseRedirect from django.shortcuts import render_to_response def index(request, pagename=""): if ...
ajibawa-2023/Python-Code-Large/train/row_882
9
12
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_882:ImportFrom_L3_C0", "label": "from wiki.models import wiki", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.0833, 0, 0.66, 0.0, 400, 0, 1, 0, 0, 400, 0, 0], "semantic": {"name": "wiki.models", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_882:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_882:If_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_882:If_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_882:Assign_L12_C8"}]
#!/usr/bin/python # Copyright 2011 Google, Inc. All Rights Reserved. # simple script to walk source tree looking for third-party licenses # dumps resulting html page to stdout import os, re, mimetypes, sys # read source directories to scan from command line SOURCE = sys.argv[1:] # regex to find /* */ style commen...
ajibawa-2023/Python-Code-Large/train/row_884
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_884:Import_L8_C0", "label": "os import os, re, mimetypes\u2026", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.0816, 0.0102, 0, 0.66, 0.0, 688, 0, 4, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_884:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_884:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_884:FunctionDef_L32_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_884:Assign_L33_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Set up the system so that this development # version of google-api-python-client is run, even if # an older version is installed on the system. # # To make this totally automatic add the following to # your ~/.bash_profile: # # export PYTHONPATH=/path/to/where/you/checked/out/apiclient import sys import os sys.path....
ajibawa-2023/Python-Code-Large/train/row_885
3
12
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_885:Import_L9_C0", "label": "sys import sys", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.75, 0.0833, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name": ""...
[]
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_886
14
60
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_886:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.2833, 0.0833, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_886:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_886:Import_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_886:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_886:Assign_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_886:T...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
ajibawa-2023/Python-Code-Large/train/row_889
86
244
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_889:Import_L18_C0", "label": "base64 import base64", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.0738, 0.0041, 0, 0.66, 0.0, 177, 0, 1, 0, 0, 177, 0, 0], "semantic": {"name": "base64", "arg_names": [], "import_names": ["base64"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_889:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_889:Expr_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_889:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_889:FunctionDef_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_891
7
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_891:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.5312, 0.1562, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_891:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_891:Import_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_891:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_891:Try_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_891:Try_...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_893
380
1,053
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_893:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0157, 0.0038, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_893:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_893:ImportFrom_L38_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_893:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_893:ImportFrom_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_894
33
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_894:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1619, 0.0476, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_894:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_894:Expr_L58_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_894:ClassDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_894:Expr_L63_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_895
46
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_895:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1604, 0.0472, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_895:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_895:Expr_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_895:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_895:FunctionDef_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
__version__ = "1.0b9"
ajibawa-2023/Python-Code-Large/train/row_896
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_896:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call_n...
[]
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_897
59
120
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_897:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1417, 0.0417, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_897:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_897:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_897:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_897:FunctionDef_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
ajibawa-2023/Python-Code-Large/train/row_899
57
172
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_899:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0814, 0.1105, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_899:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_899:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_899:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_899:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_900
114
303
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_900:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 58], "level": 0, "parent": null, "vector": [8, 0, 0.1205, 0.1452, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_900:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_900:Expr_L69_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_900:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_900:FunctionDef_L71_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
__version__ = "1.0b9"
ajibawa-2023/Python-Code-Large/train/row_902
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_902:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call_n...
[]
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_903
145
366
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_903:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0546, 0.0191, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_903:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_903:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_903:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_903:FunctionDef_L53_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_904
56
123
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_904:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1545, 0.0407, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_904:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_904:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_904:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_904:Expr_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_908
37
110
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_908:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.1818, 0.0636, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_908:ClassDef_L72_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_908:FunctionDef_L75_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_908:FunctionDef_L75_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_908:Assign_L76_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
ajibawa-2023/Python-Code-Large/train/row_909
61
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_909:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1272, 0.0592, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_909:FunctionDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_909:Expr_L64_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_909:FunctionDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_909:Assign_L74_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
ajibawa-2023/Python-Code-Large/train/row_910
26
57
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_910:ImportFrom_L15_C0", "label": "from google.appengine.dist import use_library", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2632, 0.0175, 0, 0.66, 0.0, 813, 0, 1, 0, 0, 813, 0, 0], "semantic": {"name": "google.appengine.dist", "ar...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_910:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_910:FunctionDef_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_910:FunctionDef_L34_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_910:If_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Basic query against the public shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """Get ...
ajibawa-2023/Python-Code-Large/train/row_913
14
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_913:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1875, 0.0312, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_913:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_913:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_913:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_913:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Queries with paginated results against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(...
ajibawa-2023/Python-Code-Large/train/row_915
21
47
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_915:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1277, 0.0213, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_915:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_915:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_915:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_915:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query with ranked results against the shopping search API""" from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """Get and prin...
ajibawa-2023/Python-Code-Large/train/row_916
21
54
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_916:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1111, 0.0185, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_916:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_916:Expr_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_916:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_916:Assign_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query with ranked results against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): ...
ajibawa-2023/Python-Code-Large/train/row_917
14
46
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_917:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1304, 0.0217, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_917:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_917:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_917:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_917:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query that is restricted by a parameter against the public shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfI...
ajibawa-2023/Python-Code-Large/train/row_918
14
44
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_918:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 7], "level": 0, "parent": null, "vector": [8, 0, 0.1477, 0.0455, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_918:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_918:Expr_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_918:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_918:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Query with grouping against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """Get...
ajibawa-2023/Python-Code-Large/train/row_919
14
48
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_919:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.125, 0.0208, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_919:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_919:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_919:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_919:Assign_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Full text search query against the shopping search API""" import pprint from apiclient.discovery import build SHOPPING_API_VERSION = 'v1' DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc' def main(): """...
ajibawa-2023/Python-Code-Large/train/row_920
14
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_920:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.15, 0.025, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_920:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_920:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_920:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_920:Assign_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Django settings for django_sample project. import os DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS DATABASE_ENGINE = 'sqlite3' DATABASE_NAME = 'database.sqlite3' DATABASE_USER = '' DATABASE_PASSWORD = '' DATABASE_HOST = '' DATABASE_PORT = '' # Lo...
ajibawa-2023/Python-Code-Large/train/row_921
24
84
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_921:Import_L2_C0", "label": "os import os", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0238, 0.0119, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", ...
[]
import os from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Example: (r'^$', 'django_sample.plus.views.index'), (r'^oauth2callback', 'django_sample.plus.views.auth_return'), # ...
ajibawa-2023/Python-Code-Large/train/row_922
5
25
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_922:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.04, 0.04, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", "ann...
[]
import pickle import base64 from django.contrib import admin from django.contrib.auth.models import User from django.db import models from oauth2client.django_orm import FlowField from oauth2client.django_orm import CredentialsField # The Flow could also be stored in memcache since it is short lived. class FlowMod...
ajibawa-2023/Python-Code-Large/train/row_923
17
33
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_923:Import_L1_C0", "label": "pickle import pickle", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0303, 0.0303, 0, 0.66, 0.0, 848, 0, 1, 0, 0, 848, 0, 0], "semantic": {"name": "pickle", "arg_names": [], "import_names": ["pickle"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_923:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_923:Assign_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_923:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_923:Assign_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train...
""" This file demonstrates two different styles of tests (one doctest and one unittest). These will both pass when you run "manage.py test". Replace these with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): ""...
ajibawa-2023/Python-Code-Large/train/row_924
7
24
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_924:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1458, 0.25, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_924:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_924:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_924:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_924:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
import os import logging import httplib2 from django.http import HttpResponse from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_required from oauth2client.django_orm import Storage from oauth2client.client import OAuth2WebServerFlow from django_sample.plus.models import Cre...
ajibawa-2023/Python-Code-Large/train/row_925
38
61
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_925:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0164, 0.0164, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_925:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_925:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_925:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_925:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("""Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things. You'll have to run...
ajibawa-2023/Python-Code-Large/train/row_926
8
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_926:ImportFrom_L2_C0", "label": "from django.core.management import execute_manager", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1333, 0.0667, 0, 0.66, 0.0, 879, 0, 1, 0, 0, 879, 0, 0], "semantic": {"name": "django.core.management", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_926:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_926:Import_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_926:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_926:Import_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_926:Try_L...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright 2010 Google Inc. All Rights Reserved. """Simple command-line example for Latitude. Command-line application that sets the users current location. """ __author__ = 'jcgregorio@google.com (Joe Gregorio)' from apiclient.discovery import build import httplib2...
ajibawa-2023/Python-Code-Large/train/row_927
23
68
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_927:Expr_L6_C0", "label": "expression", "type": "expression", "loc": [6, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1176, 0.0735, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_927:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_927:Assign_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_927:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_927:Assign_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_929
36
97
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_929:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 34], "level": 0, "parent": null, "vector": [8, 0, 0.2629, 0.1856, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_929:ClassDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_929:FunctionDef_L62_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_929:FunctionDef_L62_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_929:Try_L63_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_930
34
81
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_930:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 25], "level": 0, "parent": null, "vector": [8, 0, 0.2593, 0.1111, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_930:ClassDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_930:FunctionDef_L51_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_930:FunctionDef_L51_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_930:Assign_L52_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python # # Copyright 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_933
83
164
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_933:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.122, 0.0427, 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_933:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_933:Assign_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_933:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_933:Assign_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
ajibawa-2023/Python-Code-Large/train/row_938
10
44
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_938:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 21], "level": 0, "parent": null, "vector": [8, 0, 0.4432, 0.0909, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_938:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_938:Assign_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_938:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_938:Assign_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_939
47
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_939:Assign_L18_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.1698, 0.0094, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_939:ClassDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_939:Assign_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_939:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_939:FunctionDef_L55_C2"}, {"f": "ajibawa-2023/Python-Code-Large/...
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
ajibawa-2023/Python-Code-Large/train/row_940
24
67
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_940:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.2761, 0.0597, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_940:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_940:Expr_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_940:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_940:Assign_L40_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
ajibawa-2023/Python-Code-Large/train/row_941
25
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_941:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.2826, 0.087, 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_941:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_941:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_941:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_941:Assign_L43_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
ajibawa-2023/Python-Code-Large/train/row_942
41
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_942:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.2151, 0.0753, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_942:FunctionDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_942:Expr_L53_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_942:FunctionDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_942:Assign_L54_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
ajibawa-2023/Python-Code-Large/train/row_945
24
67
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_945:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.291, 0.0896, 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_945:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_945:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_945:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_945:Assign_L43_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
ajibawa-2023/Python-Code-Large/train/row_946
30
80
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_946:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.2437, 0.075, 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_946:FunctionDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_946:Expr_L52_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_946:FunctionDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_946:Assign_L53_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
ajibawa-2023/Python-Code-Large/train/row_947
25
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_947:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.2826, 0.087, 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_947:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_947:Expr_L40_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_947:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_947:Assign_L41_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
ajibawa-2023/Python-Code-Large/train/row_949
21
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_949:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.319, 0.069, 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_949:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_949:Expr_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_949:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_949:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
ajibawa-2023/Python-Code-Large/train/row_950
20
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_950:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.3364, 0.0727, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_950:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_950:Expr_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_950:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_950:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python # # Copyright 2011 Google Inc. All Rights Reserved. # # 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 b...
ajibawa-2023/Python-Code-Large/train/row_951
35
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_951:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 22], "level": 0, "parent": null, "vector": [8, 0, 0.2468, 0.0759, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_951:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_951:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_951:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_951:Assign_L43_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
ajibawa-2023/Python-Code-Large/train/row_952
19
65
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_952:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 28], "level": 0, "parent": null, "vector": [8, 0, 0.3538, 0.1692, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_952:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_952:Assign_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_952:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_952:Assign_L43_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
ajibawa-2023/Python-Code-Large/train/row_963
11
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_963:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.3208, 0.0189, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_963:Try_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_963:ImportFrom_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_963:Try_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_963:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_963...
#!/usr/bin/env python # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
ajibawa-2023/Python-Code-Large/train/row_965
83
211
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_965:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0853, 0.0047, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_965:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_965:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_965:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_965:FunctionDef_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
#!/usr/bin/env python # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
ajibawa-2023/Python-Code-Large/train/row_966
18
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_966:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 18], "level": 0, "parent": null, "vector": [8, 0, 0.3396, 0.0189, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_966:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_966:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_966:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_966:Expr_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/env python # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
ajibawa-2023/Python-Code-Large/train/row_968
16
57
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_968:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.2982, 0.0175, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_968:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_968:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_968:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_968:FunctionDef_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
#!/usr/bin/env python # # 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, softwa...
ajibawa-2023/Python-Code-Large/train/row_970
56
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_970:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 20], "level": 0, "parent": null, "vector": [8, 0, 0.1535, 0.0526, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_970:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_970:If_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_970:If_L43_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_970:Expr_L44_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_970:...
#!/usr/bin/env python # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
ajibawa-2023/Python-Code-Large/train/row_972
17
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_972:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.3148, 0.0185, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_972:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_972:Expr_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_972:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_972:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # 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 b...
ajibawa-2023/Python-Code-Large/train/row_973
24
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_973:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.2891, 0.0625, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_973:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_973:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_973:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_973:Assign_L43_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # 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 b...
ajibawa-2023/Python-Code-Large/train/row_975
26
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_975:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.2681, 0.058, 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_975:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_975:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_975:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_975:Assign_L48_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # 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 b...
ajibawa-2023/Python-Code-Large/train/row_976
16
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_976:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.4022, 0.087, 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_976:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_976:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_976:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_976:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # 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 b...
ajibawa-2023/Python-Code-Large/train/row_977
20
51
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_977:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.3627, 0.0784, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_977:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_977:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_977:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_977:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # 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 b...
ajibawa-2023/Python-Code-Large/train/row_978
27
78
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_978:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 20], "level": 0, "parent": null, "vector": [8, 0, 0.2372, 0.0513, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_978:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_978:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_978:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_978:Assign_L48_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_980
14
71
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_980:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.2394, 0.0704, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_980:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_980:Import_L38_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_980:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_980:Assign_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_980:T...
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
ajibawa-2023/Python-Code-Large/train/row_981
112
147
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_981:Import_L3_C0", "label": "re import re", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0068, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": "", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_981:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_981:If_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_981:If_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_981:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_981:If...
#!/usr/bin/env python import glob import imp import logging import os import sys import unittest from trace import fullmodname logging.basicConfig(level=logging.CRITICAL) APP_ENGINE_PATH='../google_appengine' # Conditional import of cleanup function try: from tests.utils import cleanup except: def cleanup(): ...
ajibawa-2023/Python-Code-Large/train/row_982
23
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_982:Import_L2_C0", "label": "glob import glob", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0541, 0.027, 0, 0.66, 0.0, 958, 0, 1, 0, 0, 958, 0, 0], "semantic": {"name": "glob", "arg_names": [], "import_names": ["glob"], "rhs_call_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_982:Try_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_982:ImportFrom_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_982:Try_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_982:FunctionDef_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
ajibawa-2023/Python-Code-Large/train/row_983
36
74
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_983:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 28], "level": 0, "parent": null, "vector": [8, 0, 0.3108, 0.1486, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_983:If_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_983:Expr_L40_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_983:For_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_983:Assign_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_983:For_...
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ajibawa-2023/Python-Code-Large/train/row_984
35
63
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_984:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.2698, 0.0159, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_984:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_984:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_984:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_984:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
ajibawa-2023/Python-Code-Large/train/row_985
83
229
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_985:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 30], "level": 0, "parent": null, "vector": [8, 0, 0.1048, 0.0568, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_985:For_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_985:If_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_985:If_L46_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_985:Assign_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_985:Functi...
#!/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_986
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_986: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_986:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_986:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_986:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_986:FunctionDef_L17_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
#!/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_987
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_987: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": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_987:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_987:Return_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_987:FunctionDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_987:Assign_L57_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/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_988
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_988: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_988:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_988:Expr_L60_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_988:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_988:Assign_L71_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/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_989
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_989: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_989:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_989:Assign_L83_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_989:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_989:Expr_L85_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...