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
''' 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_3072
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_3072: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_3072:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3072:Assign_L12_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3072:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3072:Assign_L13_C8"}, {"f": "ajibawa-2023/Python-Code-L...
''' Created on 01/05/2011 @author: Eran_Z '''
ajibawa-2023/Python-Code-Large/train/row_3073
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_3073: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_3074
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_3074: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_3074:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3074:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3074:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3074: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_3075
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_3075: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_3075:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3075:Import_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3075:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3075:Import_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3075:...
''' 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_3076
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_3076: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_3076:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3076:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3076:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3076:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-L...
''' Created on 22/05/2011 @author: Dima '''
ajibawa-2023/Python-Code-Large/train/row_3077
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_3077: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_3078
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_3078: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_3079
122
170
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3079:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0235, 0.0412, 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_3079:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3079:If_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3079:If_L30_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3079:Expr_L31_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
''' 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_3080
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_3080: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_3080:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3080:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3080:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3080: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_3081
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_3081: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_3081:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3081:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3081:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3081: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_3083
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_3083: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_3084
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_3084: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_3085
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_3085: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_3085:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3085:Assign_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3085:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3085: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_3086
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_3086: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_3086:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3086:Assign_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3086:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3086: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_3087
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_3087: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_3088
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_3088: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_3088:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3088:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3088:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3088: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_3089
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_3089: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_3089:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3089:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3089:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3089: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_3090
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_3090: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_3090:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3090:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3090:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3090: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_3092
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_3092: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_3092:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3092:Expr_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3092:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3092: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_3095
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_3095: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_3095:FunctionDef_L95_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3095:Expr_L96_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3095:FunctionDef_L95_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3095: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_3096
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_3096: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_3096:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3096:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3096:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3096: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_3097
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_3097: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_3097:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3097:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3097:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3097: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_3098
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_3098: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_3098:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3098:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3098:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3098: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_3099
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_3099: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_3099:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3099:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3099:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3099: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_3100
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_3100: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_3100:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3100:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3100:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3100: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_3101
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_3101: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_3101:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3101:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3101:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3101: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_3104
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_3104: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_3104:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3104:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3104:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3104: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_3105
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_3105: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_3105:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3105:Expr_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3105:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3105: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_3106
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_3106: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_3106:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3106:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3106:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3106: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_3108
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_3108: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_3108:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3108:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3108:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3108: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_3109
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_3109: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_3109:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3109:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3109:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3109: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_3110
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_3110: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_3110:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3110:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3110:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3110: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_3112
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_3112: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_3113
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_3113: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_3113:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3113:Expr_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3113:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3113: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_3114
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_3114: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_3114:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3114:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3114:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3114: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_3116
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_3116: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_3116:For_L89_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3116:For_L90_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3116:For_L90_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3116:Assign_L91_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3116...
""" 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_3117
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_3117: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_3117:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3117:Expr_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3117:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3117: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_3120
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_3120: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_3120:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3120:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3120:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3120: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_3126
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_3126: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_3126:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3126:Import_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3126:Try_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3126:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_312...
''' Created on 21/04/2011 @author: Eran_Z '''
ajibawa-2023/Python-Code-Large/train/row_3128
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_3128: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_3129
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_3129: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_3129:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3129:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3129:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3129: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_3130
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_3130: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_3130:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3130:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3130:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3130:Import_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3130: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_3131
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_3131: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_3131:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3131:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3131:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3131: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_3132
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_3132: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_3132:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3132:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3132:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3132: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_3133
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_3133: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_3134
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_3134: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_3135
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_3135: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_3135:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3135:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3135:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3135: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_3136
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_3137
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_3137: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_3137:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3137:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3137:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3137: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_3138
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_3138: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 = 5 def recommend(request): ...
ajibawa-2023/Python-Code-Large/train/row_3139
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_3139: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_3139:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3139:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3139:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3139: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_3140
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_3140: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_3140:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3140:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3140:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3140:Import_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3140: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_3141
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_3141: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_3142
27
157
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3142:Import_L2_C0", "label": "os import os", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0127, 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_3143
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_3143: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_3143:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3143:Return_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3143:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3143: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_3144
77
96
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3144:ImportFrom_L1_C0", "label": "from django.contrib import auth", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0104, 0.0104, 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_3144:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3144:If_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3144:If_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3144:If_L11_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_314...
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_3145
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_3145: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_3145:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3145:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3145:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3145: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_3146
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_3146: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_3146:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3146:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3146:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3146: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_3147
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_3147: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_3148
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_3148: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_3149
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_3149: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_3149:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3149:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3149:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3149: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_3150
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_3150: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_3150:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3150:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3150:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3150: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_3151
191
264
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3151:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0076, 0.0114, 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_3151:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3151:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3151:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3151: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_3152
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_3152: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_3153
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_3153: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_3153:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3153:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3153:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3153:If_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
#!/usr/bin/env pypy import os, sys, logging, re import argparse import fnmatch configurations = {'lite', 'pro'} package_dirs = { 'lite': ('src/cx/hell/android/pdfview',), 'pro': ('src/cx/hell/android/pdfviewpro',) } file_replaces = { 'lite': ( 'cx.hell.android.pdfview.', '"cx.hell.an...
ajibawa-2023/Python-Code-Large/train/row_3154
133
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_3154:Import_L3_C0", "label": "os import os, sys, logging\u2026", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.014, 0.0047, 0, 0.66, 0.0, 688, 0, 4, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "s...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3154:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3154:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3154:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3154:If_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python2.6 # # Simple http server to emulate api.playfoursquare.com import logging import shutil import sys import urlparse import SimpleHTTPServer import BaseHTTPServer class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """Handle playfoursquare.com requests, for testing.""" def do_GET(self...
ajibawa-2023/Python-Code-Large/train/row_3155
63
85
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3155:Import_L5_C0", "label": "logging import logging", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0588, 0.0118, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3155:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3155:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3155:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3155:FunctionDef_L17_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
ajibawa-2023/Python-Code-Large/train/row_3156
20
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3156:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.037, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3156:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3156:Assign_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3156:For_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3156:Assign_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_31...
#!/usr/bin/python """ Pull a oAuth protected page from foursquare. Expects ~/.oget to contain (one on each line): CONSUMER_KEY CONSUMER_KEY_SECRET USERNAME PASSWORD Don't forget to chmod 600 the file! """ import httplib import os import re import sys import urllib import urllib2 import urlparse import user from xml....
ajibawa-2023/Python-Code-Large/train/row_3157
50
111
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3157:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0631, 0.0991, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3157:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3157:Return_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3157:FunctionDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3157:Assign_L57_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python import datetime import sys import textwrap import common from xml.dom import pulldom PARSER = """\ /** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquare.parsers; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joel...
ajibawa-2023/Python-Code-Large/train/row_3158
42
149
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3158:Import_L3_C0", "label": "datetime import datetime", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0201, 0.0067, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["datetime...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3158:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3158:Assign_L83_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3158:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3158:Expr_L85_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python import logging from xml.dom import minidom from xml.dom import pulldom BOOLEAN = "boolean" STRING = "String" GROUP = "Group" # Interfaces that all FoursquareTypes implement. DEFAULT_INTERFACES = ['FoursquareType'] # Interfaces that specific FoursqureTypes implement. INTERFACES = { } DEFAULT_CLA...
ajibawa-2023/Python-Code-Large/train/row_3159
44
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3159:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0263, 0.0088, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3159:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3159:Expr_L60_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3159:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3159:Assign_L71_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. # for binaries NOT on your PATH, you should specify the complete path here, # e.g. SVN = '/usr/bin/svn'. For binaries ON your path, only the binary name # e.g. SVN = 'svn' SVN = 'svn' HG = 'hg' CVS = 'cvs -z3' GIT = 'git' ...
ajibawa-2023/Python-Code-Large/train/row_3163
110
248
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3163:Assign_L10_C0", "label": "SVN =", "type": "assigned_variable", "loc": [10, 10], "level": 0, "parent": null, "vector": [14, 0, 0.0403, 0.004, 0, 0.66, 0.0, 417, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "SVN", "arg_names": [], "import_names": [], "rhs_call_name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3163:FunctionDef_L118_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3163:Expr_L119_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3163:FunctionDef_L118_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3163:Assign_L124_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. import utils import os import shutil import types class InstallPackage: """All libraries that should be installed by johannes have to have InstallPackage abstractions. This class defines which actions need to b...
ajibawa-2023/Python-Code-Large/train/row_3164
28
59
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3164:Import_L5_C0", "label": "utils import utils", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0847, 0.0169, 0, 0.66, 0.0, 970, 0, 1, 0, 0, 970, 0, 0], "semantic": {"name": "utils", "arg_names": [], "import_names": ["utils"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3164:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3164:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3164:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3164:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. import config import glob import os import re import sys, urllib import shutil import tarfile import zipfile import subprocess def cmake_command(build_dir, source_dir, cmake_params): """Invoke correct cmake commands to c...
ajibawa-2023/Python-Code-Large/train/row_3165
190
397
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3165:Import_L5_C0", "label": "config import config", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0126, 0.0025, 0, 0.66, 0.0, 308, 0, 1, 0, 0, 308, 0, 0], "semantic": {"name": "config", "arg_names": [], "import_names": ["config"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3165:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3165:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3165:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3165:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python # # $Id: setup.py,v 1.11 2005/02/15 16:32:22 warnes Exp $ CVS=0 from distutils.core import setup, Command, Extension from SOAPpy.version import __version__ url="http://pywebsvcs.sf.net/" long_description="SOAPpy provides tools for building SOAP clients and servers. For more information see " ...
ajibawa-2023/Python-Code-Large/train/row_3166
8
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_3166:Assign_L5_C0", "label": "CVS =", "type": "assigned_variable", "loc": [5, 5], "level": 0, "parent": null, "vector": [14, 0, 0.1724, 0.0345, 0, 0.66, 0.0, 504, 1, 0, 0, 0, 0, 1, 0], "semantic": {"name": "CVS", "arg_names": [], "import_names": [], "rhs_call_name": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3166:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3166:Import_L16_C4"}]
#!/usr/bin/env python ident = '$Id: whoisTest.py,v 1.4 2003/05/21 14:52:37 warnes Exp $' import os, re import sys sys.path.insert(1, "..") from SOAPpy import SOAPProxy # Check for a web proxy definition in environment try: proxy_url=os.environ['http_proxy'] phost, pport = re.search('http://([^:]+):([0-9]+)', ...
ajibawa-2023/Python-Code-Large/train/row_3173
3
4
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3173:Import_L1_C0", "label": "os import os, re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.25, 0, 0.66, 0.0, 688, 0, 2, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "re"], "rhs_call_name...
[]
#!/usr/bin/env python ident = '$Id: BabelfishWSDLTest.py,v 1.1 2003/07/18 15:58:28 warnes Exp $' import os, re import sys sys.path.insert(1, "..") from SOAPpy import WSDL # Check for a web proxy definition in environment try: proxy_url=os.environ['http_proxy'] phost, pport = re.search('http://([^:]+):([0-9]+)...
ajibawa-2023/Python-Code-Large/train/row_3174
20
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3174:Assign_L3_C0", "label": "ident =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.0938, 0.0312, 0, 0.66, 0.0, 977, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "ident", "arg_names": [], "import_names": [], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3174:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3174:Assign_L13_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3174:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3174:Assign_L14_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3...
import sys sys.path.insert(1, "..") import SOAPpy import time dep = SOAPpy.dateTimeType((2004, 3, 24, 12, 30, 59, 4, 86, 0)) ret = SOAPpy.dateTimeType((2004, 3, 26, 12, 30, 59, 4, 86, 0)) in0 = SOAPpy.structType() in0._addItem('outwardDate', dep) in0._addItem('returnDate', ret) in0._addItem('originAirport', 'den') i...
ajibawa-2023/Python-Code-Large/train/row_3175
14
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_3175:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0385, 0.0385, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name":...
[]
#!/usr/bin/env python # Copyright (c) 2001 actzero, inc. All rights reserved. ident = '$Id: xmethods.py,v 1.4 2003/12/18 06:31:50 warnes Exp $' import os, re import sys sys.path.insert(1, "..") from SOAPpy import SOAPProxy # Check for a web proxy definition in environment try: proxy_url=os.environ['http_proxy'] ...
ajibawa-2023/Python-Code-Large/train/row_3176
19
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_3176:Assign_L4_C0", "label": "ident =", "type": "assigned_variable", "loc": [4, 4], "level": 0, "parent": null, "vector": [14, 0, 0.1176, 0.0294, 0, 0.66, 0.0, 977, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "ident", "arg_names": [], "import_names": [], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3176:Try_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3176:Assign_L14_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3176:Try_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3176:Assign_L15_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3...
#!/usr/bin/env python ident = '$Id: newsTest.py,v 1.4 2003/05/21 14:52:37 warnes Exp $' import os, re import sys sys.path.insert(1, "..") from SOAPpy import SOAPProxy # Check for a web proxy definition in environment try: proxy_url=os.environ['http_proxy'] phost, pport = re.search('http://([^:]+):([0-9]+)', p...
ajibawa-2023/Python-Code-Large/train/row_3177
22
44
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3177:Assign_L3_C0", "label": "ident =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.0682, 0.0227, 0, 0.66, 0.0, 977, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "ident", "arg_names": [], "import_names": [], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3177:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3177:Assign_L13_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3177:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3177:Assign_L14_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3...
#!/usr/bin/env python # Copyright (c) 2001 actzero, inc. All rights reserved. ident = '$Id: translateTest.py,v 1.5 2003/05/21 14:52:37 warnes Exp $' import os, re import sys sys.path.insert(1, "..") from SOAPpy import SOAPProxy # Check for a web proxy definition in environment try: proxy_url=os.environ['http_pro...
ajibawa-2023/Python-Code-Large/train/row_3178
12
23
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3178:Assign_L4_C0", "label": "ident =", "type": "assigned_variable", "loc": [4, 4], "level": 0, "parent": null, "vector": [14, 0, 0.1739, 0.0435, 0, 0.66, 0.0, 977, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "ident", "arg_names": [], "import_names": [], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3178:Try_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3178:Assign_L14_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3178:Try_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3178:Assign_L15_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3...
import sys sys.path.insert(1, "..") from SOAPpy import * one = typedArrayType(data=[1],typed=type(1)) tmp = typedArrayType(data=[], typed=type(1)) print buildSOAP( one ) print buildSOAP( tmp )
ajibawa-2023/Python-Code-Large/train/row_3179
7
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_3179:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.125, 0.125, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name": "...
[]
#!/usr/bin/python2 #standard imports import syslog, sys #domain specific imports sys.path.insert (1, '..') import SOAPpy SOAPpy.Config.simplify_objects=1 ## def test_integer(self,pass_integer): ## def test_string(self,pass_string): ## def test_float(self,pass_float): ## def test_tuple(self,pass_tup...
ajibawa-2023/Python-Code-Large/train/row_3180
2
4
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3180:Import_L1_C0", "label": "syslog import syslog, sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.25, 0, 0.66, 0.0, 76, 0, 2, 0, 0, 76, 0, 0], "semantic": {"name": "syslog", "arg_names": [], "import_names": ["syslog", "sys"]...
[]
import sys sys.path.insert(1, "..") import SOAPpy url = 'http://www.xmethods.org/sd/2001/TemperatureService.wsdl' zip = '06340' proxy = SOAPpy.WSDL.Proxy(url) temp = proxy.getTemp(zip) print 'Temperature at', zip, 'is', temp
ajibawa-2023/Python-Code-Large/train/row_3182
8
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_3182:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1, 0.1, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name": "", "...
[]
""" Check handing of unicode. """ import sys sys.path.insert(1, "..") from SOAPpy import * # Uncomment to see outgoing HTTP headers and SOAP and incoming #Config.debug = 1 #Config.dumpHeadersIn = 1 #Config.dumpSOAPIn = 1 #Config.dumpSOAPOut = 1 # ask for returned SOAP responses to be converted to basic python types...
ajibawa-2023/Python-Code-Large/train/row_3183
14
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_3183:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0465, 0.0698, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
from SOAPpy import WSDL server = WSDL.Proxy('/home/warneg/src/google/googleapi/GoogleSearch.wsdl') key = "6k0oDPZQFHL0zpjy6ZO6ufUVFKBgvqTo" results = server.doGoogleSearch(key, 'warnes', 0, 10, False, "", False, "", "utf-8", "utf-8") for i in range(len(results.resultElements)): re...
ajibawa-2023/Python-Code-Large/train/row_3184
7
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_3184:ImportFrom_L1_C0", "label": "from SOAPpy import WSDL", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0909, 0.0909, 0, 0.66, 0.0, 181, 0, 1, 0, 0, 181, 0, 0], "semantic": {"name": "SOAPpy", "arg_names": [], "import_names": ["WSDL"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3184:For_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3184:Assign_L10_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3184:For_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3184:Expr_L11_C2"}]
#!/usr/bin/env python import unittest import os, re import sys sys.path.insert (1, '..') import SOAPpy ident = '$Id: testWSDL.py,v 1.2 2003/05/09 12:46:11 warnes Exp $' # Check for a web proxy definition in environment try: proxy_url=os.environ['http_proxy'] phost, pport = re.search('http://([^:]+):([0-9]+)', ...
ajibawa-2023/Python-Code-Large/train/row_3185
51
112
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3185:Import_L3_C0", "label": "unittest import unittest", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0268, 0.0089, 0, 0.66, 0.0, 88, 0, 1, 0, 0, 88, 0, 0], "semantic": {"name": "unittest", "arg_names": [], "import_names": ["unittest"]...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3185:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3185:Assign_L13_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3185:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3185:Assign_L14_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3...
#!/usr/bin/env python ident = '$Id: speedTest.py,v 1.4 2003/05/21 14:52:37 warnes Exp $' import time import sys sys.path.insert(1, "..") x='''<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3....
ajibawa-2023/Python-Code-Large/train/row_3187
18
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_3187:Import_L1_C0", "label": "time import time", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0476, 0.0476, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3187:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3187:ImportFrom_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3187:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3187:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python import sys sys.path.insert(1, "..") import SOAPpy import time import gc import types gc.set_debug(gc.DEBUG_SAVEALL) for i in range(400): try: t = SOAPpy.SOAP.parseSOAPRPC('bad soap payload') except: pass gc.collect() if len(gc.garbage): print 'still leaking' else: prin...
ajibawa-2023/Python-Code-Large/train/row_3188
14
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_3188:Import_L3_C0", "label": "sys import sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0476, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3188:For_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3188:Try_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3188:Try_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3188:Assign_L14_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3188...
#!/usr/bin/python2 #standard imports import syslog, sys #domain specific imports sys.path.insert (1, '..') import SOAPpy class test_service: run = 1 def test_integer(self,pass_integer): print type(pass_integer) return pass_integer def test_string(self,pass_string): print ty...
ajibawa-2023/Python-Code-Large/train/row_3189
31
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_3189:Import_L4_C0", "label": "syslog import syslog, sys", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0833, 0.0208, 0, 0.66, 0.0, 76, 0, 2, 0, 0, 76, 0, 0], "semantic": {"name": "syslog", "arg_names": [], "import_names": ["syslog", "s...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3189:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3189:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3189:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3189:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-La...
#!/usr/bin/env python # Copyright (c) 2001 actzero, inc. All rights reserved. import sys sys.path.insert (1, '..') from SOAPpy import * ident = '$Id: cardClient.py,v 1.4 2004/02/18 21:22:13 warnes Exp $' endpoint = "http://localhost:12027/xmethodsInterop" sa = "urn:soapinterop" ns = "http://soapinterop.org/" ser...
ajibawa-2023/Python-Code-Large/train/row_3191
2
4
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3191:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.25, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name": "",...
[]
#!/usr/bin/env python import sys, unittest sys.path.insert(1, "..") from SOAPpy import * Config.debug=1 class ClientTestCase(unittest.TestCase): def testParseRules(self): x = """<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xml...
ajibawa-2023/Python-Code-Large/train/row_3192
37
147
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3192:Import_L3_C0", "label": "sys import sys, unittest", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0068, 0, 0.66, 0.0, 509, 0, 2, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "unitte...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3192:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3192:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3192:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3192:Assign_L10_C8"}, {"f": "ajibawa-2023/Python-Code-La...
#!/usr/bin/env python # Copyright (c) 2001 actzero, inc. All rights reserved. ident = '$Id: quoteTest.py,v 1.5 2003/12/18 06:31:50 warnes Exp $' import os, re import sys sys.path.insert(1, "..") from SOAPpy import SOAPProxy # Check for a web proxy definition in environment try: proxy_url=os.environ['http_proxy']...
ajibawa-2023/Python-Code-Large/train/row_3193
17
38
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3193:Assign_L4_C0", "label": "ident =", "type": "assigned_variable", "loc": [4, 4], "level": 0, "parent": null, "vector": [14, 0, 0.1053, 0.0263, 0, 0.66, 0.0, 977, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "ident", "arg_names": [], "import_names": [], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3193:Try_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3193:Assign_L14_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3193:Try_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3193:Assign_L15_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3...
import sys sys.path.insert(1, "..") from SOAPpy import * detailed_fault = \ """ <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://...
ajibawa-2023/Python-Code-Large/train/row_3194
6
38
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3194:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0263, 0.0263, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name":...
[]
#!/usr/bin/env python ident = '$Id: weatherTest.py,v 1.4 2003/05/21 14:52:37 warnes Exp $' import os, re import sys sys.path.insert(1, "..") from SOAPpy import SOAPProxy # Check for a web proxy definition in environment try: proxy_url=os.environ['http_proxy'] phost, pport = re.search('http://([^:]+):([0-9]+)'...
ajibawa-2023/Python-Code-Large/train/row_3195
14
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_3195:Assign_L3_C0", "label": "ident =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.12, 0.04, 0, 0.66, 0.0, 977, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "ident", "arg_names": [], "import_names": [], "rhs_call_name": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3195:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3195:Assign_L13_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3195:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3195:Assign_L14_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3...
""" Check handing of unicode. """ import sys sys.path.insert(1, "..") from SOAPpy import * # Uncomment to see outgoing HTTP headers and SOAP and incoming #Config.debug = 1 #Config.dumpHeadersIn = 1 #Config.dumpSOAPIn = 1 #Config.dumpSOAPOut = 1 # ask for returned SOAP responses to be converted to basic python types...
ajibawa-2023/Python-Code-Large/train/row_3197
23
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_3197:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0267, 0.04, 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_3197:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3197:Expr_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3197:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3197:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python # Copyright (c) 2001 actzero, inc. All rights reserved. ident = '$Id: alanbushTest.py,v 1.5 2003/05/21 14:52:37 warnes Exp $' import os, re,sys # add local SOAPpy code to search path sys.path.insert(1, "..") from SOAPpy import * Config.debug=0 # Check for a web proxy definition in environmen...
ajibawa-2023/Python-Code-Large/train/row_3198
16
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_3198:Assign_L5_C0", "label": "ident =", "type": "assigned_variable", "loc": [5, 5], "level": 0, "parent": null, "vector": [14, 0, 0.1471, 0.0294, 0, 0.66, 0.0, 977, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "ident", "arg_names": [], "import_names": [], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3198:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3198:Assign_L17_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3198:Try_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3198:Assign_L18_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3...
#!/usr/bin/env python import sys sys.path.insert(1, "..") from SOAPpy import * server = SOAPProxy("http://206.135.217.234:8000/") server.COM_SetProperty("Visible", 1) server.Workbooks.Open("c:\\test.xls") server.COM_NestedCall('ActiveSheet.Range("A2").EntireRow.Delete()') server.quit()
ajibawa-2023/Python-Code-Large/train/row_3199
8
18
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3199:Import_L3_C0", "label": "sys import sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name":...
[]
#!/usr/bin/env python # Copyright (c) 2001 actzero, inc. All rights reserved. import sys sys.path.insert(1, "..") from SOAPpy import * from SOAPpy import Parser # Uncomment to see outgoing HTTP headers and SOAP and incoming #Config.debug = 1 if len(sys.argv) > 1 and sys.argv[1] == '-s': server = SOAPProxy("ht...
ajibawa-2023/Python-Code-Large/train/row_3200
25
50
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_3200:Import_L5_C0", "label": "sys import sys", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.1, 0.02, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name": "", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3200:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3200:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3200:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3200:Assign_L17_C4"}]
#!/usr/bin/env python # # Copyright (c) 2001 actzero, inc. All rights reserved. import sys sys.path.insert(1, "..") from SOAPpy import * # Uncomment to see outgoing HTTP headers and SOAP and incoming Config.dumpSOAPIn = 1 Config.dumpSOAPOut = 1 Config.debug = 1 # specify name of authorization function Config.authMe...
ajibawa-2023/Python-Code-Large/train/row_3201
110
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_3201:Import_L5_C0", "label": "sys import sys", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0254, 0.0051, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_3201:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3201:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3201:If_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3201:ImportFrom_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...