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
# @mark.steps # ---------------------------------------------------------------------------- # STEPS: # ---------------------------------------------------------------------------- from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.common.by import By from selenium.webdriver.support.u...
ajibawa-2023/Python-Code-Large/train/row_1866
41
67
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1866:ImportFrom_L5_C0", "label": "from selenium.common.exceptions import NoSuchElementException", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0746, 0.0149, 0, 0.66, 0.0, 844, 0, 1, 0, 0, 844, 0, 0], "semantic": {"name": "selenium.comm...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1866:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1866:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1866:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1866:Try_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
import os import sys import signal import subprocess from selenium import webdriver def before_all(context): # NOTE: you can change to whatever driver you want, I use Firefox as a demo context.browser = webdriver.Firefox() # start the app engine server # make sure dev_appserver.py is in your PATH ...
ajibawa-2023/Python-Code-Large/train/row_1867
21
35
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1867:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0286, 0.0286, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1867:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1867:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1867:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1867:If_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/env python import os import urllib from google.appengine.api import users from google.appengine.ext import ndb import jinja2 import webapp2 JINJA_ENVIRONMENT = jinja2.Environment( loader=jinja2.FileSystemLoader(os.path.dirname(__file__)), extensions=['jinja2.ext.autoescape'], autoescape=True) ...
ajibawa-2023/Python-Code-Large/train/row_1868
45
126
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1868:Import_L2_C0", "label": "os import os", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0159, 0.0079, 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_1868:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1868:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1868:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1868:Return_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
__author__ = 'wlee' import Pycluster import random from collections import deque import numpy import math checkins = open('Brightkite_totalCheckins.txt','rb') kmlstatement=[] geos=[] geo_avgs=dict() id=0 count = 0 valid_ids =[] write_valid_ids = open('valid_ids2.txt','wb') us_num = 0 def check_simila...
ajibawa-2023/Python-Code-Large/train/row_1869
97
169
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1869:Assign_L1_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.0059, 0.0059, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs_c...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1869:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1869:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1869:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1869:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-L...
''' Created on Dec 7, 2011 @author: jeongjin ''' import os import random #src_path = "./" src_path = "/Users/jeongjin/Dropbox/224w/data/AgraphTestData/" label_path = "" label_file = None feature_file_dct = {} result_size = 500000 result_file_name = src_path+"data_"+str(result_size)+".csv" for filename in os.listd...
ajibawa-2023/Python-Code-Large/train/row_1870
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_1870:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0484, 0.0806, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1870:For_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1870:If_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1870:If_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1870:Assign_L21_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1870:I...
import re __author__ = 'N Tech2' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ...
ajibawa-2023/Python-Code-Large/train/row_1871
515
910
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1871:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0011, 0.0011, 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_1871:ClassDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1871:Assign_L51_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1871:ClassDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1871:Assign_L52_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr>...
ajibawa-2023/Python-Code-Large/train/row_1872
621
1,114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1872:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0009, 0.0009, 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_1872:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1872:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1872:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1872:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr>...
ajibawa-2023/Python-Code-Large/train/row_1873
625
1,116
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1873:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0009, 0.0009, 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_1873:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1873:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1873:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1873:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr>...
ajibawa-2023/Python-Code-Large/train/row_1875
651
1,233
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1875:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0008, 0.0008, 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_1875:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1875:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1875:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1875:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr>...
ajibawa-2023/Python-Code-Large/train/row_1876
643
1,214
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1876:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0008, 0.0008, 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_1876:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1876:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1876:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1876:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr>...
ajibawa-2023/Python-Code-Large/train/row_1877
484
905
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1877:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0011, 0.0011, 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_1877:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1877:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1877:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1877:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr>...
ajibawa-2023/Python-Code-Large/train/row_1878
628
1,239
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1878:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0008, 0.0008, 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_1878:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1878:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1878:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1878:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr>...
ajibawa-2023/Python-Code-Large/train/row_1880
606
1,183
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1880:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0008, 0.0008, 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_1880:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1880:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1880:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1880:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr>...
ajibawa-2023/Python-Code-Large/train/row_1881
616
1,195
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1881:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0008, 0.0008, 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_1881:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1881:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1881:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1881:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import re __author__ = 'YeeHin Kwok' """ MicroCompiler <program> ::= program <id>; declare declareList; { StmtList} <declareList> ::= varDeclare {, varDeclare}; <varDeclare> ::= idsym [ = number | "[" number "]" <stmt> ::= variable( = expression | parameter) | <printStmt...
ajibawa-2023/Python-Code-Large/train/row_1883
623
1,186
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1883:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0008, 0.0008, 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_1883:ClassDef_L61_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1883:Assign_L63_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1883:ClassDef_L61_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1883:Assign_L64_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr>...
ajibawa-2023/Python-Code-Large/train/row_1884
641
1,137
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1884:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0009, 0.0009, 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_1884:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1884:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1884:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1884:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <varDeclare > <stmtlist> } <varDeclare> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <exp...
ajibawa-2023/Python-Code-Large/train/row_1885
625
1,237
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1885:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0008, 0.0008, 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_1885:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1885:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1885:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1885:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import re __author__ = 'YeeHin Kwok' """ MicroCompiler <program> ::= program <id>; declare declareList; { StmtList} <declareList> ::= varDeclare {, varDeclare}; <varDeclare> ::= idsym [ = number | "[" number "]" <stmt> ::= variable( = expression | parameter) | <printStmt...
ajibawa-2023/Python-Code-Large/train/row_1886
625
1,186
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1886:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0008, 0.0008, 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_1886:ClassDef_L61_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1886:Assign_L63_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1886:ClassDef_L61_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1886:Assign_L64_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import re __author__ = 'YeeHin Kwok' """ MicroCompiler <program> ::= program <id>; declare declareList; { StmtList} <declareList> ::= varDeclare {, varDeclare}; <varDeclare> ::= idsym [ = number | "[" number "]" <stmt> ::= variable( = expression | parameter) | <printStmt...
ajibawa-2023/Python-Code-Large/train/row_1887
646
1,227
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1887:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0008, 0.0008, 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_1887:ClassDef_L61_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1887:Assign_L63_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1887:ClassDef_L61_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1887:Assign_L64_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
''' Created on Jun 16, 2014 @author: Brian ''' #filename:Lexer.py import sys flag=0 keyword=[] keyword.extend(['program','var','begin','end','integer','if','then', 'else','while','do','read','write','procedure','function']) simpleword='+-*/,;()[]' doubleword='><=!:' filename=raw_input('Please input the so...
ajibawa-2023/Python-Code-Large/train/row_1889
66
77
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1889:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.039, 0.0649, 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_1889:Try_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1889:Assign_L16_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1889:Try_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1889:Expr_L18_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_188...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
ajibawa-2023/Python-Code-Large/train/row_1890
206
440
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1890:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0193, 0.0273, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1890:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1890:Assign_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1890:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1890:Assign_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
ajibawa-2023/Python-Code-Large/train/row_1892
403
695
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1892:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0122, 0.0173, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1892:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1892:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1892:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1892:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
ajibawa-2023/Python-Code-Large/train/row_1894
325
613
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1894:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0139, 0.0196, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1894:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1894:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1894:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1894:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
ajibawa-2023/Python-Code-Large/train/row_1895
315
592
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1895:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0144, 0.0203, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1895:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1895:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1895:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1895:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
ajibawa-2023/Python-Code-Large/train/row_1896
458
736
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1896:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0115, 0.0163, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1896:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1896:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1896:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1896:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
ajibawa-2023/Python-Code-Large/train/row_1897
291
559
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1897:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0152, 0.0215, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1897:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1897:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1897:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1897:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
''' Created on Jun 23, 2014 @author: Brian ''' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr>...
ajibawa-2023/Python-Code-Large/train/row_1898
375
668
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1898:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0045, 0.0075, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1898:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1898:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1898:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1898:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
ajibawa-2023/Python-Code-Large/train/row_1899
314
597
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1899:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0142, 0.0201, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1899:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1899:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1899:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1899:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
ajibawa-2023/Python-Code-Large/train/row_1900
312
589
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1900:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0144, 0.0204, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1900:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1900:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1900:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1900:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
ajibawa-2023/Python-Code-Large/train/row_1901
322
612
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1901:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0139, 0.0196, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1901:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1901:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1901:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1901:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
ajibawa-2023/Python-Code-Large/train/row_1902
297
578
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1902:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0147, 0.0208, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1902:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1902:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1902:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1902:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
ajibawa-2023/Python-Code-Large/train/row_1903
315
606
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1903:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 14], "level": 0, "parent": null, "vector": [8, 0, 0.014, 0.0198, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1903:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1903:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1903:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1903:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
ajibawa-2023/Python-Code-Large/train/row_1904
335
645
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1904:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0132, 0.0186, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1904:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1904:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1904:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1904:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr> <expr> ::= <factor> { (+ | -)...
ajibawa-2023/Python-Code-Large/train/row_1905
458
736
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1905:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0115, 0.0163, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1905:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1905:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1905:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1905:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
''' Created on Jun 23, 2014 @author: Brian ''' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr>...
ajibawa-2023/Python-Code-Large/train/row_1906
538
936
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1906:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0032, 0.0053, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1906:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1906:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1906:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1906:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
''' Created on Jun 23, 2014 @author: Brian ''' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr>...
ajibawa-2023/Python-Code-Large/train/row_1907
575
933
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1907:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0032, 0.0054, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1907:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1907:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1907:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1907:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
''' Created on Jun 23, 2014 @author: Brian ''' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr>...
ajibawa-2023/Python-Code-Large/train/row_1908
544
896
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1908:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0033, 0.0056, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1908:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1908:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1908:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1908:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
''' Created on Jun 23, 2014 @author: Brian ''' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr>...
ajibawa-2023/Python-Code-Large/train/row_1909
594
944
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1909:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0032, 0.0053, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1909:ClassDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1909:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1909:ClassDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1909:Assign_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
''' Created on Jun 23, 2014 @author: Brian ''' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <vars > <stmtlist> } <vars> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <expr>...
ajibawa-2023/Python-Code-Large/train/row_1910
582
947
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1910:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0032, 0.0053, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1910:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1910:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1910:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1910:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import re __author__ = 'YeeHin Kwok' """ Giovanni's MicroCompiler Demo <program> ::= { <id> ; <varDeclare > <stmtlist> } <varDeclare> ::= V { <id> ; } % DECLARATIONS <stmtlist> ::= <stmt> { ; <stmt> } <stmt> ::= P <id> | <id> = <exp...
ajibawa-2023/Python-Code-Large/train/row_1911
596
1,208
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1911:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0008, 0.0008, 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_1911:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1911:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1911:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1911:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import math def sieve_of_atkin(limit): results = [2, 3, 5] sieve = [False]*(limit+1) factor = int(math.sqrt(limit))+1 for i in range(1, factor): for j in range(1, factor): n = 4*i**2+j**2 if (n <= limit) and (n % 12 == 1 or n % 12 == 5): sieve...
ajibawa-2023/Python-Code-Large/train/row_1912
25
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1912:Import_L1_C0", "label": "math import math", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.037, 0.037, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["math"], "rhs_call_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1912:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1912:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1912:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1912:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
import struct import Atkin import random from array import array class MyException (Exception): pass #m = 11*19 # large primes should be used #xi = 0 ''' def eratosthenes(n): multiples = [] primes1 = [] for i in range(2, n+1): if i not in multiples: primes1.append...
ajibawa-2023/Python-Code-Large/train/row_1913
32
97
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1913:Import_L1_C0", "label": "struct import struct", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0103, 0.0103, 0, 0.66, 0.0, 399, 0, 1, 0, 0, 399, 0, 0], "semantic": {"name": "struct", "arg_names": [], "import_names": ["struct"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1913:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1913:Assign_L51_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1913:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1913:While_L52_C8"}, {"f": "ajibawa-2023/Python-Code-La...
import math """" int CACHE = 30000; // размер кэша int M = (int)Math.sqrt(N)+1; int primes = new int[P]; // массив простых чисел до корня из N boolean segment = new boolean[CACHE]; // вторичное решето for (int I=M-1; I < N; I+=CACHE) { Arrays.fill(segment, true); for (int i= 0; i < P; i++) {...
ajibawa-2023/Python-Code-Large/train/row_1914
23
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_1914:Import_L1_C0", "label": "math import math", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0145, 0.0145, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["math"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1914:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1914:If_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1914:If_L26_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_1914:Return_L26_C14"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
ajibawa-2023/Python-Code-Large/train/row_1915
38
74
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1915:Import_L26_C0", "label": "os import os", "type": "import", "loc": [26, 26], "level": 0, "parent": null, "vector": [1, 0, 0.3514, 0.0135, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1915:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1915:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1915:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1915:For_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python2.6 # # Simple http server to emulate api.playfoursquare.com import logging import shutil import sys import urlparse import SimpleHTTPServer import BaseHTTPServer class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """Handle playfoursquare.com requests, for testing.""" def do_GET(self...
ajibawa-2023/Python-Code-Large/train/row_1916
63
85
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1916:Import_L5_C0", "label": "logging import logging", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0588, 0.0118, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1916:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1916:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1916:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1916:FunctionDef_L17_C2"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
ajibawa-2023/Python-Code-Large/train/row_1917
20
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1917:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.037, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1917:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1917:Assign_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1917:For_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1917:Assign_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_19...
#!/usr/bin/python """ Pull a oAuth protected page from foursquare. Expects ~/.oget to contain (one on each line): CONSUMER_KEY CONSUMER_KEY_SECRET USERNAME PASSWORD Don't forget to chmod 600 the file! """ import httplib import os import re import sys import urllib import urllib2 import urlparse import user from xml....
ajibawa-2023/Python-Code-Large/train/row_1918
50
111
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1918:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0631, 0.0991, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1918:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1918:Return_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1918:FunctionDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1918:Assign_L57_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python import datetime import sys import textwrap import common from xml.dom import pulldom PARSER = """\ /** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquare.parsers; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joel...
ajibawa-2023/Python-Code-Large/train/row_1919
42
149
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1919:Import_L3_C0", "label": "datetime import datetime", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0201, 0.0067, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["datetime...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1919:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1919:Assign_L83_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1919:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1919:Expr_L85_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python import logging from xml.dom import minidom from xml.dom import pulldom BOOLEAN = "boolean" STRING = "String" GROUP = "Group" # Interfaces that all FoursquareTypes implement. DEFAULT_INTERFACES = ['FoursquareType'] # Interfaces that specific FoursqureTypes implement. INTERFACES = { } DEFAULT_CLA...
ajibawa-2023/Python-Code-Large/train/row_1920
44
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1920:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0263, 0.0088, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1920:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1920:Expr_L60_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1920:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1920:Assign_L71_C2"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python import cgi import cgitb cgitb.enable() import os print "Content-Type: text/html\n" print "<html>" print "<head><title>Quad 20 in CGI" print "</title></head>" print "<body>" for e in range(1,21): print str(e*e)+'</br>' print "</body></html>"
ajibawa-2023/Python-Code-Large/train/row_1921
12
14
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1921:Import_L3_C0", "label": "cgi import cgi", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.2143, 0.0714, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1921:For_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1921:Expr_L13_C1"}]
#!/usr/bin/python print "Content-Type: text/html\n" import os, random, cgi, cgitb cgitb.enable() i = 0 c=0 richtig = 0 erg = 0 a= random.randint(1,11) b= random.randint(1,11) form = cgi.FieldStorage() if "i" in form: i = int(form["i"].value) if "erg" in form: erg = int(form["erg"].value) if "c" in form: c = int(form["...
ajibawa-2023/Python-Code-Large/train/row_1922
40
46
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1922:Expr_L3_C0", "label": "print()", "type": "expression", "loc": [3, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0652, 0.0217, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1922:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1922:Assign_L13_C16"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1922:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1922:Assign_L14_C18"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1...
#!/usr/bin/python print "Content-Type: text/html\n" import os l = os.environ["HTTP_ACCEPT_LANGUAGE"].split(";") if "en" in l[0]: print "Hello World" else: print "Hallo Welt"
ajibawa-2023/Python-Code-Large/train/row_1923
6
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_1923:Expr_L3_C0", "label": "print()", "type": "expression", "loc": [3, 3], "level": 0, "parent": null, "vector": [8, 0, 0.25, 0.0833, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", "a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1923:If_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1923:Expr_L9_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1923:If_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1923:Expr_L11_C1"}]
#!/usr/bin/python print "Content-Type: text/html\n" import os, random, cgi, cgitb cgitb.enable() i = 0 c=0 richtig = 0 erg = 0 a= random.randint(1,11) b= random.randint(1,11) form = cgi.FieldStorage() if "i" in form: i = int(form["i"].value) if "erg" in form: erg = int(form["erg"].value) if "c" in form: c = int(form["...
ajibawa-2023/Python-Code-Large/train/row_1924
40
46
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1924:Expr_L3_C0", "label": "print()", "type": "expression", "loc": [3, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0652, 0.0217, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1924:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1924:Assign_L13_C16"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1924:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1924:Assign_L14_C18"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1...
#!/usr/bin/python print "Content-Type: text/html\n" import cgi import cgitb cgitb.enable() import os form = cgi.FieldStorage() n = 20 if "n" in form: n = form["n"].value print "<html>" print "<head><title>n Quadratzahlen" print "</title></head>" print "<body>" for e in range(1,int(n)+1): print str(e*e)+'</br>' pri...
ajibawa-2023/Python-Code-Large/train/row_1925
16
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1925:Expr_L2_C0", "label": "print()", "type": "expression", "loc": [2, 2], "level": 0, "parent": null, "vector": [8, 0, 0.1, 0.05, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1925:If_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1925:Assign_L10_C16"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1925:For_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1925:Expr_L19_C1"}]
#!/usr/bin/python print "Content-Type: text/html\n" import os, sys, random directory = "/usr/share/games/fortunes/" l = os.listdir(directory) b = [] for e in l: if ".u8" not in e and ".dat" not in e and "de" not in e: b.append(e) s = "" for e in b: f = open(directory+e) s+=f.read() f.close() ...
ajibawa-2023/Python-Code-Large/train/row_1926
35
48
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1926:Expr_L3_C0", "label": "print()", "type": "expression", "loc": [3, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0625, 0.0208, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1926:For_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1926:If_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1926:If_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1926:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1926:For_...
#!/usr/bin/python print "Content-Type: text/html\n" print "<html>" print "<head><title>Hallo CGI-Python" print "</title></head>" print "<body>" print "Hello CGI Python" print "</body></html>"
ajibawa-2023/Python-Code-Large/train/row_1927
7
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_1927:Expr_L2_C0", "label": "print()", "type": "expression", "loc": [2, 2], "level": 0, "parent": null, "vector": [8, 0, 0.2222, 0.1111, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", ...
[]
#!/usr/bin/python import cgi import cgitb cgitb.enable() import os print "Content-Type: text/html\n" print "<html>" print "<head><title>Quad 20 in CGI" print "</title></head>" print "<body>" for e in range(1,21): print str(e*e)+'</br>' print "</body></html>"
ajibawa-2023/Python-Code-Large/train/row_1928
12
14
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1928:Import_L3_C0", "label": "cgi import cgi", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.2143, 0.0714, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1928:For_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1928:Expr_L13_C1"}]
#!/usr/bin/python print "Content-Type: text/html\n" print "Hallo CGI-Welt"
ajibawa-2023/Python-Code-Large/train/row_1929
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_1929:Expr_L2_C0", "label": "print()", "type": "expression", "loc": [2, 2], "level": 0, "parent": null, "vector": [8, 0, 0.5, 0.25, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", "anno...
[]
#!/usr/bin/python print "Content-Type: text/html\n" import os l = os.environ["HTTP_ACCEPT_LANGUAGE"].split(";") if "en" in l[0]: print "Hello World" else: print "Hallo Welt"
ajibawa-2023/Python-Code-Large/train/row_1930
6
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_1930:Expr_L3_C0", "label": "print()", "type": "expression", "loc": [3, 3], "level": 0, "parent": null, "vector": [8, 0, 0.25, 0.0833, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", "a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1930:If_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1930:Expr_L9_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1930:If_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1930:Expr_L11_C1"}]
#!/usr/bin/python print "Content-Type: text/html\n" import os for key in os.environ: print key, "=" print os.environ[key], "<br />" if os.environ.has_key("QUERY_STRING"): print os.environ["QUERY_STRING"]
ajibawa-2023/Python-Code-Large/train/row_1931
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_1931:Expr_L3_C0", "label": "print()", "type": "expression", "loc": [3, 3], "level": 0, "parent": null, "vector": [8, 0, 0.25, 0.0833, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", "a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1931:For_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1931:Expr_L8_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1931:For_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1931:Expr_L9_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1931:If_L...
#!/usr/bin/python print "Content-Type: text/html\n" import os for key in os.environ: print key, "=" print os.environ[key], "<br />" if os.environ.has_key("QUERY_STRING"): print os.environ["QUERY_STRING"]
ajibawa-2023/Python-Code-Large/train/row_1932
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_1932:Expr_L3_C0", "label": "print()", "type": "expression", "loc": [3, 3], "level": 0, "parent": null, "vector": [8, 0, 0.25, 0.0833, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", "a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1932:For_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1932:Expr_L8_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1932:For_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1932:Expr_L9_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1932:If_L...
#!/usr/bin/python print "Content-Type: text/html\n" print "<html>" print "<head><title>Hallo CGI-Python" print "</title></head>" print "<body>" print "Hello CGI Python" print "</body></html>"
ajibawa-2023/Python-Code-Large/train/row_1933
7
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_1933:Expr_L2_C0", "label": "print()", "type": "expression", "loc": [2, 2], "level": 0, "parent": null, "vector": [8, 0, 0.2222, 0.1111, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", ...
[]
#!/usr/bin/python print "Content-Type: text/html\n" import cgi import cgitb cgitb.enable() import os form = cgi.FieldStorage() n = 20 if "n" in form: n = form["n"].value print "<html>" print "<head><title>n Quadratzahlen" print "</title></head>" print "<body>" for e in range(1,int(n)+1): print str(e*e)+'</br>' pri...
ajibawa-2023/Python-Code-Large/train/row_1934
16
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1934:Expr_L2_C0", "label": "print()", "type": "expression", "loc": [2, 2], "level": 0, "parent": null, "vector": [8, 0, 0.1, 0.05, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1934:If_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1934:Assign_L10_C16"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1934:For_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1934:Expr_L19_C1"}]
#!/usr/bin/python print "Content-Type: text/html\n" print "Hallo CGI-Welt"
ajibawa-2023/Python-Code-Large/train/row_1935
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_1935:Expr_L2_C0", "label": "print()", "type": "expression", "loc": [2, 2], "level": 0, "parent": null, "vector": [8, 0, 0.5, 0.25, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", "anno...
[]
#!/usr/bin/python print "Content-Type: text/html\n" import os, sys, random directory = "/usr/share/games/fortunes/" l = os.listdir(directory) b = [] for e in l: if ".u8" not in e and ".dat" not in e and "de" not in e: b.append(e) s = "" for e in b: f = open(directory+e) s+=f.read() f.close() ...
ajibawa-2023/Python-Code-Large/train/row_1936
35
48
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1936:Expr_L3_C0", "label": "print()", "type": "expression", "loc": [3, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0625, 0.0208, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1936:For_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1936:If_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1936:If_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1936:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1936:For_...
#!/usr/bin/python import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<body>" for a in range(1,21): print str(a**2)+'<br/>' print "</body>" print "</html>"
ajibawa-2023/Python-Code-Large/train/row_1937
10
17
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1937:Import_L3_C0", "label": "cgi import cgi", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1765, 0.0588, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1937:For_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1937:Expr_L13_C4"}]
#!/usr/bin/python import cgi import cgitb import random cgitb.enable() form = cgi.FieldStorage() x = random.randint(1, 10) y = random.randint(1, 10) z = 0 erg = 0 right = 0 if form.has_key("Zaehler"): z = z + int(form["Zaehler"].value) z=z+1 if z < 4 : erg = x + y o = '+' else : erg = x * y o...
ajibawa-2023/Python-Code-Large/train/row_1938
41
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_1938:Import_L3_C0", "label": "cgi import cgi", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0508, 0.0169, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1938:If_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1938:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1938:If_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1938:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_193...
#!/usr/bin/python import os print "Content-Type: text/html\n" for key in os.environ: print key, "=" print os.environ[key], "<br />"
ajibawa-2023/Python-Code-Large/train/row_1939
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_1939:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.4286, 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": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1939:For_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1939:Expr_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1939:For_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1939:Expr_L7_C4"}]
#!/usr/bin/python import os import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<head><title>Hallo Tim</title></head>" print "<body>" if os.environ["HTTP_ACCEPT_LANGUAGE"][:2]=='en': print "Hello World!" else: print "Hallo Welt!" print "</body>" pri...
ajibawa-2023/Python-Code-Large/train/row_1940
13
18
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1940:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.0556, 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_1940:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1940:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1940:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1940:Expr_L16_C4"}]
#!/usr/bin/python import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<body>" form = cgi.FieldStorage() if form.has_key("n"): n = form.getvalue("n") for a in range(1,int(n)+1): print str(a**2)+'<br/>' else: n = 21 for a in range(1,n): ...
ajibawa-2023/Python-Code-Large/train/row_1941
16
28
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1941:Import_L3_C0", "label": "cgi import cgi", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1071, 0.0357, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1941:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1941:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1941:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1941:For_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1941:F...
#!/usr/bin/python import cgi import cgitb import fortune cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<body>" print "<head><title>Fortune</title></head>" form = cgi.FieldStorage() if form.has_key("m"): #m = form["m"].value //alternative m = form.getvalue("m") print fortune.ge...
ajibawa-2023/Python-Code-Large/train/row_1942
21
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_1942:Import_L3_C0", "label": "cgi import cgi", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0938, 0.0312, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1942:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1942:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1942:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1942:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1942:...
#!/usr/bin/python import cgi import cgitb import random cgitb.enable() form = cgi.FieldStorage() x = random.randint(1, 10) y = random.randint(1, 10) z = 0 erg = 0 right = 0 if form.has_key("Zaehler"): z = z + int(form["Zaehler"].value) z=z+1 if z < 4 : erg = x + y o = '+' else : erg = x * y o...
ajibawa-2023/Python-Code-Large/train/row_1943
41
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_1943:Import_L3_C0", "label": "cgi import cgi", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0508, 0.0169, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1943:If_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1943:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1943:If_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1943:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_194...
#!/usr/bin/python import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<body>" for a in range(1,21): print str(a**2)+'<br/>' print "</body>" print "</html>"
ajibawa-2023/Python-Code-Large/train/row_1944
10
17
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1944:Import_L3_C0", "label": "cgi import cgi", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1765, 0.0588, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1944:For_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1944:Expr_L13_C4"}]
#!/usr/bin/python import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<head><title>Hallo Tim</title></head>" print "<body>" print "Hallo Welt!" print "</body>" print "</html>"
ajibawa-2023/Python-Code-Large/train/row_1945
10
14
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1945:Import_L3_C0", "label": "cgi import cgi", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.2143, 0.0714, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name":...
[]
#!/usr/bin/python #-*-coding: utf-8-*- import os import sys import random import string def getRandomQuote(): files=os.listdir("/usr/share/games/fortune") files=[f for f in files if ".dat" not in f and ".u8" not in f] f=random.sample(files, 1) s=file("/usr/share/games/fortune/"+f[0]).read() quotes...
ajibawa-2023/Python-Code-Large/train/row_1946
27
42
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1946:Import_L4_C0", "label": "os import os", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0952, 0.0238, 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_1946:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1946:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1946:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1946:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python import os import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<head><title>Hallo Tim</title></head>" print "<body>" if os.environ["HTTP_ACCEPT_LANGUAGE"][:2]=='en': print "Hello World!" else: print "Hallo Welt!" print "</body>" pri...
ajibawa-2023/Python-Code-Large/train/row_1947
13
18
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1947:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.0556, 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_1947:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1947:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1947:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1947:Expr_L16_C4"}]
#!/usr/bin/python import os print "Content-Type: text/html\n" for key in os.environ: print key, "=" print os.environ[key], "<br />"
ajibawa-2023/Python-Code-Large/train/row_1948
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_1948:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.4286, 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": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1948:For_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1948:Expr_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1948:For_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1948:Expr_L7_C4"}]
#!/usr/bin/python #-*-coding: utf-8-*- import os import sys import random import string def getRandomQuote(): files=os.listdir("/usr/share/games/fortune") files=[f for f in files if ".dat" not in f and ".u8" not in f] f=random.sample(files, 1) s=file("/usr/share/games/fortune/"+f[0]).read() quotes...
ajibawa-2023/Python-Code-Large/train/row_1949
27
42
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1949:Import_L4_C0", "label": "os import os", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0952, 0.0238, 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_1949:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1949:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1949:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1949:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<body>" form = cgi.FieldStorage() if form.has_key("n"): n = form.getvalue("n") for a in range(1,int(n)+1): print str(a**2)+'<br/>' else: n = 21 for a in range(1,n): ...
ajibawa-2023/Python-Code-Large/train/row_1950
16
28
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1950:Import_L3_C0", "label": "cgi import cgi", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1071, 0.0357, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1950:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1950:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1950:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1950:For_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1950:F...
#!/usr/bin/python import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<head><title>Hallo Tim</title></head>" print "<body>" print "Hallo Welt!" print "</body>" print "</html>"
ajibawa-2023/Python-Code-Large/train/row_1951
10
14
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1951:Import_L3_C0", "label": "cgi import cgi", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.2143, 0.0714, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name":...
[]
#!/usr/bin/python import cgi import cgitb import fortune cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<body>" print "<head><title>Fortune</title></head>" form = cgi.FieldStorage() if form.has_key("m"): #m = form["m"].value //alternative m = form.getvalue("m") print fortune.ge...
ajibawa-2023/Python-Code-Large/train/row_1952
21
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_1952:Import_L3_C0", "label": "cgi import cgi", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0938, 0.0312, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1952:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1952:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1952:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1952:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1952:...
#!/usr/bin/python import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<head>" print "<title> ptreb quad cgi </title>" print "</head>" print "<body>" print [x**2 for x in range(1,21)] print "</body>" print "</html>"
ajibawa-2023/Python-Code-Large/train/row_1953
12
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_1953:Import_L3_C0", "label": "cgi import cgi", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0625, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name":...
[]
#!/usr/bin/python print "Content-Type: text/html\n" import cgi import cgitb cgitb.enable() import os template = "<html><head><title>%s</title></head><body>%s</body></html>" title = "Mein Titel" content = "<h2>Hallo international</h2>" dic = {"de":"hallo welt", "en":"hello World"} mylan = "de" lan = os.environ["HTTP_...
ajibawa-2023/Python-Code-Large/train/row_1954
14
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_1954:Expr_L2_C0", "label": "print()", "type": "expression", "loc": [2, 2], "level": 0, "parent": null, "vector": [8, 0, 0.0909, 0.0455, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1954:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1954:Assign_L18_C3"}]
#!/usr/bin/python #-*- coding: utf-8 -*- # print erzeugt einen zeilunumbruch automatisch print "Content-Type: text/html\n" # wichtig cgi module importieren # import ohne .py wenn im selben ordner # fortune.methode zum benutzen einer funktion import fortune import cgi import cgitb cgitb.enable() #main, war in fortun...
ajibawa-2023/Python-Code-Large/train/row_1955
23
72
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1955:Expr_L5_C0", "label": "print()", "type": "expression", "loc": [5, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0694, 0.0139, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1955:If_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1955:Assign_L51_C4"}]
#!/usr/bin/python print "Content-Type: text/html\n" print "<html>" print "<head>" print "<title> ptreb hallo cgi </title>" print "</head>" print "<body>" print "Hello CGI Python " print "</body>" print "</html>"
ajibawa-2023/Python-Code-Large/train/row_1956
9
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_1956:Expr_L3_C0", "label": "print()", "type": "expression", "loc": [3, 3], "level": 0, "parent": null, "vector": [8, 0, 0.25, 0.0833, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", "a...
[]
#!/usr/bin/python #-*- coding: utf-8 -*- print "Content-Type: text/html\n" import cgi import cgitb cgitb.enable() import random form = cgi.FieldStorage() #zustaende auslesen # variablen initialisieren # aus fieldStorage komme nur strings => immer casten title = "CGI Rechner" runde = int(form["runde"].value) +1 if ...
ajibawa-2023/Python-Code-Large/train/row_1957
41
88
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1957:Expr_L4_C0", "label": "print()", "type": "expression", "loc": [4, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0455, 0.0114, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1957:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1957:If_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1957:If_L30_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1957:Return_L31_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/python print "Content-Type: text/html\n" import cgi import cgitb import os cgitb.enable() print "<html>" print "<head>" print "<title> ptreb quadn cgi </title>" print "</head>" print "<body>" form = cgi.FieldStorage() # inhalt query string n = 20 if "n" in form: n = int(form["n"].value) print [z**2 f...
ajibawa-2023/Python-Code-Large/train/row_1958
18
24
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1958:Expr_L2_C0", "label": "print()", "type": "expression", "loc": [2, 2], "level": 0, "parent": null, "vector": [8, 0, 0.0833, 0.0417, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1958:If_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1958:Assign_L19_C3"}]
#!/usr/bin/python #-*- coding: utf-8 -*- # alles in einem nicht modul ausgelagert print "Content-Type: text/html\n" # wichtig cgi module importieren import cgi import cgitb cgitb.enable() import os import random import string import sys def getString(source): """Gibt einen grossen String zurueck und erwartet ei...
ajibawa-2023/Python-Code-Large/train/row_1959
42
101
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1959:Expr_L5_C0", "label": "print()", "type": "expression", "loc": [5, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0495, 0.0099, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1959:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1959:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1959:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1959:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python import cgi import cgitb cgitb.enable() print "Content-Type: text/html\n" print "<html>" print "<head>" print "<title> ptreb quad cgi </title>" print "</head>" print "<body>" print [x**2 for x in range(1,21)] print "</body>" print "</html>"
ajibawa-2023/Python-Code-Large/train/row_1960
12
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_1960:Import_L3_C0", "label": "cgi import cgi", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0625, 0, 0.66, 0.0, 934, 0, 1, 0, 0, 934, 0, 0], "semantic": {"name": "cgi", "arg_names": [], "import_names": ["cgi"], "rhs_call_name":...
[]
#!/usr/bin/python #-*- coding: utf-8 -*- # modul das nur die logik funktionen enthaelt, webanwendung und darstellung in # cgi script import os import random import string import sys def getString(source): """Gibt einen grossen String zurueck und erwartet eine Liste von Dateinamen. """ collection = ''...
ajibawa-2023/Python-Code-Large/train/row_1961
20
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1961:Import_L6_C0", "label": "os import os", "type": "import", "loc": [6, 6], "level": 0, "parent": null, "vector": [1, 0, 0.15, 0.025, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", "a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1961:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1961:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1961:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1961:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python print "Content-Type: text/html\n" import cgi import cgitb cgitb.enable() import os template = "<html><head><title>%s</title></head><body>%s</body></html>" title = "Mein Titel" content = "<h2>Hallo international</h2>" dic = {"de":"hallo welt", "en":"hello World"} mylan = "de" lan = os.environ["HTTP_...
ajibawa-2023/Python-Code-Large/train/row_1962
14
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_1962:Expr_L2_C0", "label": "print()", "type": "expression", "loc": [2, 2], "level": 0, "parent": null, "vector": [8, 0, 0.0909, 0.0455, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1962:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1962:Assign_L18_C3"}]
#!/usr/bin/python #-*- coding: utf-8 -*- # modul das nur die logik funktionen enthaelt, webanwendung und darstellung in # cgi script import os import random import string import sys def getString(source): """Gibt einen grossen String zurueck und erwartet eine Liste von Dateinamen. """ collection = ''...
ajibawa-2023/Python-Code-Large/train/row_1963
20
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1963:Import_L6_C0", "label": "os import os", "type": "import", "loc": [6, 6], "level": 0, "parent": null, "vector": [1, 0, 0.15, 0.025, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", "a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1963:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1963:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1963:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1963:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python print "Content-Type: text/html\n" import cgi import cgitb import os cgitb.enable() print "<html>" print "<head>" print "<title> ptreb quadn cgi </title>" print "</head>" print "<body>" form = cgi.FieldStorage() # inhalt query string n = 20 if "n" in form: n = int(form["n"].value) print [z**2 f...
ajibawa-2023/Python-Code-Large/train/row_1964
18
24
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1964:Expr_L2_C0", "label": "print()", "type": "expression", "loc": [2, 2], "level": 0, "parent": null, "vector": [8, 0, 0.0833, 0.0417, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1964:If_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1964:Assign_L19_C3"}]
#!/usr/bin/python #-*- coding: utf-8 -*- # alles in einem nicht modul ausgelagert print "Content-Type: text/html\n" # wichtig cgi module importieren import cgi import cgitb cgitb.enable() import os import random import string import sys def getString(source): """Gibt einen grossen String zurueck und erwartet ei...
ajibawa-2023/Python-Code-Large/train/row_1965
42
101
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1965:Expr_L5_C0", "label": "print()", "type": "expression", "loc": [5, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0495, 0.0099, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1965:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1965:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1965:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1965:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python #-*- coding: utf-8 -*- print "Content-Type: text/html\n" import cgi import cgitb cgitb.enable() import random form = cgi.FieldStorage() #zustaende auslesen # variablen initialisieren # aus fieldStorage komme nur strings => immer casten title = "CGI Rechner" runde = int(form["runde"].value) +1 if ...
ajibawa-2023/Python-Code-Large/train/row_1966
41
88
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1966:Expr_L4_C0", "label": "print()", "type": "expression", "loc": [4, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0455, 0.0114, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1966:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1966:If_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1966:If_L30_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_1966:Return_L31_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/python print "Content-Type: text/html\n" print "<html>" print "<head>" print "<title> ptreb hallo cgi </title>" print "</head>" print "<body>" print "Hello CGI Python " print "</body>" print "</html>"
ajibawa-2023/Python-Code-Large/train/row_1967
9
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_1967:Expr_L3_C0", "label": "print()", "type": "expression", "loc": [3, 3], "level": 0, "parent": null, "vector": [8, 0, 0.25, 0.0833, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", "a...
[]
#!/usr/bin/python #-*- coding: utf-8 -*- # print erzeugt einen zeilunumbruch automatisch print "Content-Type: text/html\n" # wichtig cgi module importieren # import ohne .py wenn im selben ordner # fortune.methode zum benutzen einer funktion import fortune import cgi import cgitb cgitb.enable() #main, war in fortun...
ajibawa-2023/Python-Code-Large/train/row_1968
23
72
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1968:Expr_L5_C0", "label": "print()", "type": "expression", "loc": [5, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0694, 0.0139, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1968:If_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1968:Assign_L51_C4"}]
#! /usr/bin/env python # -*- coding: utf-8 -*- # setup.py # Part of 21obuys, a package providing enumerated types for Python. # # Copyright © 2007 Ben Finney # This is free software; you may copy, modify and/or distribute this work # under the terms of the GNU General Public License, version 2 or later # or, at your ...
ajibawa-2023/Python-Code-Large/train/row_1970
4
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_1970:Import_L11_C0", "label": "ez_setup import ez_setup", "type": "import", "loc": [11, 11], "level": 0, "parent": null, "vector": [1, 0, 0.22, 0.02, 0, 0.66, 0.0, 650, 0, 1, 0, 0, 650, 0, 0], "semantic": {"name": "ez_setup", "arg_names": [], "import_names": ["ez_setup"...
[]
""" 1. Generate ie6 module with win32/com/tools/readtlb.py from the ctypes package (I forget the details, but you can probably skip this and just use ie6_gen.py that comes with ctypes in the samples directory -- change the 'import ie6' below as appropriate.) 2. Generate a GUID and cut-n-paste it as Pyth...
ajibawa-2023/Python-Code-Large/train/row_1971
59
117
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1971:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 24], "level": 0, "parent": null, "vector": [8, 0, 0.1068, 0.2051, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1971:ClassDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1971:Assign_L51_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1971:ClassDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1971:Assign_L52_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/env python # -*- coding: utf8 -*- ''' Created on 2011-7-26 京东价格图片识别模块 @author: zhongfeng ''' import ImageFilter, ImageChops from captcha_price import * from j360buy.j360_feature import J360buy_FEATURES_MAP__ import Image import re import time try: import psyco psyco.full() except ImportError: ...
ajibawa-2023/Python-Code-Large/train/row_1972
43
72
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_1972:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0972, 0.0972, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_1972:Try_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1972:Import_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_1972:Try_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_1972:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_197...