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 |
|---|---|---|---|---|---|---|---|
"""engine.SCons.Tool.cvf
Tool-specific initialization for the Compaq Visual Fortran compiler.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated docume... | ajibawa-2023/Python-Code-Large/train/row_3456 | 18 | 58 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3456:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0517, 0.0862, 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_3456:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3456:Expr_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3456:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3456:Expr_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large... |
"""SCons.Tool.yacc
Tool-specific initialization for yacc.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
#... | ajibawa-2023/Python-Code-Large/train/row_3457 | 52 | 131 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3457:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0382, 0.0687, 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_3457:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3457:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3457:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3457:Assign_L47_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
"""SCons.Tool.rpcgen
Tool-specific initialization for RPCGEN tools.
Three normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Found... | ajibawa-2023/Python-Code-Large/train/row_3458 | 24 | 70 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3458:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0643, 0.1143, 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_3458:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3458:Expr_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3458:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3458:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
"""SCons.Tool.Perforce.py
Tool-specific initialization for Perforce Source Code Management system.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, ... | ajibawa-2023/Python-Code-Large/train/row_3459 | 35 | 104 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3459:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0481, 0.0865, 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_3459:FunctionDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3459:Expr_L55_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3459:FunctionDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3459:FunctionDef_L58_C4"}, {"f": "ajibawa-2023/Python-Cod... |
"""SCons.Tool.aixcc
Tool-specific initialization for IBM xlc / Visual Age C compiler.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 20... | ajibawa-2023/Python-Code-Large/train/row_3460 | 27 | 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_3460:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0608, 0.1081, 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_3460:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3460:Assign_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3460:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3460:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
"""SCons.Tool.wix
Tool-specific initialization for wix, the Windows Installer XML Tool.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, ... | ajibawa-2023/Python-Code-Large/train/row_3461 | 32 | 100 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3461:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.045, 0.08, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3461:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3461:Expr_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3461:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3461:If_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
"""SCons.Tool.javac
Tool-specific initialization for javac.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#... | ajibawa-2023/Python-Code-Large/train/row_3462 | 142 | 234 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3462:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0214, 0.0385, 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_3462:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3462:Expr_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3462:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3462:Return_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
"""SCons.Tool.sunf90
Tool-specific initialization for sunf90, the Sun Studio F90 compiler.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 20... | ajibawa-2023/Python-Code-Large/train/row_3463 | 17 | 64 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3463:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0781, 0.1406, 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_3463:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3463:Expr_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3463:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3463:Expr_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large... |
"""SCons.Tool.midl
Tool-specific initialization for midl (Microsoft IDL compiler).
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010... | ajibawa-2023/Python-Code-Large/train/row_3464 | 35 | 90 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3464:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 9], "level": 0, "parent": null, "vector": [8, 0, 0.0556, 0.1, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation"... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3464:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3464:Expr_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3464:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3464:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
"""SCons.Tool.default
Initialization with a default tool list.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundatio... | ajibawa-2023/Python-Code-Large/train/row_3466 | 9 | 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_3466:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 9], "level": 0, "parent": null, "vector": [8, 0, 0.1, 0.18, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3466:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3466:Expr_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3466:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3466:For_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/... |
"""SCons.Tool.tex
Tool-specific initialization for TeX.
Generates .dvi files from .tex files
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, ... | ajibawa-2023/Python-Code-Large/train/row_3468 | 434 | 805 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3468:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0068, 0.0124, 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_3468:FunctionDef_L136_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3468:If_L137_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3468:If_L137_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3468:Assign_L138_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | ajibawa-2023/Python-Code-Large/train/row_3473 | 47 | 124 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3473:Assign_L24_C0", "label": "__revision__ =", "type": "assigned_variable", "loc": [24, 24], "level": 0, "parent": null, "vector": [14, 0, 0.1935, 0.0081, 0, 0.66, 0.0, 809, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__revision__", "arg_names": [], "import_names": [],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3473:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3473:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3473:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3473:For_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Larg... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | ajibawa-2023/Python-Code-Large/train/row_3478 | 58 | 98 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3478:Assign_L24_C0", "label": "__revision__ =", "type": "assigned_variable", "loc": [24, 24], "level": 0, "parent": null, "vector": [14, 0, 0.2449, 0.0102, 0, 0.66, 0.0, 809, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__revision__", "arg_names": [], "import_names": [],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3478:If_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3478:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3478:If_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3478:FunctionDef_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro... |
"""SCons.Scanner.Fortran
This module implements the dependency scanner for Fortran code.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentati... | ajibawa-2023/Python-Code-Large/train/row_3479 | 60 | 320 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3479:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0094, 0.0156, 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_3479:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3479:Expr_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3479:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3479:FunctionDef_L57_C4"}, {"f": "ajibawa-2023/Python-Code-Larg... |
"""SCons.Scanner.LaTeX
This module implements the dependency scanner for LaTeX code.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation f... | ajibawa-2023/Python-Code-Large/train/row_3480 | 158 | 378 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3480:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0079, 0.0132, 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_3480:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3480:Try_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3480:Try_L54_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3480:Assign_L55_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/... |
"""SCons.Scanner.D
Scanner for the Digital Mars "D" programming language.
Coded by Andy Friesen
17 Nov 2003
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and as... | ajibawa-2023/Python-Code-Large/train/row_3481 | 24 | 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_3481:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0608, 0.1081, 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_3481:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3481:Expr_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3481:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3481:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
"""SCons.Scanner.RC
This module implements the depenency scanner for RC (Interface
Definition Language) files.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and ... | ajibawa-2023/Python-Code-Large/train/row_3482 | 10 | 55 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3482:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0636, 0.1091, 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_3482:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3482:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3482:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3482:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | ajibawa-2023/Python-Code-Large/train/row_3483 | 49 | 103 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3483:Assign_L24_C0", "label": "__revision__ =", "type": "assigned_variable", "loc": [24, 24], "level": 0, "parent": null, "vector": [14, 0, 0.233, 0.0097, 0, 0.66, 0.0, 809, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__revision__", "arg_names": [], "import_names": [], ... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3483:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3483:Expr_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3483:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3483:Assign_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
"""SCons.Scanner
The Scanner package for the SCons software construction utility.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation file... | ajibawa-2023/Python-Code-Large/train/row_3484 | 173 | 417 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3484:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0072, 0.012, 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_3484:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3484:Expr_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3484:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3484:If_L58_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | ajibawa-2023/Python-Code-Large/train/row_3485 | 39 | 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_3485:Assign_L24_C0", "label": "__revision__ =", "type": "assigned_variable", "loc": [24, 24], "level": 0, "parent": null, "vector": [14, 0, 0.2162, 0.009, 0, 0.66, 0.0, 809, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__revision__", "arg_names": [], "import_names": [], ... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3485:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3485:Assign_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3485:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3485:Return_L31_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
"""SCons.Scanner.IDL
This module implements the depenency scanner for IDL (Interface
Definition Language) files.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software an... | ajibawa-2023/Python-Code-Large/train/row_3486 | 8 | 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_3486:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0729, 0.125, 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_3486:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3486:Expr_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3486:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3486:Assign_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | ajibawa-2023/Python-Code-Large/train/row_3488 | 16 | 63 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3488:Assign_L24_C0", "label": "__revision__ =", "type": "assigned_variable", "loc": [24, 24], "level": 0, "parent": null, "vector": [14, 0, 0.381, 0.0159, 0, 0.66, 0.0, 809, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__revision__", "arg_names": [], "import_names": [], ... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3488:ClassDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3488:FunctionDef_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3488:FunctionDef_L49_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3488:Return_L50_C8"}, {"f": "ajibawa-2023/Python-Code... |
"""SCons.Script
This file implements the main() function used by the scons script.
Architecturally, this *is* the scons script, and will likely only be
called from the external "scons" wrapper. Consequently, anything here
should not be, or be considered, part of the build engine. If it's
something that we expect ot... | ajibawa-2023/Python-Code-Large/train/row_3493 | 146 | 414 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3493:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0157, 0.029, 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_3493:If_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3493:Import_L63_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3493:If_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3493:Import_L64_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_349... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | ajibawa-2023/Python-Code-Large/train/row_3494 | 11 | 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_3494:Assign_L24_C0", "label": "__revision__ =", "type": "assigned_variable", "loc": [24, 24], "level": 0, "parent": null, "vector": [14, 0, 0.48, 0.02, 0, 0.66, 0.0, 809, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__revision__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3494:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3494:If_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3494:If_L40_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3494:Assign_L41_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | ajibawa-2023/Python-Code-Large/train/row_3495 | 11 | 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_3495:Assign_L24_C0", "label": "__revision__ =", "type": "assigned_variable", "loc": [24, 24], "level": 0, "parent": null, "vector": [14, 0, 0.48, 0.02, 0, 0.66, 0.0, 809, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__revision__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3495:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3495:If_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3495:If_L40_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3495:Assign_L41_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | ajibawa-2023/Python-Code-Large/train/row_3496 | 30 | 76 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3496:Assign_L24_C0", "label": "__revision__ =", "type": "assigned_variable", "loc": [24, 24], "level": 0, "parent": null, "vector": [14, 0, 0.3158, 0.0132, 0, 0.66, 0.0, 809, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__revision__", "arg_names": [], "import_names": [],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3496:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3496:FunctionDef_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3496:FunctionDef_L39_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3496:If_L41_C8"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | ajibawa-2023/Python-Code-Large/train/row_3497 | 23 | 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_3497:Assign_L24_C0", "label": "__revision__ =", "type": "assigned_variable", "loc": [24, 24], "level": 0, "parent": null, "vector": [14, 0, 0.3243, 0.0135, 0, 0.66, 0.0, 809, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__revision__", "arg_names": [], "import_names": [],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3497:ClassDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3497:FunctionDef_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3497:FunctionDef_L45_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3497:If_L47_C8"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | ajibawa-2023/Python-Code-Large/train/row_3498 | 11 | 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_3498:Assign_L24_C0", "label": "__revision__ =", "type": "assigned_variable", "loc": [24, 24], "level": 0, "parent": null, "vector": [14, 0, 0.48, 0.02, 0, 0.66, 0.0, 809, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__revision__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3498:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3498:If_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3498:If_L40_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3498:Assign_L41_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | ajibawa-2023/Python-Code-Large/train/row_3499 | 11 | 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_3499:Assign_L24_C0", "label": "__revision__ =", "type": "assigned_variable", "loc": [24, 24], "level": 0, "parent": null, "vector": [14, 0, 0.48, 0.02, 0, 0.66, 0.0, 809, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__revision__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3499:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3499:If_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3499:If_L40_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3499:Assign_L41_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | ajibawa-2023/Python-Code-Large/train/row_3500 | 79 | 228 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3500:Expr_L24_C0", "label": "expression", "type": "expression", "loc": [24, 28], "level": 0, "parent": null, "vector": [8, 0, 0.114, 0.0219, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3500:FunctionDef_L140_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3500:Expr_L141_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3500:FunctionDef_L140_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3500:Expr_L143_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
"""SCons.exitfuncs
Register functions which are executed when SCons exits for any reason.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentat... | ajibawa-2023/Python-Code-Large/train/row_3502 | 17 | 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_3502: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_3502:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3502:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3502:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3502:While_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Larg... |
"""engine.SCons.Variables.BoolVariable
This file defines the option type for SCons implementing true/false values.
Usage example:
opts = Variables()
opts.Add(BoolVariable('embedded', 'build for an embedded system', 0))
...
if env['embedded'] == 1:
...
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, ... | ajibawa-2023/Python-Code-Large/train/row_3505 | 20 | 91 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3505:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0714, 0.1319, 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_3505:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3505:Expr_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3505:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3505:Assign_L60_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
"""engine.SCons.Variables.PackageVariable
This file defines the option type for SCons implementing 'package
activation'.
To be used whenever a 'package' may be enabled/disabled and the
package path may be specified.
Usage example:
Examples:
x11=no (disables X11 support)
x11=yes (will search for the... | ajibawa-2023/Python-Code-Large/train/row_3506 | 26 | 109 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3506:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 28], "level": 0, "parent": null, "vector": [8, 0, 0.133, 0.2569, 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_3506:FunctionDef_L64_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3506:Expr_L65_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3506:FunctionDef_L64_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3506:Assign_L67_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
"""engine.SCons.Variables.EnumVariable
This file defines the option type for SCons allowing only specified
input-values.
Usage example:
opts = Variables()
opts.Add(EnumVariable('debug', 'debug output and symbols', 'no',
allowed_values=('yes', 'no', 'full'),
map={}, ign... | ajibawa-2023/Python-Code-Large/train/row_3507 | 19 | 107 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3507:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0748, 0.1402, 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_3507:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3507:If_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3507:FunctionDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3507:Expr_L55_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
"""SCons.Variables.PathVariable
This file defines an option type for SCons implementing path settings.
To be used whenever a a user-specified path override should be allowed.
Arguments to PathVariable are:
option-name = name of this option on the command line (e.g. "prefix")
option-help = help string for optio... | ajibawa-2023/Python-Code-Large/train/row_3509 | 39 | 147 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3509:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 46], "level": 0, "parent": null, "vector": [8, 0, 0.1599, 0.3129, 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_3509:ClassDef_L80_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3509:FunctionDef_L82_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3509:FunctionDef_L82_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3509:Expr_L83_C8"}, {"f": "ajibawa-2023/Python-Code-L... |
"""engine.SCons.Variables.ListVariable
This file defines the option type for SCons implementing 'lists'.
A 'list' option may either be 'all', 'none' or a list of names
separated by comma. After the option has been processed, the option
value holds either the named list elements, all list elemens or no
list elements a... | ajibawa-2023/Python-Code-Large/train/row_3510 | 44 | 139 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3510:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 25], "level": 0, "parent": null, "vector": [8, 0, 0.0935, 0.1799, 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_3510:ClassDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3510:FunctionDef_L64_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3510:FunctionDef_L64_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3510:Expr_L65_C8"}, {"f": "ajibawa-2023/Python-Code-L... |
"""SCons.Debug
Code for debugging SCons internal things. Not everything here is
guaranteed to work all the way back to Python 1.5.2, and shouldn't be
needed by most users.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of ... | ajibawa-2023/Python-Code-Large/train/row_3512 | 144 | 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_3512:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0169, 0.0295, 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_3512:Try_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3512:Import_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3512:Try_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3512:FunctionDef_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/... |
"""SCons
The main package for the SCons software construction utility.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "S... | ajibawa-2023/Python-Code-Large/train/row_3513 | 8 | 49 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3513:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0612, 0.102, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio... | [] |
"""engine.SCons.Platform.darwin
Platform-specific initialization for Mac OS X systems.
There normally shouldn't be any need to import this module directly. It
will usually be imported through the generic SCons.Platform.Platform()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008... | ajibawa-2023/Python-Code-Large/train/row_3515 | 7 | 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_3515:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0978, 0.1739, 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_3515:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3515:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3515:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3515:Assign_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
"""SCons.Platform.os2
Platform-specific initialization for OS/2 systems.
There normally shouldn't be any need to import this module directly. It
will usually be imported through the generic SCons.Platform.Platform()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 T... | ajibawa-2023/Python-Code-Large/train/row_3516 | 20 | 58 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3516:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0776, 0.1379, 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_3516:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3516:If_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3516:If_L37_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3516:Assign_L38_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro... |
"""engine.SCons.Platform.aix
Platform-specific initialization for IBM AIX systems.
There normally shouldn't be any need to import this module directly. It
will usually be imported through the generic SCons.Platform.Platform()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 20... | ajibawa-2023/Python-Code-Large/train/row_3517 | 24 | 70 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3517:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0643, 0.1143, 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_3517:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3517:Assign_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3517:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3517:Assign_L44_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
"""SCons.Platform.cygwin
Platform-specific initialization for Cygwin systems.
There normally shouldn't be any need to import this module directly. It
will usually be imported through the generic SCons.Platform.Platform()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2... | ajibawa-2023/Python-Code-Large/train/row_3519 | 15 | 55 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3519:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0818, 0.1455, 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_3519:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3519:Expr_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3519:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3519:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
"""SCons.Platform.irix
Platform-specific initialization for SGI IRIX systems.
There normally shouldn't be any need to import this module directly. It
will usually be imported through the generic SCons.Platform.Platform()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2... | ajibawa-2023/Python-Code-Large/train/row_3520 | 5 | 44 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3520:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1023, 0.1818, 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_3520:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3520:Expr_L38_C4"}] |
"""engine.SCons.Platform.hpux
Platform-specific initialization for HP-UX systems.
There normally shouldn't be any need to import this module directly. It
will usually be imported through the generic SCons.Platform.Platform()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 200... | ajibawa-2023/Python-Code-Large/train/row_3521 | 6 | 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_3521:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0978, 0.1739, 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_3521:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3521:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3521:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3521:Assign_L40_C4"}] |
"""engine.SCons.Platform.sunos
Platform-specific initialization for Sun systems.
There normally shouldn't be any need to import this module directly. It
will usually be imported through the generic SCons.Platform.Platform()
selection method.
"""
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009... | ajibawa-2023/Python-Code-Large/train/row_3524 | 9 | 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_3524:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 8], "level": 0, "parent": null, "vector": [8, 0, 0.09, 0.16, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3524:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3524:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3524:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3524:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#
# Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without li... | ajibawa-2023/Python-Code-Large/train/row_3527 | 85 | 291 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3527:Assign_L24_C0", "label": "__revision__ =", "type": "assigned_variable", "loc": [24, 24], "level": 0, "parent": null, "vector": [14, 0, 0.0825, 0.0034, 0, 0.66, 0.0, 809, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__revision__", "arg_names": [], "import_names": [],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3527:ClassDef_L129_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3527:Expr_L130_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3527:ClassDef_L129_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3527:FunctionDef_L137_C4"}, {"f": "ajibawa-2023/Python-Code-... |
"""Script to generate doxygen documentation.
"""
import re
import os
import os.path
import sys
import shutil
from devtools import tarball
def find_program(*filenames):
"""find a program in folders path_lst, and sets env[var]
@param filenames: a list of possible names of the program to search for
@return: ... | ajibawa-2023/Python-Code-Large/train/row_3529 | 115 | 167 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3529:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 2], "level": 0, "parent": null, "vector": [8, 0, 0.009, 0.012, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3529:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3529:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3529:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3529:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
# removes all files created during testing
import glob
import os
paths = []
for pattern in [ '*.actual', '*.actual-rewrite', '*.rewrite', '*.process-output' ]:
paths += glob.glob( 'data/' + pattern )
for path in paths:
os.unlink( path )
| ajibawa-2023/Python-Code-Large/train/row_3531 | 6 | 10 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3531:Import_L2_C0", "label": "glob import glob", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.1, 0, 0.66, 0.0, 958, 0, 1, 0, 0, 958, 0, 0], "semantic": {"name": "glob", "arg_names": [], "import_names": ["glob"], "rhs_call_name": "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3531:For_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3531:Expr_L10_C4"}] |
import glob
import os.path
for path in glob.glob( '*.json' ):
text = file(path,'rt').read()
target = os.path.splitext(path)[0] + '.expected'
if os.path.exists( target ):
print 'skipping:', target
else:
print 'creating:', target
file(target,'wt').write(text)
| ajibawa-2023/Python-Code-Large/train/row_3532 | 9 | 11 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3532:Import_L1_C0", "label": "glob import glob", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0909, 0.0909, 0, 0.66, 0.0, 958, 0, 1, 0, 0, 958, 0, 0], "semantic": {"name": "glob", "arg_names": [], "import_names": ["glob"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3532:For_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3532:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3532:For_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3532:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3532:... |
# Simple implementation of a json test runner to run the test against json-py.
import sys
import os.path
import json
import types
if len(sys.argv) != 2:
print "Usage: %s input-json-file", sys.argv[0]
sys.exit(3)
input_path = sys.argv[1]
base_path = os.path.splitext(input_path)[0]
actual_path = base_path ... | ajibawa-2023/Python-Code-Large/train/row_3533 | 52 | 64 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3533:Import_L3_C0", "label": "sys import sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0469, 0.0156, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name":... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3533:If_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3533:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3533:If_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3533:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3533:Funct... |
#! /usr/bin/env python
# encoding: utf-8
# waf 1.6.10
VERSION='0.3.3'
import sys
APPNAME='p2t'
top = '.'
out = 'build'
CPP_SOURCES = ['poly2tri/common/shapes.cc',
'poly2tri/sweep/cdt.cc',
'poly2tri/sweep/advancing_front.cc',
'poly2tri/sweep/sweep_context.cc',
... | ajibawa-2023/Python-Code-Large/train/row_3535 | 25 | 45 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3535:Assign_L5_C0", "label": "VERSION =", "type": "assigned_variable", "loc": [5, 5], "level": 0, "parent": null, "vector": [14, 0, 0.1111, 0.0222, 0, 0.66, 0.0, 557, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "VERSION", "arg_names": [], "import_names": [], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3535:If_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3535:Assign_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3535:If_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3535:If_L25_C0"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3535:If... |
#!/usr/bin/env python
import time
t = time.time()
u = time.gmtime(t)
s = time.strftime('%a, %e %b %Y %T GMT', u)
print 'Content-Type: text/javascript'
print 'Cache-Control: no-cache'
print 'Date: ' + s
print 'Expires: ' + s
print ''
print 'var timeskew = new Date().getTime() - ' + str(t*1000) + ';'
| ajibawa-2023/Python-Code-Large/train/row_3536 | 10 | 11 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3536:Import_L2_C0", "label": "time import time", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1818, 0.0909, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call_na... | [] |
#!/usr/bin/python
import sys, hashlib
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def usage():
print ("Usage: " + sys.argv[0] + " infile outfile label")
def main():
if( len(sys.argv) != 4):
usage()
sys.exit()
fp = open( sys.argv[1] , "rb")
hash_str = has... | ajibawa-2023/Python-Code-Large/train/row_3537 | 23 | 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_3537:Import_L3_C0", "label": "sys import sys, hashlib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0714, 0.0238, 0, 0.66, 0.0, 509, 0, 2, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "hashlib... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3537:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3537:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3537:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3537:Expr_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
import sys, re, os
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def usage():
print ("Usage: " + os.path.split(__file__)[1] + " version outfile")
def crete_version_str(ver):
base = list("0.00")
version = str(ver)
ret = []
base[0] = version[0]
base... | ajibawa-2023/Python-Code-Large/train/row_3538 | 38 | 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_3538:Import_L3_C0", "label": "sys import sys, re, os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0577, 0.0192, 0, 0.66, 0.0, 509, 0, 3, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "re", "os... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3538:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3538:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3538:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3538:Expr_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
import os
def main():
lists = [
"ISODrivers/Galaxy/galaxy.prx",
"ISODrivers/March33/march33.prx",
"ISODrivers/March33/march33_620.prx",
"ISODrivers/March33/march33_660.prx",
"ISODrivers/Inferno/inferno.prx",
"Popcorn/popcorn.prx",
"Satelite/satelite.prx",
"Stargate/stargate.... | ajibawa-2023/Python-Code-Large/train/row_3539 | 10 | 29 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3539:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1034, 0.0345, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "",... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3539:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3539:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3539:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3539:For_L21_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
class FakeTime:
def time(self):
return 1225856967.109
import os, gzip, StringIO
gzip.time = FakeTime()
def create_gzip(input, output):
f_in=open(input, 'rb')
temp=StringIO.StringIO()
f=gzip.GzipFile(fileobj=temp, mode='wb')
f.writelines(f_in)
f.close()
f_in.close()
fout=open(out... | ajibawa-2023/Python-Code-Large/train/row_3540 | 30 | 44 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3540:ClassDef_L3_C0", "label": "FakeTime", "type": "class", "loc": [3, 5], "level": 0, "parent": null, "vector": [3, 0, 0.0909, 0.0682, 0, 0.66, 0.0, 425, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "FakeTime", "arg_names": [], "import_names": [], "rhs_call_name": "", "a... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3540:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3540:FunctionDef_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3540:FunctionDef_L4_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3540:Return_L5_C8"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#!/usr/bin/python
import os, sys, getopt
def usage():
print ("Usage: %s [-l size ] basefile input output" % (sys.argv[0]))
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def main():
inputsize = 0
try:
optlist, args = getopt.getopt(sys.argv[1:], 'l:h')
except getopt.GetoptError:
us... | ajibawa-2023/Python-Code-Large/train/row_3541 | 37 | 56 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3541:Import_L3_C0", "label": "os import os, sys, getopt", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0536, 0.0179, 0, 0.66, 0.0, 688, 0, 3, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys", "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3541:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3541:Expr_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3541:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3541:Assign_L9_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
from hashlib import *
import sys, struct
def sha512(psid):
if len(psid) != 16:
return "".encode()
for i in range(512):
psid = sha1(psid).digest()
return psid
def get_psid(str):
if len(str) != 32:
return "".encode()
b = "".encode()
for i in range(0, len(str), 2):
b += struct.pack('B... | ajibawa-2023/Python-Code-Large/train/row_3542 | 31 | 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_3542:ImportFrom_L3_C0", "label": "from hashlib import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0652, 0.0217, 0, 0.66, 0.0, 154, 0, 1, 0, 0, 154, 0, 0], "semantic": {"name": "hashlib", "arg_names": [], "import_names": ["*"], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3542:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3542:If_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3542:If_L7_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_3542:Return_L8_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_35... |
#!/usr/bin/python
import sys, os, gzip, StringIO
def dump_binary(fn, data):
f = open(fn, "wb")
f.write(data)
f.close()
def dec_prx(fn):
f = open(fn, "rb")
f.seek(0x150)
dat = f.read()
f.close()
temp=StringIO.StringIO(dat)
f=gzip.GzipFile(fileobj=temp, mode='rb')
dec = f.read(f)
f.close()
fn = "%s.dec.p... | ajibawa-2023/Python-Code-Large/train/row_3543 | 24 | 33 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3543:Import_L3_C0", "label": "sys import sys, os, gzip\u2026", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0909, 0.0303, 0, 0.66, 0.0, 509, 0, 4, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3543:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3543:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3543:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3543:Expr_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
import sys, hashlib
def toNID(name):
hashstr = hashlib.sha1(name.encode()).hexdigest().upper()
return "0x" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + hashstr[0:2]
if __name__ == "__main__":
assert(toNID("sceKernelCpuSuspendIntr") == "0x092968F4")
for name in sys.argv[1:]:
print ("%s: %s"... | ajibawa-2023/Python-Code-Large/train/row_3544 | 7 | 13 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3544:Import_L3_C0", "label": "sys import sys, hashlib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.2308, 0.0769, 0, 0.66, 0.0, 509, 0, 2, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "hashlib... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3544:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3544:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3544:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3544:Return_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large... |
#!/usr/bin/python
"""
pspbtcnf_editor: An script that add modules from pspbtcnf
"""
import sys, os, re
from getopt import *
from struct import *
BTCNF_MAGIC=0x0F803001
verbose = False
def print_usage():
print ("%s: pspbtcnf.bin [-o output.bin] [-a add_module_name:before_module_name:flag]" %(os.path... | ajibawa-2023/Python-Code-Large/train/row_3545 | 107 | 182 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3545:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.022, 0.0165, 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_3545:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3545:Expr_L16_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3545:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3545:Assign_L19_C1"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#!/usr/bin/python
class FakeTime:
def time(self):
return 1225856967.109
import sys, os, struct, gzip, hashlib, StringIO
gzip.time = FakeTime()
def binary_replace(data, newdata, offset):
return data[0:offset] + newdata + data[offset+len(newdata):]
def prx_compress(output, hdr, input, mod_name="", mod_a... | ajibawa-2023/Python-Code-Large/train/row_3546 | 56 | 82 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3546:ClassDef_L3_C0", "label": "FakeTime", "type": "class", "loc": [3, 5], "level": 0, "parent": null, "vector": [3, 0, 0.0488, 0.0366, 0, 0.66, 0.0, 425, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "FakeTime", "arg_names": [], "import_names": [], "rhs_call_name": "", "a... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3546:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3546:FunctionDef_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3546:FunctionDef_L4_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3546:Return_L5_C8"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#!/usr/bin/python
""" PRO build script"""
import os, shutil, sys
NIGHTLY=0
VERSION="B10"
PRO_BUILD = [
{ "fn": "620PRO-%s.rar", "config": "CONFIG_620=1" },
{ "fn": "635PRO-%s.rar", "config": "CONFIG_635=1" },
{ "fn": "639PRO-%s.rar", "config": "CONFIG_639=1" },
{ "fn": "660PRO-%s.rar", "config": "CONFIG... | ajibawa-2023/Python-Code-Large/train/row_3547 | 52 | 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_3547:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0297, 0.0099, 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_3547:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3547:If_L37_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3547:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3547:Expr_L41_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
import sys, hashlib
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def usage():
print ("Usage: " + sys.argv[0] + " infile outfile label")
def main():
if( len(sys.argv) != 4):
usage()
sys.exit()
fp = open( sys.argv[1] , "rb")
hash_str = has... | ajibawa-2023/Python-Code-Large/train/row_3548 | 23 | 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_3548:Import_L3_C0", "label": "sys import sys, hashlib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0714, 0.0238, 0, 0.66, 0.0, 509, 0, 2, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "hashlib... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3548:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3548:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3548:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3548:Expr_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
import sys, re, os
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def usage():
print ("Usage: " + os.path.split(__file__)[1] + " version outfile")
def crete_version_str(ver):
base = list("0.00")
version = str(ver)
ret = []
base[0] = version[0]
base... | ajibawa-2023/Python-Code-Large/train/row_3549 | 38 | 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_3549:Import_L3_C0", "label": "sys import sys, re, os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0577, 0.0192, 0, 0.66, 0.0, 509, 0, 3, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "re", "os... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3549:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3549:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3549:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3549:Expr_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
import os
def main():
lists = [
"ISODrivers/Galaxy/galaxy.prx",
"ISODrivers/March33/march33.prx",
"ISODrivers/March33/march33_620.prx",
"ISODrivers/March33/march33_660.prx",
"ISODrivers/Inferno/inferno.prx",
"Popcorn/popcorn.prx",
"Satelite/satelite.prx",
"Stargate/stargate.... | ajibawa-2023/Python-Code-Large/train/row_3550 | 10 | 29 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3550:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1034, 0.0345, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "",... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3550:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3550:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3550:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3550:For_L21_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
class FakeTime:
def time(self):
return 1225856967.109
import os, gzip, StringIO
gzip.time = FakeTime()
def create_gzip(input, output):
f_in=open(input, 'rb')
temp=StringIO.StringIO()
f=gzip.GzipFile(fileobj=temp, mode='wb')
f.writelines(f_in)
f.close()
f_in.close()
fout=open(out... | ajibawa-2023/Python-Code-Large/train/row_3551 | 30 | 44 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3551:ClassDef_L3_C0", "label": "FakeTime", "type": "class", "loc": [3, 5], "level": 0, "parent": null, "vector": [3, 0, 0.0909, 0.0682, 0, 0.66, 0.0, 425, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "FakeTime", "arg_names": [], "import_names": [], "rhs_call_name": "", "a... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3551:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3551:FunctionDef_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3551:FunctionDef_L4_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3551:Return_L5_C8"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#!/usr/bin/python
import os, sys, getopt
def usage():
print ("Usage: %s [-l size ] basefile input output" % (sys.argv[0]))
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def main():
inputsize = 0
try:
optlist, args = getopt.getopt(sys.argv[1:], 'l:h')
except getopt.GetoptError:
us... | ajibawa-2023/Python-Code-Large/train/row_3552 | 37 | 56 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3552:Import_L3_C0", "label": "os import os, sys, getopt", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0536, 0.0179, 0, 0.66, 0.0, 688, 0, 3, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys", "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3552:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3552:Expr_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3552:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3552:Assign_L9_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
from hashlib import *
import sys, struct
def sha512(psid):
if len(psid) != 16:
return "".encode()
for i in range(512):
psid = sha1(psid).digest()
return psid
def get_psid(str):
if len(str) != 32:
return "".encode()
b = "".encode()
for i in range(0, len(str), 2):
b += struct.pack('B... | ajibawa-2023/Python-Code-Large/train/row_3553 | 31 | 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_3553:ImportFrom_L3_C0", "label": "from hashlib import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0652, 0.0217, 0, 0.66, 0.0, 154, 0, 1, 0, 0, 154, 0, 0], "semantic": {"name": "hashlib", "arg_names": [], "import_names": ["*"], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3553:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3553:If_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3553:If_L7_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_3553:Return_L8_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_35... |
#!/usr/bin/python
import sys, os, gzip, StringIO
def dump_binary(fn, data):
f = open(fn, "wb")
f.write(data)
f.close()
def dec_prx(fn):
f = open(fn, "rb")
f.seek(0x150)
dat = f.read()
f.close()
temp=StringIO.StringIO(dat)
f=gzip.GzipFile(fileobj=temp, mode='rb')
dec = f.read(f)
f.close()
fn = "%s.dec.p... | ajibawa-2023/Python-Code-Large/train/row_3554 | 24 | 33 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3554:Import_L3_C0", "label": "sys import sys, os, gzip\u2026", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0909, 0.0303, 0, 0.66, 0.0, 509, 0, 4, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3554:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3554:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3554:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3554:Expr_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
import sys, hashlib
def toNID(name):
hashstr = hashlib.sha1(name.encode()).hexdigest().upper()
return "0x" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + hashstr[0:2]
if __name__ == "__main__":
assert(toNID("sceKernelCpuSuspendIntr") == "0x092968F4")
for name in sys.argv[1:]:
print ("%s: %s"... | ajibawa-2023/Python-Code-Large/train/row_3555 | 7 | 13 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3555:Import_L3_C0", "label": "sys import sys, hashlib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.2308, 0.0769, 0, 0.66, 0.0, 509, 0, 2, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "hashlib... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3555:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3555:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3555:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3555:Return_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large... |
#!/usr/bin/python
"""
pspbtcnf_editor: An script that add modules from pspbtcnf
"""
import sys, os, re
from getopt import *
from struct import *
BTCNF_MAGIC=0x0F803001
verbose = False
def print_usage():
print ("%s: pspbtcnf.bin [-o output.bin] [-a add_module_name:before_module_name:flag]" %(os.path... | ajibawa-2023/Python-Code-Large/train/row_3556 | 107 | 182 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3556:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.022, 0.0165, 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_3556:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3556:Expr_L16_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3556:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3556:Assign_L19_C1"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#!/usr/bin/python
class FakeTime:
def time(self):
return 1225856967.109
import sys, os, struct, gzip, hashlib, StringIO
gzip.time = FakeTime()
def binary_replace(data, newdata, offset):
return data[0:offset] + newdata + data[offset+len(newdata):]
def prx_compress(output, hdr, input, mod_name="", mod_a... | ajibawa-2023/Python-Code-Large/train/row_3557 | 56 | 82 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3557:ClassDef_L3_C0", "label": "FakeTime", "type": "class", "loc": [3, 5], "level": 0, "parent": null, "vector": [3, 0, 0.0488, 0.0366, 0, 0.66, 0.0, 425, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "FakeTime", "arg_names": [], "import_names": [], "rhs_call_name": "", "a... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3557:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3557:FunctionDef_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3557:FunctionDef_L4_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3557:Return_L5_C8"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#!/usr/bin/python
""" PRO build script"""
import os, shutil, sys
NIGHTLY=0
VERSION="B10"
PRO_BUILD = [
{ "fn": "620PRO-%s.rar", "config": "CONFIG_620=1" },
{ "fn": "635PRO-%s.rar", "config": "CONFIG_635=1" },
{ "fn": "639PRO-%s.rar", "config": "CONFIG_639=1" },
{ "fn": "660PRO-%s.rar", "config": "CONFIG... | ajibawa-2023/Python-Code-Large/train/row_3558 | 52 | 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_3558:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0297, 0.0099, 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_3558:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3558:If_L37_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3558:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3558:Expr_L41_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
# -*- coding: utf-8 -*-
'''
Created on 2014/01/03
@author: deadblue
'''
import webapp2
import logging
import template_wrapper
class MainPage(webapp2.RequestHandler):
def get(self):
logging.info("hello!")
data = {
'name' : 'world!'
}
template_wrapper.render_response(sel... | ajibawa-2023/Python-Code-Large/train/row_3559 | 10 | 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_3559:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 6], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.25, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3559:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3559:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3559:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3559:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-L... |
print 'Content-Type: text/plain'
print ''
print 'Hello, world!' | ajibawa-2023/Python-Code-Large/train/row_3560 | 3 | 3 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3560:Expr_L1_C0", "label": "print()", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 1], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", ... | [] |
# -*- coding: utf-8 -*-
'''
Created on 2014/01/03
@author: deadblue
'''
import jinja2
import os
template_ext = 'html'
jinja2_env = jinja2.Environment(autoescape=True, extensions=['jinja2.ext.autoescape'],
loader=jinja2.FileSystemLoader(os.path.join(os.path.dirname(__file__), 'template')))
def render(name, data)... | ajibawa-2023/Python-Code-Large/train/row_3561 | 12 | 23 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3561:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 6], "level": 0, "parent": null, "vector": [8, 0, 0.1739, 0.2174, 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_3561:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3561:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3561:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3561:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
#! /usr/bin/env python
# encoding: utf-8
# waf 1.6.10
VERSION='0.3.3'
import sys
APPNAME='p2t'
top = '.'
out = 'build'
CPP_SOURCES = ['poly2tri/common/shapes.cc',
'poly2tri/sweep/cdt.cc',
'poly2tri/sweep/advancing_front.cc',
'poly2tri/sweep/sweep_context.cc',
... | ajibawa-2023/Python-Code-Large/train/row_3563 | 25 | 45 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3563:Assign_L5_C0", "label": "VERSION =", "type": "assigned_variable", "loc": [5, 5], "level": 0, "parent": null, "vector": [14, 0, 0.1111, 0.0222, 0, 0.66, 0.0, 557, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "VERSION", "arg_names": [], "import_names": [], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3563:If_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3563:Assign_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3563:If_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3563:If_L25_C0"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3563:If... |
#!/usr/bin/python
import sys, hashlib
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def usage():
print ("Usage: " + sys.argv[0] + " infile outfile label")
def main():
if( len(sys.argv) != 4):
usage()
sys.exit()
fp = open( sys.argv[1] , "rb")
hash_str = has... | ajibawa-2023/Python-Code-Large/train/row_3564 | 23 | 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_3564:Import_L3_C0", "label": "sys import sys, hashlib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0714, 0.0238, 0, 0.66, 0.0, 509, 0, 2, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "hashlib... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3564:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3564:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3564:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3564:Expr_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
import sys, re, os
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def usage():
print ("Usage: " + os.path.split(__file__)[1] + " version outfile")
def crete_version_str(ver):
base = list("0.00")
version = str(ver)
ret = []
base[0] = version[0]
base... | ajibawa-2023/Python-Code-Large/train/row_3565 | 38 | 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_3565:Import_L3_C0", "label": "sys import sys, re, os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0577, 0.0192, 0, 0.66, 0.0, 509, 0, 3, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "re", "os... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3565:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3565:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3565:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3565:Expr_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
import os
def main():
lists = [
"ISODrivers/Galaxy/galaxy.prx",
"ISODrivers/March33/march33.prx",
"ISODrivers/March33/march33_620.prx",
"ISODrivers/March33/march33_660.prx",
"ISODrivers/Inferno/inferno.prx",
"Popcorn/popcorn.prx",
"Satelite/satelite.prx",
"Stargate/stargate.... | ajibawa-2023/Python-Code-Large/train/row_3566 | 10 | 29 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3566:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1034, 0.0345, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "",... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3566:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3566:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3566:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3566:For_L21_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
class FakeTime:
def time(self):
return 1225856967.109
import os, gzip, StringIO
gzip.time = FakeTime()
def create_gzip(input, output):
f_in=open(input, 'rb')
temp=StringIO.StringIO()
f=gzip.GzipFile(fileobj=temp, mode='wb')
f.writelines(f_in)
f.close()
f_in.close()
fout=open(out... | ajibawa-2023/Python-Code-Large/train/row_3567 | 30 | 44 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3567:ClassDef_L3_C0", "label": "FakeTime", "type": "class", "loc": [3, 5], "level": 0, "parent": null, "vector": [3, 0, 0.0909, 0.0682, 0, 0.66, 0.0, 425, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "FakeTime", "arg_names": [], "import_names": [], "rhs_call_name": "", "a... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3567:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3567:FunctionDef_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3567:FunctionDef_L4_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3567:Return_L5_C8"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#!/usr/bin/python
import os, sys, getopt
def usage():
print ("Usage: %s [-l size ] basefile input output" % (sys.argv[0]))
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def main():
inputsize = 0
try:
optlist, args = getopt.getopt(sys.argv[1:], 'l:h')
except getopt.GetoptError:
us... | ajibawa-2023/Python-Code-Large/train/row_3568 | 37 | 56 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3568:Import_L3_C0", "label": "os import os, sys, getopt", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0536, 0.0179, 0, 0.66, 0.0, 688, 0, 3, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys", "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3568:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3568:Expr_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3568:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3568:Assign_L9_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
from hashlib import *
import sys, struct
def sha512(psid):
if len(psid) != 16:
return "".encode()
for i in range(512):
psid = sha1(psid).digest()
return psid
def get_psid(str):
if len(str) != 32:
return "".encode()
b = "".encode()
for i in range(0, len(str), 2):
b += struct.pack('B... | ajibawa-2023/Python-Code-Large/train/row_3569 | 31 | 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_3569:ImportFrom_L3_C0", "label": "from hashlib import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0652, 0.0217, 0, 0.66, 0.0, 154, 0, 1, 0, 0, 154, 0, 0], "semantic": {"name": "hashlib", "arg_names": [], "import_names": ["*"], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3569:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3569:If_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3569:If_L7_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_3569:Return_L8_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_35... |
#!/usr/bin/python
import sys, os, gzip, StringIO
def dump_binary(fn, data):
f = open(fn, "wb")
f.write(data)
f.close()
def dec_prx(fn):
f = open(fn, "rb")
f.seek(0x150)
dat = f.read()
f.close()
temp=StringIO.StringIO(dat)
f=gzip.GzipFile(fileobj=temp, mode='rb')
dec = f.read(f)
f.close()
fn = "%s.dec.p... | ajibawa-2023/Python-Code-Large/train/row_3570 | 24 | 33 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3570:Import_L3_C0", "label": "sys import sys, os, gzip\u2026", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0909, 0.0303, 0, 0.66, 0.0, 509, 0, 4, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3570:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3570:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3570:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3570:Expr_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
import sys, hashlib
def toNID(name):
hashstr = hashlib.sha1(name.encode()).hexdigest().upper()
return "0x" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + hashstr[0:2]
if __name__ == "__main__":
assert(toNID("sceKernelCpuSuspendIntr") == "0x092968F4")
for name in sys.argv[1:]:
print ("%s: %s"... | ajibawa-2023/Python-Code-Large/train/row_3571 | 7 | 13 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3571:Import_L3_C0", "label": "sys import sys, hashlib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.2308, 0.0769, 0, 0.66, 0.0, 509, 0, 2, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "hashlib... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3571:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3571:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3571:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3571:Return_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large... |
#!/usr/bin/python
"""
pspbtcnf_editor: An script that add modules from pspbtcnf
"""
import sys, os, re
from getopt import *
from struct import *
BTCNF_MAGIC=0x0F803001
verbose = False
def print_usage():
print ("%s: pspbtcnf.bin [-o output.bin] [-a add_module_name:before_module_name:flag]" %(os.path... | ajibawa-2023/Python-Code-Large/train/row_3572 | 107 | 182 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3572:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.022, 0.0165, 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_3572:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3572:Expr_L16_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3572:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3572:Assign_L19_C1"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#!/usr/bin/python
class FakeTime:
def time(self):
return 1225856967.109
import sys, os, struct, gzip, hashlib, StringIO
gzip.time = FakeTime()
def binary_replace(data, newdata, offset):
return data[0:offset] + newdata + data[offset+len(newdata):]
def prx_compress(output, hdr, input, mod_name="", mod_a... | ajibawa-2023/Python-Code-Large/train/row_3573 | 56 | 82 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3573:ClassDef_L3_C0", "label": "FakeTime", "type": "class", "loc": [3, 5], "level": 0, "parent": null, "vector": [3, 0, 0.0488, 0.0366, 0, 0.66, 0.0, 425, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "FakeTime", "arg_names": [], "import_names": [], "rhs_call_name": "", "a... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3573:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3573:FunctionDef_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3573:FunctionDef_L4_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3573:Return_L5_C8"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#!/usr/bin/python
""" PRO build script"""
import os, shutil, sys
NIGHTLY=0
VERSION="B10"
PRO_BUILD = [
{ "fn": "620PRO-%s.rar", "config": "CONFIG_620=1" },
{ "fn": "635PRO-%s.rar", "config": "CONFIG_635=1" },
{ "fn": "639PRO-%s.rar", "config": "CONFIG_639=1" },
{ "fn": "660PRO-%s.rar", "config": "CONFIG... | ajibawa-2023/Python-Code-Large/train/row_3574 | 52 | 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_3574:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0297, 0.0099, 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_3574:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3574:If_L37_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3574:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3574:Expr_L41_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#Boa:Frame:IncomingRequestFrame
import wx
from request import *
import logging
from request import *
#get the logger instance for this app
logger = logging.getLogger('provinci')
def create(parent, request):
return IncomingRequestFrame(parent, request)
[wxID_INCOMINGREQUESTFRAME, wxID_INCOMINGREQUE... | ajibawa-2023/Python-Code-Large/train/row_3576 | 46 | 90 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3576:Import_L3_C0", "label": "wx import wx", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0333, 0.0111, 0, 0.66, 0.0, 666, 0, 1, 0, 0, 666, 0, 0], "semantic": {"name": "wx", "arg_names": [], "import_names": ["wx"], "rhs_call_name": "",... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3576:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3576:Return_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3576:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3576:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code... |
import yaml
from datetime import datetime
import logging
import pythoncom
#get the logger instance for this app
logger = logging.getLogger('provinci')
class Request(object):
def __init__(self, requester):
self.guid = str(pythoncom.CreateGuid())
self.timestamp = datetime.now()
... | ajibawa-2023/Python-Code-Large/train/row_3577 | 38 | 55 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3577:Import_L1_C0", "label": "yaml import yaml", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0182, 0.0182, 0, 0.66, 0.0, 960, 0, 1, 0, 0, 960, 0, 0], "semantic": {"name": "yaml", "arg_names": [], "import_names": ["yaml"], "rhs_call_na... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3577:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3577:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3577:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3577:Assign_L12_C8"}, {"f": "ajibawa-2023/Python-Code-... |
#!/usr/bin/env python
#Boa:App:BoaApp
import sys
import wx
import logging
import MainFrame
logger = logging.getLogger('provinci')
modules ={u'IncomingRequestFrame': [0, '', u'IncomingRequestFrame.py'],
u'MainFrame': [1, 'Main frame of Application', u'MainFrame.py'],
u'RequestFrame': [0, '', u'RequestFr... | ajibawa-2023/Python-Code-Large/train/row_3578 | 28 | 39 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3578:Import_L4_C0", "label": "sys import sys", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.1026, 0.0256, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name":... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3578:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3578:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3578:FunctionDef_L16_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3578:Expr_L17_C8"}, {"f": "ajibawa-2023/Python-Code-L... |
#Boa:Frame:requestFrame
import wx
import logging
from request import *
#get the logger instance for this app
logger = logging.getLogger('provinci')
def create(parent):
return requestFrame(parent)
[wxID_REQUESTFRAME, wxID_REQUESTFRAMEADDBUTTON,
wxID_REQUESTFRAMEADDRESSTEXTCTRL, wxID_REQUESTFRAMECA... | ajibawa-2023/Python-Code-Large/train/row_3579 | 74 | 163 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3579:Import_L3_C0", "label": "wx import wx", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0184, 0.0061, 0, 0.66, 0.0, 666, 0, 1, 0, 0, 666, 0, 0], "semantic": {"name": "wx", "arg_names": [], "import_names": ["wx"], "rhs_call_name": "",... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3579:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3579:Return_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3579:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3579:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code... |
#!/usr/bin/env python
#Boa:App:BoaApp
import sys
import wx
import logging
import MainFrame
logger = logging.getLogger('provinci')
modules ={u'IncomingRequestFrame': [0, '', u'IncomingRequestFrame.py'],
u'MainFrame': [1, 'Main frame of Application', u'MainFrame.py'],
u'RequestFrame': [0, '', u'RequestFr... | ajibawa-2023/Python-Code-Large/train/row_3580 | 28 | 39 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3580:Import_L4_C0", "label": "sys import sys", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.1026, 0.0256, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name":... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3580:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3580:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3580:FunctionDef_L16_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3580:Expr_L17_C8"}, {"f": "ajibawa-2023/Python-Code-L... |
#This contains global definition of Browser class and other useful thing
#######################################################################################
# #
# File: browser_bogus.py ... | ajibawa-2023/Python-Code-Large/train/row_3582 | 10 | 44 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3582:Import_L33_C0", "label": "urllib2 import urllib2", "type": "import", "loc": [33, 33], "level": 0, "parent": null, "vector": [1, 0, 0.75, 0.0227, 0, 0.66, 0.0, 345, 0, 1, 0, 0, 345, 0, 0], "semantic": {"name": "urllib2", "arg_names": [], "import_names": ["urllib2"],... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3582:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3582:FunctionDef_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3582:FunctionDef_L37_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_3582:Assign_L38_C8"}, {"f": "ajibawa-2023/Python-Code... |
#! /usr/bin/python
#######################################################################################
# #
# File: ad_auto.py #
# Part of 2dgal-cheater ... | ajibawa-2023/Python-Code-Large/train/row_3583 | 67 | 143 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3583:Import_L35_C0", "label": "time import time", "type": "import", "loc": [35, 35], "level": 0, "parent": null, "vector": [1, 0, 0.2448, 0.007, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call_... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3583:FunctionDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3583:Assign_L64_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3583:FunctionDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3583:Assign_L72_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
#######################################################################################
# #
# File: gojuon.py #
# Part of 2dgal-cheater ... | ajibawa-2023/Python-Code-Large/train/row_3584 | 1 | 250 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3584:Assign_L34_C0", "label": "gojuon =", "type": "assigned_variable", "loc": [34, 250], "level": 0, "parent": null, "vector": [14, 0, 0.568, 0.868, 0, 0.66, 0.0, 833, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "gojuon", "arg_names": [], "import_names": [], "rhs_call_na... | [] |
#! /usr/bin/python
#######################################################################################
# #
# File: ad_auto.py #
# Part of 2dgal-cheater ... | ajibawa-2023/Python-Code-Large/train/row_3586 | 67 | 143 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3586:Import_L35_C0", "label": "time import time", "type": "import", "loc": [35, 35], "level": 0, "parent": null, "vector": [1, 0, 0.2448, 0.007, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call_... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3586:FunctionDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3586:Assign_L64_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3586:FunctionDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3586:Assign_L72_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
#! /usr/bin/python
#######################################################################################
# #
# File: gojuon_gen.py #
# Part of 2dgal-cheater ... | ajibawa-2023/Python-Code-Large/train/row_3587 | 15 | 55 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3587:Import_L35_C0", "label": "urllib import urllib", "type": "import", "loc": [35, 35], "level": 0, "parent": null, "vector": [1, 0, 0.6364, 0.0182, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "urllib", "arg_names": [], "import_names": ["urllib"], "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3587:For_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3587:Assign_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3587:For_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3587:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3... |
#! /usr/bin/python
#######################################################################################
# #
# File: gojuon_gen.py #
# Part of 2dgal-cheater ... | ajibawa-2023/Python-Code-Large/train/row_3589 | 15 | 55 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_3589:Import_L35_C0", "label": "urllib import urllib", "type": "import", "loc": [35, 35], "level": 0, "parent": null, "vector": [1, 0, 0.6364, 0.0182, 0, 0.66, 0.0, 614, 0, 1, 0, 0, 614, 0, 0], "semantic": {"name": "urllib", "arg_names": [], "import_names": ["urllib"], "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_3589:For_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3589:Assign_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3589:For_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_3589:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.