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 |
|---|---|---|---|---|---|---|---|
"""
SteamBMC: XBMC Addon to Browse and Launch Steam Games
Copyright (C) 2013 T. Oldbury
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 (at your option) any later ... | ajibawa-2023/Python-Code-Large/train/row_88628 | 112 | 178 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88628:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 19], "level": 0, "parent": null, "vector": [8, 0, 0.0562, 0.1067, 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_88628:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88628:While_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88628:While_L46_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88628:If_L47_C8"}, {"f": "ajibawa-2023/Python-Code-Large/tr... |
#!/usr/bin/env python
import urllib2
import shutil
import os
from os.path import join, exists, dirname, abspath
from glob import glob
from subprocess import call
from zipfile import ZipFile
JASMINE_REPORTER_URL='https://github.com/larrymyers/jasmine-reporters/zipball/0.2.1'
BASE = abspath(dirname(__file__))
REPORT_DI... | ajibawa-2023/Python-Code-Large/train/row_88632 | 39 | 52 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88632:Import_L2_C0", "label": "urllib2 import urllib2", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0385, 0.0192, 0, 0.66, 0.0, 345, 0, 1, 0, 0, 345, 0, 0], "semantic": {"name": "urllib2", "arg_names": [], "import_names": ["urllib2"],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88632:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88632:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88632:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88632:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code... |
import os
THIS_PATH = os.path.dirname(__file__)
GOLDEN_OUTPUT = os.path.join(THIS_PATH, 'golden_suite', 'output.xml')
GOLDEN_OUTPUT2 = os.path.join(THIS_PATH, 'golden_suite', 'output2.xml')
GOLDEN_JS = os.path.join(THIS_PATH, 'golden_suite', 'expected.js')
| ajibawa-2023/Python-Code-Large/train/row_88633 | 5 | 7 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88633:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.1429, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""... | [] |
__author__ = 'janne'
| ajibawa-2023/Python-Code-Large/train/row_88634 | 1 | 1 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88634:Assign_L1_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs_call_n... | [] |
#!/usr/bin/env python
import fileinput
from os.path import join, dirname, abspath
import sys
import os
BASEDIR = dirname(abspath(__file__))
OUTPUT = join(BASEDIR, 'output.xml')
sys.path.insert(0, join(BASEDIR, '..', '..', '..', '..', 'src'))
import robot
from robot.conf.settings import RebotSettings
from robot.repo... | ajibawa-2023/Python-Code-Large/train/row_88635 | 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_88635:Import_L3_C0", "label": "fileinput import fileinput", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0175, 0, 0.66, 0.0, 286, 0, 1, 0, 0, 286, 0, 0], "semantic": {"name": "fileinput", "arg_names": [], "import_names": ["file... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88635:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88635:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88635:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88635:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Co... |
#!/usr/bin/env python
import sys
import os
from os.path import join, dirname
from distutils.core import setup
execfile(join(dirname(__file__), 'src', 'robot', 'version.py'))
# Maximum width in Windows installer seems to be 70 characters -------|
DESCRIPTION = """
Robot Framework is a generic test automation framewor... | ajibawa-2023/Python-Code-Large/train/row_88637 | 4 | 5 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88637:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 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
"""A script for running Robot Framework's acceptance tests.
Usage: run_atests.py interpreter [options] datasource(s)
Data sources are paths to directories or files under `robot` folder.
Available options are the same that can be used with Robot Framework.
See its help (e.g. `pybot --help`) fo... | ajibawa-2023/Python-Code-Large/train/row_88638 | 44 | 111 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88638:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1081, 0.1712, 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_88638:FunctionDef_L67_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88638:If_L68_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88638:If_L68_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88638:Expr_L69_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/... |
import subprocess
import os
import signal
import ctypes
import time
class ProcessManager(object):
def __init__(self):
self._process = None
self._stdout = ''
self._stderr = ''
def start_process(self, *args):
args = args[0].split() + list(args[1:])
self._process = subpr... | ajibawa-2023/Python-Code-Large/train/row_88639 | 52 | 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_88639:Import_L1_C0", "label": "subprocess import subprocess", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0137, 0.0137, 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_88639:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88639:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88639:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88639:Assign_L11_C8"}, {"f": "ajibawa-2023/Python-C... |
from __future__ import with_statement
import os
from os.path import abspath, dirname, join
from subprocess import call, STDOUT
import tempfile
from robot.utils.asserts import assert_equals
ROBOT_SRC = join(dirname(abspath(__file__)), '..', '..', '..', 'src')
class TidyLib(object):
def __init__(self, interpret... | ajibawa-2023/Python-Code-Large/train/row_88640 | 43 | 59 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88640:ImportFrom_L1_C0", "label": "from __future__ import with_statement", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0169, 0.0169, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "impor... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88640:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88640:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88640:FunctionDef_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88640:Assign_L16_C8"}, {"f": "ajibawa-2023/Python-... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88641 | 28 | 59 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88641:ImportFrom_L15_C0", "label": "from __future__ import with_statement", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2542, 0.0169, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "im... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88641:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88641:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88641:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88641:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
import os
import tempfile
from os.path import join, dirname, abspath
from subprocess import call, STDOUT
from robot.api import logger
from robot.utils import decode_output
ROBOT_SRC = join(dirname(abspath(__file__)), '..', '..', '..', 'src')
class LibDocLib(object):
def __init__(self, interpreter):
self... | ajibawa-2023/Python-Code-Large/train/row_88642 | 21 | 26 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88642:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0385, 0.0385, 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_88642:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88642:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88642:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88642:Assign_L14_C8"}, {"f": "ajibawa-2023/Python-... |
from __future__ import with_statement
import os
from robot.utils import utf8open
def output_should_have_correct_line_separators(path):
with utf8open(path) as infile:
content = infile.read()
content = content.replace(os.linesep, '')
incorrect = content.count('\n')
if incorrect:
err = A... | ajibawa-2023/Python-Code-Large/train/row_88643 | 10 | 16 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88643:ImportFrom_L1_C0", "label": "from __future__ import with_statement", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0625, 0.0625, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "impor... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88643:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88643:Assign_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88643:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88643:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-... |
from __future__ import with_statement
from robot.api import logger
class WrongStat(AssertionError):
ROBOT_CONTINUE_ON_FAILURE = True
def get_total_stats(path):
return get_all_stats(path)[0]
def get_tag_stats(path):
return get_all_stats(path)[1]
def get_suite_stats(path):
return get_all_stats(path)... | ajibawa-2023/Python-Code-Large/train/row_88644 | 28 | 41 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88644:ImportFrom_L1_C0", "label": "from __future__ import with_statement", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0244, 0.0244, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "impor... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88644:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88644:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88644:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88644:Return_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
from robot.libraries.BuiltIn import BuiltIn
BIN = BuiltIn()
def start_keyword(*args):
if BIN.get_variables()['${TESTNAME}'] == 'Listener Using BuiltIn':
BIN.set_test_variable('${SET BY LISTENER}', 'quux')
| ajibawa-2023/Python-Code-Large/train/row_88645 | 5 | 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_88645:ImportFrom_L1_C0", "label": "from robot.libraries.BuiltIn import BuiltIn", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.1111, 0, 0.66, 0.0, 588, 0, 1, 0, 0, 588, 0, 0], "semantic": {"name": "robot.libraries.BuiltIn", "arg... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88645:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88645:If_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88645:If_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88645:Expr_L8_C8"}] |
from __future__ import with_statement
from os.path import abspath, dirname, join
from fnmatch import fnmatchcase
from operator import eq
from robot.api import logger
CURDIR = dirname(abspath(__file__))
def verify_output(actual, expected):
actual = _read_file(actual, 'Actual')
expected = _read_file(join(CURD... | ajibawa-2023/Python-Code-Large/train/row_88646 | 17 | 28 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88646:ImportFrom_L1_C0", "label": "from __future__ import with_statement", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0357, 0.0357, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "impor... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88646:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88646:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88646:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88646:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Co... |
import os
import tempfile
import time
class ListenAll:
ROBOT_LISTENER_API_VERSION = '2'
def __init__(self, *path):
if not path:
path = os.path.join(tempfile.gettempdir(), 'listen_all.txt')
else:
path = ':'.join(path)
self.outfile = open(path, 'w')
def sta... | ajibawa-2023/Python-Code-Large/train/row_88647 | 54 | 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_88647:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0122, 0.0122, 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_88647:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88647:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88647:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88647:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
import os
import tempfile
class OldListenAll:
def __init__(self, *path):
if not path:
path = os.path.join(tempfile.gettempdir(), 'listen_all.txt')
else:
path = ':'.join(path)
self.outfile = open(path, 'w')
def start_suite(self, name, doc):
self.outfile... | ajibawa-2023/Python-Code-Large/train/row_88648 | 37 | 55 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88648:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0182, 0.0182, 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_88648:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88648:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88648:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88648:If_L8_C8"}, {"f": "ajibawa-2023/Python-Code-Lar... |
import os
import tempfile
outpath = os.path.join(tempfile.gettempdir(), 'listen_by_module.txt')
OUTFILE = open(outpath, 'w')
ROBOT_LISTENER_API_VERSION = 2
def start_suite(name, attrs):
metastr = ' '.join('%s: %s' % (k, v) for k, v in attrs['metadata'].items())
OUTFILE.write("SUITE START: %s '%s' [%s]\n"
... | ajibawa-2023/Python-Code-Large/train/row_88649 | 43 | 64 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88649:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0156, 0.0156, 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_88649:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88649:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88649:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88649:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
import os
import tempfile
class ListenSome:
def __init__(self):
outpath = os.path.join(tempfile.gettempdir(), 'listen_some.txt')
self.outfile = open(outpath, 'w')
def startTest(self, name, doc, tags):
self.outfile.write(name + '\n')
def endSuite(self, stat, msg):
... | ajibawa-2023/Python-Code-Large/train/row_88650 | 21 | 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_88650:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0278, 0.0278, 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_88650:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88650:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88650:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88650:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code... |
import os
import tempfile
import logging
from robot.libraries.BuiltIn import BuiltIn
from robot.api import logger
class ListenSome:
ROBOT_LISTENER_API_VERSION = '2'
def __init__(self):
outpath = os.path.join(tempfile.gettempdir(), 'listen_some.txt')
self.outfile = open(outpath, 'w')
def... | ajibawa-2023/Python-Code-Large/train/row_88651 | 66 | 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_88651:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0085, 0.0085, 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_88651:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88651:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88651:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88651:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-... |
import os
import tempfile
outpath = os.path.join(tempfile.gettempdir(), 'listen_by_module.txt')
OUTFILE = open(outpath, 'w')
def start_suite(name, doc):
OUTFILE.write("SUITE START: %s '%s'\n" % (name, doc))
def start_test(name, doc, tags):
tags = [ str(tag) for tag in tags ]
OUTFILE.write("TEST START: %... | ajibawa-2023/Python-Code-Large/train/row_88652 | 33 | 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_88652:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0204, 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_88652:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88652:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88652:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88652:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
import os
import tempfile
ROBOT_LISTENER_API_VERSION = '2'
OUTFILE = open(os.path.join(tempfile.gettempdir(), 'listener_attrs.txt'), 'w')
START_ATTRS = 'doc starttime '
END_ATTRS = START_ATTRS + 'endtime elapsedtime status '
EXPECTED_TYPES = {'elapsedtime': (int, long), 'tags': list, 'args': list,
'... | ajibawa-2023/Python-Code-Large/train/row_88653 | 34 | 53 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88653:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0189, 0.0189, 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_88653:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88653:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88653:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88653:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
def get_variables(*args):
return { 'PPATH_VARFILE_2' : ' '.join(args),
'LIST__PPATH_VARFILE_2' : args }
| ajibawa-2023/Python-Code-Large/train/row_88654 | 2 | 4 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88654:FunctionDef_L1_C0", "label": "get_variables", "type": "function", "loc": [1, 3], "level": 0, "parent": null, "vector": [2, 0, 0.5, 0.75, 0, 0.66, 0.0, 461, 0, 1, 1, 0, 0, 0, 1], "semantic": {"name": "get_variables", "arg_names": ["args"], "import_names": [], "rhs_... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88654:FunctionDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88654:Return_L2_C4"}] |
PPATH_VARFILE = "Variable from variable file in PYTHONPATH" | ajibawa-2023/Python-Code-Large/train/row_88655 | 1 | 1 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88655:Assign_L1_C0", "label": "PPATH_VARFILE =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 799, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "PPATH_VARFILE", "arg_names": [], "import_names": [], "rhs_... | [] |
list1 = [1, 2, 3, 4, 'foo', 'bar']
dictionary1 = {'a': 1}
dictionary2 = {'a': 1, 'b': 2}
| ajibawa-2023/Python-Code-Large/train/row_88656 | 3 | 3 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88656:Assign_L1_C0", "label": "list1 =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 150, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "list1", "arg_names": [], "import_names": [], "rhs_call_name"... | [] |
class TraceLogArgsLibrary(object):
def only_mandatory(self, mand1, mand2):
pass
def mandatory_and_default(self, mand, default="default value"):
pass
def multiple_default_values(self, a=1, a2=2, a3=3, a4=4):
pass
def mandatory_and_varargs(self, mand, *varargs):
pass
... | ajibawa-2023/Python-Code-Large/train/row_88657 | 15 | 30 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88657:ClassDef_L1_C0", "label": "TraceLogArgsLibrary", "type": "class", "loc": [1, 19], "level": 0, "parent": null, "vector": [3, 0, 0.3333, 0.6333, 0, 0.66, 0.0, 552, 0, 6, 0, 0, 186, 0, 2], "semantic": {"name": "TraceLogArgsLibrary", "arg_names": [], "import_names": [... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88657:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88657:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88657:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88657:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Co... |
class FailUntilSucceeds:
ROBOT_LIBRARY_SCOPE = 'TESTCASE'
def __init__(self, times_to_fail=0):
self.times_to_fail = int(times_to_fail)
def fail_until_retried_often_enough(self, message="Hello"):
self.times_to_fail -= 1
if self.times_to_fail >= 0:
raise Exce... | ajibawa-2023/Python-Code-Large/train/row_88658 | 7 | 12 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88658:ClassDef_L1_C0", "label": "FailUntilSucceeds", "type": "class", "loc": [1, 12], "level": 0, "parent": null, "vector": [3, 0, 0.5417, 1.0, 0, 0.66, 0.0, 243, 0, 2, 0, 0, 0, 0, 2], "semantic": {"name": "FailUntilSucceeds", "arg_names": [], "import_names": [], "rhs_c... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88658:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88658:Assign_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88658:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88658:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-La... |
import exceptions
class ObjectToReturn:
def __init__(self, name):
self.name = name
def __str__(self):
return self.name
def exception(self, name, msg=""):
exception = getattr(exceptions, name)
raise exception, msg
| ajibawa-2023/Python-Code-Large/train/row_88659 | 8 | 12 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88659:Import_L1_C0", "label": "exceptions import exceptions", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0833, 0.0833, 0, 0.66, 0.0, 63, 0, 1, 0, 0, 63, 0, 0], "semantic": {"name": "exceptions", "arg_names": [], "import_names": ["exc... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88659:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88659:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88659:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88659:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code... |
class SameNamesAsInBuiltIn:
def noop(self):
"""Using this keyword without libname causes an error""" | ajibawa-2023/Python-Code-Large/train/row_88660 | 3 | 4 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88660:ClassDef_L1_C0", "label": "SameNamesAsInBuiltIn", "type": "class", "loc": [1, 4], "level": 0, "parent": null, "vector": [3, 0, 0.625, 1.0, 0, 0.66, 0.0, 82, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "SameNamesAsInBuiltIn", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88660:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88660:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88660:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88660:Expr_L4_C8"}] |
from robot.libraries.BuiltIn import BuiltIn
class NamespaceUsingLibrary(object):
def __init__(self):
self._importing_suite = BuiltIn().get_variable_value('${SUITE NAME}')
self._easter = BuiltIn().get_library_instance('Easter')
def get_importing_suite(self):
return self._importing_suit... | ajibawa-2023/Python-Code-Large/train/row_88661 | 9 | 13 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88661:ImportFrom_L1_C0", "label": "from robot.libraries.BuiltIn import BuiltIn", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0769, 0.0769, 0, 0.66, 0.0, 588, 0, 1, 0, 0, 588, 0, 0], "semantic": {"name": "robot.libraries.BuiltIn", "arg... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88661:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88661:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88661:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88661:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code... |
class ZipLib:
def kw_from_zip(self, arg):
print '*INFO*', arg
return arg * 2
| ajibawa-2023/Python-Code-Large/train/row_88662 | 4 | 7 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88662:ClassDef_L1_C0", "label": "ZipLib", "type": "class", "loc": [1, 5], "level": 0, "parent": null, "vector": [3, 0, 0.4286, 0.7143, 0, 0.66, 0.0, 240, 0, 1, 0, 0, 0, 0, 1], "semantic": {"name": "ZipLib", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88662:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88662:FunctionDef_L3_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88662:FunctionDef_L3_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_88662:Expr_L4_C2"}, {"f": "ajibawa-2023/Python-Code-L... |
class PythonVarArgsConstructor:
def __init__(self, mandatory, *varargs):
self.mandatory = mandatory
self.varargs = varargs
def get_args(self):
return self.mandatory, ' '.join(self.varargs)
| ajibawa-2023/Python-Code-Large/train/row_88663 | 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_88663:ClassDef_L1_C0", "label": "PythonVarArgsConstructor", "type": "class", "loc": [1, 8], "level": 0, "parent": null, "vector": [3, 0, 0.5, 0.8889, 0, 0.66, 0.0, 282, 0, 2, 0, 0, 0, 0, 1], "semantic": {"name": "PythonVarArgsConstructor", "arg_names": [], "import_names... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88663:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88663:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88663:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88663:Assign_L4_C8"}, {"f": "ajibawa-2023/Python-Code... |
import ExampleJavaLibrary
import DefaultArgs
class ExtendJavaLib(ExampleJavaLibrary):
def kw_in_java_extender(self, arg):
return arg*2
def javaSleep(self, secs):
raise Exception('Overridden kw executed!')
def using_method_from_java_parent(self):
self.divByZero()
class ExtendJa... | ajibawa-2023/Python-Code-Large/train/row_88665 | 21 | 37 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88665:Import_L1_C0", "label": "ExampleJavaLibrary import ExampleJavaLibrary", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.027, 0.027, 0, 0.66, 0.0, 716, 0, 1, 0, 0, 716, 0, 0], "semantic": {"name": "ExampleJavaLibrary", "arg_names": [... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88665:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88665:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88665:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88665:Return_L8_C8"}, {"f": "ajibawa-2023/Python-Code... |
class ArgumentsPython:
# method docs are used in unit tests as expected min and max args
def a_0(self):
"""(0,0)"""
return 'a_0'
def a_1(self, arg):
"""(1,1)"""
return 'a_1: ' + arg
def a_3(self, arg1, arg2, arg3):
"""(3,3)"""
return ' ... | ajibawa-2023/Python-Code-Large/train/row_88667 | 25 | 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_88667:ClassDef_L1_C0", "label": "ArgumentsPython", "type": "class", "loc": [1, 35], "level": 0, "parent": null, "vector": [3, 0, 0.5, 0.9722, 0, 0.66, 0.0, 360, 0, 8, 0, 0, 0, 0, 8], "semantic": {"name": "ArgumentsPython", "arg_names": [], "import_names": [], "rhs_call_... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88667:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88667:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88667:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88667:Expr_L6_C8"}, {"f": "ajibawa-2023/Python-Code-L... |
from robot import utils
class RunKeywordLibrary:
ROBOT_LIBRARY_SCOPE = 'TESTCASE'
def __init__(self):
self.kw_names = ['Run Keyword That Passes', 'Run Keyword That Fails']
def get_keyword_names(self):
return self.kw_names
def run_keyword(self, name, args):
try:
m... | ajibawa-2023/Python-Code-Large/train/row_88668 | 24 | 41 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88668:ImportFrom_L1_C0", "label": "from robot import utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0244, 0.0244, 0, 0.66, 0.0, 735, 0, 1, 0, 0, 735, 0, 0], "semantic": {"name": "robot", "arg_names": [], "import_names": ["utils"]... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88668:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88668:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88668:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88668:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-La... |
def keyword_from_deeper_submodule():
return 'hi again'
class Sub:
def keyword_from_class_in_deeper_submodule(self):
return 'bye'
| ajibawa-2023/Python-Code-Large/train/row_88669 | 5 | 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_88669:FunctionDef_L1_C0", "label": "keyword_from_deeper_submodule", "type": "function", "loc": [1, 2], "level": 0, "parent": null, "vector": [2, 0, 0.1667, 0.2222, 0, 0.66, 0.0, 11, 0, 0, 1, 0, 0, 0, 0], "semantic": {"name": "keyword_from_deeper_submodule", "arg_names":... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88669:FunctionDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88669:Return_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88669:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88669:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code... |
attribute = 42
| ajibawa-2023/Python-Code-Large/train/row_88670 | 1 | 1 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88670:Assign_L1_C0", "label": "attribute =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 355, 1, 0, 0, 0, 0, 1, 0], "semantic": {"name": "attribute", "arg_names": [], "import_names": [], "rhs_call_nam... | [] |
library = "It should be OK to have an attribute with same name as the module"
def keyword_from_submodule(arg='World'):
return "Hello, %s!" % arg
| ajibawa-2023/Python-Code-Large/train/row_88671 | 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_88671:Assign_L1_C0", "label": "library =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.2, 0.2, 0, 0.66, 0.0, 860, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "library", "arg_names": [], "import_names": [], "rhs_call_name": ... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88671:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88671:Return_L5_C4"}] |
some_string = 'Hello, World!'
class _SomeObject:
pass
some_object = _SomeObject() | ajibawa-2023/Python-Code-Large/train/row_88672 | 3 | 6 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88672:Assign_L1_C0", "label": "some_string =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.1667, 0.1667, 0, 0.66, 0.0, 913, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "some_string", "arg_names": [], "import_names": [], "rh... | [] |
class KwargsLibrary(object):
def __init__(self, arg1=None, arg2=None):
self.arg1 = arg1
self.arg2 = arg2
def check_init_arguments(self, exp_arg1, exp_arg2):
if self.arg1 != exp_arg1 or self.arg2 != exp_arg2:
raise AssertionError('Wrong initialization values. Got (%s, %s), e... | ajibawa-2023/Python-Code-Large/train/row_88673 | 16 | 25 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88673:ClassDef_L1_C0", "label": "KwargsLibrary", "type": "class", "loc": [1, 25], "level": 0, "parent": null, "vector": [3, 0, 0.52, 1.0, 0, 0.66, 0.0, 328, 0, 7, 0, 0, 186, 0, 2], "semantic": {"name": "KwargsLibrary", "arg_names": [], "import_names": [], "rhs_call_name... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88673:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88673:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88673:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88673:Assign_L4_C8"}, {"f": "ajibawa-2023/Python-Code... |
class ParameterLibrary:
def __init__(self, host='localhost', port='8080'):
self.host = host
self.port = port
def parameters(self):
return self.host, self.port | ajibawa-2023/Python-Code-Large/train/row_88674 | 6 | 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_88674:ClassDef_L1_C0", "label": "ParameterLibrary", "type": "class", "loc": [1, 8], "level": 0, "parent": null, "vector": [3, 0, 0.5625, 1.0, 0, 0.66, 0.0, 341, 0, 2, 0, 0, 0, 0, 0], "semantic": {"name": "ParameterLibrary", "arg_names": [], "import_names": [], "rhs_call... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88674:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88674:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88674:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88674:Assign_L4_C8"}, {"f": "ajibawa-2023/Python-Code... |
from robot import utils
def passing_handler(*args):
for arg in args:
print arg,
return ', '.join(args)
def failing_handler(*args):
if len(args) == 0:
msg = 'Failure'
else:
msg = 'Failure: %s' % ' '.join(args)
raise AssertionError(msg)
class GetKeywordNamesLibrary:
... | ajibawa-2023/Python-Code-Large/train/row_88675 | 23 | 37 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88675:ImportFrom_L1_C0", "label": "from robot import utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.027, 0.027, 0, 0.66, 0.0, 735, 0, 1, 0, 0, 735, 0, 0], "semantic": {"name": "robot", "arg_names": [], "import_names": ["utils"], ... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88675:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88675:For_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88675:For_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88675:Expr_L6_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro... |
class Mandatory:
def __init__(self, mandatory1, mandatory2):
self.mandatory1 = mandatory1
self.mandatory2 = mandatory2
def get_args(self):
return self.mandatory1, self.mandatory2
class Defaults(object):
def __init__(self, mandatory, default1='value', default2=None):
self... | ajibawa-2023/Python-Code-Large/train/row_88677 | 19 | 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_88677:ClassDef_L1_C0", "label": "Mandatory", "type": "class", "loc": [1, 8], "level": 0, "parent": null, "vector": [3, 0, 0.1406, 0.25, 0, 0.66, 0.0, 745, 0, 2, 0, 0, 0, 0, 0], "semantic": {"name": "Mandatory", "arg_names": [], "import_names": [], "rhs_call_name": "", "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88677:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88677:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88677:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88677:Assign_L4_C8"}, {"f": "ajibawa-2023/Python-Code... |
from ExampleLibrary import ExampleLibrary
class ExtendPythonLib(ExampleLibrary):
def kw_in_python_extender(self, arg):
return arg/2
def print_many(self, *msgs):
raise Exception('Overridden kw executed!')
def using_method_from_python_parent(self):
self.exception('Asser... | ajibawa-2023/Python-Code-Large/train/row_88679 | 7 | 12 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88679:ImportFrom_L1_C0", "label": "from ExampleLibrary import ExampleLibrary", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0833, 0.0833, 0, 0.66, 0.0, 472, 0, 1, 0, 0, 472, 0, 0], "semantic": {"name": "ExampleLibrary", "arg_names": []... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88679:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88679:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88679:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88679:Return_L6_C8"}, {"f": "ajibawa-2023/Python-Code... |
__version__ = 'N/A' # This should be ignored when version is parsed
class NameLibrary:
handler_count = 10
def simple1(self):
"""Simple 1"""
def simple2___(self):
"""Simple 2"""
def underscore_name(self):
"""Underscore Name"""
def underscore_name2_(self):
"""Undersc... | ajibawa-2023/Python-Code-Large/train/row_88680 | 123 | 164 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88680:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.0061, 0.0061, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88680:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88680:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88680:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88680:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-La... |
class NewStyleClassLibrary(object):
def mirror(self, arg):
arg = list(arg)
arg.reverse()
return ''.join(arg)
def _property_getter(self):
raise SystemExit('This should not be called, ever!!!')
prop = property(_property_getter)
class NewStyleClassArgsLibrar... | ajibawa-2023/Python-Code-Large/train/row_88681 | 19 | 34 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88681:ClassDef_L1_C0", "label": "NewStyleClassLibrary", "type": "class", "loc": [1, 11], "level": 0, "parent": null, "vector": [3, 0, 0.1765, 0.3235, 0, 0.66, 0.0, 12, 0, 2, 0, 0, 186, 0, 5], "semantic": {"name": "NewStyleClassLibrary", "arg_names": [], "import_names": ... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88681:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88681:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88681:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88681:Assign_L4_C8"}, {"f": "ajibawa-2023/Python-Code... |
class LibClass1:
def verify_libclass1(self):
return 'LibClass 1 works'
class LibClass2:
def verify_libclass2(self):
return 'LibClass 2 works also'
| ajibawa-2023/Python-Code-Large/train/row_88682 | 6 | 11 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88682:ClassDef_L1_C0", "label": "LibClass1", "type": "class", "loc": [1, 4], "level": 0, "parent": null, "vector": [3, 0, 0.2273, 0.3636, 0, 0.66, 0.0, 529, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "LibClass1", "arg_names": [], "import_names": [], "rhs_call_name": "",... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88682:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88682:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88682:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88682:Return_L4_C8"}, {"f": "ajibawa-2023/Python-Code... |
class FatalCatastrophyException(RuntimeError):
ROBOT_EXIT_ON_FAILURE = True
class ContinuableApocalypseException(RuntimeError):
ROBOT_CONTINUE_ON_FAILURE = True
def exit_on_failure():
raise FatalCatastrophyException()
def raise_continuable_failure(msg='Can be continued'):
raise ContinuableApocalypseE... | ajibawa-2023/Python-Code-Large/train/row_88683 | 6 | 11 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88683:ClassDef_L1_C0", "label": "FatalCatastrophyException", "type": "class", "loc": [1, 2], "level": 0, "parent": null, "vector": [3, 0, 0.1364, 0.1818, 0, 0.66, 0.0, 572, 0, 0, 0, 0, 178, 0, 0], "semantic": {"name": "FatalCatastrophyException", "arg_names": [], "impor... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88683:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88683:Assign_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88683:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88683:Assign_L5_C4"}] |
class _BaseDynamicLibrary(object):
def get_keyword_names(self):
return []
def run_keyword(self, name, *args):
return None
class StaticDocsLib(_BaseDynamicLibrary):
"""This is lib intro."""
def __init__(self, some=None, args=[]):
"""Init doc."""
class DynamicDocsLib(_BaseDynam... | ajibawa-2023/Python-Code-Large/train/row_88684 | 32 | 41 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88684:ClassDef_L1_C0", "label": "_BaseDynamicLibrary", "type": "class", "loc": [1, 7], "level": 0, "parent": null, "vector": [3, 0, 0.0976, 0.1707, 0, 0.66, 0.0, 914, 0, 2, 0, 0, 186, 0, 0], "semantic": {"name": "_BaseDynamicLibrary", "arg_names": [], "import_names": []... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88684:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88684:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88684:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88684:Return_L4_C8"}, {"f": "ajibawa-2023/Python-Code... |
ROBOT_LIBRARY_SCOPE = 'Test Suite' # this should be ignored
__version__ = 'test' # this should be used as version of this library
def passing():
pass
def failing():
raise AssertionError('This is a failing keyword from module library')
def logging():
print 'Hello from module library'
print '*WARN* ... | ajibawa-2023/Python-Code-Large/train/row_88685 | 27 | 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_88685:Assign_L1_C0", "label": "ROBOT_LIBRARY_SCOPE =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.0185, 0.0185, 0, 0.66, 0.0, 305, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "ROBOT_LIBRARY_SCOPE", "arg_names": [], "import... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88685:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88685:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88685:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88685:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
import os
import re
from robot import utils
from robot.result.resultbuilder import ExecutionResultBuilder
from robot.result.executionresult import Result
from robot.result.testsuite import TestSuite
from robot.result.testcase import TestCase
from robot.result.keyword import Keyword
from robot.libraries.BuiltIn import ... | ajibawa-2023/Python-Code-Large/train/row_88687 | 144 | 211 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88687:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0047, 0.0047, 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_88687:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88687:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88687:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88687:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
message_list = [ u'Circle is 360\u00B0',
u'Hyv\u00E4\u00E4 \u00FC\u00F6t\u00E4',
u'\u0989\u09C4 \u09F0 \u09FA \u099F \u09EB \u09EA \u09B9' ]
message1 = message_list[0]
message2 = message_list[1]
message3 = message_list[2]
messages = ', '.join(message_list)
sect = unichr(167)
auml = unic... | ajibawa-2023/Python-Code-Large/train/row_88688 | 10 | 15 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88688:Assign_L1_C0", "label": "message_list =", "type": "assigned_variable", "loc": [1, 3], "level": 0, "parent": null, "vector": [14, 0, 0.1333, 0.2, 0, 0.66, 0.0, 656, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "message_list", "arg_names": [], "import_names": [], "rhs... | [] |
from os.path import abspath, dirname, join
import os
import tempfile
import robot
__all__ = ['ROBOTPATH', 'JAVATEMPDIR', 'ROBOT_VERSION', 'DATADIR', 'WINDOWS']
ROBOTPATH = dirname(abspath(robot.__file__))
JAVATEMPDIR = tempfile.gettempdir() # Used to be different on OSX and elsewhere
ROBOT_VERSION = robot.version.get... | ajibawa-2023/Python-Code-Large/train/row_88689 | 10 | 12 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88689:ImportFrom_L1_C0", "label": "from os.path import abspath, dirname, join", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0833, 0.0833, 0, 0.66, 0.0, 79, 0, 3, 0, 0, 79, 0, 0], "semantic": {"name": "os.path", "arg_names": [], "impor... | [] |
import os
import sys
from stat import S_IREAD, S_IWRITE
class TestHelper:
def set_read_only(self, path):
os.chmod(path, S_IREAD)
def set_read_write(self, path):
os.chmod(path, S_IREAD | S_IWRITE)
def get_output_name(self, *datasources):
if not datasources:
raise Runt... | ajibawa-2023/Python-Code-Large/train/row_88690 | 21 | 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_88690:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0323, 0.0323, 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_88690:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88690:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88690:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88690:Expr_L9_C8"}, {"f": "ajibawa-2023/Python-Code-L... |
#!/usr/bin/env python
"""Script to generate atest runners based on data files.
Usage: %s path/to/data.file
"""
from __future__ import with_statement
from os.path import abspath, basename, dirname, exists, join
import os
import sys
if len(sys.argv) != 2:
print __doc__ % basename(sys.argv[0])
sys.exit(1)
IN... | ajibawa-2023/Python-Code-Large/train/row_88691 | 28 | 50 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88691:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 6], "level": 0, "parent": null, "vector": [8, 0, 0.09, 0.08, 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_88691:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88691:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88691:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88691:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_886... |
#!/usr/bin/env python
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless req... | ajibawa-2023/Python-Code-Large/train/row_88692 | 35 | 171 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88692:Assign_L17_C0", "label": "USAGE =", "type": "assigned_variable", "loc": [17, 103], "level": 0, "parent": null, "vector": [14, 0, 0.3509, 0.5088, 0, 0.66, 0.0, 952, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "USAGE", "arg_names": [], "import_names": [], "rhs_call_n... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88692:If_L110_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88692:Import_L111_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88692:ClassDef_L118_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88692:FunctionDef_L120_C4"}, {"f": "ajibawa-2023/Python-Code-... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | ajibawa-2023/Python-Code-Large/train/row_88693 | 11 | 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_88693:Import_L15_C0", "label": "os import os", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.5172, 0.0345, 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_88693:If_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88693:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88693:If_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88693:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/trai... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88695 | 195 | 315 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88695:ImportFrom_L15_C0", "label": "from __future__ import with_statement", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.0476, 0.0032, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "im... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88695:If_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88695:ImportFrom_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88695:If_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88695:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88696 | 127 | 184 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88696:ClassDef_L15_C0", "label": "SuiteRunErrors", "type": "class", "loc": [15, 120], "level": 0, "parent": null, "vector": [3, 0, 0.3668, 0.5761, 0, 0.66, 0.0, 239, 0, 17, 0, 0, 186, 0, 18], "semantic": {"name": "SuiteRunErrors", "arg_names": [], "import_names": [], "r... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88696:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88696:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88696:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88696:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88698 | 26 | 59 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88698:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2542, 0.0169, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88698:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88698:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88698:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88698:FunctionDef_L31_C4"}, {"f": "ajibawa-2023/Python-Code-... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88700 | 17 | 41 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88700:ImportFrom_L15_C0", "label": "from signal import setitimer, signal, SIGALRM\u2026", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.3659, 0.0244, 0, 0.66, 0.0, 621, 0, 4, 0, 0, 621, 0, 0], "semantic": {"name": "signal", "arg_names... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88700:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88700:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88700:FunctionDef_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88700:Assign_L23_C8"}, {"f": "ajibawa-2023/Python-... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88701 | 35 | 70 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88701:Import_L15_C0", "label": "ctypes import ctypes", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2143, 0.0143, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["ctypes"], ... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88701:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88701:FunctionDef_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88701:FunctionDef_L25_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88701:Assign_L26_C8"}, {"f": "ajibawa-2023/Python-... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88703 | 74 | 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_88703:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1172, 0.0078, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88703:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88703:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88703:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88703:If_L24_C8"}, {"f": "ajibawa-2023/Python-Code... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | ajibawa-2023/Python-Code-Large/train/row_88704 | 42 | 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_88704:ImportFrom_L16_C0", "label": "from fixture import Setup, Teardown", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2319, 0.0145, 0, 0.66, 0.0, 458, 0, 2, 0, 0, 458, 0, 0], "semantic": {"name": "fixture", "arg_names": [], "import_... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88704:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88704:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88704:FunctionDef_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88704:Assign_L23_C8"}, {"f": "ajibawa-2023/Python-... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88705 | 324 | 484 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88705:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.031, 0.0021, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_nam... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88705:If_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88705:ImportFrom_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88705:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88705:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88706 | 24 | 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_88706:Import_L16_C0", "label": "inspect import inspect", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.32, 0.02, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "inspect", "arg_names": [], "import_names": ["inspect"], ... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88706:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88706:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88706:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88706:Assign_L24_C8"}, {"f": "ajibawa-2023/Python-... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88709 | 20 | 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_88709:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 22], "level": 0, "parent": null, "vector": [8, 0, 0.3776, 0.1633, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88709:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88709:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88709:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88709:ImportFrom_L36_C4"}, {"f": "ajibawa-2023/Python-... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88710 | 63 | 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_88710:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0095, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88710:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88710:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88710:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88710:Assign_L22_C8"}, {"f": "ajibawa-2023/Python-... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88711 | 84 | 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_88711:ImportFrom_L15_C0", "label": "from robot.errors import DataError", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1034, 0.0069, 0, 0.66, 0.0, 299, 0, 1, 0, 0, 299, 0, 0], "semantic": {"name": "robot.errors", "arg_names": [], "imp... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88711:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88711:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88711:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88711:Assign_L22_C8"}, {"f": "ajibawa-2023/Python-... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88713 | 82 | 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_88713:Import_L15_C0", "label": "os.path import os.path", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1163, 0.0078, 0, 0.66, 0.0, 79, 0, 1, 0, 0, 79, 0, 0], "semantic": {"name": "os.path", "arg_names": [], "import_names": ["os.path"]... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88713:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88713:FunctionDef_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88713:FunctionDef_L28_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88713:Assign_L29_C8"}, {"f": "ajibawa-2023/Python-... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88714 | 238 | 361 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88714:ImportFrom_L15_C0", "label": "from __future__ import with_statement", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.0416, 0.0028, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "im... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88714:If_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88714:ImportFrom_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88714:If_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88714:ImportFrom_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88716 | 87 | 134 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88716:ClassDef_L16_C0", "label": "VariableSplitter", "type": "class", "loc": [16, 134], "level": 0, "parent": null, "vector": [3, 0, 0.5597, 0.8881, 0, 0.66, 0.0, 73, 0, 15, 0, 0, 0, 0, 29], "semantic": {"name": "VariableSplitter", "arg_names": [], "import_names": [], "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88716:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88716:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88716:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88716:Assign_L19_C8"}, {"f": "ajibawa-2023/Python-... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88717 | 105 | 163 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88717:Import_L15_C0", "label": "re import re", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.092, 0.0061, 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_88717:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88717:Assign_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88717:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88717:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Cod... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88719 | 9 | 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_88719:FunctionDef_L16_C0", "label": "is_var", "type": "function", "loc": [16, 21], "level": 0, "parent": null, "vector": [2, 0, 0.6379, 0.2069, 0, 0.66, 0.0, 481, 0, 1, 1, 0, 0, 0, 4], "semantic": {"name": "is_var", "arg_names": ["string"], "import_names": [], "rhs_call... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88719:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88719:If_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88719:If_L17_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88719:Return_L18_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88720 | 27 | 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_88720:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.2329, 0.0685, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88720:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88720:Expr_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88720:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88720:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88721 | 20 | 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_88721:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.3, 0.02, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88721:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88721:If_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88721:If_L25_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88721:Expr_L26_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88722 | 39 | 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_88722:Import_L15_C0", "label": "itertools import itertools", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2419, 0.0161, 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_88722:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88722:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88722:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88722:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88723 | 96 | 152 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88723:Import_L15_C0", "label": "re import re", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.0987, 0.0066, 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_88723:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88723:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88723:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88723:FunctionDef_L25_C4"}, {"f": "ajibawa-2023/Python-Cod... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88724 | 2 | 70 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88724:Assign_L15_C0", "label": "TEMPLATE_START =", "type": "assigned_variable", "loc": [15, 67], "level": 0, "parent": null, "vector": [14, 0, 0.5857, 0.7571, 0, 0.66, 0.0, 986, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "TEMPLATE_START", "arg_names": [], "import_names"... | [] |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88725 | 33 | 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_88725:ClassDef_L16_C0", "label": "DataExtractor", "type": "class", "loc": [16, 56], "level": 0, "parent": null, "vector": [3, 0, 0.6429, 0.7321, 0, 0.66, 0.0, 225, 0, 7, 0, 0, 186, 0, 15], "semantic": {"name": "DataExtractor", "arg_names": [], "import_names": [], "rhs_c... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88725:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88725:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88725:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88725:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88726 | 2 | 22 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88726:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 20], "level": 0, "parent": null, "vector": [8, 0, 0.7955, 0.2727, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno... | [] |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88727 | 77 | 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_88727:Import_L15_C0", "label": "re import re", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1163, 0.0078, 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_88727:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88727:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88727:FunctionDef_L24_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88727:Assign_L25_C8"}, {"f": "ajibawa-2023/Python-... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88728 | 52 | 122 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88728:ImportFrom_L15_C0", "label": "from __future__ import with_statement", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.123, 0.0082, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "imp... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88728:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88728:Expr_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88728:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88728:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88729 | 25 | 54 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88729:ImportFrom_L15_C0", "label": "from dataextractor import DataExtractor", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2778, 0.0185, 0, 0.66, 0.0, 701, 0, 1, 0, 0, 701, 0, 0], "semantic": {"name": "dataextractor", "arg_names": []... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88729:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88729:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88729:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88729:Assign_L21_C8"}, {"f": "ajibawa-2023/Python-... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88730 | 86 | 148 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88730:Try_L15_C0", "label": "try", "type": "try", "loc": [15, 19], "level": 0, "parent": null, "vector": [7, 0, 0.1149, 0.0338, 0, 0.66, 0.0, 0, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ""}, "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88730:Try_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88730:Import_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88730:Try_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88730:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88731 | 29 | 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_88731:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2632, 0.0175, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88731:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88731:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88731:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88731:Return_L29_C4"}, {"f": "ajibawa-2023/Python-Code... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88732 | 52 | 85 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88732:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1765, 0.0118, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88732:If_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88732:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88732:If_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88732:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88733 | 123 | 198 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88733:Import_L15_C0", "label": "re import re", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.0758, 0.0051, 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_88733:If_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88733:ImportFrom_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88733:If_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88733:ImportFrom_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88734 | 21 | 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_88734:Import_L15_C0", "label": "base64 import base64", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.3, 0.02, 0, 0.66, 0.0, 177, 0, 1, 0, 0, 177, 0, 0], "semantic": {"name": "base64", "arg_names": [], "import_names": ["base64"], "rhs_... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88734:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88734:Return_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88734:If_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88734:Import_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88735 | 54 | 107 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88735:Import_L15_C0", "label": "os import os", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1402, 0.0093, 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_88735:If_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88735:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88735:If_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88735:Try_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88736 | 51 | 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_88736:Import_L15_C0", "label": "os import os", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.15, 0.01, 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_88736:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88736:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88736:FunctionDef_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88736:Expr_L23_C8"}, {"f": "ajibawa-2023/Python-Co... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88737 | 65 | 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_88737:ImportFrom_L15_C0", "label": "from unic import unic", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.15, 0.01, 0, 0.66, 0.0, 992, 0, 1, 0, 0, 992, 0, 0], "semantic": {"name": "unic", "arg_names": [], "import_names": ["unic"], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88737:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88737:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88737:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88737:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Co... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88738 | 41 | 87 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88738:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1724, 0.0115, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88738:If_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88738:Try_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88738:Try_L24_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88738:ImportFrom_L25_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/r... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88740 | 240 | 391 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88740:Import_L15_C0", "label": "time import time", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.0384, 0.0026, 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_88740:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88740:If_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88740:If_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88740:Assign_L24_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88741 | 34 | 66 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88741:Import_L15_C0", "label": "re import re", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2273, 0.0152, 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_88741:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88741:If_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88741:If_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88741:Return_L24_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88744 | 55 | 104 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88744:Import_L15_C0", "label": "inspect import inspect", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1442, 0.0096, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "inspect", "arg_names": [], "import_names": ["inspect... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88744:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88744:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88744:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88744:If_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88745 | 16 | 138 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88745:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 30], "level": 0, "parent": null, "vector": [8, 0, 0.163, 0.1159, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88745:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88745:Assign_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88745:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88745:If_L34_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88746 | 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_88746:Import_L15_C0", "label": "os import os", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.0133, 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_88746:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88746:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88746:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88746:If_L24_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88747 | 19 | 47 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_88747:Import_L15_C0", "label": "re import re", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.3191, 0.0213, 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_88747:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88747:Return_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88747:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88747:Return_L32_C4"}, {"f": "ajibawa-2023/Python-Co... |
# Copyright 2008-2012 Nokia Siemens Networks Oyj
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | ajibawa-2023/Python-Code-Large/train/row_88748 | 32 | 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_88748:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2027, 0.0135, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_88748:If_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88748:ImportFrom_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88748:If_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88748:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.