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
'''Plugin Performance profiling module for ClearCutter Loads an OSSIM plugin and sample log data, and identifies the CPU cost for each SID in a plugin as a percentage of total runtime to process the entire file ''' __author__ = "CP Constantine" __email__ = "conrad@alienvault.com" __copyright__ = 'Copyright:Alienvault...
ajibawa-2023/Python-Code-Large/train/row_99993
27
52
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99993:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0577, 0.0962, 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_99993:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99993:Assign_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99993:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99993:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # -*- coding: iso-8859-1 -*- # # progressbar - Text progressbar library for python. # Copyright (c) 2005 Nilton Volpato # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundatio...
ajibawa-2023/Python-Code-Large/train/row_99995
199
373
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99995:Expr_L22_C0", "label": "expression", "type": "expression", "loc": [22, 40], "level": 0, "parent": null, "vector": [8, 0, 0.0831, 0.0509, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99995:Try_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99995:ImportFrom_L60_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99995:Try_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99995:Import_L61_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
'''Levenshtein Distance Calculator for Clearcutter log identification module''' __author__ = "CP Constantine" __email__ = "conrad@alienvault.com" __copyright__ = 'Copyright:Alienvault 2012' __credits__ = ["Conrad Constantine"] __version__ = "0.1" __license__ = "BSD" __status__ = "Prototype" __maintainer__ = "CP Consta...
ajibawa-2023/Python-Code-Large/train/row_99996
21
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_99996:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.037, 0.037, 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_99996:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99996:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99996:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99996:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Co...
'''Extract calls to logging libraries from code Trees''' class CodeScrape(object): ''' classdocs ''' def __init__(self,params): ''' Constructor ''' pass
ajibawa-2023/Python-Code-Large/train/row_99997
5
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99997:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0667, 0.0667, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99997:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99997:Expr_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99997:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99997:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
""" Clusters Locate clusters of test in Logfiles, to assist in processing discrete log messages, from any given log data sample and assist in the creation of Regular Expression to parse those log entries """ __author__ = "CP Constantine" __email__ = "conrad@alienvault.com" __copyright__ = 'Copyright:Alienvault 2012' _...
ajibawa-2023/Python-Code-Large/train/row_99998
133
226
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99998:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0111, 0.0177, 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_99998:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99998:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99998:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99998:Assign_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python # -*- coding: iso-8859-1 -*- # # progressbar - Text progressbar library for python. # Copyright (c) 2005 Nilton Volpato # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundatio...
ajibawa-2023/Python-Code-Large/train/row_99999
199
373
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99999:Expr_L22_C0", "label": "expression", "type": "expression", "loc": [22, 40], "level": 0, "parent": null, "vector": [8, 0, 0.0831, 0.0509, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99999:Try_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99999:ImportFrom_L60_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99999:Try_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99999:Import_L61_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...