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 distutils.core import setup, Extension cbson = Extension('cbson', sources = ['cbson.c']) setup(name = 'cbson', version = '0.1', description = 'Fast BSON decoding via C', ext_modules = [cbson])
ajibawa-2023/Python-Code-Large/train/row_83698
3
9
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83698:ImportFrom_L1_C0", "label": "from distutils.core import setup, Extension", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.1111, 0, 0.66, 0.0, 152, 0, 2, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": ...
[]
#! /usr/bin/python from itertools import izip import logging from net import gorpc from net import bsonrpc from vtdb import dbexceptions class ReplPosition(object): MasterFilename = None MasterPosition = None RelayFilename = None RelayPosition = None def __init__(self, master_filename, master_position): ...
ajibawa-2023/Python-Code-Large/train/row_83699
72
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_83699:ImportFrom_L3_C0", "label": "from itertools import izip", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0283, 0.0094, 0, 0.66, 0.0, 808, 0, 1, 0, 0, 808, 0, 0], "semantic": {"name": "itertools", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83699:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83699:Assign_L11_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83699:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83699:Assign_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
import errno import logging import re import time import socket from vtdb import tablet3 as tablet2 from vtdb import dbapi from vtdb import dbexceptions RECONNECT_DELAY = 0.002 def reconnect(method): def _run_with_reconnect(self, *args, **kargs): attempt = 0 while True: try: return method(se...
ajibawa-2023/Python-Code-Large/train/row_83700
60
93
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83700:Import_L1_C0", "label": "errno import errno", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0108, 0.0108, 0, 0.66, 0.0, 546, 0, 1, 0, 0, 546, 0, 0], "semantic": {"name": "errno", "arg_names": [], "import_names": ["errno"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83700:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83700:FunctionDef_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83700:FunctionDef_L15_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_83700:Assign_L16_C4"}, {"f": "ajibawa-2023/Pyth...
import exceptions class Error(exceptions.StandardError): pass class DatabaseError(exceptions.StandardError): pass class Warning(exceptions.StandardError): pass class InterfaceError(Error): pass class InternalError(DatabaseError): pass class OperationalError(DatabaseError): pass class ProgrammingError...
ajibawa-2023/Python-Code-Large/train/row_83701
11
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_83701:Import_L1_C0", "label": "exceptions import exceptions", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0323, 0.0323, 0, 0.66, 0.0, 63, 0, 1, 0, 0, 63, 0, 0], "semantic": {"name": "exceptions", "arg_names": [], "import_names": ["exc...
[]
# Copyright 2013, Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can # be found in the LICENSE file. # Give a somewhat sane API to the topology, using zkocc as the backend. # # There are two main use cases for the topology: # 1. resolve a "db key" into a set of par...
ajibawa-2023/Python-Code-Large/train/row_83702
61
100
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83702:Import_L12_C0", "label": "json import json", "type": "import", "loc": [12, 12], "level": 0, "parent": null, "vector": [1, 0, 0.12, 0.01, 0, 0.66, 0.0, 463, 0, 1, 0, 0, 463, 0, 0], "semantic": {"name": "json", "arg_names": [], "import_names": ["json"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83702:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83702:Return_L22_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83702:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83702:Assign_L25_C2"}, {"f": "ajibawa-2023/Python-Co...
# Implements a query thread pool, responsible for executing # queries/fetches across multiple database cursors in parallel and returning the # results. It implements one query per cursor, one query for all cursors, as well as # fetchmany and fetchall equivalents. from Queue import Queue from threading import Thread im...
ajibawa-2023/Python-Code-Large/train/row_83703
124
165
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83703:ImportFrom_L6_C0", "label": "from Queue import Queue", "type": "import", "loc": [6, 6], "level": 0, "parent": null, "vector": [1, 0, 0.0364, 0.0061, 0, 0.66, 0.0, 952, 0, 1, 0, 0, 952, 0, 0], "semantic": {"name": "Queue", "arg_names": [], "import_names": ["Queue"]...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83703:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83703:FunctionDef_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83703:FunctionDef_L12_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_83703:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-...
from vtdb import cursor # Standard cursor when connecting to a sharded backend. class ShardedCursor(object): arraysize = 1 lastrowid = None rowcount = 0 results = None sconn = None description = None index = None def __init__(self, sconn): self.sconn = sconn def close(self): self.sconn = N...
ajibawa-2023/Python-Code-Large/train/row_83704
74
118
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83704:ImportFrom_L2_C0", "label": "from vtdb import cursor", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0169, 0.0085, 0, 0.66, 0.0, 607, 0, 1, 0, 0, 607, 0, 0], "semantic": {"name": "vtdb", "arg_names": [], "import_names": ["cursor"]...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83704:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83704:Assign_L6_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83704:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83704:Assign_L7_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# times module # # This module provides some Date and Time interface for vtdb # # Use Python datetime module to handle date and time columns. from datetime import date, datetime, time, timedelta from math import modf from time import localtime # FIXME(msolomon) what are these aliasesf for? Date = date Time = time Tim...
ajibawa-2023/Python-Code-Large/train/row_83705
46
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_83705:ImportFrom_L7_C0", "label": "from datetime import date, datetime, time\u2026", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.0972, 0.0139, 0, 0.66, 0.0, 426, 0, 4, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": []...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83705:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83705:Return_L22_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83705:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83705:Return_L26_C2"}, {"f": "ajibawa-2023/Python-Co...
# Copyright 2012, Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can # be found in the LICENSE file. from itertools import izip import logging from net import bsonrpc from net import gorpc from vtdb import cursor from vtdb import dbexceptions from vtdb import field_...
ajibawa-2023/Python-Code-Large/train/row_83706
145
247
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83706:ImportFrom_L5_C0", "label": "from itertools import izip", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0202, 0.004, 0, 0.66, 0.0, 808, 0, 1, 0, 0, 808, 0, 0], "semantic": {"name": "itertools", "arg_names": [], "import_names": ["i...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83706:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83706:Assign_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83706:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83706:Assign_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright 2012, Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can # be found in the LICENSE file. from itertools import izip import logging import re from net import bsonrpc from net import gorpc from vtdb import cursor from vtdb import dbexceptions from vtdb imp...
ajibawa-2023/Python-Code-Large/train/row_83707
179
293
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83707:ImportFrom_L5_C0", "label": "from itertools import izip", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0171, 0.0034, 0, 0.66, 0.0, 808, 0, 1, 0, 0, 808, 0, 0], "semantic": {"name": "itertools", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83707:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83707:Assign_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83707:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83707:If_L43_C2"}, {"f": "ajibawa-2023/Python-Code-L...
# A client that abstracts shard placement. import os import time from net import gorpc from vtdb import cursor from vtdb import dbapi from vtdb import dbexceptions from vtdb import keyspace from vtdb import tablet3 from zk import zkns_query from zk import zkocc # zkocc_addrs - bootstrap addresses for resolving other...
ajibawa-2023/Python-Code-Large/train/row_83708
175
287
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83708:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0105, 0.0035, 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_83708:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83708:Assign_L20_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83708:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83708:Return_L21_C2"}, {"f": "ajibawa-2023/Python-Co...
# Copyright 2013, Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can # be found in the LICENSE file. import json import struct from vtdb import dbexceptions ZK_KEYSPACE_PATH = '/zk/local/vt/ns' pack_keyspace_id = struct.Struct('!Q').pack # Encapsulate a few key ...
ajibawa-2023/Python-Code-Large/train/row_83709
41
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83709:Import_L5_C0", "label": "json import json", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0667, 0.0133, 0, 0.66, 0.0, 463, 0, 1, 0, 0, 463, 0, 0], "semantic": {"name": "json", "arg_names": [], "import_names": ["json"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83709:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83709:Assign_L17_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83709:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83709:Assign_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright 2012, Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can # be found in the LICENSE file.
ajibawa-2023/Python-Code-Large/train/row_83710
0
4
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
from vtdb import dbexceptions # A simple class to trap and re-export only variables referenced from # the sql statement since bind dictionaries can be *very* noisy. This # is a by-product of converting the DB-API %(name)s syntax to our # :name syntax. class BindVarsProxy(object): def __init__(self, bind_vars): ...
ajibawa-2023/Python-Code-Large/train/row_83711
16
29
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83711:ImportFrom_L1_C0", "label": "from vtdb import dbexceptions", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0345, 0.0345, 0, 0.66, 0.0, 607, 0, 1, 0, 0, 607, 0, 0], "semantic": {"name": "vtdb", "arg_names": [], "import_names": ["db...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83711:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83711:FunctionDef_L8_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83711:FunctionDef_L8_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_83711:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright 2012, Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can # be found in the LICENSE file. from vtdb import dbexceptions class BaseCursor(object): arraysize = 1 lastrowid = None rowcount = 0 results = None connection = None description = None ...
ajibawa-2023/Python-Code-Large/train/row_83712
116
193
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83712:ImportFrom_L5_C0", "label": "from vtdb import dbexceptions", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0259, 0.0052, 0, 0.66, 0.0, 607, 0, 1, 0, 0, 607, 0, 0], "semantic": {"name": "vtdb", "arg_names": [], "import_names": ["db...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83712:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83712:Assign_L8_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83712:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83712:Assign_L9_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
from array import array import datetime from decimal import Decimal from vtdb import times # These numbers should exactly match values defined in dist/mysql-5.1.52/include/mysql/mysql_com.h VT_DECIMAL = 0 VT_TINY = 1 VT_SHORT = 2 VT_LONG = 3 VT_FLOAT = 4 VT_DOUBLE = 5 VT_NULL = 6 VT_TIMESTAMP = 7 VT_LONGLONG = 8 VT_IN...
ajibawa-2023/Python-Code-Large/train/row_83713
60
96
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83713:ImportFrom_L1_C0", "label": "from array import array", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0104, 0.0104, 0, 0.66, 0.0, 80, 0, 1, 0, 0, 80, 0, 0], "semantic": {"name": "array", "arg_names": [], "import_names": ["array"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83713:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83713:Return_L38_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83713:ClassDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83713:FunctionDef_L41_C2"}, {"f": "ajibawa-2023/Python-...
# Quick exclusive lock for ensuring two processes don't stomp each other. # # The only drawback here is that this leaves a lock turdfile that doesn't # get cleaned up. Practically speaking this shouldn't be a problem, but it # doesn't feel entirely satisfying. # # This lock has the handy property that if the process di...
ajibawa-2023/Python-Code-Large/train/row_83714
30
58
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83714:Import_L10_C0", "label": "errno import errno", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.1724, 0.0172, 0, 0.66, 0.0, 546, 0, 1, 0, 0, 546, 0, 0], "semantic": {"name": "errno", "arg_names": [], "import_names": ["errno"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83714:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83714:FunctionDef_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83714:FunctionDef_L16_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_83714:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python import sys def main(args): print 'HELO\t2' if args: for arg in args: print "Q\t%s\tIN\tANY\t-1\t1.1.1.1\t1.1.1.2" % arg else: print "Q\ttest.zkns.zk\tIN\tANY\t-1\t1.1.1.1\t1.1.1.2" if __name__ == '__main__': main(sys.argv[1:])
ajibawa-2023/Python-Code-Large/train/row_83715
9
14
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83715:Import_L3_C0", "label": "sys import sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.2143, 0.0714, 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_83715:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83715:Expr_L6_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83715:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83715:If_L7_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python # # Copyright 2013, Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can # be found in the LICENSE file. # FIXME(alainjobart) This test does not pass. It is a work in progress # for resharding. import utils import tablet # initial shards # range "" ...
ajibawa-2023/Python-Code-Large/train/row_83717
75
145
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83717:Import_L10_C0", "label": "utils import utils", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.069, 0.0069, 0, 0.66, 0.0, 970, 0, 1, 0, 0, 970, 0, 0], "semantic": {"name": "utils", "arg_names": [], "import_names": ["utils"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83717:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83717:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83717:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83717:Assign_L33_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python import json import optparse import os import pprint import socket import sys import unittest import urllib2 import tablet import utils # range "" - 80 shard_0_master = tablet.Tablet() shard_0_replica = tablet.Tablet() shard_0_spare = tablet.Tablet() # range 80 - "" shard_1_master = tablet.Table...
ajibawa-2023/Python-Code-Large/train/row_83719
96
142
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83719:Import_L2_C0", "label": "json import json", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0141, 0.007, 0, 0.66, 0.0, 463, 0, 1, 0, 0, 463, 0, 0], "semantic": {"name": "json", "arg_names": [], "import_names": ["json"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83719:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83719:FunctionDef_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83719:FunctionDef_L34_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_83719:Assign_L35_C4"}, {"f": "ajibawa-2023/Python-...
from cases_framework import Case, MultiCase cases = [ "alter table vtocc_cached comment 'new'", Case(doc="SELECT_PK (null key)", query_plan="SELECT_PK", sql="select * from vtocc_cached where eid = 2 and bid = %(bid)s", bindings={"bid": None}, result=[], rewritten=[ "sele...
ajibawa-2023/Python-Code-Large/train/row_83720
1
2
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83720:ImportFrom_L1_C0", "label": "from cases_framework import Case, MultiCase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.5, 0, 0.66, 0.0, 991, 0, 2, 0, 0, 991, 0, 0], "semantic": {"name": "cases_framework", "arg_names": [], "...
[]
import time from vtdb import dbexceptions from vtdb import vt_occ2 import framework import nocache_cases class TestNocache(framework.TestCase): def test_data(self): cu = self.env.execute("select * from vtocc_test where intval=1") self.assertEqual(cu.description, [('intval', 3), ('floatval', 4), ('charval',...
ajibawa-2023/Python-Code-Large/train/row_83721
330
407
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83721:Import_L1_C0", "label": "time import time", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0025, 0.0025, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83721:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83721:FunctionDef_L10_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83721:FunctionDef_L10_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_83721:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-C...
import datetime from decimal import Decimal from cases_framework import Case, MultiCase cases = [ Case(doc='union', sql='select /* union */ eid, id from vtocc_a union select eid, id from vtocc_b', result=[(1L, 1L), (1L, 2L)], rewritten=[ 'select eid, id from vtocc_a where 1 !...
ajibawa-2023/Python-Code-Large/train/row_83723
3
5
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83723:Import_L1_C0", "label": "datetime import datetime", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["datetime"], "...
[]
import json import re import urllib2 def cases_iterator(cases): for case in cases: if isinstance(case, MultiCase): for c in case: yield c else: yield case class Log(object): def __init__(self, line): self.line = line try: (self.method, self.remote_address, s...
ajibawa-2023/Python-Code-Large/train/row_83724
135
225
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83724:Import_L1_C0", "label": "json import json", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0044, 0.0044, 0, 0.66, 0.0, 463, 0, 1, 0, 0, 463, 0, 0], "semantic": {"name": "json", "arg_names": [], "import_names": ["json"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83724:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83724:For_L6_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83724:For_L6_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_83724:If_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Copyright 2012, Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can # be found in the LICENSE file.
ajibawa-2023/Python-Code-Large/train/row_83725
0
4
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
from vtdb import cursor import framework class TestStream(framework.TestCase): # UNION queries like this used to crash vtocc, only straight SELECT # would go through. This is a unit test to show it is fixed. # The fix went in revision bad7511746ca. def test_union(self): cu = self.env.execute("select 1 fro...
ajibawa-2023/Python-Code-Large/train/row_83726
38
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83726:ImportFrom_L1_C0", "label": "from vtdb import cursor", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0133, 0.0133, 0, 0.66, 0.0, 607, 0, 1, 0, 0, 607, 0, 0], "semantic": {"name": "vtdb", "arg_names": [], "import_names": ["cursor"]...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83726:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83726:FunctionDef_L9_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83726:FunctionDef_L9_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_83726:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python import json import logging import optparse import os import subprocess import sys import utils from queryservice_tests import test_env create_table = """ create table vt_load( id bigint(20), num1 int(10) unsigned, char1 varchar(20), char2 varchar(20), num2 int(10) unsigned, char3 v...
ajibawa-2023/Python-Code-Large/train/row_83727
15
19
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83727:Import_L1_C0", "label": "json import json", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0526, 0, 0.66, 0.0, 463, 0, 1, 0, 0, 463, 0, 0], "semantic": {"name": "json", "arg_names": [], "import_names": ["json"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83727:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83727:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83727:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83727:Expr_L14_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python import logging import optparse import unittest import sys import utils import framework from queryservice_tests import cache_tests from queryservice_tests import nocache_tests from queryservice_tests import stream_tests from queryservice_tests import test_env if __name__ == "__main__": pars...
ajibawa-2023/Python-Code-Large/train/row_83728
45
62
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83728:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0484, 0.0161, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83728:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83728:Assign_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83728:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83728:Expr_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_8...
#!/usr/bin/python import utils import tablet from vtdb import tablet3 as tablet2 from vtdb import topology from zk import zkocc # range "" - 80 shard_0_master = tablet.Tablet() shard_0_replica = tablet.Tablet() # range 80 - "" shard_1_master = tablet.Tablet() shard_1_replica = tablet.Tablet() def setup(): utils.z...
ajibawa-2023/Python-Code-Large/train/row_83729
142
299
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83729:Import_L3_C0", "label": "utils import utils", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.01, 0.0033, 0, 0.66, 0.0, 970, 0, 1, 0, 0, 970, 0, 0], "semantic": {"name": "utils", "arg_names": [], "import_names": ["utils"], "rhs_call...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83729:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83729:Expr_L18_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83729:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83729:Assign_L20_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python import logging import os import socket import tempfile import time import datetime from zk import zkocc import utils def setup(): utils.prog_compile(['zkclient2', ]) utils.zk_setup() def teardown(): if utils.options.skip_teardown: return utils.zk_teardown() uti...
ajibawa-2023/Python-Code-Large/train/row_83730
142
270
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83730:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0111, 0.0037, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83730:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83730:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83730:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83730:Expr_L17_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # coding: utf-8 import hmac import json import logging import os import subprocess import shutil import sys import time import unittest from net import gorpc from net import bsonrpc from vtdb import vt_occ2 from vtdb import dbexceptions LOGFILE = "/tmp/vtocc.log" QUERYLOGFILE = "/tmp/vtocc_quer...
ajibawa-2023/Python-Code-Large/train/row_83732
137
237
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83732:Import_L4_C0", "label": "hmac import hmac", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0169, 0.0042, 0, 0.66, 0.0, 993, 0, 1, 0, 0, 993, 0, 0], "semantic": {"name": "hmac", "arg_names": [], "import_names": ["hmac"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83732:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83732:FunctionDef_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83732:FunctionDef_L24_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_83732:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python # # Copyright 2013, Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can # be found in the LICENSE file. import subprocess from vtdb import tablet3 from vtdb import topology from zk import zkocc import os import utils import tablet # single shard /...
ajibawa-2023/Python-Code-Large/train/row_83733
113
289
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83733:Import_L7_C0", "label": "subprocess import subprocess", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.0242, 0.0035, 0, 0.66, 0.0, 394, 0, 1, 0, 0, 394, 0, 0], "semantic": {"name": "subprocess", "arg_names": [], "import_names": ["s...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83733:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83733:Assign_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83733:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83733:If_L29_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging import optparse import os import sys import tempfile import unittest import warnings import tablet import utils from checkers import checker # Dropping a table inexplicably produces a warning despite # the "IF EXISTS" clause. Squelch these warnings. warn...
ajibawa-2023/Python-Code-Large/train/row_83734
178
251
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83734:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.012, 0.004, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83734:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83734:Expr_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83734:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83734:If_L41_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python import os import socket import utils import tablet shard_0_master = tablet.Tablet() shard_0_replica1 = tablet.Tablet() shard_0_replica2 = tablet.Tablet() shard_0_rdonly = tablet.Tablet() shard_0_backup = tablet.Tablet() shard_1_master = tablet.Tablet() shard_1_replica1 = tablet.Tablet() def setup...
ajibawa-2023/Python-Code-Large/train/row_83736
140
276
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83736:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0109, 0.0036, 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_83736:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83736:Expr_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83736:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83736:Assign_L21_C2"}, {"f": "ajibawa-2023/Python-Code...
# Copyright 2012, Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can # be found in the LICENSE file. import os import shlex from subprocess import Popen, PIPE import unittest class TestCase(unittest.TestCase): @classmethod def setenv(cls, env): cls.env = env...
ajibawa-2023/Python-Code-Large/train/row_83737
54
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_83737:Import_L5_C0", "label": "os import os", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0704, 0.0141, 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_83737:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83737:FunctionDef_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83737:FunctionDef_L12_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_83737:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python -B # # termineter.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 o...
ajibawa-2023/Python-Code-Large/train/row_83739
21
48
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83739:Import_L22_C0", "label": "logging import logging", "type": "import", "loc": [22, 22], "level": 0, "parent": null, "vector": [1, 0, 0.4583, 0.0208, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83739:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83739:Assign_L29_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83739:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83739:Expr_L30_C1"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # -*- Mode: Python; py-indent-offset: 4 -*- # # Copyright (C) 2005,2007 Ray Burr # # 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 l...
ajibawa-2023/Python-Code-Large/train/row_83740
154
667
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83740:Expr_L33_C0", "label": "expression", "type": "expression", "loc": [33, 119], "level": 0, "parent": null, "vector": [8, 0, 0.1139, 0.1304, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "ann...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83740:ClassDef_L126_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83740:Expr_L127_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83740:ClassDef_L126_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83740:FunctionDef_L134_C4"}, {"f": "ajibawa-2023/Python-C...
# c1218/data.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (a...
ajibawa-2023/Python-Code-Large/train/row_83741
284
482
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83741:ImportFrom_L20_C0", "label": "from struct import pack, unpack", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.0415, 0.0021, 0, 0.66, 0.0, 399, 0, 2, 0, 0, 399, 0, 0], "semantic": {"name": "struct", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83741:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83741:FunctionDef_L53_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83741:FunctionDef_L53_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_83741:Return_L54_C2"}, {"f": "ajibawa-2023/Python-...
# c1218/connection.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or...
ajibawa-2023/Python-Code-Large/train/row_83742
242
449
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83742:ImportFrom_L20_C0", "label": "from binascii import hexlify, unhexlify", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.0445, 0.0022, 0, 0.66, 0.0, 984, 0, 2, 0, 0, 984, 0, 0], "semantic": {"name": "binascii", "arg_names": [], "im...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83742:If_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83742:Expr_L33_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83742:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83742:FunctionDef_L36_C1"}, {"f": "ajibawa-2023/Python-Code-Large/...
# c1218/utils.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (...
ajibawa-2023/Python-Code-Large/train/row_83743
26
50
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83743:ImportFrom_L20_C0", "label": "from struct import pack, unpack", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.4, 0.02, 0, 0.66, 0.0, 399, 0, 2, 0, 0, 399, 0, 0], "semantic": {"name": "struct", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83743:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83743:Assign_L29_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83743:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83743:For_L30_C1"}, {"f": "ajibawa-2023/Python-Code-...
# c1218/errors.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # ...
ajibawa-2023/Python-Code-Large/train/row_83744
17
60
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83744:ClassDef_L20_C0", "label": "C1218Error", "type": "class", "loc": [20, 29], "level": 0, "parent": null, "vector": [3, 0, 0.4083, 0.1667, 0, 0.66, 0.0, 255, 0, 2, 0, 0, 645, 0, 1], "semantic": {"name": "C1218Error", "arg_names": [], "import_names": [], "rhs_call_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83744:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83744:Expr_L21_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83744:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83744:FunctionDef_L24_C1"}, {"f": "ajibawa-2023/Python-Code-...
# c1219/data.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (a...
ajibawa-2023/Python-Code-Large/train/row_83745
96
217
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83745:Import_L20_C0", "label": "time import time", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.0922, 0.0046, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83745:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83745:Expr_L25_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83745:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83745:If_L40_C1"}, {"f": "ajibawa-2023/Python-Code-Lar...
# c1219/constants.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or ...
ajibawa-2023/Python-Code-Large/train/row_83746
40
324
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83746:Assign_L20_C0", "label": "GEN_CONFIG_TBL =", "type": "assigned_variable", "loc": [20, 20], "level": 0, "parent": null, "vector": [14, 0, 0.0617, 0.0031, 0, 0.66, 0.0, 398, 1, 0, 0, 0, 0, 1, 0], "semantic": {"name": "GEN_CONFIG_TBL", "arg_names": [], "import_names"...
[]
# c1219/access/log.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or...
ajibawa-2023/Python-Code-Large/train/row_83747
56
116
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83747:ImportFrom_L26_C0", "label": "from struct import pack, unpack", "type": "import", "loc": [26, 26], "level": 0, "parent": null, "vector": [1, 0, 0.2241, 0.0086, 0, 0.66, 0.0, 399, 0, 2, 0, 0, 399, 0, 0], "semantic": {"name": "struct", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83747:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83747:Expr_L32_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83747:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83747:FunctionDef_L36_C1"}, {"f": "ajibawa-2023/Python-Code-...
# c1219/access/telephone.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the Licen...
ajibawa-2023/Python-Code-Large/train/row_83748
98
183
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83748:ImportFrom_L26_C0", "label": "from struct import pack, unpack", "type": "import", "loc": [26, 26], "level": 0, "parent": null, "vector": [1, 0, 0.1421, 0.0055, 0, 0.66, 0.0, 399, 0, 2, 0, 0, 399, 0, 0], "semantic": {"name": "struct", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83748:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83748:Expr_L31_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83748:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83748:Assign_L35_C1"}, {"f": "ajibawa-2023/Python-Code-Large...
# c1219/access/security.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the Licens...
ajibawa-2023/Python-Code-Large/train/row_83749
63
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_83749:ImportFrom_L26_C0", "label": "from struct import pack, unpack", "type": "import", "loc": [26, 26], "level": 0, "parent": null, "vector": [1, 0, 0.1926, 0.0074, 0, 0.66, 0.0, 399, 0, 2, 0, 0, 399, 0, 0], "semantic": {"name": "struct", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83749:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83749:Expr_L33_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83749:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83749:FunctionDef_L37_C1"}, {"f": "ajibawa-2023/Python-Code-...
# c1219/access/general.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License...
ajibawa-2023/Python-Code-Large/train/row_83750
128
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_83750:ImportFrom_L26_C0", "label": "from struct import pack, unpack", "type": "import", "loc": [26, 26], "level": 0, "parent": null, "vector": [1, 0, 0.1121, 0.0043, 0, 0.66, 0.0, 399, 0, 2, 0, 0, 399, 0, 0], "semantic": {"name": "struct", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83750:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83750:Expr_L34_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83750:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83750:Assign_L38_C1"}, {"f": "ajibawa-2023/Python-Code-Large...
# c1219/errors.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # ...
ajibawa-2023/Python-Code-Large/train/row_83751
13
43
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83751:ClassDef_L20_C0", "label": "C1219ProcedureError", "type": "class", "loc": [20, 28], "level": 0, "parent": null, "vector": [3, 0, 0.5581, 0.2093, 0, 0.66, 0.0, 975, 0, 2, 0, 0, 645, 0, 1], "semantic": {"name": "C1219ProcedureError", "arg_names": [], "import_names":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83751:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83751:Expr_L21_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83751:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83751:FunctionDef_L24_C1"}, {"f": "ajibawa-2023/Python-Code-...
# framework/modules/diff_tables.py # # Copyright 2013 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of th...
ajibawa-2023/Python-Code-Large/train/row_83752
87
161
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83752:Import_L20_C0", "label": "difflib import difflib", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.1242, 0.0062, 0, 0.66, 0.0, 866, 0, 1, 0, 0, 866, 0, 0], "semantic": {"name": "difflib", "arg_names": [], "import_names": ["difflib...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83752:ClassDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83752:FunctionDef_L63_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83752:FunctionDef_L63_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_83752:Expr_L64_C2"}, {"f": "ajibawa-2023/Python-Co...
# framework/modules/remote_reset.py # # Copyright 2012 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of t...
ajibawa-2023/Python-Code-Large/train/row_83753
33
58
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83753:ImportFrom_L20_C0", "label": "from framework.templates import optical_module_template", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.3448, 0.0172, 0, 0.66, 0.0, 518, 0, 1, 0, 0, 518, 0, 0], "semantic": {"name": "framework.templ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83753:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83753:FunctionDef_L25_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83753:FunctionDef_L25_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_83753:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Co...
# framework/modules/get_modem_info.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of...
ajibawa-2023/Python-Code-Large/train/row_83754
46
73
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83754:ImportFrom_L20_C0", "label": "from framework.templates import optical_module_template", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.274, 0.0137, 0, 0.66, 0.0, 518, 0, 1, 0, 0, 518, 0, 0], "semantic": {"name": "framework.templa...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83754:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83754:FunctionDef_L27_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83754:FunctionDef_L27_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_83754:Expr_L28_C2"}, {"f": "ajibawa-2023/Python-Co...
# framework/modules/set_meter_mode.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of...
ajibawa-2023/Python-Code-Large/train/row_83755
46
74
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83755:ImportFrom_L20_C0", "label": "from framework.templates import optical_module_template", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.2703, 0.0135, 0, 0.66, 0.0, 518, 0, 1, 0, 0, 518, 0, 0], "semantic": {"name": "framework.templ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83755:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83755:FunctionDef_L26_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83755:FunctionDef_L26_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_83755:Expr_L27_C2"}, {"f": "ajibawa-2023/Python-Co...
# framework/modules/get_security_info.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2...
ajibawa-2023/Python-Code-Large/train/row_83756
60
89
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83756:ImportFrom_L20_C0", "label": "from framework.templates import optical_module_template", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.2247, 0.0112, 0, 0.66, 0.0, 518, 0, 1, 0, 0, 518, 0, 0], "semantic": {"name": "framework.templ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83756:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83756:FunctionDef_L26_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83756:FunctionDef_L26_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_83756:Expr_L27_C2"}, {"f": "ajibawa-2023/Python-Co...
# framework/modules/write_table.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of th...
ajibawa-2023/Python-Code-Large/train/row_83757
36
60
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83757:Import_L20_C0", "label": "re import re", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.0167, 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_83757:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83757:FunctionDef_L26_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83757:FunctionDef_L26_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_83757:Expr_L27_C2"}, {"f": "ajibawa-2023/Python-Co...
# framework/modules/get_info.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the L...
ajibawa-2023/Python-Code-Large/train/row_83758
56
83
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83758:ImportFrom_L20_C0", "label": "from framework.templates import optical_module_template", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.241, 0.012, 0, 0.66, 0.0, 518, 0, 1, 0, 0, 518, 0, 0], "semantic": {"name": "framework.templat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83758:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83758:FunctionDef_L25_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83758:FunctionDef_L25_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_83758:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Co...
# framework/modules/dump_tables.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of th...
ajibawa-2023/Python-Code-Large/train/row_83759
45
73
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83759:ImportFrom_L20_C0", "label": "from time import sleep", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.274, 0.0137, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["sleep"]...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83759:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83759:FunctionDef_L27_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83759:FunctionDef_L27_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_83759:Expr_L28_C2"}, {"f": "ajibawa-2023/Python-Co...
# framework/modules/get_log_info.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of t...
ajibawa-2023/Python-Code-Large/train/row_83760
38
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83760:ImportFrom_L20_C0", "label": "from framework.templates import optical_module_template", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.2667, 0.0133, 0, 0.66, 0.0, 518, 0, 1, 0, 0, 518, 0, 0], "semantic": {"name": "framework.templ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83760:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83760:FunctionDef_L27_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83760:FunctionDef_L27_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_83760:Expr_L28_C2"}, {"f": "ajibawa-2023/Python-Co...
# framework/modules/read_table.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the...
ajibawa-2023/Python-Code-Large/train/row_83761
25
49
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83761:ImportFrom_L20_C0", "label": "from framework.templates import optical_module_template", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.4082, 0.0204, 0, 0.66, 0.0, 518, 0, 1, 0, 0, 518, 0, 0], "semantic": {"name": "framework.templ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83761:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83761:FunctionDef_L25_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83761:FunctionDef_L25_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_83761:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Co...
# DO NOT DELETE THIS FILE #
ajibawa-2023/Python-Code-Large/train/row_83762
0
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# framework/modules/enum_tables.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of th...
ajibawa-2023/Python-Code-Large/train/row_83763
44
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83763:ImportFrom_L20_C0", "label": "from framework.templates import optical_module_template", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.2899, 0.0145, 0, 0.66, 0.0, 518, 0, 1, 0, 0, 518, 0, 0], "semantic": {"name": "framework.templ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83763:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83763:FunctionDef_L26_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83763:FunctionDef_L26_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_83763:Expr_L27_C2"}, {"f": "ajibawa-2023/Python-Co...
# framework/modules/set_meter_id.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of t...
ajibawa-2023/Python-Code-Large/train/row_83764
31
54
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83764:ImportFrom_L20_C0", "label": "from framework.templates import optical_module_template", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.3704, 0.0185, 0, 0.66, 0.0, 518, 0, 1, 0, 0, 518, 0, 0], "semantic": {"name": "framework.templ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83764:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83764:FunctionDef_L24_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83764:FunctionDef_L24_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_83764:Expr_L25_C2"}, {"f": "ajibawa-2023/Python-Co...
# framework/modules/run_procedure.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of ...
ajibawa-2023/Python-Code-Large/train/row_83765
31
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_83765:ImportFrom_L20_C0", "label": "from framework.templates import optical_module_template", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.3571, 0.0179, 0, 0.66, 0.0, 518, 0, 1, 0, 0, 518, 0, 0], "semantic": {"name": "framework.templ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83765:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83765:FunctionDef_L25_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83765:FunctionDef_L25_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_83765:Expr_L26_C2"}, {"f": "ajibawa-2023/Python-Co...
# framework/modules/brute_force_login.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2...
ajibawa-2023/Python-Code-Large/train/row_83766
89
128
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83766:ImportFrom_L20_C0", "label": "from framework.templates import optical_module_template", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.1562, 0.0078, 0, 0.66, 0.0, 518, 0, 1, 0, 0, 518, 0, 0], "semantic": {"name": "framework.templ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83766:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83766:FunctionDef_L28_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83766:FunctionDef_L28_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_83766:If_L29_C2"}, {"f": "ajibawa-2023/Python-Code...
# framework/core.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or #...
ajibawa-2023/Python-Code-Large/train/row_83767
262
423
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83767:Import_L20_C0", "label": "os import os", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.0473, 0.0024, 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_83767:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83767:Expr_L36_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83767:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83767:FunctionDef_L41_C1"}, {"f": "ajibawa-2023/Python-Code-...
# framework/templates.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License,...
ajibawa-2023/Python-Code-Large/train/row_83768
29
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_83768:ImportFrom_L20_C0", "label": "from framework.options import AdvancedOptions, Options", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.2817, 0.0141, 0, 0.66, 0.0, 961, 0, 2, 0, 0, 961, 0, 0], "semantic": {"name": "framework.option...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83768:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83768:Assign_L23_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83768:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83768:FunctionDef_L25_C1"}, {"f": "ajibawa-2023/Python-Cod...
# framework/interface.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License,...
ajibawa-2023/Python-Code-Large/train/row_83769
500
643
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83769:Import_L20_C0", "label": "os import os", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.0311, 0.0016, 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_83769:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83769:Assign_L36_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83769:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83769:FunctionDef_L37_C1"}, {"f": "ajibawa-2023/Python-Cod...
# framework/utils.py # # Copyright 2012 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or ...
ajibawa-2023/Python-Code-Large/train/row_83770
77
170
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83770:Import_L20_C0", "label": "os import os", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.1176, 0.0059, 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_83770:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83770:Return_L39_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83770:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83770:FunctionDef_L42_C1"}, {"f": "ajibawa-2023/Python-...
# framework/errors.py # # Copyright 2012 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or...
ajibawa-2023/Python-Code-Large/train/row_83771
7
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_83771:ClassDef_L20_C0", "label": "FrameworkError", "type": "class", "loc": [20, 25], "level": 0, "parent": null, "vector": [3, 0, 0.7258, 0.1935, 0, 0.66, 0.0, 687, 0, 2, 0, 0, 645, 0, 1], "semantic": {"name": "FrameworkError", "arg_names": [], "import_names": [], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83771:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83771:FunctionDef_L21_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83771:FunctionDef_L21_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_83771:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-...
# framework/options.py # # Copyright 2011 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, o...
ajibawa-2023/Python-Code-Large/train/row_83772
71
246
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83772:ClassDef_L20_C0", "label": "Options", "type": "class", "loc": [20, 243], "level": 0, "parent": null, "vector": [3, 0, 0.5346, 0.9106, 0, 0.66, 0.0, 971, 0, 12, 0, 0, 827, 0, 41], "semantic": {"name": "Options", "arg_names": [], "import_names": [], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83772:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83772:Expr_L21_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83772:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83772:FunctionDef_L27_C1"}, {"f": "ajibawa-2023/Python-Code-...
# c1222/data.py # # Copyright 2013 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (a...
ajibawa-2023/Python-Code-Large/train/row_83773
267
417
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83773:ImportFrom_L20_C0", "label": "from struct import pack, unpack", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.048, 0.0024, 0, 0.66, 0.0, 399, 0, 2, 0, 0, 399, 0, 0], "semantic": {"name": "struct", "arg_names": [], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83773:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83773:Assign_L28_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83773:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83773:FunctionDef_L30_C1"}, {"f": "ajibawa-2023/Python-Cod...
# c1222/connection.py # # Copyright 2013 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or...
ajibawa-2023/Python-Code-Large/train/row_83774
87
128
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83774:ImportFrom_L20_C0", "label": "from random import randint", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.1562, 0.0078, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "random", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83774:If_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83774:Expr_L30_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83774:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83774:Assign_L33_C1"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
# c1222/utils.py # # Copyright 2013 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (...
ajibawa-2023/Python-Code-Large/train/row_83775
11
34
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83775:ImportFrom_L20_C0", "label": "from struct import pack, unpack", "type": "import", "loc": [20, 20], "level": 0, "parent": null, "vector": [1, 0, 0.5882, 0.0294, 0, 0.66, 0.0, 399, 0, 2, 0, 0, 399, 0, 0], "semantic": {"name": "struct", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83775:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83775:Assign_L29_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83775:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83775:For_L30_C1"}, {"f": "ajibawa-2023/Python-Code-...
# c1222/errors.py # # Copyright 2013 Spencer J. McIntyre <SMcIntyre [at] SecureState [dot] net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # ...
ajibawa-2023/Python-Code-Large/train/row_83776
17
60
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83776:ClassDef_L20_C0", "label": "C1222Error", "type": "class", "loc": [20, 29], "level": 0, "parent": null, "vector": [3, 0, 0.4083, 0.1667, 0, 0.66, 0.0, 920, 0, 2, 0, 0, 645, 0, 1], "semantic": {"name": "C1222Error", "arg_names": [], "import_names": [], "rhs_call_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83776:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83776:Expr_L21_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83776:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83776:FunctionDef_L24_C1"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/env python import codecs import re import jinja2 import markdown def process_slides(): with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile: md = codecs.open('slides.md', encoding='utf8').read() md_slides = md.split('\n---\n') print 'Compiled %s slides.' % len(m...
ajibawa-2023/Python-Code-Large/train/row_83777
41
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_83777:Import_L3_C0", "label": "codecs import codecs", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0175, 0, 0.66, 0.0, 220, 0, 1, 0, 0, 220, 0, 0], "semantic": {"name": "codecs", "arg_names": [], "import_names": ["codecs"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83777:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83777:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83777:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83777:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code...
#! /usr/local/bin/python """ Author: Andy Nagels Date: 2010-01-30 newmail.py: Create an alert when a new mail is received. Copyright (C) 2010 Andy Nagels This file is part of Alertlogger. Alertlogger is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licen...
ajibawa-2023/Python-Code-Large/train/row_83779
46
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_83779:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 23], "level": 0, "parent": null, "vector": [8, 0, 0.119, 0.2095, 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_83779:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83779:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83779:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83779:Expr_L27_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/local/bin/python """ Author: Andy Nagels Date: 2010-01-29 df.py: Create an alert when a directory or file in the filesystem, exceeds adefined size. Copyright (C) 2010 Andy Nagels This file is part of Alertlogger. Alertlogger is free software: you can redistribute it and/or modify it under the term...
ajibawa-2023/Python-Code-Large/train/row_83780
40
95
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83780:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 23], "level": 0, "parent": null, "vector": [8, 0, 0.1316, 0.2316, 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_83780:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83780:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83780:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83780:Expr_L27_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/local/bin/python """ Author: Andy Nagels Date: 2010-01-29 df.py: Create an alert when disk usage > <defined size> %. Copyright (C) 2010 Andy Nagels This file is part of Alertlogger. Alertlogger is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Lic...
ajibawa-2023/Python-Code-Large/train/row_83781
39
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_83781:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 23], "level": 0, "parent": null, "vector": [8, 0, 0.1359, 0.2391, 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_83781:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83781:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83781:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83781:Expr_L27_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/local/bin/python """ Author: Andy Nagels Date: 2010-01-29 df.py: Create an alert when disk usage > <defined size> %. Copyright (C) 2010 Andy Nagels This file is part of Alertlogger. Alertlogger is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Lic...
ajibawa-2023/Python-Code-Large/train/row_83782
39
91
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83782:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 23], "level": 0, "parent": null, "vector": [8, 0, 0.1374, 0.2418, 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_83782:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83782:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83782:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83782:Expr_L27_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/local/bin/python """ Author: Andy Nagels Date: 2010-01-29 df.py: Create an alert when a directory or file in the filesystem, exceeds adefined size. Copyright (C) 2010 Andy Nagels This file is part of Alertlogger. Alertlogger is free software: you can redistribute it and/or modify it under the term...
ajibawa-2023/Python-Code-Large/train/row_83783
40
95
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83783:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 23], "level": 0, "parent": null, "vector": [8, 0, 0.1316, 0.2316, 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_83783:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83783:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83783:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83783:Expr_L27_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/local/bin/python """ Author: Andy Nagels Date: 2010-01-29 df.py: Create an alert when disk usage > <defined size> %. Copyright (C) 2010 Andy Nagels This file is part of Alertlogger. Alertlogger is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Lic...
ajibawa-2023/Python-Code-Large/train/row_83784
39
91
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83784:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 23], "level": 0, "parent": null, "vector": [8, 0, 0.1374, 0.2418, 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_83784:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83784:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83784:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83784:Expr_L27_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/local/bin/python """ Author: Andy Nagels Date: 2010-01-30 newmail.py: Create an alert when a new mail is received. Copyright (C) 2010 Andy Nagels This file is part of Alertlogger. Alertlogger is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Licen...
ajibawa-2023/Python-Code-Large/train/row_83785
46
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_83785:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 23], "level": 0, "parent": null, "vector": [8, 0, 0.119, 0.2095, 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_83785:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83785:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83785:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83785:Expr_L27_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/local/bin/python """ Author: Andy Nagels Date: 2010-01-29 df.py: Create an alert when a directory or file in the filesystem, exceeds adefined size. Copyright (C) 2010 Andy Nagels This file is part of Alertlogger. Alertlogger is free software: you can redistribute it and/or modify it under the term...
ajibawa-2023/Python-Code-Large/train/row_83786
40
95
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83786:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 23], "level": 0, "parent": null, "vector": [8, 0, 0.1316, 0.2316, 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_83786:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83786:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83786:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83786:Expr_L27_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/local/bin/python """ Author: Andy Nagels Date: 2010-01-29 df.py: Create an alert when disk usage > <defined size> %. Copyright (C) 2010 Andy Nagels This file is part of Alertlogger. Alertlogger is free software: you can redistribute it and/or modify it under the terms of the GNU General Public Lic...
ajibawa-2023/Python-Code-Large/train/row_83787
39
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_83787:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 23], "level": 0, "parent": null, "vector": [8, 0, 0.1359, 0.2391, 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_83787:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83787:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83787:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83787:Expr_L27_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/local/bin/python """ Author: Andy Nagels Date: 2010-01-29 df.py: Create an alert when a directory or file in the filesystem, exceeds adefined size. Copyright (C) 2010 Andy Nagels This file is part of Alertlogger. Alertlogger is free software: you can redistribute it and/or modify it under the term...
ajibawa-2023/Python-Code-Large/train/row_83788
40
95
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83788:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 23], "level": 0, "parent": null, "vector": [8, 0, 0.1316, 0.2316, 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_83788:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83788:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83788:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83788:Expr_L27_C8"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: utf-8 -*- # # Sphinx documentation build configuration file import re import sphinx master_doc = 'contents' templates_path = ['_templates'] exclude_patterns = ['_build'] project = 'Sigil' copyright = u'2009-2010, Strahinja Marković' version = '0.2.0' release = version show_authors = True html_theme ...
ajibawa-2023/Python-Code-Large/train/row_83790
20
36
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83790:Import_L4_C0", "label": "re import re", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.0278, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": ""...
[]
from setuptools import setup, find_packages import sys, os version = '0.1' setup(name='nend', version=version, description="nend transforms EPUB NCX documents into EPUB 3 Navigation Documents", long_description="""\ """, classifiers=[], # Get strings from http://pypi.python.org/pypi?%3Aaction=...
ajibawa-2023/Python-Code-Large/train/row_83791
4
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_83791:ImportFrom_L1_C0", "label": "from setuptools import setup, find_packages", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0312, 0.0312, 0, 0.66, 0.0, 182, 0, 2, 0, 0, 182, 0, 0], "semantic": {"name": "setuptools", "arg_names": [], ...
[]
# encoding: utf-8 """ ncx.py Created by Keith Fahlgren on Mon Jun 13 17:09:40 PDT 2011 Copyright (c) 2011 Threepress Consulting Inc. All rights reserved. """ import logging import os.path from lxml import etree log = logging.getLogger(__name__) NCX_TO_END = os.path.join(os.path.dirname(__file__), 'externals', 'xsl...
ajibawa-2023/Python-Code-Large/train/row_83792
14
30
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83792:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 7], "level": 0, "parent": null, "vector": [8, 0, 0.15, 0.2, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83792:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83792:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83792:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83792:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # encoding: utf-8 """ __init__.py Created by Keith Fahlgren on Mon Jun 13 16:17:48 PDT 2011 Copyright (c) 2011 Threepress Consulting Inc. All rights reserved. """ import logging import os.path import subprocess import tempfile from lxml import etree log = logging.getLogger(__name__) JING_FN...
ajibawa-2023/Python-Code-Large/train/row_83793
43
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_83793:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0671, 0.0732, 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_83793:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83793:Expr_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83793:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83793:Assign_L44_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # -*- coding: utf_8 -*- # # Modbus TestKit: Implementation of Modbus protocol in python # # (C)2009 - Luc Jean - luc.jean@gmail.com # (C)2009 - Apidev - http://www.apidev.fr # # This is distributed under GNU LGPL license, see license.txt # import zipfile import glob, os, sys class ...
ajibawa-2023/Python-Code-Large/train/row_83794
29
46
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83794:Import_L12_C0", "label": "zipfile import zipfile", "type": "import", "loc": [12, 12], "level": 0, "parent": null, "vector": [1, 0, 0.2609, 0.0217, 0, 0.66, 0.0, 93, 0, 1, 0, 0, 93, 0, 0], "semantic": {"name": "zipfile", "arg_names": [], "import_names": ["zipfile"]...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83794:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83794:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83794:FunctionDef_L17_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83794:Assign_L18_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Modbus TestKit: Implementation of Modbus protocol in python (C)2009 - Luc Jean - luc.jean@gmail.com (C)2009 - Apidev - http://www.apidev.fr This is distributed under GNU LGPL license, see license.txt """ #modbus exception codes ILLEGAL_FUNCTION = 1 ILLEGAL_DATA_A...
ajibawa-2023/Python-Code-Large/train/row_83799
23
38
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83799:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1711, 0.2105, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[]
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Modbus TestKit: Implementation of Modbus protocol in python (C)2009 - Luc Jean - luc.jean@gmail.com (C)2009 - Apidev - http://www.apidev.fr This is distributed under GNU LGPL license, see license.txt """ import socket import modbus_tk.defines class...
ajibawa-2023/Python-Code-Large/train/row_83800
97
129
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83800:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0504, 0.062, 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_83800:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83800:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83800:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83800:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Modbus TestKit: Implementation of Modbus protocol in python (C)2009 - Luc Jean - luc.jean@gmail.com (C)2009 - Apidev - http://www.apidev.fr This is distributed under GNU LGPL license, see license.txt Make possible to write modbus TCP and RTU master and...
ajibawa-2023/Python-Code-Large/train/row_83803
1
17
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83803:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 14], "level": 0, "parent": null, "vector": [8, 0, 0.5, 0.7059, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[]
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Modbus TestKit: Implementation of Modbus protocol in python (C)2009 - Luc Jean - luc.jean@gmail.com (C)2009 - Apidev - http://www.apidev.fr This is distributed under GNU LGPL license, see license.txt """ from __future__ import with_statement import th...
ajibawa-2023/Python-Code-Large/train/row_83804
20
96
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83804:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0677, 0.0833, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83804:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83804:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83804:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83804:Try_L74_C8"}, {"f": "ajibawa-2023/Python-Code-La...
#!/usr/bin/env python # -*- coding: utf_8 -*- """ Modbus TestKit: Implementation of Modbus protocol in python (C)2009 - Luc Jean - luc.jean@gmail.com (C)2009 - Apidev - http://www.apidev.fr This is distributed under GNU LGPL license, see license.txt """ import sys #add logging capability import lo...
ajibawa-2023/Python-Code-Large/train/row_83805
5
8
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83805:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.125, 0.125, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name": ...
[]
#!/usr/bin/env python # -*- coding: utf_8 -*- """ Modbus TestKit: example of a custom simulator (C)2009 - Luc Jean - luc.jean@gmail.com (C)2009 - Apidev - http://www.apidev.fr This is distributed under GNU LGPL license, see license.txt """ from modbus_tk.utils import create_logger from modbus_tk.simu...
ajibawa-2023/Python-Code-Large/train/row_83806
33
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_83806:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 11], "level": 0, "parent": null, "vector": [8, 0, 0.1111, 0.1429, 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_83806:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83806:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83806:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83806:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/env python # -*- coding: utf_8 -*- """ Modbus TestKit: Implementation of Modbus protocol in python (C)2009 - Luc Jean - luc.jean@gmail.com (C)2009 - Apidev - http://www.apidev.fr This is distributed under GNU LGPL license, see license.txt """ import sys #add logging capability import lo...
ajibawa-2023/Python-Code-Large/train/row_83807
56
78
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83807:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0833, 0.1026, 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_83807:If_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83807:Try_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83807:Try_L27_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_83807:Assign_L29_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_8...
#!/usr/bin/env python # -*- coding: utf_8 -*- """ Modbus TestKit: Implementation of Modbus protocol in python (C)2009 - Luc Jean - luc.jean@gmail.com (C)2009 - Apidev - http://www.apidev.fr This is distributed under GNU LGPL license, see license.txt """ import sys #add logging capability import lo...
ajibawa-2023/Python-Code-Large/train/row_83809
57
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_83809:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0823, 0.1013, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_83809:If_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83809:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83809:If_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83809:Try_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83...
#!/usr/bin/env python # -*- coding: utf_8 -*- """ Modbus TestKit: Implementation of Modbus protocol in python (C)2009 - Luc Jean - luc.jean@gmail.com (C)2009 - Apidev - http://www.apidev.fr This is distributed under GNU LGPL license, see license.txt """ import sys import serial #add logging capabi...
ajibawa-2023/Python-Code-Large/train/row_83810
6
9
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83810:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.1111, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name"...
[]
#!/usr/bin/env python # -*- coding: utf_8 -*- """ Modbus TestKit: Implementation of Modbus protocol in python (C)2009 - Luc Jean - luc.jean@gmail.com (C)2009 - Apidev - http://www.apidev.fr This is distributed under GNU LGPL license, see license.txt """ from setuptools import setup import sys, os ...
ajibawa-2023/Python-Code-Large/train/row_83811
5
43
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83811:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1512, 0.186, 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/env python # -*- coding: utf-8 -*- """ Modbus TestKit: Implementation of Modbus protocol in python (C)2009 - Luc Jean - luc.jean@gmail.com (C)2009 - Apidev - http://www.apidev.fr This is distributed under GNU LGPL license, see license.txt """ import unittest import modbus_tk import modbus...
ajibawa-2023/Python-Code-Large/train/row_83812
147
231
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_83812:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0281, 0.0346, 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_83812:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83812:Assign_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_83812:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_83812:Assign_L56_C4"}, {"f": "ajibawa-2023/Python-Co...