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
from django.db.models.sql import compiler class SQLCompiler(compiler.SQLCompiler): def resolve_columns(self, row, fields=()): values = [] index_extra_select = len(self.query.extra_select.keys()) for value, field in map(None, row[index_extra_select:], fields): if (field an...
ajibawa-2023/Python-Code-Large/train/row_99037
15
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99037:ImportFrom_L1_C0", "label": "from django.db.models.sql import compiler", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.037, 0.037, 0, 0.66, 0.0, 841, 0, 1, 0, 0, 841, 0, 0], "semantic": {"name": "django.db.models.sql", "arg_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99037:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99037:FunctionDef_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99037:FunctionDef_L4_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99037:Assign_L5_C8"}, {"f": "ajibawa-2023/Python-Code...
import os import sys from django.db.backends import BaseDatabaseClient class DatabaseClient(BaseDatabaseClient): executable_name = 'mysql' def runshell(self): settings_dict = self.connection.settings_dict args = [self.executable_name] db = settings_dict['OPTIONS'].get('db',...
ajibawa-2023/Python-Code-Large/train/row_99038
24
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99038:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.025, 0.025, 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_99038:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99038:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99038:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99038:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-La...
from django.db.backends.creation import BaseDatabaseCreation class DatabaseCreation(BaseDatabaseCreation): # This dictionary maps Field objects to their associated MySQL column # types, as strings. Column-type strings can contain format strings; they'll # be interpolated against the values of Field.__...
ajibawa-2023/Python-Code-Large/train/row_99039
20
65
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99039:ImportFrom_L1_C0", "label": "from django.db.backends.creation import BaseDatabaseCreation", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0154, 0.0154, 0, 0.66, 0.0, 340, 0, 1, 0, 0, 340, 0, 0], "semantic": {"name": "django.db.bac...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99039:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99039:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99039:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99039:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-L...
from django.db.backends import BaseDatabaseValidation class DatabaseValidation(BaseDatabaseValidation): def validate_field(self, errors, opts, f): """ There are some field length restrictions for MySQL: - Prior to version 5.0.3, character fields could not exceed 255 chara...
ajibawa-2023/Python-Code-Large/train/row_99040
15
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_99040:ImportFrom_L1_C0", "label": "from django.db.backends import BaseDatabaseValidation", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0385, 0.0385, 0, 0.66, 0.0, 981, 0, 1, 0, 0, 981, 0, 0], "semantic": {"name": "django.db.backends",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99040:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99040:FunctionDef_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99040:FunctionDef_L4_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99040:Expr_L5_C8"}, {"f": "ajibawa-2023/Python-Code-L...
from django.dispatch import Signal connection_created = Signal(providing_args=["connection"])
ajibawa-2023/Python-Code-Large/train/row_99042
2
3
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99042:ImportFrom_L1_C0", "label": "from django.dispatch import Signal", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 548, 0, 1, 0, 0, 548, 0, 0], "semantic": {"name": "django.dispatch", "arg_names": [], "imp...
[]
""" Dummy database backend for Django. Django uses this if the database ENGINE setting is empty (None or empty string). Each of these API functions, except connection.close(), raises ImproperlyConfigured. """ from django.core.exceptions import ImproperlyConfigured from django.db.backends import * from dja...
ajibawa-2023/Python-Code-Large/train/row_99043
32
56
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99043:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0804, 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_99043:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99043:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99043:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99043:Assign_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
from django.db.backends import BaseDatabaseIntrospection class DatabaseIntrospection(BaseDatabaseIntrospection): # Maps type codes to Django Field types. data_types_reverse = { 16: 'BooleanField', 20: 'BigIntegerField', 21: 'SmallIntegerField', 23: 'IntegerField', ...
ajibawa-2023/Python-Code-Large/train/row_99045
27
88
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99045:ImportFrom_L1_C0", "label": "from django.db.backends import BaseDatabaseIntrospection", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0114, 0.0114, 0, 0.66, 0.0, 981, 0, 1, 0, 0, 981, 0, 0], "semantic": {"name": "django.db.backend...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99045:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99045:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99045:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99045:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import os import sys from django.db.backends import BaseDatabaseClient class DatabaseClient(BaseDatabaseClient): executable_name = 'psql' def runshell(self): settings_dict = self.connection.settings_dict args = [self.executable_name] if settings_dict['USER']: a...
ajibawa-2023/Python-Code-Large/train/row_99046
16
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_99046:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0435, 0.0435, 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_99046:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99046:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99046:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99046:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-La...
import re from django.db.backends import BaseDatabaseOperations # This DatabaseOperations class lives in here instead of base.py because it's # used by both the 'postgresql' and 'postgresql_psycopg2' backends. class DatabaseOperations(BaseDatabaseOperations): def __init__(self, connection): supe...
ajibawa-2023/Python-Code-Large/train/row_99047
85
188
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99047:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0053, 0.0053, 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_99047:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99047:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99047:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99047:Expr_L10_C8"}, {"f": "ajibawa-2023/Python-Code-...
from django.db.backends.creation import BaseDatabaseCreation from django.db.backends.util import truncate_name class DatabaseCreation(BaseDatabaseCreation): # This dictionary maps Field objects to their associated PostgreSQL column # types, as strings. Column-type strings can contain format strings; they'...
ajibawa-2023/Python-Code-Large/train/row_99048
29
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_99048:ImportFrom_L1_C0", "label": "from django.db.backends.creation import BaseDatabaseCreation", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0132, 0.0132, 0, 0.66, 0.0, 340, 0, 1, 0, 0, 340, 0, 0], "semantic": {"name": "django.db.bac...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99048:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99048:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99048:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99048:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-L...
""" Extracts the version of the PostgreSQL server. """ import re # This reg-exp is intentionally fairly flexible here. # Needs to be able to handle stuff like: # PostgreSQL 8.3.6 # EnterpriseDB 8.3 # PostgreSQL 8.3 beta4 # PostgreSQL 8.4beta1 VERSION_RE = re.compile(r'\S+ (\d+)\.(\d+)\.?(\d+)?') ...
ajibawa-2023/Python-Code-Large/train/row_99049
13
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99049:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0645, 0.0968, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99049:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99049:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99049:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99049:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code...
import datetime import decimal from time import time from django.utils.hashcompat import md5_constructor from django.utils.log import getLogger logger = getLogger('django.db.backends') class CursorDebugWrapper(object): def __init__(self, cursor, db): self.cursor = cursor self.db = db ...
ajibawa-2023/Python-Code-Large/train/row_99051
92
139
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99051:Import_L1_C0", "label": "datetime import datetime", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0072, 0.0072, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["datetim...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99051:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99051:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99051:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99051:Assign_L12_C8"}, {"f": "ajibawa-2023/Python-...
import re from django.db.backends import BaseDatabaseIntrospection # This light wrapper "fakes" a dictionary interface, because some SQLite data # types include variables in them -- e.g. "varchar(30)" -- and can't be matched # as a simple dictionary lookup. class FlexibleFieldLookupDict(object): # Maps SQL ...
ajibawa-2023/Python-Code-Large/train/row_99052
63
140
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99052:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0071, 0.0071, 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_99052:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99052:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99052:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99052:FunctionDef_L30_C4"}, {"f": "ajibawa-2023/Python-Code-...
import os import sys from django.db.backends import BaseDatabaseClient class DatabaseClient(BaseDatabaseClient): executable_name = 'sqlite3' def runshell(self): args = [self.executable_name, self.connection.settings_dict['NAME']] if os.name == 'nt': sys...
ajibawa-2023/Python-Code-Large/train/row_99053
10
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99053:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0625, 0.0625, 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_99053:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99053:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99053:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99053:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-La...
import decimal from threading import local from django.db import DEFAULT_DB_ALIAS from django.db.backends import util from django.utils import datetime_safe from django.utils.importlib import import_module class BaseDatabaseWrapper(local): """ Represents a database connection. """ ops = No...
ajibawa-2023/Python-Code-Large/train/row_99056
332
706
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99056:Import_L1_C0", "label": "decimal import decimal", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0014, 0.0014, 0, 0.66, 0.0, 349, 0, 1, 0, 0, 349, 0, 0], "semantic": {"name": "decimal", "arg_names": [], "import_names": ["decimal"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99056:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99056:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99056:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99056:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
from django.db.backends import BaseDatabaseIntrospection import cx_Oracle import re foreign_key_re = re.compile(r"\sCONSTRAINT `[^`]*` FOREIGN KEY \(`([^`]*)`\) REFERENCES `([^`]*)` \(`([^`]*)`\)") class DatabaseIntrospection(BaseDatabaseIntrospection): # Maps type objects to Django Field types. data_...
ajibawa-2023/Python-Code-Large/train/row_99057
48
121
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99057:ImportFrom_L1_C0", "label": "from django.db.backends import BaseDatabaseIntrospection", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0083, 0.0083, 0, 0.66, 0.0, 981, 0, 1, 0, 0, 981, 0, 0], "semantic": {"name": "django.db.backend...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99057:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99057:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99057:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99057:Try_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
from django.db.models.sql import compiler class SQLCompiler(compiler.SQLCompiler): def resolve_columns(self, row, fields=()): # If this query has limit/offset information, then we expect the # first column to be an extra "_RN" column that we need to throw # away. if self.qu...
ajibawa-2023/Python-Code-Large/train/row_99058
29
68
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99058:ImportFrom_L1_C0", "label": "from django.db.models.sql import compiler", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0147, 0.0147, 0, 0.66, 0.0, 841, 0, 1, 0, 0, 841, 0, 0], "semantic": {"name": "django.db.models.sql", "arg_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99058:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99058:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99058:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99058:If_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
import os import sys from django.db.backends import BaseDatabaseClient class DatabaseClient(BaseDatabaseClient): executable_name = 'sqlplus' def runshell(self): conn_string = self.connection._connect_string() args = [self.executable_name, "-L", conn_string] if os.name == 'n...
ajibawa-2023/Python-Code-Large/train/row_99059
11
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_99059:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0625, 0.0625, 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_99059:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99059:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99059:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99059:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-La...
from django.conf import settings from django.core import signals from django.core.exceptions import ImproperlyConfigured from django.db.utils import ConnectionHandler, ConnectionRouter, load_backend, DEFAULT_DB_ALIAS, \ DatabaseError, IntegrityError from django.utils.functional import c...
ajibawa-2023/Python-Code-Large/train/row_99062
43
103
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99062:ImportFrom_L1_C0", "label": "from django.conf import settings", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0097, 0.0097, 0, 0.66, 0.0, 128, 0, 1, 0, 0, 128, 0, 0], "semantic": {"name": "django.conf", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99062:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99062:Import_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99062:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99062:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_9...
import re import sys from urlparse import urlsplit, urlunsplit from xml.dom.minidom import parseString, Node from django.conf import settings from django.core import mail from django.core.management import call_command from django.core.urlresolvers import clear_url_caches from django.db import transaction, co...
ajibawa-2023/Python-Code-Large/train/row_99063
328
629
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99063:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0016, 0.0016, 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_99063:Try_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99063:Expr_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99063:Try_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99063:ImportFrom_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
from django.dispatch import Signal template_rendered = Signal(providing_args=["template", "context"])
ajibawa-2023/Python-Code-Large/train/row_99067
2
3
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99067:ImportFrom_L1_C0", "label": "from django.dispatch import Signal", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 548, 0, 1, 0, 0, 548, 0, 0], "semantic": {"name": "django.dispatch", "arg_names": [], "imp...
[]
import sys import time import os import warnings from django.conf import settings from django.core import mail from django.core.mail.backends import locmem from django.test import signals from django.template import Template from django.utils.translation import deactivate __all__ = ('Approximate', 'ContextL...
ajibawa-2023/Python-Code-Large/train/row_99068
67
127
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99068:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0079, 0.0079, 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_99068:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99068:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99068:FunctionDef_L17_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99068:Assign_L18_C8"}, {"f": "ajibawa-2023/Python-...
""" Django Unit Test and Doctest framework. """ from django.test.client import Client, RequestFactory from django.test.testcases import TestCase, TransactionTestCase, skipIfDBFeature, skipUnlessDBFeature from django.test.utils import Approximate
ajibawa-2023/Python-Code-Large/train/row_99069
4
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_99069:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.2857, 0.4286, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_99070
133
305
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99070:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0557, 0.0033, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99070:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99070:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99070:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99070:Assign_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_99071
218
605
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99071:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0281, 0.0017, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99071:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99071:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99071:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99071:Return_L54_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # Copyright (c) 2010, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this l...
ajibawa-2023/Python-Code-Large/train/row_99073
51
187
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99073:Expr_L32_C0", "label": "expression", "type": "expression", "loc": [32, 36], "level": 0, "parent": null, "vector": [8, 0, 0.1818, 0.0267, 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_99073:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99073:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99073:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99073:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
ajibawa-2023/Python-Code-Large/train/row_99075
86
244
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99075:Import_L18_C0", "label": "base64 import base64", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.0738, 0.0041, 0, 0.66, 0.0, 177, 0, 1, 0, 0, 177, 0, 0], "semantic": {"name": "base64", "arg_names": [], "import_names": ["base64"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99075:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99075:Expr_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99075:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99075:FunctionDef_L39_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2011 Google Inc. All Rights Reserved. """Multi-credential file store with lock support. This module implements a JSON credential store where multiple credentials can be stored in one file. That file supports locking both in a single process and across processes. The credential themselves are keyed off o...
ajibawa-2023/Python-Code-Large/train/row_99077
155
378
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99077:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 30], "level": 0, "parent": null, "vector": [8, 0, 0.0437, 0.0741, 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_99077:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99077:Expr_L53_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99077:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99077:Expr_L58_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_99078
7
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99078:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.5312, 0.1562, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99078:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99078:Import_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99078:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99078:Try_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_99080
396
1,139
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99080:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0145, 0.0035, 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_99080:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99080:ImportFrom_L38_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99080:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99080:ImportFrom_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_99081
33
105
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99081:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1619, 0.0476, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99081:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99081:Expr_L58_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99081:ClassDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99081:Expr_L63_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_99082
46
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99082:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1604, 0.0472, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99082:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99082:Expr_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99082:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99082:FunctionDef_L35_C2"}, {"f": "ajibawa-2023/Python-Code-...
__version__ = "1.0c2"
ajibawa-2023/Python-Code-Large/train/row_99083
1
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99083:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call...
[]
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_99084
63
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_99084:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1371, 0.0403, 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_99084:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99084:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99084:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99084:FunctionDef_L34_C2"}, {"f": "ajibawa-2023/Python-Cod...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
ajibawa-2023/Python-Code-Large/train/row_99086
57
172
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99086:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0814, 0.1105, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99086:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99086:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99086:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99086:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_99087
114
303
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99087:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 58], "level": 0, "parent": null, "vector": [8, 0, 0.1205, 0.1452, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99087:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99087:Expr_L69_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99087:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99087:FunctionDef_L71_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_99088
7
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99088:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.5312, 0.1562, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99088:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99088:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99088:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99088:Try_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_99089
201
483
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99089:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0342, 0.0083, 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_99089:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99089:ImportFrom_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99089:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99089:ImportFrom_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_99091
55
135
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99091:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1259, 0.037, 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_99091:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99091:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99091:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99091:Assign_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_99093
28
63
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99093:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.2619, 0.0635, 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_99093:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99093:Expr_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99093:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99093:FunctionDef_L31_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_99094
29
56
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99094:Import_L15_C0", "label": "apiclient import apiclient", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2679, 0.0179, 0, 0.66, 0.0, 629, 0, 1, 0, 0, 629, 0, 0], "semantic": {"name": "apiclient", "arg_names": [], "import_names": ["a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99094:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99094:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99094:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99094:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Cod...
__version__ = "1.0c2"
ajibawa-2023/Python-Code-Large/train/row_99095
1
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99095:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call...
[]
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_99096
154
385
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99096:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0519, 0.0182, 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_99096:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99096:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99096:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99096:FunctionDef_L53_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_99097
56
123
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99097:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1545, 0.0407, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99097:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99097:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99097:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99097:Expr_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" iri2uri Converts an IRI to a URI. """ __author__ = "Joe Gregorio (joe@bitworking.org)" __copyright__ = "Copyright 2006, Joe Gregorio" __contributors__ = [] __version__ = "1.0.0" __license__ = "MIT" __history__ = """ """ import urlparse # Convert an IRI to a URI following the rules in RFC 3987 # # The characte...
ajibawa-2023/Python-Code-Large/train/row_99098
43
110
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99098:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0318, 0.0545, 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_99098:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99098:Assign_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99098:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99098:Assign_L55_C4"}, {"f": "ajibawa-2023/Python-Co...
"""SocksiPy - Python SOCKS module. Version 1.00 Copyright 2006 Dan-Haim. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
ajibawa-2023/Python-Code-Large/train/row_99100
213
438
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99100:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 31], "level": 0, "parent": null, "vector": [8, 0, 0.0365, 0.0708, 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_99100:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99100:Expr_L97_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99100:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99100:Assign_L102_C4"}, {"f": "ajibawa-2023/Python-Cod...
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
ajibawa-2023/Python-Code-Large/train/row_99101
115
168
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99101:Import_L1_C0", "label": "Cookie import Cookie", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.006, 0.006, 0, 0.66, 0.0, 32, 0, 1, 0, 0, 32, 0, 0], "semantic": {"name": "Cookie", "arg_names": [], "import_names": ["Cookie"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99101:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99101:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99101:FunctionDef_L26_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_99101:If_L27_C4"}, {"f": "ajibawa-2023/Python-Code...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
ajibawa-2023/Python-Code-Large/train/row_99102
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_99102:Assign_L3_C0", "label": "manual_verstr =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 189, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "manual_verstr", "arg_names": [], "import_names": [],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99102:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99102:ImportFrom_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99102:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99102:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel 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 ...
ajibawa-2023/Python-Code-Large/train/row_99103
10
41
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99103:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.2927, 0.561, 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_99103:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99103:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99103:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99103:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel 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 ...
ajibawa-2023/Python-Code-Large/train/row_99104
9
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99104:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.3, 0.575, 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_99104:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99104:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99104:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99104:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
ajibawa-2023/Python-Code-Large/train/row_99106
112
147
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99106:Import_L3_C0", "label": "re import re", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0068, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99106:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99106:If_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99106:If_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_99106:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
import os print "lis.exe" for n in range(5): os.system(r'time ./lis.exe >> c_time.log') print "java LisAlgorithm" for n in range(5): os.system(r'time java LisAlgorithm >> j_time.log')
ajibawa-2023/Python-Code-Large/train/row_99107
7
13
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99107:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.2308, 0.0769, 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_99107:For_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99107:Expr_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99107:For_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99107:Expr_L11_C1"}]
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'qtBrowser.ui' # # Created: Fri Nov 19 20:47:11 2010 # by: PyQt4 UI code generator 4.8.1 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except Attri...
ajibawa-2023/Python-Code-Large/train/row_99108
28
45
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99108:ImportFrom_L10_C0", "label": "from PyQt4 import QtCore, QtGui", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.2222, 0.0222, 0, 0.66, 0.0, 154, 0, 2, 0, 0, 154, 0, 0], "semantic": {"name": "PyQt4", "arg_names": [], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99108:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99108:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99108:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99108:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
#!/usr/bin/env python # coding=utf-8 import os import logging # set log def get_file_log(logFileName): logger = logging.getLogger(os.path.abspath(logFileName)) hdlr = logging.FileHandler(logFileName) formatter = logging.Formatter('%(asctime)s %(levelname)s:: %(message)s') hdlr.setFormatter(...
ajibawa-2023/Python-Code-Large/train/row_99109
10
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_99109:Import_L4_C0", "label": "os import os", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.2667, 0.0667, 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_99109:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99109:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99109:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99109:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python import os,sys import re import glob def ProcSourceFile(filename, newfilename): fp=open(filename,'r'); lines=fp.readlines() fp.close() addInfoLino = []; for n in range(len(lines)-1): # change ID if re.match(r' \* @\(#\)\$Id:[^\n]*$\n', lines[n]):...
ajibawa-2023/Python-Code-Large/train/row_99110
72
107
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99110:Import_L3_C0", "label": "os import os, sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.028, 0.0093, 0, 0.66, 0.0, 688, 0, 2, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99110:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99110:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99110:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99110:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # coding=utf-8 import os import sys import time import anydbm import zlib def main(): if len(sys.argv) == 1: return if len(sys.argv) > 2: num = int(sys.argv[2]) delFromDb = True else: num = 50 delFromDb = False dbfn = sys.argv[1] pt = os.path.split(os.path.abspath(dbfn))[0] dbn ...
ajibawa-2023/Python-Code-Large/train/row_99111
34
47
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99111:Import_L4_C0", "label": "os import os", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0851, 0.0213, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99111:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99111:If_L12_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99111:If_L12_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_99111:Return_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
#!/usr/bin/env python # coding=utf-8 import os import sys import time import anydbm import zlib import glob def main(): if len(sys.argv) == 1: return else: dbfolder = sys.argv[1] os.chdir(dbfolder) dbns = (s[:-4] for s in glob.glob(r'*.dat')) for dbn in dbns: extract_db(dbn) def extract_db(dbn): db = a...
ajibawa-2023/Python-Code-Large/train/row_99112
23
35
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99112:Import_L4_C0", "label": "os import os", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.1143, 0.0286, 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_99112:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99112:If_L13_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99112:If_L13_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_99112:Return_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
#!/usr/bin/env python # coding=utf-8 CAPTURE_FOLDER = r'D:\captures' DB_FILENAME = 'capturedb' INTERVAL_CAPTURE = 60 import os import time import datetime import anydbm import zlib import win32gui, win32ui, win32con, win32api def window_capture(): hwnd = 0 hwndDC = win32gui.GetWindowDC(hwnd) mfcDC=win32ui.CreateD...
ajibawa-2023/Python-Code-Large/train/row_99113
50
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_99113:Assign_L4_C0", "label": "CAPTURE_FOLDER =", "type": "assigned_variable", "loc": [4, 4], "level": 0, "parent": null, "vector": [14, 0, 0.0656, 0.0164, 0, 0.66, 0.0, 262, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "CAPTURE_FOLDER", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99113:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99113:Assign_L16_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99113:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99113:Assign_L17_C1"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # coding=utf-8 import os import sys import re import codecs import pickle import cPickle from OffsetDump import KiwiDataManager from VrDicCheck import * import time KIWI_INDEX_FILE = r'\\solar\data$\10Model\JB014\090213_SP2\INDEXDAT.KWI' VR_DIC_FOLDER = r'\\solar\data$\10Model\JB01...
ajibawa-2023/Python-Code-Large/train/row_99114
43
57
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99114:Import_L4_C0", "label": "os import os", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0702, 0.0175, 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_99114:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99114:Expr_L22_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99114:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99114:Assign_L23_C1"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # coding=utf-8 import os import sys from smtplib import SMTP from email.MIMEMultipart import MIMEMultipart from email.mime.application import MIMEApplication import time GMAIL_ACCOUNT = r'user@gmail.com' GMAIL_PASSWD = r'passwd' def send_file_to_gmail(filename): """GMail file sen...
ajibawa-2023/Python-Code-Large/train/row_99115
38
66
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99115:Import_L4_C0", "label": "os import os", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0606, 0.0152, 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_99115:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99115:Expr_L15_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99115:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99115:Assign_L16_C1"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # coding=utf-8 import os import sys import codecs import string import logging import glob # set log logFileName = 'FilterRoads.log' def init_log(): logger = logging.getLogger() hdlr = logging.FileHandler(logFileName) formatter = logging.Formatter('%(asctime)s %(leveln...
ajibawa-2023/Python-Code-Large/train/row_99117
77
102
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99117:Import_L4_C0", "label": "os import os", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0392, 0.0098, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99117:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99117:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99117:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99117:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # coding=utf-8 import os import sys import codecs import string import logging import glob # set log logFileName = 'CheckEncoding.log' def init_log(): logger = logging.getLogger() hdlr = logging.FileHandler(logFileName) formatter = logging.Formatter('%(asctime)s %(leve...
ajibawa-2023/Python-Code-Large/train/row_99118
54
72
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99118:Import_L4_C0", "label": "os import os", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0556, 0.0139, 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_99118:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99118:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99118:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99118:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # coding=utf-8 """ Check A0000001.txt. """ import os import sys import re import codecs import CheckLog log = CheckLog.get_file_log(r'checkA.log') class DicItemA: def __init__(self, s): s = s.strip() self._linestr = s pat = re.match( \ r'^(\S+)\t([\w ]+)\t(0x[\dA...
ajibawa-2023/Python-Code-Large/train/row_99119
100
131
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99119:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0382, 0.0229, 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_99119:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99119:FunctionDef_L17_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99119:FunctionDef_L17_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_99119:Assign_L18_C2"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python # coding=utf-8 import glob import codecs import random # Keep KEEP_LINES_NUMBER lines in each *.txt KEEP_LINES_NUMBER = 3 def main(): # get filename list filenameList = tuple(glob.glob(r'*.txt')) dicIdList = tuple(fn[:8] for fn in filenameList) # make LoopBack.cfg file loo...
ajibawa-2023/Python-Code-Large/train/row_99120
25
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99120:Import_L4_C0", "label": "glob import glob", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.1, 0.025, 0, 0.66, 0.0, 958, 0, 1, 0, 0, 958, 0, 0], "semantic": {"name": "glob", "arg_names": [], "import_names": ["glob"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99120:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99120:Assign_L13_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99120:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99120:Assign_L14_C1"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # coding: utf-8 import os,sys import re import glob import shutil SECTIONS = { 'habitation': ( r'#street name dictionary start', r'#district name dictionary end' ), 'num1':( r'#1 digit number dictionary start', r'#1 digit number dictionary end' ), 'num3':...
ajibawa-2023/Python-Code-Large/train/row_99121
99
201
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99121:Import_L4_C0", "label": "os import os, sys", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0199, 0.005, 0, 0.66, 0.0, 688, 0, 2, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99121:FunctionDef_L66_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99121:Assign_L68_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99121:FunctionDef_L66_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99121:Assign_L71_C1"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # coding=utf-8 import os import sys import re import optparse import winsound from os.path import join as pjoin buildlog = open('build.log', 'w') class ModelSrc: """ manage the source of a model, mainly include download, update, build and delete.\n""" # all the models mode...
ajibawa-2023/Python-Code-Large/train/row_99122
34
66
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99122:Import_L4_C0", "label": "os import os", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0606, 0.0152, 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_99122:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99122:Expr_L15_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99122:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99122:Assign_L18_C1"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python # coding:utf-8 import os,sys import codecs import re from WorkPath import * import pyExcelerator as pE LOG_FILE = codecs.open('log.txt','w','utf-8') #sys.stdout def CColA2N(colName): """ Convert excel colume to number""" n = 0 for c in colName: n = n*(ord('Z')-ord('A')+1) ...
ajibawa-2023/Python-Code-Large/train/row_99123
93
119
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99123:Import_L5_C0", "label": "os import os, sys", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.042, 0.0084, 0, 0.66, 0.0, 688, 0, 2, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99123:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99123:Expr_L14_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99123:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99123:Assign_L15_C1"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python WORK_DIR = r'D:\work' DATA_DIR = WORK_DIR + r'\data' PYCODE_DIR = WORK_DIR + r'\pycode'
ajibawa-2023/Python-Code-Large/train/row_99124
3
6
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99124:Assign_L3_C0", "label": "WORK_DIR =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.5, 0.1667, 0, 0.66, 0.0, 151, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "WORK_DIR", "arg_names": [], "import_names": [], "rhs_call_na...
[]
#!/usr/bin/env python # coding=utf-8 from urlparse import urljoin from urllib import urlopen from HTMLParser import HTMLParser import os import sys import re import codecs HTML_FILEPATH = r'/home/ylb/tmp/yingchao1.htm' class ScoreHTMLParser(HTMLParser): def __init__(self): HTMLParser.__init__(s...
ajibawa-2023/Python-Code-Large/train/row_99125
56
79
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99125:ImportFrom_L4_C0", "label": "from urlparse import urljoin", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0506, 0.0127, 0, 0.66, 0.0, 857, 0, 1, 0, 0, 857, 0, 0], "semantic": {"name": "urlparse", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99125:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99125:FunctionDef_L17_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99125:FunctionDef_L17_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_99125:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # coding=utf-8 import datetime class RepeatedRecordException(Exception):pass class ScoreDB: """ Database to storage scores """ def __init__(self, filepath): """ Init class @param filepath: file which to store the database type: unicode @exception IOError if ope...
ajibawa-2023/Python-Code-Large/train/row_99126
15
82
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99126:Import_L5_C0", "label": "datetime import datetime", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.061, 0.0122, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["datetime...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99126:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99126:Expr_L10_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99126:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99126:FunctionDef_L13_C1"}, {"f": "ajibawa-2023/Python-Code-La...
#!/usr/bin/env python # coding=utf-8 from urlparse import urljoin from urllib import urlopen from HTMLParser import HTMLParser import os import sys import re import codecs import football_url ''' Created on 2009-3-19 @author: ylb ''' HTML_FILEPATH = r'D:\tmp\yingchao1.htm' OUTPUT_FILE = open(r'D:...
ajibawa-2023/Python-Code-Large/train/row_99127
56
82
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99127:ImportFrom_L4_C0", "label": "from urlparse import urljoin", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0488, 0.0122, 0, 0.66, 0.0, 857, 0, 1, 0, 0, 857, 0, 0], "semantic": {"name": "urlparse", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99127:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99127:Assign_L24_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99127:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99127:FunctionDef_L25_C1"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python # coding=utf-8 siteBaseUrl = r'http://www.spbo.com/' yingChao = r'data/live.plex?fl=yingchao&p=1' class UrlManager: """ Manage the urls of each league """ def __init__(self): self._baseUrl = siteBaseUrl self._urlsNum = {} self._urlTailPattern = r'data/live.plex?fl=%(league)s&p=%(page...
ajibawa-2023/Python-Code-Large/train/row_99128
24
71
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99128:Assign_L5_C0", "label": "siteBaseUrl =", "type": "assigned_variable", "loc": [5, 5], "level": 0, "parent": null, "vector": [14, 0, 0.0704, 0.0141, 0, 0.66, 0.0, 575, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "siteBaseUrl", "arg_names": [], "import_names": [], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99128:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99128:Expr_L10_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99128:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99128:FunctionDef_L13_C1"}, {"f": "ajibawa-2023/Python-Code-La...
#!/usr/bin/env python # coding=utf-8 import os import sys import re import codecs import pickle import cPickle from OffsetDump import KiwiDataManager # set log import CheckLog log = CheckLog.get_file_log('VrDicCheck.log') class DicItemParamError(Exception): pass class DicItem: _folder = r'' _...
ajibawa-2023/Python-Code-Large/train/row_99129
487
672
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99129:Import_L4_C0", "label": "os import os", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.006, 0.0015, 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_99129:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99129:Assign_L20_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99129:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99129:Assign_L21_C1"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python # coding=utf-8 import os import sys import re import codecs import logging import pyExcelerator as pE xlsFileName = r'D:\ylb_work\data\je609_japan.xls' headFileName = r'D:\ylb_work\data\waveID_Japan.h' logFileName = r'makeconst_Japan.log' sheets = range(1,6) startLineNo = 9 ...
ajibawa-2023/Python-Code-Large/train/row_99130
44
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_99130:Import_L4_C0", "label": "os import os", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0656, 0.0164, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99130:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99130:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99130:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99130:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python import os ###################################################################### # Question 1: See the demo*.jpg files in this directory ###################################################################### ###################################################################### # Question 2: The i...
ajibawa-2023/Python-Code-Large/train/row_99131
141
174
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99131:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0172, 0.0057, 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_99131:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99131:Return_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99131:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99131:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # coding=utf-8 import os import sys import re import time import struct def print_data_file(filename): # file struct fileStruct = {'Version': '', # Date (year, month, day, hour, minute, second, ms) 'Date': (), 'Declaration': '', 'OffsetToData': 0, 'Records': ...
ajibawa-2023/Python-Code-Large/train/row_99132
57
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_99132:Import_L5_C0", "label": "os import os", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0588, 0.0118, 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_99132:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99132:Assign_L14_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99132:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99132:Assign_L21_C1"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env jython # coding=utf-8 import os import sys import re import logging import glob import codecs # set log logFileName = 'CheckLoopbackResult.log' def init_log(): logger = logging.getLogger() hdlr = logging.FileHandler(logFileName) formatter = logging.Formatter('%(asctime)s %(le...
ajibawa-2023/Python-Code-Large/train/row_99133
104
164
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99133:Import_L4_C0", "label": "os import os", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0244, 0.0061, 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_99133:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99133:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99133:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99133:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # coding=utf-8 """ Join records of two files. For example: file1: A 1 2 B 4 3 file2: B b A a CrossJoin.py file1 file2 file3 then file3: A 1 2 | A a B 4 3 | B b """ import os import sys import codecs import string import logging # set log logFileName = 'CrossJoin...
ajibawa-2023/Python-Code-Large/train/row_99134
53
88
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99134:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 21], "level": 0, "parent": null, "vector": [8, 0, 0.142, 0.2045, 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_99134:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99134:Assign_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99134:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99134:Assign_L33_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # coding=utf-8 import pyExcelerator as pE import codecs excel_filename = r'09Light_UC_tts_PhraseList081210.xls' outfile = codecs.open('specials.log', 'w', 'utf-8') ss = u'~!@#$%^&*()_+`=[]\\;/{}|:"<>?`-=【】、;‘,。/~!@#¥%……&×()——+{}|“:?》《' ss = unicode(ss) specialSymbols = list(ss) spec...
ajibawa-2023/Python-Code-Large/train/row_99135
24
35
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99135:Import_L4_C0", "label": "pyExcelerator import pE", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.1143, 0.0286, 0, 0.66, 0.0, 173, 0, 1, 0, 0, 173, 0, 0], "semantic": {"name": "pyExcelerator", "arg_names": [], "import_names": ["pE"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99135:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99135:Assign_L16_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99135:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99135:Assign_L17_C1"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # coding=utf-8 import re import os import logging import sys import codecs def init_log(): logger = logging.getLogger() hdlr = logging.FileHandler('link_check.log') formatter = logging.Formatter('%(asctime)s %(levelname)s:: %(message)s') hdlr.setFormatter(formatter) ...
ajibawa-2023/Python-Code-Large/train/row_99136
41
55
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99136:Import_L4_C0", "label": "re import re", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0727, 0.0182, 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_99136:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99136:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99136:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99136:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # coding=utf-8 import os import codecs import re import time from glob import glob mp3FilePatterns = (u'*.mp3',) listFilename = u'mp3list.txt' def main(): mp3Filenames = [] for p in mp3FilePatterns: mp3Filenames += glob(p) mp3Renames = [] mp3Index = 1 for f in mp3File...
ajibawa-2023/Python-Code-Large/train/row_99137
28
41
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99137:Import_L4_C0", "label": "os import os", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0976, 0.0244, 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_99137:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99137:Assign_L15_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99137:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99137:For_L16_C1"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/env python # coding=utf-8 import os import sys import re import time import struct def read_from_text(filename, version): timeNow = time.localtime()[:6] + (int(time.time()%1 * 1000),) # file struct fileStruct = {'Version': version, # Date (year, month, day, hour, minute, second, ms) ...
ajibawa-2023/Python-Code-Large/train/row_99138
71
122
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99138:Import_L5_C0", "label": "os import os", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.041, 0.0082, 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_99138:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99138:Assign_L13_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99138:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99138:Assign_L15_C1"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # coding=utf-8 import os,sys import shutil projs = ('je609', 'nx005', 'nx007', 'jg500') update_cmd = r'batch\DEV_AutoUpdate.bat' getsln = lambda s:s+'.sln' getfolder = lambda s:s getbat = lambda s:s+'.bat' targets = ('Rebuild', 'Build') cfgs = ('Debug', 'Release') platforms = ...
ajibawa-2023/Python-Code-Large/train/row_99139
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_99139:Import_L4_C0", "label": "os import os, sys", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0357, 0, 0.66, 0.0, 688, 0, 2, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99139:For_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99139:Expr_L22_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99139:For_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99139:Expr_L23_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_9...
#!/usr/bin/env python # coding=utf-8 import os import sys import re import codecs import pickle # set log import CheckLog log = CheckLog.get_file_log('OffsetDump.log') # the offset dump program VR_DIC_OFFSET_DUMP_TOOL = r'VrDicOffsetDump.exe' class FetchPlaceError(Exception):pass class KiwiPl...
ajibawa-2023/Python-Code-Large/train/row_99140
171
232
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99140:Import_L4_C0", "label": "os import os", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0172, 0.0043, 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_99140:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99140:FunctionDef_L22_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99140:FunctionDef_L22_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_99140:Assign_L23_C2"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python # coding: utf-8 """ make 09light beep file from .wav files native endian edit the following config variable: BEEP_FILE_CONTENT WAVE_DATA_PATH OUTPUT_FILE_NAME """ ################################################# # edit the config variable BEEP_FILE_CONTENT BEEP_FILE_CONTENT = {...
ajibawa-2023/Python-Code-Large/train/row_99141
50
104
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99141:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 11], "level": 0, "parent": null, "vector": [8, 0, 0.0721, 0.0769, 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_99141:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99141:Assign_L35_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99141:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99141:If_L36_C1"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # coding=utf-8 import os import sys import re import codecs import logging import pyExcelerator as pE xlsFileName = r'D:\ylb_work\data\Voice_ID_list_V15.xls' headerFileName = r'D:\ylb_work\data\waveID_Oversea.h' logFileName = r'makeconst_Oversea.log' def init_log(): log...
ajibawa-2023/Python-Code-Large/train/row_99142
88
125
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99142:Import_L5_C0", "label": "os import os", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.04, 0.008, 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_99142:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99142:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99142:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99142:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # coding=utf-8 import os,sys import re import codecs import glob import shutil import pyExcelerator as pE SECTIONS = { 'habitation': ( r'#street name dictionary start', r'#district name dictionary end' ), 'num1':( r'#1 digit number dictionary start', r'#1 di...
ajibawa-2023/Python-Code-Large/train/row_99143
53
126
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99143:Import_L5_C0", "label": "os import os, sys", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0397, 0.0079, 0, 0.66, 0.0, 688, 0, 2, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99143:FunctionDef_L66_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99143:Expr_L67_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99143:FunctionDef_L71_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99143:For_L72_C1"}, {"f": "ajibawa-2023/Python-Code-La...
#! /usr/bin/env python # coding=utf-8 ############################################################################# # # # File: common.py # # ...
ajibawa-2023/Python-Code-Large/train/row_99145
19
51
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99145:Import_L28_C0", "label": "os import os, sys", "type": "import", "loc": [28, 28], "level": 0, "parent": null, "vector": [1, 0, 0.549, 0.0196, 0, 0.66, 0.0, 688, 0, 2, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99145:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99145:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99145:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99145:Return_L32_C4"}, {"f": "ajibawa-2023/Python-Code...
#! /usr/bin/env python # coding=utf-8 GAE_PROXY_APPLICATION = r'ylbproxy' DEF_FETCH_SERVER = ''
ajibawa-2023/Python-Code-Large/train/row_99146
2
5
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99146:Assign_L4_C0", "label": "GAE_PROXY_APPLICATION =", "type": "assigned_variable", "loc": [4, 4], "level": 0, "parent": null, "vector": [14, 0, 0.8, 0.2, 0, 0.66, 0.0, 415, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "GAE_PROXY_APPLICATION", "arg_names": [], "import_n...
[]
#!/usr/bin/env python # coding=utf-8 import os import logging # set log def get_file_log(logFileName): logger = logging.getLogger(os.path.abspath(logFileName)) hdlr = logging.FileHandler(logFileName) formatter = logging.Formatter('%(asctime)s %(levelname)s:: %(message)s') hdlr.setFormatter(formatter) ...
ajibawa-2023/Python-Code-Large/train/row_99148
15
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_99148:Import_L4_C0", "label": "os import os", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.1739, 0.0435, 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_99148:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99148:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99148:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99148:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-...
#! /usr/bin/env python # coding=utf-8 import wsgiref.handlers from google.appengine.ext import webapp from google.appengine.api import users import accesslog class MainHandler(webapp.RequestHandler): def listPopDesti(self, count): # format self.response.headers['Content-Type'] = 'text/html' ...
ajibawa-2023/Python-Code-Large/train/row_99151
54
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99151:Import_L5_C0", "label": "wsgiref.handlers import wsgiref.handlers", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0439, 0.0088, 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_99151:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99151:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99151:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99151:Assign_L13_C8"}, {"f": "ajibawa-2023/Python-...
#! /usr/bin/env python # coding=utf-8 import os, sys _this_file_dir = os.path.dirname(__file__) VERSION = "1.2.0" LOAD_BALANCE = 'http://gappproxy-center.appspot.com/available_fetchserver.py' GOOGLE_PROXY = 'www.google.cn:80' DEF_LISTEN_PORT = 8000 DEF_LOCAL_PROXY = '' DEF_FETCH_SERVER = 'http://nettransit4ylb.ap...
ajibawa-2023/Python-Code-Large/train/row_99152
15
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99152:Import_L5_C0", "label": "os import os, sys", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.125, 0.025, 0, 0.66, 0.0, 688, 0, 2, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys"], "rhs_call...
[]
#! /usr/bin/env python # coding=utf-8 from google.appengine.ext import db class AccessDestination(db.Model): desti = db.StringProperty(required=True) counter = db.IntegerProperty(required=True) class AccessFrom(db.Model): fro = db.StringProperty(required=True) counter = db.IntegerProperty(required=T...
ajibawa-2023/Python-Code-Large/train/row_99153
48
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_99153:ImportFrom_L5_C0", "label": "from google.appengine.ext import db", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0746, 0.0149, 0, 0.66, 0.0, 167, 0, 1, 0, 0, 167, 0, 0], "semantic": {"name": "google.appengine.ext", "arg_names": []...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99153:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99153:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99153:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99153:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/env python # -*- coding: utf-8 -*- class Mp3Tag: ## Read and write mp3 tag def __init__(self, mp3filepath): self.__fp = mp3filepath def read_title(self): ## Read mp3 title from file directly # @return a str object, which keeps the original binary data pass def read_artist(sel...
ajibawa-2023/Python-Code-Large/train/row_99155
7
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_99155:ClassDef_L5_C0", "label": "Mp3Tag", "type": "class", "loc": [5, 33], "level": 0, "parent": null, "vector": [3, 0, 0.5135, 0.7838, 0, 0.66, 0.0, 362, 0, 5, 0, 0, 0, 0, 2], "semantic": {"name": "Mp3Tag", "arg_names": [], "import_names": [], "rhs_call_name": "", "ann...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99155:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99155:FunctionDef_L8_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99155:FunctionDef_L8_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_99155:Assign_L9_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # coding=utf-8 import os import ID3 from optparse import OptionParser from glob import glob from PinyinConverter import PinyinConverter fencs = ('utf-8', 'cp936', 'cp932', 'utf-16le', 'utf-16be') # Oh! OO class Mp3Info: pinyinConverter = PinyinConverter() def __init__(self, filepath): if no...
ajibawa-2023/Python-Code-Large/train/row_99156
50
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_99156:Import_L4_C0", "label": "os import os", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0435, 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_99156:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99156:Assign_L14_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99156:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99156:FunctionDef_L15_C1"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python # coding=utf-8 import codecs class PinyinConverter: def __init__(self): self._pinyinTable = PINYIN_TABLE def char2pinyin(self, c): ## convert Chinese character to pinyin ## @exception: AssertionError, KeyError assert isinstance(c, unicode) assert len(c) == 1 return s...
ajibawa-2023/Python-Code-Large/train/row_99157
12
20,935
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99157:Import_L4_C0", "label": "codecs import codecs", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0002, 0.0, 0, 0.66, 0.0, 220, 0, 1, 0, 0, 220, 0, 0], "semantic": {"name": "codecs", "arg_names": [], "import_names": ["codecs"], "rhs_c...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99157:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99157:FunctionDef_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99157:FunctionDef_L7_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_99157:Assign_L8_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_99158
218
605
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99158:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0281, 0.0017, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99158:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99158:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99158:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99158:Return_L54_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_99159
133
305
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99159:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0557, 0.0033, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99159:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99159:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99159:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99159:Assign_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
ajibawa-2023/Python-Code-Large/train/row_99161
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_99161:Assign_L3_C0", "label": "manual_verstr =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 189, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "manual_verstr", "arg_names": [], "import_names": [],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99161:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99161:ImportFrom_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99161:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99161:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel 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 ...
ajibawa-2023/Python-Code-Large/train/row_99162
9
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99162:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.3, 0.575, 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_99162:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99162:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99162:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99162:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-...