code
stringlengths
1
1.49M
file_id
stringlengths
42
46
node_count
int64
0
7.38k
total_lines
int64
1
20.9k
vector_dim
int64
15
15
vector_labels
stringclasses
1 value
nodes
stringlengths
2
3.75M
connections
stringlengths
2
964k
#!/usr/bin/env python #-*- coding: latin-1 -*- import smtplib, hashlib, re, datetime, os, time, sys import logging import signal import ldap from telnetlib import Telnet from ConfigParser import SafeConfigParser as confParser __author__ = 'Andrea Mistrali <am@cubeholding.com>' """ Docs from http://www.developers...
ajibawa-2023/Python-Code-Large/train/row_77258
342
518
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77258:Import_L4_C0", "label": "smtplib import smtplib, hashlib, re\u2026", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0077, 0.0019, 0, 0.66, 0.0, 389, 0, 7, 0, 0, 389, 0, 0], "semantic": {"name": "smtplib", "arg_names": [], "import_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77258:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77258:Expr_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77258:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77258:FunctionDef_L52_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/env python #-*- coding: latin-1 -*- import smtplib, hashlib, re, datetime, os, time, sys import logging import signal import ldap from telnetlib import Telnet from ConfigParser import SafeConfigParser as confParser __author__ = 'Andrea Mistrali <am@cubeholding.com>' """ Docs from http://www.developers...
ajibawa-2023/Python-Code-Large/train/row_77259
342
518
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77259:Import_L4_C0", "label": "smtplib import smtplib, hashlib, re\u2026", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0077, 0.0019, 0, 0.66, 0.0, 389, 0, 7, 0, 0, 389, 0, 0], "semantic": {"name": "smtplib", "arg_names": [], "import_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77259:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77259:Expr_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77259:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77259:FunctionDef_L52_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/env python #-*- coding: latin-1 -*- """ Parser to transform email messages into Outgoing SMS, compatible with portechsmsd create an alias sms: "|/usr/local/bin/smsParser.py" [Postfix] $Id: smsParser.py 79 2010-05-05 15:26:27Z root $ """ import email import smtplib import sys import os import re import temp...
ajibawa-2023/Python-Code-Large/train/row_77260
46
79
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77260:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0823, 0.1013, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77260:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77260:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77260:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77260:For_L24_C4"}, {"f": "ajibawa-2023/Python-Code-La...
# # main.py # mailVirtual # # Created by Andrea Mistrali on 25/09/09. # Copyright akelge@gmail.com 2009. All rights reserved. # # $Id: main.py 459 2012-12-31 12:38:07Z akelge@gmail.com $ #import modules required by application import objc import Foundation import AppKit from PyObjCTools import AppHelper # impor...
ajibawa-2023/Python-Code-Large/train/row_77264
7
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_77264:Import_L11_C0", "label": "objc import objc", "type": "import", "loc": [11, 11], "level": 0, "parent": null, "vector": [1, 0, 0.4783, 0.0435, 0, 0.66, 0.0, 332, 0, 1, 0, 0, 332, 0, 0], "semantic": {"name": "objc", "arg_names": [], "import_names": ["objc"], "rhs_cal...
[]
from Foundation import * from objc import YES, NO class arrayController(NSArrayController): identitiesList=[] counter=0 def init(self): super(arrayController, self).init() self.setPreservesSelection_(YES) self.setAvoidsEmptySelection_(YES) self.setAutomaticallyRearrangesObj...
ajibawa-2023/Python-Code-Large/train/row_77265
36
53
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77265:ImportFrom_L1_C0", "label": "from Foundation import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0189, 0.0189, 0, 0.66, 0.0, 44, 0, 1, 0, 0, 44, 0, 0], "semantic": {"name": "Foundation", "arg_names": [], "import_names": ["*"]...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77265:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77265:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77265:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77265:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# # mailVirtualAppDelegate.py # mailVirtual # # Created by Andrea Mistrali on 25/09/09. # Copyright akelge@gmail.com 2009. All rights reserved. # # $Id: mailVirtualAppDelegate.py 459 2012-12-31 12:38:07Z akelge@gmail.com $ from objc import YES, NO, IBAction, IBOutlet from Foundation import * from AppKit import * f...
ajibawa-2023/Python-Code-Large/train/row_77266
61
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_77266:ImportFrom_L10_C0", "label": "from objc import YES, NO, IBAction\u2026", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.1, 0.01, 0, 0.66, 0.0, 332, 0, 4, 0, 0, 332, 0, 0], "semantic": {"name": "objc", "arg_names": [], "import_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77266:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77266:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77266:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77266:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# # account.py # mailVirtual # # Created by Andrea Mistrali on 25/09/09. # Copyright akelge@gmail.com 2009. All rights reserved. # # $Id: account.py 459 2012-12-31 12:38:07Z akelge@gmail.com $ from Foundation import * class Accounts(object): pl=None binary=False modified=False filename='' def...
ajibawa-2023/Python-Code-Large/train/row_77267
55
80
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77267:ImportFrom_L10_C0", "label": "from Foundation import *", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.125, 0.0125, 0, 0.66, 0.0, 44, 0, 1, 0, 0, 44, 0, 0], "semantic": {"name": "Foundation", "arg_names": [], "import_names": ["*...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77267:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77267:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77267:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77267:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python output = '<?xml version="1.0"?>\n<AddressBook>\n' print "--------------------------------------------------------------" print "Generate CUBE GXP-2000 Phonebook" print "--------------------------------------------------------------" counter = 0 f = open('phonebook.csv','r') for line in f: line ...
ajibawa-2023/Python-Code-Large/train/row_77268
15
30
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77268:Assign_L3_C0", "label": "output =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.1, 0.0333, 0, 0.66, 0.0, 886, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "output", "arg_names": [], "import_names": [], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77268:For_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77268:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77268:For_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77268:Assign_L13_C4"}]
#!/usr/bin/python output = '<?xml version="1.0"?>\n<AddressBook>\n' print "--------------------------------------------------------------" print "Generate CUBE GXP-2000 Phonebook" print "--------------------------------------------------------------" counter = 0 f = open('phonebook.csv','r') for line in f: line ...
ajibawa-2023/Python-Code-Large/train/row_77269
15
30
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77269:Assign_L3_C0", "label": "output =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.1, 0.0333, 0, 0.66, 0.0, 886, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "output", "arg_names": [], "import_names": [], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77269:For_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77269:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77269:For_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77269:Assign_L13_C4"}]
#!/usr/bin/python import os, re path_base = "" path_clients = path_base + "generateConfigData/" path_results = path_base + "generateConfigResults/" path_exec = path_base.replace(" ","\ ") + "./encode.sh $MAC $CONFIG $RESULT" path_config = path_base + 'generateConfigData/gxp_config_CUBE' path_config_current = "%s.tmp" ...
ajibawa-2023/Python-Code-Large/train/row_77270
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_77270:Import_L1_C0", "label": "os import os, re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1, 0.1, 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"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77270:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77270:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77270:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77270:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python import os, re path_base = "" path_clients = path_base + "generateConfigData/" path_results = path_base + "generateConfigResults/" path_exec = path_base.replace(" ","\ ") + "./encode.sh $MAC $CONFIG $RESULT" path_config = path_base + 'generateConfigData/gxp_config_CUBE' path_config_current = "%s.tmp" ...
ajibawa-2023/Python-Code-Large/train/row_77271
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_77271:Import_L1_C0", "label": "os import os, re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1, 0.1, 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"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77271:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77271:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77271:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77271:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf8 -*- """ Generic Xml Tree parser. Returns a structure of dictionaries of dictionaries Copyright by Andrea Mistrali <am@am.cx> $Id: xmlTree.py 508 2013-07-05 20:49:07Z akelge@gmail.com $ """ import xml.etree.ElementTree as et class xmlTree(object): """ @class xmlTree @brief XML Tre...
ajibawa-2023/Python-Code-Large/train/row_77274
33
62
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77274:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0887, 0.129, 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_77274:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77274:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77274:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77274:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" Dataloy Interface (see http://dataloy.com/ddt-server/) $Id: Dataloy.py 472 2013-01-08 16:30:11Z akelge@gmail.com $ """ import urllib from oxylib.xmlTree import * class DataloyInterface(object): """ @class xmlDDT @brief Query DDT database for Ports and Distances. @details Method are the sam...
ajibawa-2023/Python-Code-Large/train/row_77276
69
143
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77276:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0245, 0.042, 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_77276:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77276:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77276:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77276:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
""" CUBE standard library @brief Functions to manage Numbers (Decimal) $Id: number.py 521 2013-10-11 11:05:58Z akelge@gmail.com $ """ __headUrl__ = '$HeadURL: http://akel.googlecode.com/svn/oxylib/trunk/number.py $' import babel.numbers as babelnumbers from decimal import Decimal, ROUND_HALF_UP, ROUND_CEILING, ROUND_...
ajibawa-2023/Python-Code-Large/train/row_77277
46
118
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77277:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0297, 0.0508, 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_77277:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77277:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77277:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77277:Assign_L35_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- encoding: utf-8 -*- """ SQL Plus class Add some shortcut and utilities to SQLAlchemy declarative_base object Must be imported in <app>/lib/base.py $Id: plus.py 508 2013-07-05 20:49:07Z akelge@gmail.com $ """ from sqlalchemy import MetaData, schema, types, orm, sql, and_ from sqlalchemy.orm import scoped_sessi...
ajibawa-2023/Python-Code-Large/train/row_77278
138
314
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77278:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0191, 0.0287, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77278:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77278:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77278:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77278:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code...
""" CUBE standard library @brief Model utils $Id """ __headUrl__ = '$HeadURL: http://akel.googlecode.com/svn/oxylib/trunk/sqlalchemy/types.py $' __all__ = ['typeDate', 'typeTime', 'typeDateTime'] from oxylib.DateTime import Date, DateTime, Time # from oxylib.sqlalchemy.plus import Money from sqlalchemy import types ...
ajibawa-2023/Python-Code-Large/train/row_77279
59
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_77279:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0385, 0.0659, 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_77279:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77279:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77279:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77279:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Cod...
""" Copyright CUBE Gestioni S.r.l. 2010 AAA Module Inspired by RADIUS, users AV Pairs, i.e. a dictionary. Middleware $Id: middleware.py 508 2013-07-05 20:49:07Z akelge@gmail.com $ """ import logging from oxylib.auth import ckey, AuthenticatedUser from oxylib.pylons.utils import construct_url from pylons.util i...
ajibawa-2023/Python-Code-Large/train/row_77280
115
239
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77280:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 10], "level": 0, "parent": null, "vector": [8, 0, 0.023, 0.0418, 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_77280:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77280:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77280:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77280:Assign_L64_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
""" CUBE auth library $Id: __init__.py 472 2013-01-08 16:30:11Z akelge@gmail.com $ """ # __all__ = ["BaseUser", "AuthenticatedUser", "login", "logout", "isAuthenticated", "isAuthorized", "authorize"] from auth import *
ajibawa-2023/Python-Code-Large/train/row_77281
2
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_77281:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.3182, 0.5455, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
""" Copyright Andrea Mistrali 2012 AAA Module Inspired by RADIUS, users AV Pairs, i.e. a dictionary. Standard fields are: username password realname gid: id of the main group login_time: time of last login authenticated: True of False perms: a dictionary with group name as key an...
ajibawa-2023/Python-Code-Large/train/row_77282
253
490
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77282:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0184, 0.0347, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77282:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77282:Expr_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77282:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77282:Assign_L47_C4"}, {"f": "ajibawa-2023/Python-Code...
""" Oxysoft standard library @brief Model utils $Id: model.py 473 2013-01-08 16:32:22Z akelge@gmail.com $ """ __headUrl__ = '$HeadURL: http://akel.googlecode.com/svn/oxylib/trunk/model.py $' # Legacy from oxylib.sqlalchemy.types import typeDate, typeTime, typeDateTime # from oxylib.sqlalchemy.types import Money
ajibawa-2023/Python-Code-Large/train/row_77284
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_77284:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.3182, 0.5455, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
""" \package oxylib.salog.handlers \details Oxylib standard library - SQLAlchemy Logging handlers $Id: handlers.py 512 2013-07-22 13:22:07Z akelge@gmail.com $ """ __headUrl__ = '$HeadURL: http://akel.googlecode.com/svn/oxylib/trunk/salog/handlers.py $' from sqlalchemy import schema, types, orm import logging from dat...
ajibawa-2023/Python-Code-Large/train/row_77285
54
145
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77285:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0241, 0.0414, 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_77285:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77285:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77285:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77285:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" @package oxylib.salog @details Oxylib standard library - SQL Logging module $Id: __init__.py 508 2013-07-05 20:49:07Z akelge@gmail.com $ """ __headUrl__ = '$HeadURL: http://akel.googlecode.com/svn/oxylib/trunk/salog/__init__.py $' from handlers import *
ajibawa-2023/Python-Code-Large/train/row_77286
3
9
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77286:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.3889, 0.6667, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
#-*- coding: latin-1 -*- """ @brief Oxysoft standard library Misc utilities module $Id: utils.py 508 2013-07-05 20:49:07Z akelge@gmail.com $ """ __headUrl__ = '$HeadURL: http://akel.googlecode.com/svn/oxylib/trunk/utils.py $' import sys # Backwards compat from customtypes import * def checkIfPylons(): """ ...
ajibawa-2023/Python-Code-Large/train/row_77287
25
76
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77287:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0789, 0.0921, 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_77287:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77287:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77287:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77287:Try_L23_C4"}, {"f": "ajibawa-2023/Python-Code-La...
#-*- coding: latin-1 -*- """ @brief Oxysoft standard library Custom types $Id: customtypes.py 508 2013-07-05 20:49:07Z akelge@gmail.com $ """ __headUrl__ = '$HeadURL: http://akel.googlecode.com/svn/oxylib/trunk/customtypes.py $' # *************************************************************************** # # Cust...
ajibawa-2023/Python-Code-Large/train/row_77288
78
172
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77288:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0349, 0.0407, 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_77288:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77288:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77288:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77288:FunctionDef_L35_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" # Backward compatibility # Do not use!! $Id: pylutils.py 472 2013-01-08 16:30:11Z akelge@gmail.com $ """ from pylons import * from pylons.utils import * from pylons.formatter import * from pylons.errorctl import * from pylons import middleware
ajibawa-2023/Python-Code-Large/train/row_77289
6
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_77289:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.3182, 0.5455, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
""" Oxysoft standard library @brief Locale parsing, setting and formatting $Id: locale.py 517 2013-08-14 13:59:06Z akelge@gmail.com $ """ __headUrl__ = '$HeadURL: http://akel.googlecode.com/svn/oxylib/trunk/locale.py $' from babel import Locale, UnknownLocaleError from babel.dates import DateTimePattern import os imp...
ajibawa-2023/Python-Code-Large/train/row_77290
55
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_77290:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0385, 0.0659, 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_77290:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77290:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77290:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77290:Assign_L24_C4"}, {"f": "ajibawa-2023/Python-Code...
############################################################################# """ Oxysoft standard library Helpers classes $Id: helpers.py 508 2013-07-05 20:49:07Z akelge@gmail.com $ """ import DateTime __headUrl__ = '$HeadURL: http://akel.googlecode.com/svn/oxylib/trunk/helpers.py $' ###############################...
ajibawa-2023/Python-Code-Large/train/row_77291
49
105
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77291:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0381, 0.0476, 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_77291:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77291:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77291:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77291:If_L19_C4"}, {"f": "ajibawa-2023/Python-Code-L...
""" Oxysoft standard library @brief Disclaimer and copyright info @author akelge@gmail.com @file oxylib Collection of utilities and wrappers. Primarily works with Pylons $Id: __init__.py 496 2013-06-18 14:12:26Z akelge@gmail.com $ @verbatim This file is free software; you can redistribute it and/or modify it under th...
ajibawa-2023/Python-Code-Large/train/row_77292
5
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_77292:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 28], "level": 0, "parent": null, "vector": [8, 0, 0.4265, 0.8235, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[]
import datetime as dt import logging # log = logging.getLogger(__name__) log = logging.getLogger('ldapORM.types') # Attributes ############ class LDAPAttribute(object): """ An LDAP Attribute. This is the basic class, can be scalar or list To define a custom type: 1) Derive from this class ...
ajibawa-2023/Python-Code-Large/train/row_77294
65
160
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77294:Import_L1_C0", "label": "datetime import dt", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0063, 0.0063, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["dt"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77294:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77294:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77294:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77294:Assign_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
""" Copyright by Andrea Mistrali <akelge@gmail.com> First version: 2013-06-12T10:09 CEST (+0200) Synopsis: LDAP O(R)M $Id: __init__.py 504 2013-07-05 12:52:54Z akelge@gmail.com $ TODO: Implement caching Logging levels search for 'dn' doctests Objects tree ------------ engine.py LDAPConnection(...
ajibawa-2023/Python-Code-Large/train/row_77295
8
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77295:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 27], "level": 0, "parent": null, "vector": [8, 0, 0.3784, 0.7297, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[]
# -*- coding: utf-8 -*- """ Pylons Base controller with error management $Id: errorctl.py 518 2013-08-20 13:38:50Z akelge@gmail.com $ """ from formatter import Formatter from pylons import response import logging log = logging.getLogger(__name__) class HTTPCode(object): """ Class for managing HTTP Error c...
ajibawa-2023/Python-Code-Large/train/row_77297
57
133
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77297:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0301, 0.0376, 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_77297:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77297:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77297:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77297:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- """ Formencode and custom validators $Id: oxyformencode.py 519 2013-08-20 14:59:05Z akelge@gmail.com $ """ import formencode as f from formencode import * from datetime import date, datetime class ISODateConverter(f.FancyValidator): dateformat = '%Y-%m-%d' not_empty = False messa...
ajibawa-2023/Python-Code-Large/train/row_77298
32
61
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77298:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0656, 0.082, 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_77298:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77298:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77298:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77298:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
from webhelpers.util import html_escape from pylons import request import urllib import logging log = logging.getLogger(__name__) def current_url(request=request): """ \brief Temporary kludge until pylons.url.current() stabilizes and returns the query string. """ if request.query_string: ...
ajibawa-2023/Python-Code-Large/train/row_77299
67
124
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77299:ImportFrom_L1_C0", "label": "from webhelpers.util import html_escape", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0081, 0.0081, 0, 0.66, 0.0, 692, 0, 1, 0, 0, 692, 0, 0], "semantic": {"name": "webhelpers.util", "arg_names": [],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77299:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77299:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77299:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77299:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
""" Copyright CUBE Gestioni S.r.l. 2010 Middleware modules $Id: middleware.py 508 2013-07-05 20:49:07Z akelge@gmail.com $ """ from paste.response import has_header from paste.wsgilib import intercept_output class testMiddleware(object): def __init__(self, app): self.app = app def __call__(self,...
ajibawa-2023/Python-Code-Large/train/row_77300
22
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_77300:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1047, 0.186, 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_77300:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77300:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77300:FunctionDef_L14_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77300:Assign_L15_C8"}, {"f": "ajibawa-2023/Python-...
""" CUBE pylons library $Id: __init__.py 472 2013-01-08 16:30:11Z akelge@gmail.com $ """ from utils import *
ajibawa-2023/Python-Code-Large/train/row_77301
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_77301:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.4375, 0.75, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[]
# -*- coding: utf-8 -*- """ Pylons formatter. $Id: formatter.py 520 2013-10-10 11:16:42Z akelge@gmail.com $ """ # toHTML/toMako from pylons.templating import render_mako as render from pylons import response, request, config import mako # JSON try: import json except: import simplejson as json # CSV import ...
ajibawa-2023/Python-Code-Large/train/row_77302
127
245
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77302:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0163, 0.0204, 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_77302:Try_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77302:Import_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77302:Try_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77302:Import_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# This script generates the mapping between MS Windows timezone names and # Olsen timezone names, by retrieving a file: # http://unicode.org/cldr/data/common/supplemental/supplementalData.xml # and parsing it, and from this generating the file windows_tz.py. XML_SOURCE = 'http://unicode.org/cldr/data/common/suppl...
ajibawa-2023/Python-Code-Large/train/row_77303
16
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_77303:Assign_L6_C0", "label": "XML_SOURCE =", "type": "assigned_variable", "loc": [6, 6], "level": 0, "parent": null, "vector": [14, 0, 0.2143, 0.0357, 0, 0.66, 0.0, 404, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "XML_SOURCE", "arg_names": [], "import_names": [], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77303:For_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77303:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77303:For_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77303:Assign_L20_C4"}]
import os, sys, time, re from ConfigParser import ConfigParser import windows_tz version = "3.2" all_timezones = ['Africa/Abidjan', 'Africa/Accra', 'Africa/Addis_Ababa', 'Africa/Algiers', 'Africa/Asmara', 'Africa/Asmera', 'Africa/Bamako', 'Africa/Bangui', 'Africa/Banjul', 'Africa/Bis...
ajibawa-2023/Python-Code-Large/train/row_77304
131
381
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77304:Import_L1_C0", "label": "os import os, sys, time\u2026", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0026, 0.0026, 0, 0.66, 0.0, 688, 0, 4, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sy...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77304:FunctionDef_L155_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77304:If_L156_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77304:If_L156_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77304:Return_L157_C8"}, {"f": "ajibawa-2023/Python-Code-Large/...
try: from setuptools import setup, find_packages except ImportError: from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages setup( name='wms', version='0.1', description='', author='', author_email='', url='', install_requires=[ ...
ajibawa-2023/Python-Code-Large/train/row_77307
6
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77307:Try_L1_C0", "label": "try", "type": "try", "loc": [1, 6], "level": 0, "parent": null, "vector": [7, 0, 0.0946, 0.1622, 0, 0.66, 0.0, 0, 0, 1, 0, 0, 0, 0, 1], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ""}, "sni...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77307:Try_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77307:ImportFrom_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77307:Try_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77307:ImportFrom_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
"""Setup the wms application""" import logging from wms.config.environment import load_environment from wms.model.meta import Session, Base log = logging.getLogger(__name__) def setup_app(command, conf, vars): """Place any commands to setup wms here""" # Don't reload the app if it was loaded under the testin...
ajibawa-2023/Python-Code-Large/train/row_77308
9
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_77308:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0667, 0.0667, 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_77308:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77308:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77308:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77308:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""The application's model objects""" from wms.model.meta import Session, Base def init_model(engine): """Call me before using any of the tables or classes in the model""" Session.configure(bind=engine)
ajibawa-2023/Python-Code-Large/train/row_77309
5
7
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77309:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.1429, 0.1429, 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_77309:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77309:Expr_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77309:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77309:Expr_L7_C4"}]
"""SQLAlchemy Metadata and Session object""" from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import scoped_session, sessionmaker __all__ = ['Base', 'Session'] # SQLAlchemy session manager. Updated by model.init_model() Session = scoped_session(sessionmaker()) # The declarative Base Base =...
ajibawa-2023/Python-Code-Large/train/row_77310
6
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_77310:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0909, 0.0909, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
"""Pylons application test package This package assumes the Pylons environment is already loaded, such as when this script is imported from the `nosetests --with-pylons=test.ini` command. This module initializes the application via ``websetup`` (`paster setup-app`) and provides the base testing objects. """ from unit...
ajibawa-2023/Python-Code-Large/train/row_77311
28
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_77311:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 9], "level": 0, "parent": null, "vector": [8, 0, 0.1087, 0.1957, 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_77311:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77311:FunctionDef_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77311:FunctionDef_L34_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77311:Assign_L35_C8"}, {"f": "ajibawa-2023/Python-...
"""The application's Globals object""" from beaker.cache import CacheManager from beaker.util import parse_cache_config_options class Globals(object): """Globals acts as a container for objects available throughout the life of the application """ def __init__(self, config): """One instance o...
ajibawa-2023/Python-Code-Large/train/row_77312
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_77312:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0556, 0.0556, 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_77312:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77312:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77312:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77312:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
"""Helper functions Consists of functions to typically be used within templates, but also available to Controllers. This module is available to templates as 'h'. """ # Import helpers as desired, or define your own, ie: #from webhelpers.html.tags import checkbox, password
ajibawa-2023/Python-Code-Large/train/row_77313
1
7
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77313:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.4286, 0.7143, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
"""The base Controller API Provides the BaseController class for subclassing. """ from pylons.controllers import WSGIController from pylons.templating import render_mako as render from wms.model.meta import Session class BaseController(WSGIController): def __call__(self, environ, start_response): """Inv...
ajibawa-2023/Python-Code-Large/train/row_77314
10
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77314:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 4], "level": 0, "parent": null, "vector": [8, 0, 0.125, 0.2, 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_77314:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77314:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77314:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77314:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Co...
"""Pylons middleware initialization""" from beaker.middleware import SessionMiddleware from paste.cascade import Cascade from paste.registry import RegistryManager from paste.urlparser import StaticURLParser from paste.deploy.converters import asbool from pylons.middleware import ErrorHandler, StatusCodeRedirect from p...
ajibawa-2023/Python-Code-Large/train/row_77315
27
67
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77315:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0149, 0.0149, 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_77315:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77315:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77315:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77315:Assign_L37_C4"}, {"f": "ajibawa-2023/Python-Code...
"""Routes configuration The more specific and detailed routes should be defined first so they may take precedent over the more generic routes. For more information refer to the routes manual at http://routes.groovie.org/docs/ """ from routes import Mapper def make_map(config): """Create, configure and return the ...
ajibawa-2023/Python-Code-Large/train/row_77316
12
26
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77316:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1346, 0.2308, 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_77316:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77316:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77316:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77316:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-L...
"""Pylons environment configuration""" import os from mako.lookup import TemplateLookup from pylons.configuration import PylonsConfig from pylons.error import handle_mako_error from sqlalchemy import engine_from_config import wms.lib.app_globals as app_globals import wms.lib.helpers from wms.config.routing import mak...
ajibawa-2023/Python-Code-Large/train/row_77317
25
54
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77317:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0185, 0.0185, 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_77317:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77317:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77317:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77317:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code...
import cgi from paste.urlparser import PkgResourcesParser from pylons.middleware import error_document_template from webhelpers.html.builder import literal from wms.lib.base import BaseController class ErrorController(BaseController): """Generates error documents as and when they are required. The ErrorDocu...
ajibawa-2023/Python-Code-Large/train/row_77318
25
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_77318:Import_L1_C0", "label": "cgi import cgi", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0227, 0.0227, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77318:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77318:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77318:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77318:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-La...
# coding: utf-8 from mccabe.mccabe import get_module_complexity from pyflakes import checker, messages import _ast from pep8 import pep8 as p8 from pep8.autopep8 import fix_file as pep8_fix, fix_lines as pep8_fix_lines import os class Pep8Options(): verbose = 0 diff = False in_place = True recursive ...
ajibawa-2023/Python-Code-Large/train/row_77320
72
160
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77320:ImportFrom_L3_C0", "label": "from mccabe.mccabe import get_module_complexity", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0187, 0.0063, 0, 0.66, 0.0, 18, 0, 1, 0, 0, 18, 0, 0], "semantic": {"name": "mccabe.mccabe", "arg_names":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77320:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77320:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77320:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77320:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, subl...
ajibawa-2023/Python-Code-Large/train/row_77321
1,119
2,047
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77321:Expr_L22_C0", "label": "expression", "type": "expression", "loc": [22, 22], "level": 0, "parent": null, "vector": [8, 0, 0.0107, 0.0005, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77321:Try_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77321:ImportFrom_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77321:Try_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77321:ImportFrom_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python # pep8.py - Check Python source code formatting, according to PEP 8 # Copyright (C) 2006-2009 Johann C. Rocholl <johann@rocholl.net> # Copyright (C) 2009-2012 Florent Xicluna <florent.xicluna@gmail.com> # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this soft...
ajibawa-2023/Python-Code-Large/train/row_77322
1,035
1,991
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77322:Expr_L26_C0", "label": "expression", "type": "expression", "loc": [26, 47], "level": 0, "parent": null, "vector": [8, 0, 0.0183, 0.011, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77322:Try_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77322:ImportFrom_L60_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77322:Try_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77322:ImportFrom_L61_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribute, subl...
ajibawa-2023/Python-Code-Large/train/row_77323
1,119
2,047
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77323:Expr_L22_C0", "label": "expression", "type": "expression", "loc": [22, 22], "level": 0, "parent": null, "vector": [8, 0, 0.0107, 0.0005, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77323:Try_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77323:ImportFrom_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77323:Try_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77323:ImportFrom_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python # pep8.py - Check Python source code formatting, according to PEP 8 # Copyright (C) 2006-2009 Johann C. Rocholl <johann@rocholl.net> # Copyright (C) 2009-2012 Florent Xicluna <florent.xicluna@gmail.com> # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this soft...
ajibawa-2023/Python-Code-Large/train/row_77324
1,035
1,991
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77324:Expr_L26_C0", "label": "expression", "type": "expression", "loc": [26, 47], "level": 0, "parent": null, "vector": [8, 0, 0.0183, 0.011, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77324:Try_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77324:ImportFrom_L60_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77324:Try_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77324:ImportFrom_L61_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# (c) 2005 Divmod, Inc. See LICENSE file for details class Message(object): message = '' message_args = () def __init__(self, filename, lineno): self.filename = filename self.lineno = lineno def __str__(self): return '%s:%s: %s' % (self.filename, self.lineno, self.message % ...
ajibawa-2023/Python-Code-Large/train/row_77325
69
113
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77325:ClassDef_L4_C0", "label": "Message", "type": "class", "loc": [4, 13], "level": 0, "parent": null, "vector": [3, 0, 0.0752, 0.0885, 0, 0.66, 0.0, 6, 0, 2, 0, 0, 186, 0, 0], "semantic": {"name": "Message", "arg_names": [], "import_names": [], "rhs_call_name": "", "a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77325:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77325:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77325:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77325:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# -*- test-case-name: pyflakes -*- # (c) 2005-2010 Divmod, Inc. # See LICENSE file for details import os.path try: import builtins PY2 = False except ImportError: import __builtin__ as builtins PY2 = True try: import ast iter_child_nodes = ast.iter_child_nodes except (ImportError, AttributeErr...
ajibawa-2023/Python-Code-Large/train/row_77326
409
723
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77326:Import_L5_C0", "label": "os.path import os.path", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0069, 0.0014, 0, 0.66, 0.0, 79, 0, 1, 0, 0, 79, 0, 0], "semantic": {"name": "os.path", "arg_names": [], "import_names": ["os.path"], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77326:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77326:Import_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77326:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77326:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_7...
__version__ = '0.6.1'
ajibawa-2023/Python-Code-Large/train/row_77327
1
2
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77327:Assign_L2_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [2, 2], "level": 0, "parent": null, "vector": [14, 0, 1.0, 0.5, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call...
[]
# (c) 2005-2012 Divmod, Inc. # See LICENSE file for details import sys try: u = unicode except NameError: u = str class Reporter(object): """ Formats the results of pyflakes checks to users. """ def __init__(self, warningStream, errorStream): """ Construct a L{Reporter}. ...
ajibawa-2023/Python-Code-Large/train/row_77328
30
79
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77328:Import_L4_C0", "label": "sys import sys", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0506, 0.0127, 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_77328:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77328:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77328:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77328:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_7...
""" API for the command-line I{pyflakes} tool. """ import sys import os import _ast from pyflakes import checker from pyflakes import reporter as modReporter __all__ = ['check', 'checkPath', 'checkRecursive', 'iterSourceCode', 'main'] def check(codeString, filename, reporter=None): """ Check the Python sou...
ajibawa-2023/Python-Code-Large/train/row_77329
60
130
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77329:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0154, 0.0231, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77329:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77329:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77329:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77329:If_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
""" Meager code path measurement tool. Ned Batchelder http://nedbatchelder.com/blog/200803/python_code_complexity_microtool.html MIT License. """ try: from compiler import parse # NOQA iter_child_nodes = None # NOQA except ImportError: from ast import parse, iter_child_nodes # N...
ajibawa-2023/Python-Code-Large/train/row_77330
185
293
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77330:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0102, 0.0171, 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_77330:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77330:ImportFrom_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77330:Try_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77330:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# FILE: autoload/conque_term/conque_sole_shared_memory.py # AUTHOR: Nico Raffo <nicoraffo@gmail.com> # WEBSITE: http://conque.googlecode.com # MODIFIED: 2011-08-12 # VERSION: 2.2, for Vim 7.0 # LICENSE: # Conque - Vim terminal/console emulator # Copyright (C) 2009-__YEAR__ Nico Raffo # # MIT License # # Permiss...
ajibawa-2023/Python-Code-Large/train/row_77331
79
210
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77331:Expr_L30_C0", "label": "expression", "type": "expression", "loc": [30, 35], "level": 0, "parent": null, "vector": [8, 0, 0.1548, 0.0286, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77331:If_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77331:Import_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77331:If_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77331:Import_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# FILE: autoload/conque_term/conque_screen.py # AUTHOR: Nico Raffo <nicoraffo@gmail.com> # WEBSITE: http://conque.googlecode.com # MODIFIED: 2011-08-12 # VERSION: 2.2, for Vim 7.0 # LICENSE: # Conque - Vim terminal/console emulator # Copyright (C) 2009-__YEAR__ Nico Raffo # # MIT License # # Permission is hereb...
ajibawa-2023/Python-Code-Large/train/row_77332
93
230
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77332:Expr_L30_C0", "label": "expression", "type": "expression", "loc": [30, 49], "level": 0, "parent": null, "vector": [8, 0, 0.1717, 0.087, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77332:ClassDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77332:Assign_L57_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77332:ClassDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77332:Assign_L60_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# FILE: autoload/conque_term/conque_globals.py # AUTHOR: Nico Raffo <nicoraffo@gmail.com> # WEBSITE: http://conque.googlecode.com # MODIFIED: 2011-08-12 # VERSION: 2.2, for Vim 7.0 # LICENSE: # Conque - Vim terminal/console emulator # Copyright (C) 2009-__YEAR__ Nico Raffo # # MIT License # # Permission is here...
ajibawa-2023/Python-Code-Large/train/row_77333
52
319
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77333:Expr_L30_C0", "label": "expression", "type": "expression", "loc": [30, 30], "level": 0, "parent": null, "vector": [8, 0, 0.094, 0.0031, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77333:Try_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77333:Import_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77333:Try_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77333:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# FILE: autoload/conque_term/conque_subprocess.py # AUTHOR: Nico Raffo <nicoraffo@gmail.com> # WEBSITE: http://conque.googlecode.com # MODIFIED: 2011-08-12 # VERSION: 2.2, for Vim 7.0 # LICENSE: # Conque - Vim terminal/console emulator # Copyright (C) 2009-__YEAR__ Nico Raffo # # MIT License # # Permission is h...
ajibawa-2023/Python-Code-Large/train/row_77334
79
198
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77334:Expr_L30_C0", "label": "expression", "type": "expression", "loc": [30, 44], "level": 0, "parent": null, "vector": [8, 0, 0.1869, 0.0758, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77334:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77334:Assign_L60_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77334:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77334:Assign_L63_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# FILE: autoload/conque_term/conque_sole_communicator.py # AUTHOR: Nico Raffo <nicoraffo@gmail.com> # WEBSITE: http://conque.googlecode.com # MODIFIED: 2011-08-12 # VERSION: 2.2, for Vim 7.0 # LICENSE: # Conque - Vim terminal/console emulator # Copyright (C) 2009-__YEAR__ Nico Raffo # # MIT License # # Permissi...
ajibawa-2023/Python-Code-Large/train/row_77335
55
183
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77335:Expr_L30_C0", "label": "expression", "type": "expression", "loc": [30, 42], "level": 0, "parent": null, "vector": [8, 0, 0.1967, 0.071, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77335:If_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77335:Try_L58_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77335:Try_L58_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77335:If_L62_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77335...
# FILE: autoload/conque_term/conque_sole_subprocess.py # AUTHOR: Nico Raffo <nicoraffo@gmail.com> # WEBSITE: http://conque.googlecode.com # MODIFIED: 2011-08-12 # VERSION: 2.2, for Vim 7.0 # LICENSE: # Conque - Vim terminal/console emulator # Copyright (C) 2009-__YEAR__ Nico Raffo # # MIT License # # Permission...
ajibawa-2023/Python-Code-Large/train/row_77336
318
762
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77336:Expr_L30_C0", "label": "expression", "type": "expression", "loc": [30, 50], "level": 0, "parent": null, "vector": [8, 0, 0.0525, 0.0276, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77336:ClassDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77336:Assign_L65_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77336:ClassDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77336:Assign_L66_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# FILE: autoload/conque_term/conque.py # AUTHOR: Nico Raffo <nicoraffo@gmail.com> # WEBSITE: http://conque.googlecode.com # MODIFIED: 2011-08-12 # VERSION: 2.2, for Vim 7.0 # LICENSE: # Conque - Vim terminal/console emulator # Copyright (C) 2009-__YEAR__ Nico Raffo # # MIT License # # Permission is hereby gran...
ajibawa-2023/Python-Code-Large/train/row_77337
509
1,154
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77337:Expr_L30_C0", "label": "expression", "type": "expression", "loc": [30, 46], "level": 0, "parent": null, "vector": [8, 0, 0.0329, 0.0147, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77337:ClassDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77337:Assign_L56_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77337:ClassDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77337:Assign_L59_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# FILE: autoload/conque_term/conque_win32_util.py # AUTHOR: Nico Raffo <nicoraffo@gmail.com> # WEBSITE: http://conque.googlecode.com # MODIFIED: 2011-08-12 # VERSION: 2.2, for Vim 7.0 # LICENSE: # Conque - Vim terminal/console emulator # Copyright (C) 2009-__YEAR__ Nico Raffo # # MIT License # # Permission is h...
ajibawa-2023/Python-Code-Large/train/row_77338
148
448
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77338:Expr_L30_C0", "label": "expression", "type": "expression", "loc": [30, 30], "level": 0, "parent": null, "vector": [8, 0, 0.067, 0.0022, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77338:ClassDef_L284_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77338:Assign_L285_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77338:ClassDef_L284_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77338:FunctionDef_L304_C4"}, {"f": "ajibawa-2023/Python...
# FILE: autoload/conque_term/conque_sole.py # AUTHOR: Nico Raffo <nicoraffo@gmail.com> # WEBSITE: http://conque.googlecode.com # MODIFIED: 2011-08-12 # VERSION: 2.2, for Vim 7.0 # LICENSE: # Conque - Vim terminal/console emulator # Copyright (C) 2009-__YEAR__ Nico Raffo # # MIT License # # Permission is hereby ...
ajibawa-2023/Python-Code-Large/train/row_77339
205
458
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77339:Expr_L30_C0", "label": "expression", "type": "expression", "loc": [30, 35], "level": 0, "parent": null, "vector": [8, 0, 0.071, 0.0131, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77339:ClassDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77339:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77339:ClassDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77339:Assign_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# FILE: autoload/conque_term/conque_sole_wrapper.py # AUTHOR: Nico Raffo <nicoraffo@gmail.com> # WEBSITE: http://conque.googlecode.com # MODIFIED: 2011-08-12 # VERSION: 2.2, for Vim 7.0 # LICENSE: # Conque - Vim terminal/console emulator # Copyright (C) 2009-__YEAR__ Nico Raffo # # MIT License # # Permission i...
ajibawa-2023/Python-Code-Large/train/row_77340
123
278
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77340:Expr_L30_C0", "label": "expression", "type": "expression", "loc": [30, 38], "level": 0, "parent": null, "vector": [8, 0, 0.1223, 0.0324, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77340:ClassDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77340:Assign_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77340:ClassDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77340:Assign_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python #-*- coding: utf-8 -*- """ Copyright by @@LONGNAME@@ <@@EMAIL@@> First version: @@crdate@@ Synopsis: @@DESCR@@ $Id$ """ __version__ ='0.1' __author__ ='@@LONGNAME@@ <@@EMAIL@@>' def main(): pass # If we have been called as 'python <script>' let's call main function if __name__ == ...
ajibawa-2023/Python-Code-Large/train/row_77341
6
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_77341:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 13], "level": 0, "parent": null, "vector": [8, 0, 0.3269, 0.3846, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77341:If_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77341:Expr_L24_C4"}]
#!/usr/bin/env python #-*- coding: utf-8 -*- """ Copyright by @@LONGNAME@@ <@@EMAIL@@> First version: @@crdate@@ Synopsis: @@DESCR@@ $Id$ """ __version__ ='0.1' __author__ ='@@LONGNAME@@ <@@EMAIL@@>' def main(): pass # If we have been called as 'python <script>' let's call main function if __name__ == ...
ajibawa-2023/Python-Code-Large/train/row_77342
6
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_77342:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 13], "level": 0, "parent": null, "vector": [8, 0, 0.3269, 0.3846, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77342:If_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77342:Expr_L24_C4"}]
import hmac import hashlib password='test123' ki=[] ko=[] print "using /%s/ as the user password" % password secret=password if len(secret)>64: secret=hmac.new(secret).hexdigest() print "using /%s/ as the shared secret" % secret Ki=(secret+'\0'*(64-len(secret))).translate(hmac.trans_36) Ko=(secret+'\0'*(64-len(se...
ajibawa-2023/Python-Code-Large/train/row_77343
22
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_77343:Import_L1_C0", "label": "hmac import hmac", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0345, 0.0345, 0, 0.66, 0.0, 993, 0, 1, 0, 0, 993, 0, 0], "semantic": {"name": "hmac", "arg_names": [], "import_names": ["hmac"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77343:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77343:Assign_L10_C4"}]
""" Views definition $Id: views.py 428 2011-06-20 14:20:05Z andre $ """ from meta import * from sqlalchemy import text import os import glob def __viewsList(): installDir=os.path.dirname(__file__) if installDir=='': installDir='.' views={} for file in glob.glob(os.path.join('%s/views' % installDir,...
ajibawa-2023/Python-Code-Large/train/row_77347
39
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_77347:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0673, 0.1154, 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_77347:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77347:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77347:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77347:If_L14_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#-*- coding: utf-8 -*- """ Alchemy Model $Id: model.py 450 2012-04-13 12:35:55Z andre $ """ import re from password import Password from sqlalchemy.orm import relation, backref, validates from sqlalchemy import Table, Column, Sequence, ForeignKey, ColumnDefault, UniqueConstraint from sqlalchemy.types import Inte...
ajibawa-2023/Python-Code-Large/train/row_77348
317
523
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77348:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0096, 0.0134, 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_77348:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77348:FunctionDef_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77348:FunctionDef_L28_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77348:Assign_L29_C8"}, {"f": "ajibawa-2023/Python-...
""" Generic utils module $Id: utils.py 457 2012-12-28 20:24:27Z akelge@gmail.com $ """ from model import * from ldapImport import syncLDAPUsers import views # users=session.query(cmUser).all() # domains=session.query(cmDomain).all() # aliases=session.query(cmAlias).all() # d0=domains[0] # d1=domains[1] # d2=domai...
ajibawa-2023/Python-Code-Large/train/row_77349
28
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_77349:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.07, 0.12, 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_77349:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77349:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77349:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77349:Expr_L23_C4"}, {"f": "ajibawa-2023/Python-Code-L...
""" LDAP Users import module $Id: ldapImport.py 421 2011-06-06 16:35:04Z andre $ """ from model import * import ldap def LDAPConnect(): c=session.query(cmConfiguration).first() print "using %s, dn=%s/%s" % (c.ldap_url, c.admin_dn, c.secret) connection = ldap.initialize(c.ldap_url) connection.bind_...
ajibawa-2023/Python-Code-Large/train/row_77351
53
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_77351:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0412, 0.0706, 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_77351:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77351:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77351:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77351:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code...
""" CUBE Mail admin module $Id: __init__.py 445 2011-08-03 14:41:44Z andre $ """ # from password import * # from model import * # import utils # from ldapImport import * __version__ ='1.0' __revision__='$Rev: 445 $' __author__ ='Andrea Mistrali <am@am.cx>' __copyright__ ='Cube Gestioni S.r.l. 2009'
ajibawa-2023/Python-Code-Large/train/row_77352
5
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77352:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.2188, 0.375, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[]
""" IMAP4 ACL support $Id: imap4acl.py 458 2012-12-28 20:27:24Z akelge@gmail.com $ """ import imaplib from model import * # from meta import Session import meta import re ENCODING="hex" class PublicMailboxes(object): def __init__(self, user='pubowner@example.com', password='xxxxx', ...
ajibawa-2023/Python-Code-Large/train/row_77354
179
350
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77354:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0114, 0.02, 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_77354:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77354:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77354:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77354:If_L25_C8"}, {"f": "ajibawa-2023/Python-Code...
""" Connection module $Id: meta.py 450 2012-04-13 12:35:55Z andre $ """ # from sqlalchemy.ext.declarative import declarative_base # from sqlalchemy.orm import scoped_session, sessionmaker # from sqlalchemy import create_engine, MetaData from sqlalchemy import create_engine, MetaData from sqlalchemy.orm import sco...
ajibawa-2023/Python-Code-Large/train/row_77355
22
54
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77355:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0648, 0.1111, 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_77355:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77355:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77355:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77355:Expr_L40_C4"}, {"f": "ajibawa-2023/Python-Code-L...
""" GV3 - Copyright CUBE Gestioni S.r.l. 2010 Formatting functions $Id: formatter.py 430 2011-06-22 15:30:42Z andre $ """ from sqlalchemy import orm import cgi def objToDict(obj, pk=True, fk=False, rel=True): """ @brief returns a dict from an obj @detailed converts an instance of a model class obje...
ajibawa-2023/Python-Code-Large/train/row_77357
83
239
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77357:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0188, 0.0335, 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_77357:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77357:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77357:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77357:Return_L23_C4"}, {"f": "ajibawa-2023/Python-Code...
""" Copyright CUBE Gestioni S.r.l. 2010 Base configuration and imports for all model parts - common functions - qbClass - Inherited $Id: sqlbase.py 431 2011-06-29 15:35:41Z andre $ """ # from cubemail import meta from sqlalchemy import schema, types, orm, join, desc, and_ from sqlalchemy.orm import validates ...
ajibawa-2023/Python-Code-Large/train/row_77358
33
73
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77358:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 11], "level": 0, "parent": null, "vector": [8, 0, 0.0822, 0.1507, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77358:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77358:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77358:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77358:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
ajibawa-2023/Python-Code-Large/train/row_77360
38
74
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77360:Import_L26_C0", "label": "os import os", "type": "import", "loc": [26, 26], "level": 0, "parent": null, "vector": [1, 0, 0.3514, 0.0135, 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_77360:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77360:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77360:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77360:For_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
ajibawa-2023/Python-Code-Large/train/row_77361
38
74
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77361:Import_L26_C0", "label": "os import os", "type": "import", "loc": [26, 26], "level": 0, "parent": null, "vector": [1, 0, 0.3514, 0.0135, 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_77361:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77361:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77361:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77361:For_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com> # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero Gener...
ajibawa-2023/Python-Code-Large/train/row_77362
12
144
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77362:Import_L24_C0", "label": "wsgiref.handlers import wsgiref.handlers", "type": "import", "loc": [24, 24], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.0069, 0, 0.66, 0.0, 709, 0, 1, 0, 0, 709, 0, 0], "semantic": {"name": "wsgiref.handlers", "arg_names": []...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77362:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77362:Expr_L37_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77362:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77362:Assign_L39_C1"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
ajibawa-2023/Python-Code-Large/train/row_77363
99
162
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77363:ImportFrom_L23_C0", "label": "from django import template", "type": "import", "loc": [23, 23], "level": 0, "parent": null, "vector": [1, 0, 0.142, 0.0062, 0, 0.66, 0.0, 294, 0, 1, 0, 0, 294, 0, 0], "semantic": {"name": "django", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77363:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77363:Assign_L33_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77363:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77363:Assign_L34_C1"}, {"f": "ajibawa-2023/Python-Co...
import urllib from google.appengine.api import urlfetch """ Adapted from http://pypi.python.org/pypi/recaptcha-client to use with Google App Engine by Joscha Feth <joscha@feth.com> Version 0.1 """ API_SSL_SERVER ="https://api-secure.recaptcha.net" API_SERVER ="http://api.recaptcha.net" VERIFY_SE...
ajibawa-2023/Python-Code-Large/train/row_77364
33
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_77364:Import_L1_C0", "label": "urllib import urllib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0094, 0.0094, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "urllib", "arg_names": [], "import_names": ["urllib"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77364:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77364:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77364:FunctionDef_L16_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77364:Assign_L17_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com> # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero Gener...
ajibawa-2023/Python-Code-Large/train/row_77365
47
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_77365:Import_L23_C0", "label": "os import os", "type": "import", "loc": [23, 23], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.0109, 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_77365:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77365:FunctionDef_L32_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77365:FunctionDef_L32_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_77365:Assign_L33_C2"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python # -*- coding: utf-8 -*- # # (C) Copyright 2008 Ignacio Andreu <plunchete at gmail dot com> # # This file is part of "debug_mode_on". # # "debug_mode_on" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free S...
ajibawa-2023/Python-Code-Large/train/row_77366
11
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77366:Import_L23_C0", "label": "simplejson import simplejson", "type": "import", "loc": [23, 23], "level": 0, "parent": null, "vector": [1, 0, 0.6216, 0.027, 0, 0.66, 0.0, 386, 0, 1, 0, 0, 386, 0, 0], "semantic": {"name": "simplejson", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77366:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77366:FunctionDef_L31_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77366:FunctionDef_L31_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_77366:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python # -*- coding: utf-8 -*- # # (C) Copyright 2008 Ignacio Andreu <plunchete at gmail dot com> # # This file is part of "debug_mode_on". # # "debug_mode_on" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free S...
ajibawa-2023/Python-Code-Large/train/row_77368
4
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_77368:ImportFrom_L22_C0", "label": "from handlers.BaseHandler import *", "type": "import", "loc": [22, 22], "level": 0, "parent": null, "vector": [1, 0, 0.8462, 0.0385, 0, 0.66, 0.0, 437, 0, 1, 0, 0, 437, 0, 0], "semantic": {"name": "handlers.BaseHandler", "arg_names": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77368:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77368:FunctionDef_L25_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77368:FunctionDef_L25_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_77368:Expr_L26_C2"}]
#!/usr/bin/python # -*- coding: utf-8 -*- # # (C) Copyright 2008 Alberto Gimeno <gimenete at gmail dot com> # # This file is part of "debug_mode_on". # # "debug_mode_on" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free So...
ajibawa-2023/Python-Code-Large/train/row_77369
9
33
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77369:ImportFrom_L23_C0", "label": "from handlers.BaseHandler import *", "type": "import", "loc": [23, 23], "level": 0, "parent": null, "vector": [1, 0, 0.697, 0.0303, 0, 0.66, 0.0, 437, 0, 1, 0, 0, 437, 0, 0], "semantic": {"name": "handlers.BaseHandler", "arg_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77369:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77369:FunctionDef_L27_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77369:FunctionDef_L27_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_77369:Assign_L28_C2"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
ajibawa-2023/Python-Code-Large/train/row_77370
4
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_77370:ImportFrom_L23_C0", "label": "from handlers.BaseHandler import BaseHandler", "type": "import", "loc": [23, 23], "level": 0, "parent": null, "vector": [1, 0, 0.8214, 0.0357, 0, 0.66, 0.0, 437, 0, 1, 0, 0, 437, 0, 0], "semantic": {"name": "handlers.BaseHandler", "ar...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77370:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77370:FunctionDef_L27_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77370:FunctionDef_L27_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_77370:Expr_L28_C2"}]
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
ajibawa-2023/Python-Code-Large/train/row_77371
16
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_77371:Import_L22_C0", "label": "model import model", "type": "import", "loc": [22, 22], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.0227, 0, 0.66, 0.0, 722, 0, 1, 0, 0, 722, 0, 0], "semantic": {"name": "model", "arg_names": [], "import_names": ["model"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77371:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77371:FunctionDef_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77371:FunctionDef_L31_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77371:Assign_L32_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
ajibawa-2023/Python-Code-Large/train/row_77372
39
80
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77372:Import_L22_C0", "label": "datetime import datetime", "type": "import", "loc": [22, 22], "level": 0, "parent": null, "vector": [1, 0, 0.275, 0.0125, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["datet...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77372:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77372:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77372:FunctionDef_L33_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_77372:Assign_L34_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
ajibawa-2023/Python-Code-Large/train/row_77373
521
848
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77373:Import_L22_C0", "label": "re import re", "type": "import", "loc": [22, 22], "level": 0, "parent": null, "vector": [1, 0, 0.0259, 0.0012, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77373:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77373:FunctionDef_L41_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77373:FunctionDef_L41_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_77373:If_L43_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
ajibawa-2023/Python-Code-Large/train/row_77374
39
77
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77374:ImportFrom_L23_C0", "label": "from google.appengine.api import mail", "type": "import", "loc": [23, 23], "level": 0, "parent": null, "vector": [1, 0, 0.2987, 0.013, 0, 0.66, 0.0, 279, 0, 1, 0, 0, 279, 0, 0], "semantic": {"name": "google.appengine.api", "arg_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77374:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77374:FunctionDef_L30_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77374:FunctionDef_L30_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_77374:Assign_L31_C2"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
ajibawa-2023/Python-Code-Large/train/row_77375
95
191
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77375:Import_L23_C0", "label": "time import time", "type": "import", "loc": [23, 23], "level": 0, "parent": null, "vector": [1, 0, 0.1204, 0.0052, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77375:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77375:FunctionDef_L37_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77375:FunctionDef_L37_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_77375:Assign_L38_C2"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python # -*- coding: utf-8 -*- # # (C) Copyright 2008 Alberto Gimeno <gimenete at gmail dot com> # # This file is part of "debug_mode_on". # # "debug_mode_on" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free So...
ajibawa-2023/Python-Code-Large/train/row_77376
21
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_77376:ImportFrom_L23_C0", "label": "from handlers.BaseHandler import *", "type": "import", "loc": [23, 23], "level": 0, "parent": null, "vector": [1, 0, 0.4792, 0.0208, 0, 0.66, 0.0, 437, 0, 1, 0, 0, 437, 0, 0], "semantic": {"name": "handlers.BaseHandler", "arg_names": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77376:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77376:FunctionDef_L27_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77376:FunctionDef_L27_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_77376:Assign_L28_C2"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
ajibawa-2023/Python-Code-Large/train/row_77377
57
94
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_77377:Import_L23_C0", "label": "time import time", "type": "import", "loc": [23, 23], "level": 0, "parent": null, "vector": [1, 0, 0.2447, 0.0106, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_77377:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_77377:FunctionDef_L33_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_77377:FunctionDef_L33_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_77377:Assign_L34_C2"}, {"f": "ajibawa-2023/Python-...