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
""" _logging module (imdb package). This module provides the logging facilities used by the imdb package. Copyright 2009-2010 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software...
ajibawa-2023/Python-Code-Large/train/row_2943
13
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_2943:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1746, 0.3333, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2943:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2943:Expr_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2943:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2943:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
""" _exceptions module (imdb package). This module provides the exception hierarchy used by the imdb package. Copyright 2004-2009 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Soft...
ajibawa-2023/Python-Code-Large/train/row_2944
13
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_2944:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 21], "level": 0, "parent": null, "vector": [8, 0, 0.2391, 0.4565, 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_2944:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2944:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2944:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2944:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" articles module (imdb package). This module provides functions and data to handle in a smart way articles (in various languages) at the beginning of movie titles. Copyright 2009 Davide Alberani <da@erlug.linux.it> 2009 H. Turgut Uyar <uyar@tekir.org> This program is free software; you can redistribute...
ajibawa-2023/Python-Code-Large/train/row_2946
41
142
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2946:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0845, 0.162, 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_2946:For_L89_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2946:For_L90_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2946:For_L90_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2946:Assign_L91_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2946...
""" helpers module (imdb package). This module provides functions not used directly by the imdb package, but useful for IMDbPY-based programs. Copyright 2006-2010 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Lice...
ajibawa-2023/Python-Code-Large/train/row_2947
366
548
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2947:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.021, 0.0401, 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_2947:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2947:Expr_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2947:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2947:FunctionDef_L55_C4"}, {"f": "ajibawa-2023/Python-Cod...
""" company module (imdb package). This module provides the company class, used to store information about a given company. Copyright 2008-2009 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by...
ajibawa-2023/Python-Code-Large/train/row_2950
99
195
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2950:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.059, 0.1128, 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_2950:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2950:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2950:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2950:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" topMovies.py Prints top 10 movies, by ratings. """ import sys # Import the IMDbPY package. try: import imdb except ImportError: print 'You need to install the IMDbPY package!' sys.exit(1) def unic(string): try: print string except UnicodeEncodeError: print ...
ajibawa-2023/Python-Code-Large/train/row_2956
18
34
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2956:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0882, 0.1471, 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_2956:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2956:Import_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2956:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2956:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_295...
''' Created on 29/03/2011 @author: Eran_Z IO ''' #Input def getWeightingAlg(): """Gets the name of the desired weighting algorithm.""" return "Mutual Information" def getScoringAlg(): """Gets the name of the desired scoring algorithm.""" return "Normalized Mutual Information" def g...
ajibawa-2023/Python-Code-Large/train/row_2958
38
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_2958:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0702, 0.1228, 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_2958:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2958:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2958:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2958:Return_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
''' Created on 29/03/2011 @author: Eran_Z Scoring ''' from search_m import searchSingle, searchTogether, searchExclusion, NGD from util_m import sum #Helper functions: def __sigmaMutualWeight(w, context, weights): #TODO: DRY with __normalizedSigmaMutualWeight... return reduce(sum, map(lambda...
ajibawa-2023/Python-Code-Large/train/row_2959
18
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_2959:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0833, 0.1458, 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_2959:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2959:Return_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2959:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2959:Return_L21_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/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_2960
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_2960: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_2960:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2960:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2960:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2960:Import_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2960:Tr...
#!/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_2961
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_2961: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_2961:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2961:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2961:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2961:Import_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2961:Tr...
from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^members/',include("members.urls")), url(r'^movies/',include("movies.urls")), # Examples: # url(r'^$', 'RSM.views...
ajibawa-2023/Python-Code-Large/train/row_2962
4
19
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2962:ImportFrom_L1_C0", "label": "from django.conf.urls.defaults import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0526, 0, 0.66, 0.0, 341, 0, 1, 0, 0, 341, 0, 0], "semantic": {"name": "django.conf.urls.defaults", "arg_na...
[]
# Django settings for RSM project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. ...
ajibawa-2023/Python-Code-Large/train/row_2963
24
148
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2963:Assign_L3_C0", "label": "DEBUG =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.0203, 0.0068, 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 class Movie(models.Model): name = models.CharField(max_length=255) def __unicode__(self): return self.name
ajibawa-2023/Python-Code-Large/train/row_2964
5
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_2964: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": ["m...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2964:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2964:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2964:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2964:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
""" 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_2965
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_2965: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": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2965:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2965:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2965:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2965:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-L...
from django.conf.urls.defaults import * urlpatterns = patterns('movies.views', (r'init/','initMovies'), (r'movies/','viewMovies'), (r'match/','matchMovie'), (r'','indexMovie'), )
ajibawa-2023/Python-Code-Large/train/row_2966
2
8
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2966:ImportFrom_L1_C0", "label": "from django.conf.urls.defaults import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.125, 0.125, 0, 0.66, 0.0, 341, 0, 1, 0, 0, 341, 0, 0], "semantic": {"name": "django.conf.urls.defaults", "arg_name...
[]
from django.http import HttpResponse from models import Movie from django.shortcuts import render_to_response import types try: import feasibility except ImportError: print 'You need to install the feasibility package!' try: import io_m except ImportError: print 'You need to install the i...
ajibawa-2023/Python-Code-Large/train/row_2967
39
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_2967:ImportFrom_L1_C0", "label": "from django.http import HttpResponse", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0175, 0.0175, 0, 0.66, 0.0, 779, 0, 1, 0, 0, 779, 0, 0], "semantic": {"name": "django.http", "arg_names": [], "import...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2967:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2967:Import_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2967:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2967:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2967:Tr...
from django import forms class NameForm(forms.Form): name = forms.CharField() def getName(self): return self.cleaned_data["name"] def clean_name(self): name = self.cleaned_data.get("name","") if len(name)<3: raise forms.ValidationError("Name should be at least 3...
ajibawa-2023/Python-Code-Large/train/row_2968
9
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_2968:ImportFrom_L1_C0", "label": "from django import forms", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0909, 0.0909, 0, 0.66, 0.0, 294, 0, 1, 0, 0, 294, 0, 0], "semantic": {"name": "django", "arg_names": [], "import_names": ["forms"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2968:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2968:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2968:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2968:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
from django.db import models class Study(models.Model): name = models.CharField(max_length=255) year = models.SmallIntegerField() def __unicode__(self): return self.name class Member(models.Model): first_name = models.CharField(max_length=255) last_name = models.CharField(m...
ajibawa-2023/Python-Code-Large/train/row_2969
16
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_2969:ImportFrom_L1_C0", "label": "from django.db import models", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.05, 0.05, 0, 0.66, 0.0, 40, 0, 1, 0, 0, 40, 0, 0], "semantic": {"name": "django.db", "arg_names": [], "import_names": ["model...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2969:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2969:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2969:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2969:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
""" 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_2970
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_2970: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": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2970:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2970:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2970:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2970:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-L...
from django.conf.urls.defaults import * urlpatterns = patterns('members.views', (r'testing/','membersList'), (r'form/','formView'), (r'','myFirstView'), )
ajibawa-2023/Python-Code-Large/train/row_2971
2
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_2971:ImportFrom_L1_C0", "label": "from django.conf.urls.defaults import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.1429, 0, 0.66, 0.0, 341, 0, 1, 0, 0, 341, 0, 0], "semantic": {"name": "django.conf.urls.defaults", "arg_na...
[]
from django.contrib import admin from models import Member, Study admin.site.register(Member) admin.site.register(Study)
ajibawa-2023/Python-Code-Large/train/row_2972
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_2972: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"...
[]
from django.http import HttpResponse from models import Member from forms import NameForm from django.shortcuts import render_to_response def myFirstView(request): return HttpResponse("Hello World!") def membersList(request): variables = {"members":Member.objects.all()} return render_to_response...
ajibawa-2023/Python-Code-Large/train/row_2973
14
17
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2973:ImportFrom_L1_C0", "label": "from django.http import HttpResponse", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0588, 0.0588, 0, 0.66, 0.0, 779, 0, 1, 0, 0, 779, 0, 0], "semantic": {"name": "django.http", "arg_names": [], "import...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2973:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2973:Return_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2973:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2973:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
''' Created on 30/03/2011 @author: Eran_Z Utilities ''' def sum(x,y): return x+y class BadMovie(Exception): pass
ajibawa-2023/Python-Code-Large/train/row_2975
4
13
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2975:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.3077, 0.5385, 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_2975:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2975:Return_L10_C4"}]
''' Created on 29/03/2011 @author: Eran_Z Weighting ''' import search_m from util_m import sum, BadMovie #Helper functions def __singleMutualInformationWeight(term1, term2): ss1 = search_m.searchSingle(term1) ss2 = search_m.searchSingle(term2) st = search_m.searchTogether(term1, term2) ...
ajibawa-2023/Python-Code-Large/train/row_2976
35
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_2976:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0541, 0.0946, 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_2976:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2976:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2976:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2976:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import urllib try: import json except ImportError: import simplejson as json import logging class BingException(Exception): pass class Bing(object): def __init__(self, app_id, loglevel=logging.INFO): self.app_id = app_id self.log_filename = 'log.log' self.end_point = 'http://api...
ajibawa-2023/Python-Code-Large/train/row_2977
47
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_2977:Import_L1_C0", "label": "urllib import urllib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0141, 0.0141, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "urllib", "arg_names": [], "import_names": ["urllib"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2977:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2977:Import_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2977:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2977:Import_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2977:...
''' Created on Apr 23, 2011 @author: Dima ''' import bingapi N = 720000000L #This Function returns number of results of keyword #Using Bing Search Engine def bingSearchResults(keyword): searchval= keyword appId = '722A2CD216180D27F3F09631E65DE629692AC3C5' bing = ...
ajibawa-2023/Python-Code-Large/train/row_2978
11
22
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2978:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.1364, 0.2273, 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_2978:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2978:Assign_L12_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2978:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2978:Assign_L13_C8"}, {"f": "ajibawa-2023/Python-Code-L...
''' Created on 01/05/2011 @author: Eran_Z '''
ajibawa-2023/Python-Code-Large/train/row_2979
1
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_2979:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.6, 1.0, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": "...
[]
''' Created on 08/04/2011 @author: Eran_Z Google search (num results), based on Dima's implementation currently uses deprecated API ''' import json import urllib #N = 25270000000L #25.27 billion, roughly google's index size. Should be reduced for other engines. N = 1870000000L #roughly the index of the...
ajibawa-2023/Python-Code-Large/train/row_2980
12
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_2980:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.18, 0.32, 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_2980:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2980:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2980:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2980:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import urllib try: import json except ImportError: import simplejson as json import logging class Boss(object): def __init__(self, appid, loglevel=logging.INFO): self.appid = appid self.log_filename = 'log.log' logging.basicConfig(level=loglevel, format='%(...
ajibawa-2023/Python-Code-Large/train/row_2981
33
43
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2981:Import_L1_C0", "label": "urllib import urllib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0233, 0.0233, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "urllib", "arg_names": [], "import_names": ["urllib"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2981:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2981:Import_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2981:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2981:Import_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2981:...
''' Created on May 22, 2011 @author: Dima ''' import bossapi N = 720000000L #This Function returns number of results of keyword #Using Boss Search Engine def bossSearchResults(keyword): searchval= keyword appId = 'NDK5RxPV34EeYsgrmer5dNvgfQaQYuU4VYT._GHo.nxdkl_2502aXf5DcFpIe0PdYQ...
ajibawa-2023/Python-Code-Large/train/row_2982
11
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_2982:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.1429, 0.2381, 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_2982:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2982:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2982:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2982:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-L...
''' Created on 22/05/2011 @author: Dima '''
ajibawa-2023/Python-Code-Large/train/row_2983
1
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_2983:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.6, 1.0, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": "...
[]
''' Created on 01/05/2011 @author: Eran_Z '''
ajibawa-2023/Python-Code-Large/train/row_2984
1
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_2984:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.6, 1.0, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": "...
[]
''' Created on 06/05/2011 @author: Eran_Z populates the cache according to the input files ''' from RSM.algorithm import imdb_m from RSM.my_movies.models import Movie, SearchResult from django.shortcuts import render_to_response from RSM.util import printDebug, isLegalName import string import imdb im...
ajibawa-2023/Python-Code-Large/train/row_2985
114
161
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2985:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0248, 0.0435, 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_2985:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2985:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2985:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2985:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
''' Created on 29/03/2011 @author: Eran_Z Searching ''' from RSM.my_movies.models import Movie, SearchResult def searchSingle(term): """Returns number of hits for given term.""" return getattr(Movie.objects.get(title=term),'searchSingle') def searchTogether(term1, term2): """Returns numb...
ajibawa-2023/Python-Code-Large/train/row_2986
28
52
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2986:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0769, 0.1346, 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_2986:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2986:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2986:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2986:Return_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
''' Created on 27/03/2011 @author: Eran_Z Feasibility study (main) ''' import weights_m import scores_m def generateWeights(algorithm, context, world): """Generates a list of weights for the context items. This is a list of numbers (preferrably positive)""" return algorithm(context, world)...
ajibawa-2023/Python-Code-Large/train/row_2987
21
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_2987:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0727, 0.1273, 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_2987:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2987:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2987:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2987:Return_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python """ generatepot.py script. This script generates the imdbpy.pot file, from the DTD. Copyright 2009 H. Turgut Uyar <uyar@tekir.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundati...
ajibawa-2023/Python-Code-Large/train/row_2989
3
5
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2989:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": "", "anno...
[]
#!/usr/bin/env python """ generatepot.py script. This script generates the imdbpy.pot file, from the DTD. Copyright 2009 H. Turgut Uyar <uyar@tekir.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundati...
ajibawa-2023/Python-Code-Large/train/row_2990
3
5
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2990:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": "", "anno...
[]
#!/usr/bin/env python """ rebuildmo.py script. This script builds the .mo files, from the .po files. Copyright 2009 H. Turgut Uyar <uyar@tekir.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; e...
ajibawa-2023/Python-Code-Large/train/row_2991
21
49
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2991:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 22], "level": 0, "parent": null, "vector": [8, 0, 0.2449, 0.4286, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2991:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2991:Assign_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2991:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2991:Assign_L32_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python """ rebuildmo.py script. This script builds the .mo files, from the .po files. Copyright 2009 H. Turgut Uyar <uyar@tekir.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; e...
ajibawa-2023/Python-Code-Large/train/row_2992
21
49
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2992:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 22], "level": 0, "parent": null, "vector": [8, 0, 0.2449, 0.4286, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2992:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2992:Assign_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2992:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2992:Assign_L32_C4"}, {"f": "ajibawa-2023/Python-Code-L...
""" locale package (imdb package). This package provides scripts and files for internationalization of IMDbPY. Copyright 2009 H. Turgut Uyar <uyar@tekir.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Fou...
ajibawa-2023/Python-Code-Large/train/row_2993
5
29
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2993:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.3966, 0.7586, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
""" Movie module (imdb package). This module provides the Movie class, used to store information about a given movie. Copyright 2004-2010 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the F...
ajibawa-2023/Python-Code-Large/train/row_2994
183
398
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2994:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.0289, 0.0553, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2994:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2994:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2994:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2994:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" Person module (imdb package). This module provides the Person class, used to store information about a given person. Copyright 2004-2010 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by th...
ajibawa-2023/Python-Code-Large/train/row_2995
121
275
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2995:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.0418, 0.08, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2995:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2995:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2995:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2995:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" Character module (imdb package). This module provides the Character class, used to store information about a given character. Copyright 2007-2010 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publis...
ajibawa-2023/Python-Code-Large/train/row_2996
98
197
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2996:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.0584, 0.1117, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2996:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2996:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2996:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2996:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#-*- encoding: utf-8 -*- """ parser.sql.dbschema module (imdb.parser.sql package). This module provides the schema used to describe the layout of the database used by the imdb.parser.sql package; functions to create/drop tables and indexes are also provided. Copyright 2005-2010 Davide Alberani <da@erlug.linux.it> ...
ajibawa-2023/Python-Code-Large/train/row_2998
99
461
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2998:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 25], "level": 0, "parent": null, "vector": [8, 0, 0.0293, 0.0521, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2998:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2998:Expr_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2998:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2998:FunctionDef_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
""" parser.http.movieParser module (imdb package). This module provides the classes (and the instances), used to parse the IMDb pages on the akas.imdb.com server about a movie. E.g., for Brian De Palma's "The Untouchables", the referred pages would be: combined details: http://akas.imdb.com/title/tt0094226/combi...
ajibawa-2023/Python-Code-Large/train/row_3001
711
1,965
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3001:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 28], "level": 0, "parent": null, "vector": [8, 0, 0.0074, 0.0142, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3001:FunctionDef_L95_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3001:Expr_L96_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3001:FunctionDef_L95_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3001:Assign_L98_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
""" parser.http.personParser module (imdb package). This module provides the classes (and the instances), used to parse the IMDb pages on the akas.imdb.com server about a person. E.g., for "Mel Gibson" the referred pages would be: categorized: http://akas.imdb.com/name/nm0000154/maindetails biography: ...
ajibawa-2023/Python-Code-Large/train/row_3002
139
559
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3002:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 27], "level": 0, "parent": null, "vector": [8, 0, 0.025, 0.0483, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3002:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3002:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3002:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3002:Assign_L43_C4"}, {"f": "ajibawa-2023/Python-Code-L...
""" parser.http.searchMovieParser module (imdb package). This module provides the HTMLSearchMovieParser class (and the search_movie_parser instance), used to parse the results of a search for a given title. E.g., for when searching for the title "the passion", the parsed page would be: http://akas.imdb.com/find?q=...
ajibawa-2023/Python-Code-Large/train/row_3003
82
178
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3003:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 27], "level": 0, "parent": null, "vector": [8, 0, 0.0787, 0.1517, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3003:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3003:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3003:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3003:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" parser.http.topBottomParser module (imdb package). This module provides the classes (and the instances), used to parse the lists of top 250 and bottom 100 movies. E.g.: http://akas.imdb.com/chart/top http://akas.imdb.com/chart/bottom Copyright 2009 Davide Alberani <da@erlug.linux.it> This program is free...
ajibawa-2023/Python-Code-Large/train/row_3004
40
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3004:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 25], "level": 0, "parent": null, "vector": [8, 0, 0.1226, 0.2358, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3004:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3004:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3004:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3004:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" parser.http.searchKeywordParser module (imdb package). This module provides the HTMLSearchKeywordParser class (and the search_company_parser instance), used to parse the results of a search for a given keyword. E.g., when searching for the keyword "alabama", the parsed page would be: http://akas.imdb.com/find?...
ajibawa-2023/Python-Code-Large/train/row_3005
33
111
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3005:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 25], "level": 0, "parent": null, "vector": [8, 0, 0.1171, 0.2252, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3005:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3005:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3005:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3005:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" parser.http.searchCompanyParser module (imdb package). This module provides the HTMLSearchCompanyParser class (and the search_company_parser instance), used to parse the results of a search for a given company. E.g., when searching for the name "Columbia Pictures", the parsed page would be: http://akas.imdb.co...
ajibawa-2023/Python-Code-Large/train/row_3006
15
71
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3006:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1901, 0.3662, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3006:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3006:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3006:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3006:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" parser.http.searchPersonParser module (imdb package). This module provides the HTMLSearchPersonParser class (and the search_person_parser instance), used to parse the results of a search for a given person. E.g., when searching for the name "Mel Gibson", the parsed page would be: http://akas.imdb.com/find?q=Me...
ajibawa-2023/Python-Code-Large/train/row_3007
28
92
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3007:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1467, 0.2826, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3007:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3007:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3007:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3007:If_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" parser.http.bsouplxml.etree module (imdb.parser.http package). This module adapts the beautifulsoup interface to lxml.etree module. Copyright 2008 H. Turgut Uyar <uyar@tekir.org> 2008 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the t...
ajibawa-2023/Python-Code-Large/train/row_3010
30
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3010:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.1533, 0.2933, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3010:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3010:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3010:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3010:Return_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
""" parser.http.bsoupxpath module (imdb.parser.http package). This module provides XPath support for BeautifulSoup. Copyright 2008 H. Turgut Uyar <uyar@tekir.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Softwar...
ajibawa-2023/Python-Code-Large/train/row_3011
262
394
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3011:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 21], "level": 0, "parent": null, "vector": [8, 0, 0.0279, 0.0533, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3011:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3011:Expr_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3011:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3011:Assign_L56_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
""" parser.http.bsouplxml.html module (imdb.parser.http package). This module adapts the beautifulsoup interface to lxml.html module. Copyright 2008 H. Turgut Uyar <uyar@tekir.org> 2008 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the ter...
ajibawa-2023/Python-Code-Large/train/row_3012
5
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3012:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.371, 0.7097, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3012:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3012:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3012:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3012:Return_L29_C4"}]
""" parser.http.companyParser module (imdb package). This module provides the classes (and the instances), used to parse the IMDb pages on the akas.imdb.com server about a company. E.g., for "Columbia Pictures [us]" the referred page would be: main details: http://akas.imdb.com/company/co0071509/ Copyright 2008...
ajibawa-2023/Python-Code-Large/train/row_3014
18
91
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3014:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 25], "level": 0, "parent": null, "vector": [8, 0, 0.1429, 0.2747, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3014:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3014:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3014:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3014:Assign_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" parser.http.characterParser module (imdb package). This module provides the classes (and the instances), used to parse the IMDb pages on the akas.imdb.com server about a character. E.g., for "Jesse James" the referred pages would be: main details: http://www.imdb.com/character/ch0000001/ biography: ...
ajibawa-2023/Python-Code-Large/train/row_3015
35
203
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3015:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 27], "level": 0, "parent": null, "vector": [8, 0, 0.069, 0.133, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3015:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3015:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3015:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3015:Assign_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" parser.http.searchCharacterParser module (imdb package). This module provides the HTMLSearchCharacterParser class (and the search_character_parser instance), used to parse the results of a search for a given character. E.g., when searching for the name "Jesse James", the parsed page would be: http://akas.imdb....
ajibawa-2023/Python-Code-Large/train/row_3016
15
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3016:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1957, 0.3768, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3016:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3016:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3016:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3016:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" parser package (imdb package). This package provides various parsers to access IMDb data (e.g.: a parser for the web/http interface, a parser for the SQL database interface, etc.). So far, the http/httpThin, mobile and sql parsers are implemented. Copyright 2004-2009 Davide Alberani <da@erlug.linux.it> This prog...
ajibawa-2023/Python-Code-Large/train/row_3018
2
28
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3018:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 24], "level": 0, "parent": null, "vector": [8, 0, 0.4464, 0.8571, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
""" _logging module (imdb package). This module provides the logging facilities used by the imdb package. Copyright 2009-2010 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software...
ajibawa-2023/Python-Code-Large/train/row_3019
13
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_3019:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1746, 0.3333, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3019:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3019:Expr_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3019:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3019:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
""" _exceptions module (imdb package). This module provides the exception hierarchy used by the imdb package. Copyright 2004-2009 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Soft...
ajibawa-2023/Python-Code-Large/train/row_3020
13
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_3020:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 21], "level": 0, "parent": null, "vector": [8, 0, 0.2391, 0.4565, 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_3020:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3020:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3020:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3020:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" articles module (imdb package). This module provides functions and data to handle in a smart way articles (in various languages) at the beginning of movie titles. Copyright 2009 Davide Alberani <da@erlug.linux.it> 2009 H. Turgut Uyar <uyar@tekir.org> This program is free software; you can redistribute...
ajibawa-2023/Python-Code-Large/train/row_3022
41
142
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3022:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0845, 0.162, 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_3022:For_L89_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3022:For_L90_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3022:For_L90_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3022:Assign_L91_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3022...
""" helpers module (imdb package). This module provides functions not used directly by the imdb package, but useful for IMDbPY-based programs. Copyright 2006-2010 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public Lice...
ajibawa-2023/Python-Code-Large/train/row_3023
366
548
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3023:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.021, 0.0401, 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_3023:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3023:Expr_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3023:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3023:FunctionDef_L55_C4"}, {"f": "ajibawa-2023/Python-Cod...
""" company module (imdb package). This module provides the company class, used to store information about a given company. Copyright 2008-2009 Davide Alberani <da@erlug.linux.it> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by...
ajibawa-2023/Python-Code-Large/train/row_3026
99
195
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3026:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.059, 0.1128, 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_3026:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3026:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3026:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3026:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" topMovies.py Prints top 10 movies, by ratings. """ import sys # Import the IMDbPY package. try: import imdb except ImportError: print 'You need to install the IMDbPY package!' sys.exit(1) def unic(string): try: print string except UnicodeEncodeError: print ...
ajibawa-2023/Python-Code-Large/train/row_3032
18
34
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3032:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0882, 0.1471, 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_3032:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3032:Import_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3032:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3032:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_303...
''' Created on 21/04/2011 @author: Eran_Z '''
ajibawa-2023/Python-Code-Large/train/row_3034
1
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_3034:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.6, 1.0, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": "...
[]
''' Created on 29/03/2011 @author: Eran_Z Scoring ''' from search_m import searchSingle, searchTogether from util_m import sum, BadMovie #Helper functions: def __normalizedSigmaMutualWeightHelper(w, ci, wi): ss = searchSingle(w) st = searchTogether(w, ci) #return 0 if ss < st else st*wi...
ajibawa-2023/Python-Code-Large/train/row_3035
26
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_3035:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0625, 0.1094, 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_3035:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3035:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3035:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3035:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/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_3036
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_3036: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_3036:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3036:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3036:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3036:Import_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3036:Tr...
from django.db import models class Movie(models.Model): title = models.CharField(max_length=200, primary_key=True) year = models.PositiveSmallIntegerField() searchPair = models.ManyToManyField('self', symmetrical=False, blank=True, through='SearchResult') searchSingle = models.BigIntegerField() ...
ajibawa-2023/Python-Code-Large/train/row_3037
17
21
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3037:ImportFrom_L1_C0", "label": "from django.db import models", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0476, 0.0476, 0, 0.66, 0.0, 40, 0, 1, 0, 0, 40, 0, 0], "semantic": {"name": "django.db", "arg_names": [], "import_names": ["m...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3037:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3037:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3037:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3037:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
""" Test Movies module """ from django.test import TestCase from RSM.my_friends.models import RSMUser, User from RSM.my_friends.views import getUserNames from RSM.my_movies.views import __updateUserMoviesList from RSM.util import getRSMUser from RSM.algorithm.search.makeCache import makeTestCache getUserNam...
ajibawa-2023/Python-Code-Large/train/row_3038
89
116
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3038:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0172, 0.0259, 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_3038:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3038:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3038:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3038:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
''' Created on Apr 29, 2011 @author: shurok ''' from django.conf.urls.defaults import patterns urlpatterns = patterns('my_movies.views', (r'^viewMovieTypes/viewMovies/$','viewMovies'), (r'^viewMovieTypes/$','viewMovieTypes'), )
ajibawa-2023/Python-Code-Large/train/row_3039
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_3039:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.25, 0.4167, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[]
''' Created on 21/04/2011 @author: Eran_Z ''' from django.contrib import admin from models import Movie, SearchResult admin.site.register(Movie) admin.site.register(SearchResult)
ajibawa-2023/Python-Code-Large/train/row_3040
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_3040:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2727, 0.4545, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
from django.template import RequestContext from django.shortcuts import render_to_response from models import Movie from RSM.util import getRSMUser, verifySessionValidity, printDebug, getTitle def viewMovieTypes(request): nonValidSessionFlag = verifySessionValidity(request) if nonValidSessionFlag: ...
ajibawa-2023/Python-Code-Large/train/row_3041
41
56
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3041:ImportFrom_L1_C0", "label": "from django.template import RequestContext", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0179, 0.0179, 0, 0.66, 0.0, 213, 0, 1, 0, 0, 213, 0, 0], "semantic": {"name": "django.template", "arg_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3041:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3041:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3041:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3041:If_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#from django.db import models #from RSM.my_movies.models import * #from RSM.my_friends.models import *
ajibawa-2023/Python-Code-Large/train/row_3042
0
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"]
[]
[]
""" Test recommendations module """ from django.test import TestCase from RSM.my_friends.models import RSMUser, User from RSM.my_friends.views import getUserNames from RSM.my_movies.views import __updateUserMoviesList from RSM.util import getRSMUser from RSM.algorithm.search.makeCache import makeTestCache g...
ajibawa-2023/Python-Code-Large/train/row_3043
107
132
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3043:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0152, 0.0227, 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_3043:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3043:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3043:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3043:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
''' Created on 21/04/2011 @author: Eran_Z ''' from django.conf.urls.defaults import patterns urlpatterns = patterns('recommendation.views', (r'^$', 'chooseFriends'), (r'^recommend/$', 'recommend'), )
ajibawa-2023/Python-Code-Large/train/row_3044
3
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_3044:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2727, 0.4545, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
from django.template import RequestContext from django.shortcuts import render_to_response from RSM.algorithm.feasibility import COR_algorithm from RSM.my_movies.models import Movie from RSM.util import verifySessionValidity, getRSMUser, getRSMGroup, getTitle recommendationLimit = 10 def recommend(request): ...
ajibawa-2023/Python-Code-Large/train/row_3045
76
121
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3045:ImportFrom_L1_C0", "label": "from django.template import RequestContext", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0083, 0.0083, 0, 0.66, 0.0, 213, 0, 1, 0, 0, 213, 0, 0], "semantic": {"name": "django.template", "arg_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3045:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3045:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3045:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3045:If_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/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_3046
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_3046: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_3046:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3046:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3046:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3046:Import_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3046:Tr...
from django.conf.urls.defaults import patterns, include, url from django.contrib.staticfiles.urls import staticfiles_urlpatterns from django.conf import settings # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', (r'^recomm...
ajibawa-2023/Python-Code-Large/train/row_3047
7
41
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3047: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.0244, 0.0244, 0, 0.66, 0.0, 341, 0, 3, 0, 0, 341, 0, 0], "semantic": {"name": "django.conf.ur...
[]
# Django settings for RSM project. import os DEBUG = True TEMPLATE_DEBUG = DEBUG DEBUG_PRINTS = DEBUG SITE_ROOT = os.path.dirname(os.path.realpath(__file__)).replace('\\','/') ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGI...
ajibawa-2023/Python-Code-Large/train/row_3048
27
156
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3048:Import_L2_C0", "label": "os import os", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0128, 0.0064, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "",...
[]
from django.shortcuts import redirect, get_object_or_404 from my_friends.models import RSMUser from my_groups.models import RSMGroup import string from django.conf import settings def getRSMUser(username): return get_object_or_404(RSMUser, user__username=username) def getRSMGroup(username, groupname):...
ajibawa-2023/Python-Code-Large/train/row_3049
33
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_3049:ImportFrom_L1_C0", "label": "from django.shortcuts import redirect, get_object_or_404", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0217, 0.0217, 0, 0.66, 0.0, 852, 0, 2, 0, 0, 852, 0, 0], "semantic": {"name": "django.shortcuts",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3049:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3049:Return_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3049:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3049:Return_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
from django.contrib import auth from django.contrib.auth.models import User from django.template import RequestContext from django.db import IntegrityError from django.shortcuts import render_to_response, get_object_or_404, redirect from RSM.my_friends.models import RSMUser from RSM.util import printDebug, getExt...
ajibawa-2023/Python-Code-Large/train/row_3050
77
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_3050:ImportFrom_L1_C0", "label": "from django.contrib import auth", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0103, 0.0103, 0, 0.66, 0.0, 302, 0, 1, 0, 0, 302, 0, 0], "semantic": {"name": "django.contrib", "arg_names": [], "import_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3050:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3050:If_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3050:If_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3050:If_L11_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_305...
from django.db import models from django.contrib.auth.models import User class RSMUser(models.Model): user = models.OneToOneField(User) friends = models.ManyToManyField('self', symmetrical=False, blank=True) seen = models.ManyToManyField('my_movies.Movie', related_name='viewers', blank=True) lik...
ajibawa-2023/Python-Code-Large/train/row_3051
11
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_3051:ImportFrom_L1_C0", "label": "from django.db import models", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0833, 0.0833, 0, 0.66, 0.0, 40, 0, 1, 0, 0, 40, 0, 0], "semantic": {"name": "django.db", "arg_names": [], "import_names": ["m...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3051:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3051:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3051:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3051:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
""" Test Friends module """ from django.test import TestCase from models import RSMUser, User #from django.template import RequestContext from RSM.my_friends.views import getUserNames getUserNames = getUserNames class FriendsTest(TestCase): added = False testCount = 1 def setUp(self)...
ajibawa-2023/Python-Code-Large/train/row_3052
86
131
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3052:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0153, 0.0229, 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_3052:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3052:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3052:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3052:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
from django.conf.urls.defaults import patterns urlpatterns = patterns('my_friends.views', (r'^add/$','addFriend'), (r'^all/$','viewAllFriends'), (r'^remove/$','removeFriend'), (r'^activeAdd/$','actualAdd'), )
ajibawa-2023/Python-Code-Large/train/row_3053
2
8
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3053:ImportFrom_L1_C0", "label": "from django.conf.urls.defaults import patterns", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.125, 0.125, 0, 0.66, 0.0, 341, 0, 1, 0, 0, 341, 0, 0], "semantic": {"name": "django.conf.urls.defaults", "a...
[]
''' Created on 21/04/2011 @author: Eran_Z ''' from django.contrib import admin from models import RSMUser admin.site.register(RSMUser)
ajibawa-2023/Python-Code-Large/train/row_3054
4
10
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3054:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.3, 0.5, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": "...
[]
from django.template import RequestContext from django.shortcuts import render_to_response from models import RSMUser from RSM.util import verifySessionValidity, getUserNames, getRSMUser def addFriend(request): nonValidSessionFlag = verifySessionValidity(request) if nonValidSessionFlag: ret...
ajibawa-2023/Python-Code-Large/train/row_3055
49
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_3055:ImportFrom_L1_C0", "label": "from django.template import RequestContext", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0172, 0.0172, 0, 0.66, 0.0, 213, 0, 1, 0, 0, 213, 0, 0], "semantic": {"name": "django.template", "arg_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3055:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3055:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3055:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3055:If_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
from django.db import models class RSMGroup(models.Model): owner = models.CharField(max_length=200) groupName = models.CharField(max_length=200) members = models.ManyToManyField('my_friends.RSMUser') class Meta: unique_together = ("owner", "groupName") def __unicode_...
ajibawa-2023/Python-Code-Large/train/row_3056
9
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_3056:ImportFrom_L1_C0", "label": "from django.db import models", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0714, 0.0714, 0, 0.66, 0.0, 40, 0, 1, 0, 0, 40, 0, 0], "semantic": {"name": "django.db", "arg_names": [], "import_names": ["m...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3056:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3056:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3056:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3056:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
""" Test Groups module """ from django.test import TestCase from RSM.my_friends.models import RSMUser, User #from django.template import RequestContext from RSM.my_friends.views import getUserNames from RSM.util import getRSMGroup getRSMGroup = getRSMGroup getUserNames = getUserNames class GroupsTest(T...
ajibawa-2023/Python-Code-Large/train/row_3057
153
214
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3057:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0093, 0.014, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3057:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3057:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3057:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3057:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
''' Created on May 26, 2011 @author: dima ''' from django.conf.urls.defaults import patterns urlpatterns = patterns('my_groups.views', (r'^allGroups/$','allGroups'), (r'^create/$','createGroup'), (r'^remove/$','removeGroup'), (r'^activeAdd/$','actualAdd'), (r'^manage/$','editGroup'), ...
ajibawa-2023/Python-Code-Large/train/row_3058
3
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_3058:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.3333, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation"...
[]
from django.template import RequestContext from django.db import IntegrityError from django.shortcuts import render_to_response, redirect from models import RSMGroup from RSM.util import verifySessionValidity, getRSMGroup, getUserNames, getRSMUser, isSafeName, getExtend import hashlib def allGroups(request): ...
ajibawa-2023/Python-Code-Large/train/row_3059
82
100
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3059:ImportFrom_L1_C0", "label": "from django.template import RequestContext", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.01, 0.01, 0, 0.66, 0.0, 213, 0, 1, 0, 0, 213, 0, 0], "semantic": {"name": "django.template", "arg_names": [], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3059:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3059:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3059:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3059:If_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
''' Created on 30/03/2011 @author: Eran_Z Utilities ''' def sum(x,y): return x+y
ajibawa-2023/Python-Code-Large/train/row_3061
3
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_3061:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.3636, 0.6364, 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_3061:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3061:Return_L10_C4"}]
''' Created on 08/04/2011 @author: Eran_Z Google search (num results), based on Dima's implementation currently uses deprecated API ''' import json import urllib #N = 25270000000L #25.27 billion, roughly google's index size. Should be reduced for other engines. N = 1870000000L #roughly the index of the...
ajibawa-2023/Python-Code-Large/train/row_3062
12
26
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3062:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1731, 0.3077, 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_3062:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3062:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3062:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3062:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-L...
''' Created on 29/03/2011 @author: Eran_Z Weighting ''' import search_m from util_m import sum from math import log #Helper functions def __singleNGDWeight(term1, term2): return 0 if term1 == term2 else max(0, 1 - search_m.NGD(term1, term2)) def __singleMutualInformationWeight(term1, term2): ...
ajibawa-2023/Python-Code-Large/train/row_3063
27
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_3063:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.069, 0.1207, 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_3063:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3063:Return_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3063:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3063:Return_L19_C4"}, {"f": "ajibawa-2023/Python-Code-L...
''' Created on 29/03/2011 @author: Eran_Z Searching ''' from math import log import random import sys import google_m def __search(searchStr): """Searches given search string on the web. Returns number of hits.""" temp = int(sys.maxint*random.random()) print searchStr + " : " + str(...
ajibawa-2023/Python-Code-Large/train/row_3064
42
68
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3064:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0588, 0.1029, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3064:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3064:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3064:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3064:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
''' Created on 27/03/2011 @author: Eran_Z Feasibility study (main) ''' import weights_m import scores_m import io_m def generateWeights(algorithm, context, world): """Generates a list of weights for the context items. This is a list of numbers (preferrably positive)""" return algorithm(co...
ajibawa-2023/Python-Code-Large/train/row_3065
22
60
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3065:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0667, 0.1167, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3065:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3065:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3065:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3065:Return_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
''' Created on 29/03/2011 @author: Eran_Z IO ''' #Input def getWeightingAlg(): """Gets the name of the desired weighting algorithm.""" return "Mutual Information" def getScoringAlg(): """Gets the name of the desired scoring algorithm.""" return "Normalized Mutual Information" def g...
ajibawa-2023/Python-Code-Large/train/row_3066
38
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_3066:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0702, 0.1228, 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_3066:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3066:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3066:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3066:Return_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
''' Created on 29/03/2011 @author: Eran_Z Scoring ''' from search_m import searchSingle, searchTogether, searchExclusion, NGD from util_m import sum #Helper functions: def __sigmaMutualWeight(w, context, weights): #TODO: DRY with __normalizedSigmaMutualWeight... return reduce(sum, map(lambda...
ajibawa-2023/Python-Code-Large/train/row_3067
18
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_3067:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0833, 0.1458, 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_3067:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3067:Return_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3067:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3067:Return_L21_C4"}, {"f": "ajibawa-2023/Python-Code-L...
''' Created on 30/03/2011 @author: Eran_Z Utilities ''' def sum(x,y): return x+y class BadMovie(Exception): pass
ajibawa-2023/Python-Code-Large/train/row_3069
4
13
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3069:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.3077, 0.5385, 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_3069:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3069:Return_L10_C4"}]
''' Created on 29/03/2011 @author: Eran_Z Weighting ''' import search_m from util_m import sum, BadMovie #Helper functions def __singleMutualInformationWeight(term1, term2): ss1 = search_m.searchSingle(term1) ss2 = search_m.searchSingle(term2) st = search_m.searchTogether(term1, term2) ...
ajibawa-2023/Python-Code-Large/train/row_3070
35
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_3070:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0541, 0.0946, 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_3070:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3070:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3070:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3070:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import urllib try: import json except ImportError: import simplejson as json import logging class BingException(Exception): pass class Bing(object): def __init__(self, app_id, loglevel=logging.INFO): self.app_id = app_id self.log_filename = 'log.log' self.end_point = 'http://api...
ajibawa-2023/Python-Code-Large/train/row_3071
47
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_3071:Import_L1_C0", "label": "urllib import urllib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0141, 0.0141, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "urllib", "arg_names": [], "import_names": ["urllib"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3071:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3071:Import_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3071:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3071:Import_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3071:...