MCPcopy Create free account

hub / github.com/albertan017/LLM4Decompile / functions

Functions184 in github.com/albertan017/LLM4Decompile

↓ 6 callersFunctionfrac
(passed: int, denom: int)
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:513
↓ 6 callersMethodgenerate
( self, input: str, max_new_tokens: int, do_sample: bool, pbar: tqdm,
evaluation/server/text_generation.py:69
↓ 6 callersFunctionrelative_to_repo
Return a path relative to repo_root when possible.
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:292
↓ 5 callersFunctioncanonicalize
Normalize newlines for reliable substring matching.
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:130
↓ 5 callersFunctioncapture_artifacts
()
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:390
↓ 4 callersFunction_read_text
(path: Path)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:88
↓ 3 callersFunctionllm_inference
(inputs, model_path, gpus=1, max_total_tokens=8192,
sk2decompile/evaluation/llm_server.py:43
↓ 3 callersFunctionrun_command
Run a command, capture stdout/stderr, and write everything to log_handle.
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:195
↓ 2 callersFunction_build_summary_text
Build a naming summary string from classified identifiers. Example: "func: foo bar || type: my_type || field: field1 field2 || var: i j k"
sk2decompile/verl/SK2DECOMPILE/reward_functions/embedding_qwen3.py:128
↓ 2 callersFunction_build_summary_text
Build a naming summary string from classified identifiers. Example: "func: foo bar || type: my_type || field: field1 field2 || var: i j k"
sk2decompile/verl/SK2DECOMPILE/reward_functions/embedding_gte.py:128
↓ 2 callersFunction_clean_asm_block
(name: str, lines: List[str])
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:390
↓ 2 callersFunction_extract_identifiers_ts
Extract identifiers from C code using tree-sitter, classified by type.
sk2decompile/verl/SK2DECOMPILE/reward_functions/embedding_qwen3.py:109
↓ 2 callersFunction_extract_identifiers_ts
Extract identifiers from C code using tree-sitter, classified by type.
sk2decompile/verl/SK2DECOMPILE/reward_functions/embedding_gte.py:109
↓ 2 callersFunctionactivate_neftune
r""" Activates the neftune as presented in this code: https://github.com/neelsjain/NEFTune and paper: https://arxiv.org/abs/2310.05914
train/colossalai_llm4decompile/colossal_llama/utils/neftune_patch.py:51
↓ 2 callersFunctioncompose_case_id
Build a stable identifier for a case.
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:163
↓ 2 callersFunctiondeactivate_neftune
Deactivates the neftune method. Make sure to call `_activate_neftune` first.
train/colossalai_llm4decompile/colossal_llama/utils/neftune_patch.py:65
↓ 2 callersFunctioneval_funcs
(json_file, decompiler, prompt, opt, api_key)
sk2decompile/evaluation/gpt_judge.py:128
↓ 2 callersFunctioneval_score
(json_file, decompiler, opt)
sk2decompile/evaluation/gpt_judge.py:75
↓ 2 callersFunctionexecute_rate_main
(testsets, gen_results, num_workers=20, timeout=10, language='cpp', opt="-O0")
sk2decompile/evaluation/metrics/cal_execute_rate.py:72
↓ 2 callersFunctionextract_terms
(text)
sk2decompile/verl/SK2DECOMPILE/reward_functions/exe_type.py:41
↓ 2 callersFunctioninit_case_result
Create a CaseResult with basic metadata for the given case.
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:300
↓ 2 callersFunctionllm_inference
(inputs, model_path, gpus=1, max_total_tokens=8192,
decompile-bench/llm_server.py:43
↓ 2 callersFunctionrecord_result
(idx: int, case_result: CaseResult)
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:645
↓ 2 callersMethodset_start_index
(self, start_index: int)
train/colossalai_llm4decompile/colossal_llama/dataset/loader.py:174
↓ 2 callersMethodsetup
(self)
train/colossalai_llm4decompile/colossal_llama/utils/flash_attention_patch.py:228
↓ 2 callersFunctionunwrap
(model)
train/colossalai_llm4decompile/colossal_llama/utils/neftune_patch.py:18
↓ 1 callersFunction_build_map
(binary: Path, repo_root: Path)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:437
↓ 1 callersFunction_classify_node
Classify a tree-sitter node into identifier categories: - func: function names (definitions + calls) - var: variable names (parameters /
sk2decompile/verl/SK2DECOMPILE/reward_functions/embedding_qwen3.py:78
↓ 1 callersFunction_classify_node
Classify a tree-sitter node into identifier categories: - func: function names (definitions + calls) - var: variable names (parameters /
sk2decompile/verl/SK2DECOMPILE/reward_functions/embedding_gte.py:78
↓ 1 callersFunction_clean_instruction
(raw: str)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:370
↓ 1 callersFunction_collect_source_functions
(bench_dir: Path, repo_root: Path)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:317
↓ 1 callersFunction_cosine_similarity
(vec_a: Sequence[float], vec_b: Sequence[float])
sk2decompile/verl/SK2DECOMPILE/reward_functions/embedding_qwen3.py:63
↓ 1 callersFunction_cosine_similarity
(vec_a: Sequence[float], vec_b: Sequence[float])
sk2decompile/verl/SK2DECOMPILE/reward_functions/embedding_gte.py:63
↓ 1 callersFunction_discover_binaries
(explicit: Optional[List[str]], repo_root: Path)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:420
↓ 1 callersFunction_embed_two
Embed two texts in a single API call, return their embedding vectors.
sk2decompile/verl/SK2DECOMPILE/reward_functions/embedding_qwen3.py:54
↓ 1 callersFunction_embed_two
Embed two texts in a single API call, return their embedding vectors.
sk2decompile/verl/SK2DECOMPILE/reward_functions/embedding_gte.py:54
↓ 1 callersFunction_extract_source_functions
(path: Path, repo_root: Path)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:261
↓ 1 callersFunction_find_matching_brace
(text: str, start_idx: int)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:220
↓ 1 callersFunction_format_with_clang
(func: str, style: str = "Google")
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:105
↓ 1 callersFunction_get_bench_root
Resolve the benchmark repo root from CLI arg, env var, or config.env.
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:75
↓ 1 callersFunction_get_bench_root
Resolve the benchmark repo root from CLI arg, env var, or config.env.
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:39
↓ 1 callersFunction_get_client
()
sk2decompile/verl/SK2DECOMPILE/reward_functions/embedding_qwen3.py:42
↓ 1 callersFunction_get_client
()
sk2decompile/verl/SK2DECOMPILE/reward_functions/embedding_gte.py:42
↓ 1 callersFunction_get_output_path
()
sk2decompile/evaluation/bringupbench/scripts/dump_pseudo.py:20
↓ 1 callersFunction_good_func
(func: str)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:96
↓ 1 callersFunction_hex_to_dec
(text: str)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:124
↓ 1 callersFunction_identifier_similarity_ts
Compute identifier-level similarity using embedding cosine similarity. Steps: 1. Extract identifiers from both texts using tree-sitter
sk2decompile/verl/SK2DECOMPILE/reward_functions/embedding_qwen3.py:143
↓ 1 callersFunction_identifier_similarity_ts
Compute identifier-level similarity using embedding cosine similarity. Steps: 1. Extract identifiers from both texts using tree-sitter
sk2decompile/verl/SK2DECOMPILE/reward_functions/embedding_gte.py:143
↓ 1 callersFunction_load_config_env
Load config.env from the eval project root.
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:59
↓ 1 callersFunction_load_config_env
Load config.env from the eval project root.
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:23
↓ 1 callersFunction_normalize_pseudo
(text: str)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:166
↓ 1 callersFunction_parse_assembly
(asm_path: Path)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:399
↓ 1 callersFunction_parse_makefile
(makefile: Path)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:291
↓ 1 callersFunction_parse_pseudo
(pseudo_path: Path, repo_root: Path)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:326
↓ 1 callersFunction_process_code
(code_str: str)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:158
↓ 1 callersFunction_remove_comments
(text: str)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:152
↓ 1 callersFunction_remove_keywords
(text: str)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:135
↓ 1 callersFunction_replace_typedefs
(text: str)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:145
↓ 1 callersFunction_strip_comments_and_strings
(text: str)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:179
↓ 1 callersFunction_strip_empty
(code: str)
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:92
↓ 1 callersFunction_tokenize_fn
Tokenize a list of strings.
train/finetune.py:54
↓ 1 callersFunctionall_reduce_mean
(tensor: torch.Tensor)
train/colossalai_llm4decompile/train.py:56
↓ 1 callersFunctionbuild_instruction_prompt
(instruction: str)
train/finetune.py:16
↓ 1 callersFunctioncollect_cases
Yield cases from jsonl file respecting the optional limit.
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:492
↓ 1 callersFunctioncomment_remover
(text)
sk2decompile/Preprocess/format.py:21
↓ 1 callersFunctioncompileable_score
Check if the candidate C code compiles with gcc. Args: extra_info: Optional dict with 'header' key containing C header declarations.
sk2decompile/verl/SK2DECOMPILE/reward_functions/exe_type.py:57
↓ 1 callersFunctioncompileable_score
Check if the candidate C code compiles with gcc. Args: extra_info: Optional dict with 'header' key containing C header declarations.
sk2decompile/verl/SK2DECOMPILE/reward_functions/sim_exe.py:41
↓ 1 callersFunctioncompute_ES
(target, prediction)
decompile-bench/metrics/cal_edit_sim.py:2
↓ 1 callersFunctioncompute_summary
Aggregate statistics over all case results.
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:506
↓ 1 callersFunctiondecompile_pass_rate
(testsets, gen_results_repeat, opts, args)
evaluation/run_evaluation_llm4decompile.py:108
↓ 1 callersFunctiondecompile_pass_rate
(testsets, gen_results_repeat, opts, args)
evaluation/run_evaluation_llm4decompile_vllm.py:109
↓ 1 callersFunctionensure_case_output_dir
Create the per-case output directory, handling file path collisions.
sk2decompile/evaluation/bringupbench/scripts/eval_infer_out.py:171
↓ 1 callersFunctioneval
(json_file, lan, decompilers, metrics)
sk2decompile/evaluation/evaluate_exe.py:49
↓ 1 callersFunctionevaluate_func
(c_func,c_test,c_func_decompile)
evaluation/run_evaluation_llm4decompile_singleGPU.py:16
↓ 1 callersFunctionexecute_rate
(func_dep, func, func_test=None, timeout=10, language='cpp', opt="-O0")
sk2decompile/evaluation/metrics/cal_execute_rate.py:19
↓ 1 callersFunctionexecute_rate
(func_dep, func, func_test=None, timeout=10, language='cpp', opt="-O0")
decompile-bench/metrics/cal_execute_rate.py:12
↓ 1 callersFunctionexecute_rate_main
(testsets, gen_results, num_workers=10, timeout=10, opt="-O0")
decompile-bench/metrics/cal_execute_rate.py:65
↓ 1 callersFunctionformat_numel_str
(numel: int)
train/colossalai_llm4decompile/train.py:42
↓ 1 callersFunctionformat_with_clang
(func: str, style: str = "Google")
sk2decompile/Preprocess/normalize_src_basedonpseudo.py:22
↓ 1 callersFunctionformat_with_clang
(func: str, style: str = "Google")
sk2decompile/Preprocess/format.py:36
↓ 1 callersFunctionformat_with_clang
(func: str, style: str = "Google")
sk2decompile/evaluation/normalize_pseudo.py:22
↓ 1 callersFunctionfreeze_non_embeds_parameters
Freeze all parameters except embeddings.
train/colossalai_llm4decompile/colossal_llama/utils/froze.py:7
↓ 1 callersMethodgenerate_code_results
( self, inputs: List[str], max_new_tokens: int, num_outputs: int, task
evaluation/server/text_generation.py:106
↓ 1 callersFunctionget_model_numel
(model: torch.nn.Module)
train/colossalai_llm4decompile/train.py:38
↓ 1 callersFunctionget_prompt_template
Generates a prompt template for chat models based on input and history. Args: input_query (str): User's current input query.
train/colossalai_llm4decompile/colossal_llama/utils/stream_chat_patch.py:13
↓ 1 callersFunctionget_score
(metric, json_file, opt, decompiler, language)
sk2decompile/evaluation/evaluate_exe.py:9
↓ 1 callersFunctiongood_func
(func)
sk2decompile/Preprocess/normalize_src_basedonpseudo.py:10
↓ 1 callersFunctiongood_func
(func)
sk2decompile/Preprocess/format.py:8
↓ 1 callersFunctiongood_func
(func)
sk2decompile/evaluation/normalize_pseudo.py:10
↓ 1 callersFunctionhex_to_dec
(text)
sk2decompile/Preprocess/normalize_src_basedonpseudo.py:47
↓ 1 callersFunctionhex_to_dec
(text)
sk2decompile/evaluation/normalize_pseudo.py:47
↓ 1 callersFunctionjaccard_similarity
Compute word-level Jaccard similarity between two strings.
sk2decompile/verl/SK2DECOMPILE/reward_functions/sim_exe.py:28
↓ 1 callersFunctionjsonfile
()
sk2decompile/evaluation/inf_type.py:136
↓ 1 callersFunctionload_checkpoint
Load model checkpoint, optimizer, LR scheduler and intermedidate running states.
train/colossalai_llm4decompile/colossal_llama/utils/ckpt_io.py:67
↓ 1 callersFunctionload_json
Load file in JSON format
train/colossalai_llm4decompile/colossal_llama/utils/ckpt_io.py:20
↓ 1 callersFunctionload_tokenized_dataset
Load pre-tokenized dataset. Each instance of dataset is a dictionary with `{'input_ids': List[int], 'labels': List[int], sequence: str}`
train/colossalai_llm4decompile/colossal_llama/dataset/loader.py:19
↓ 1 callersFunctionmain
()
sk2decompile/Preprocess/inf_type.py:60
↓ 1 callersFunctionmain
()
sk2decompile/evaluation/gpt_judge.py:163
↓ 1 callersFunctionmain
(argv: List[str])
sk2decompile/evaluation/bringupbench/scripts/build-func-maps.py:469
↓ 1 callersFunctionmain
()
sk2decompile/evaluation/bringupbench/scripts/dump_pseudo.py:28
next →1–100 of 184, ranked by callers