Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LeapLabTHU/Absolute-Zero-Reasoner
/ functions
Functions
861 in github.com/LeapLabTHU/Absolute-Zero-Reasoner
⨍
Functions
861
◇
Types & classes
85
↳
Endpoints
9
↓ 1 callers
Method
mutate
(self, seed: TestInput)
evaluation/code_eval/coding/evalplus/tools/_experimental/type_mut_for_eff.py:456
↓ 1 callers
Method
mutate
(self, seed_input: Any)
evaluation/code_eval/coding/evalplus/evalplus/gen/type_mut.py:51
↓ 1 callers
Method
mutate
(self, seed_input: Any)
evaluation/code_eval/coding/evalplus/evalplus/gen/mut_gen.py:18
↓ 1 callers
Function
my_parse_latex
(expr_str)
evaluation/math_eval/eval/math_utils.py:46
↓ 1 callers
Function
normalize_model_name
Extract and normalize model name from path
evaluation/math_eval/eval/sh/collect_results.py:33
↓ 1 callers
Function
normalize_to_base_name
(name: str)
evaluation/code_eval/coding/evalplus/tools/evalperf/intra_model_viz.py:14
↓ 1 callers
Function
normalize_to_base_name
(name: str)
evaluation/code_eval/coding/evalplus/tools/evalperf/viz_by_params.py:14
↓ 1 callers
Function
parse_args
()
evaluation/math_eval/eval/math_eval.py:23
↓ 1 callers
Function
parse_args
()
evaluation/math_eval/eval/evaluate.py:164
↓ 1 callers
Function
parse_assert_statement
Parse a Python assert statement and extract the expected output from the right side of the '==' operator as a string. :param statement:
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/compute_test_output_prediction_metrics.py:9
↓ 1 callers
Function
parse_function_name_from_starter_code
starter_code : str
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/test_output_prediction.py:53
↓ 1 callers
Function
parse_imports
(code_snippet: str)
absolute_zero_reasoner/utils/code_utils/parsers.py:6
↓ 1 callers
Function
parse_lcov
(outputs: List[str])
evaluation/code_eval/coding/evalplus/tools/tsr/coverage_init.py:27
↓ 1 callers
Function
parse_lcov
(outputs: List[str], func: Callable, mode: str = "branch")
evaluation/code_eval/coding/evalplus/tools/_experimental/evaluate_coverage.py:39
↓ 1 callers
Function
parse_model_and_type
(result_json: str)
evaluation/code_eval/coding/evalplus/tools/evalperf/intra_model_viz.py:50
↓ 1 callers
Function
parse_model_and_type
(result_json: str)
evaluation/code_eval/coding/evalplus/tools/evalperf/viz_by_params.py:50
↓ 1 callers
Function
parse_question
(example, data_name)
evaluation/math_eval/eval/parser.py:621
↓ 1 callers
Function
pass_at_k
(n, c, k)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/compute_code_execution_metrics.py:21
↓ 1 callers
Function
passk_rel_drop
(task2bvs_old, task2bvs_new)
evaluation/code_eval/coding/evalplus/tools/viz_passrate.py:31
↓ 1 callers
Function
post_process
Post-process the LLM generated text to make it valid.
evaluation/code_eval/coding/evalplus/evalplus/perf/sampling.py:58
↓ 1 callers
Function
prepare_data
(data_name, args)
evaluation/math_eval/eval/math_eval.py:63
↓ 1 callers
Function
prepare_mutants
(mutation_dir: str, dataset: str)
evaluation/code_eval/coding/evalplus/tools/tsr/mutation_init.py:20
↓ 1 callers
Function
process_data
(args)
absolute_zero_reasoner/data_construction/process_data.py:102
↓ 1 callers
Method
process_generation_to_code
(self, gens: str)
evaluation/math_eval/eval/python_executor.py:91
↓ 1 callers
Method
process_generation_to_code
(self, gens: str)
absolute_zero_reasoner/utils/code_utils/python_executor.py:137
↓ 1 callers
Function
query_maximum_memory_bytes
()
evaluation/code_eval/coding/evalplus/evalplus/eval/__init__.py:99
↓ 1 callers
Function
reliability_guard
This disables various destructive functions and prevents the generated code from interfering with the test (e.g. fork bomb, killing other pro
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/utils_execute.py:189
↓ 1 callers
Function
reliability_guard
This disables various destructive functions and prevents the generated code from interfering with the test (e.g. fork bomb, killing other pro
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/testing_util.py:473
↓ 1 callers
Function
remove_any_not_definition_imports
Remove anything that is not a definition or import. Preserves: - Import/From imports - Class definitions - Function/AsyncFunctio
absolute_zero_reasoner/utils/code_utils/parsers.py:89
↓ 1 callers
Function
remove_comments_and_docstrings
Remove all comments and docstrings from the code.
absolute_zero_reasoner/utils/code_utils/parsers.py:56
↓ 1 callers
Function
remove_print_statements
Remove all print statements from the code.
absolute_zero_reasoner/utils/code_utils/parsers.py:189
↓ 1 callers
Function
remove_right_units
(string: str)
evaluation/math_eval/eval/custom_evaluate.py:531
↓ 1 callers
Function
remove_right_units
(string: str)
absolute_zero_reasoner/rewards/custom_evaluate.py:300
↓ 1 callers
Function
remove_unindented_lines
( code: str, protect_before: str, execeptions: List[str], trim_tails: List[str] )
evaluation/code_eval/coding/evalplus/evalplus/lecacy_sanitize.py:23
↓ 1 callers
Function
replace_main_function_name
Replace all occurrences of `old_name` with `new_name` in the code. Replace the definition and all recursive calls of `old_name` with `new_nam
absolute_zero_reasoner/utils/code_utils/parsers.py:42
↓ 1 callers
Function
rich_print
(before_summary, after_summary, bfgreedy, afgreedy)
evaluation/code_eval/coding/evalplus/tools/render.py:120
↓ 1 callers
Method
run_code
(self, code: str, inputs: str, imports: List[str] = [])
absolute_zero_reasoner/utils/code_utils/python_executor.py:140
↓ 1 callers
Function
run_execute
(executor, result, prompt_type, data_name, execute=False, azr=False)
evaluation/math_eval/eval/parser.py:747
↓ 1 callers
Function
run_huggingface_download
Run huggingface-cli download and return the model path.
absolute_zero_reasoner/utils/remove_think_qwen3_tokenizer.py:9
↓ 1 callers
Method
run_main
(self, benchmark: list, format_prompt: callable)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/runner/base_runner.py:173
↓ 1 callers
Method
run_main_repair
(self, benchmark: list, format_prompt: callable)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/runner/base_runner.py:123
↓ 1 callers
Function
run_ppo
(config)
absolute_zero_reasoner/main_azr_ppo.py:37
↓ 1 callers
Method
run_single
Run the model for a single prompt and return the output Static method to be used in multiprocessing Calls the _run_single met
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/runner/base_runner.py:40
↓ 1 callers
Function
run_tasks_in_parallel
Args: func: The function to run. The function must accept a single argument. tasks: A list of tasks i.e. arguments to func.
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/utils/multiprocess.py:193
↓ 1 callers
Function
run_tasks_in_parallel_iter
Args: func: The function to run. The function must accept a single argument. tasks: A list of tasks i.e. arguments to func.
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/utils/multiprocess.py:98
↓ 1 callers
Function
run_test
if test(generated_code) is not None it'll try to run the code. otherwise it'll just return an input and output pair.
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/testing_util.py:392
↓ 1 callers
Method
save_cache
(self)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/runner/base_runner.py:30
↓ 1 callers
Function
save_jsonl
(samples, save_path)
evaluation/math_eval/eval/utils.py:30
↓ 1 callers
Method
scheduler_step
(self)
absolute_zero_reasoner/trainer/ppo/azr_ray_trainer.py:2066
↓ 1 callers
Method
seed_selection
(self)
evaluation/code_eval/coding/evalplus/evalplus/gen/type_mut.py:47
↓ 1 callers
Method
seed_selection
(self)
evaluation/code_eval/coding/evalplus/evalplus/gen/chatgpt_gen.py:26
↓ 1 callers
Function
set_seed
(seed: int = 42)
evaluation/math_eval/eval/utils.py:13
↓ 1 callers
Function
setup
(args)
evaluation/math_eval/eval/math_eval.py:110
↓ 1 callers
Function
should_allow_eval
(expr: str)
absolute_zero_reasoner/rewards/math_utils.py:336
↓ 1 callers
Function
simple_test_profiler
()
evaluation/code_eval/coding/evalplus/evalplus/perf/profile.py:31
↓ 1 callers
Function
str_to_pmatrix
(input_str)
evaluation/math_eval/eval/grader.py:60
↓ 1 callers
Function
swallow_io
()
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/utils_execute.py:134
↓ 1 callers
Function
test
()
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/runner/parser.py:148
↓ 1 callers
Function
test
()
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/code_generation.py:359
↓ 1 callers
Function
test
()
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/self_repair.py:321
↓ 1 callers
Function
test_code_coverage
( identifier: str, code: str, inputs: List[List[Any]], entry_point: str )
evaluation/code_eval/coding/evalplus/tools/tsr/coverage_init.py:50
↓ 1 callers
Function
test_code_coverage
( code: str, inputs: List[List[Any]], entry_point: str, mode="branch" )
evaluation/code_eval/coding/evalplus/tools/_experimental/evaluate_coverage.py:80
↓ 1 callers
Function
test_output_metrics
( samples, generations, k_list=[1, 5], )
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/compute_test_output_prediction_metrics.py:78
↓ 1 callers
Function
test_solutions
Test solutions, return functionally correct solutions
evaluation/code_eval/coding/evalplus/tools/collect_valid_solutions.py:128
↓ 1 callers
Function
texprint
(before_summary, after_summary, bfgreedy, afgreedy)
evaluation/code_eval/coding/evalplus/tools/render.py:85
↓ 1 callers
Function
thresh_fn
(base_thresh, x, weight=0.002)
evaluation/code_eval/coding/evalplus/evalplus/perf/select_pe_tasks.py:82
↓ 1 callers
Function
time_limit
(seconds)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/utils_execute.py:121
↓ 1 callers
Method
to_dict
(self)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/lm_styles.py:49
↓ 1 callers
Function
to_four_space_indents
(old_code)
evaluation/code_eval/coding/evalplus/evalplus/lecacy_sanitize.py:50
↓ 1 callers
Function
trajectory_to_text
(trajectory: list)
evaluation/math_eval/eval/trajectory.py:51
↓ 1 callers
Function
traverse_tree
(node: Node)
evaluation/code_eval/coding/evalplus/evalplus/sanitize.py:83
↓ 1 callers
Function
turn_all_list_into_tuple
(inp)
evaluation/code_eval/coding/evalplus/evalplus/data/mbpp.py:148
↓ 1 callers
Method
typed_fetch
(self, seed_input: int)
evaluation/code_eval/coding/evalplus/tools/_experimental/type_mut_for_eff.py:378
↓ 1 callers
Method
typed_mutate
(self, seed_input: int)
evaluation/code_eval/coding/evalplus/tools/_experimental/type_mut_for_eff.py:251
↓ 1 callers
Method
typed_size
(self, _)
evaluation/code_eval/coding/evalplus/tools/_experimental/type_mut_for_eff.py:62
↓ 1 callers
Function
validate_tags
Validates that the entire string is composed solely of properly nested HTML-like tags, allowing any whitespace (spaces, tabs, newlines) betwe
evaluation/math_eval/eval/custom_evaluate.py:204
↓ 1 callers
Function
void_calls
(source, functors, skip_main_fn=True)
evaluation/code_eval/coding/evalplus/tools/collect_valid_solutions.py:57
↓ 1 callers
Function
write
(new_input_dict)
evaluation/code_eval/coding/evalplus/tools/filter_inputs.py:17
↓ 1 callers
Function
write_str_or_json
(prompt)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/prompts/self_repair.py:322
↓ 1 callers
Function
zipngram
(text: str, ngram_size: int)
evaluation/math_eval/eval/custom_evaluate.py:634
Method
__call__
(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs)
evaluation/math_eval/eval/model_utils.py:15
Method
__call__
(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs)
evaluation/math_eval/eval/model_utils.py:40
Method
__call__
(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs)
evaluation/math_eval/eval/model_utils.py:65
Method
__call__
(obj, func)
evaluation/code_eval/coding/evalplus/tools/_experimental/type_mut_for_eff.py:32
Method
__call__
(obj, func)
evaluation/code_eval/coding/evalplus/evalplus/gen/type_mut.py:24
Method
__call__
We will expand this function gradually based on the available datasets
absolute_zero_reasoner/rewards/reward_managers.py:339
Method
__del__
(self)
absolute_zero_reasoner/utils/code_utils/sandboxfusion_executor.py:160
Method
__del__
(self)
absolute_zero_reasoner/utils/code_utils/python_executor.py:116
Method
__enter__
(self)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/testing_util.py:60
Method
__enter__
(self)
evaluation/code_eval/coding/evalplus/tools/tsr/coverage_init.py:16
Method
__enter__
(self)
evaluation/code_eval/coding/evalplus/tools/_experimental/evaluate_coverage.py:28
Method
__exit__
(self, *args)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/evaluation/testing_util.py:67
Method
__exit__
(self, *args)
evaluation/code_eval/coding/evalplus/tools/tsr/coverage_init.py:21
Method
__exit__
(self, *args)
evaluation/code_eval/coding/evalplus/tools/_experimental/evaluate_coverage.py:33
Method
__getitem__
Note that we also return the raw_input_ids so that it can be combined with other chat template
absolute_zero_reasoner/utils/dataset/rl_dataset.py:140
Method
__getstate__
(self)
absolute_zero_reasoner/utils/dataset/rl_dataset.py:173
Method
__hash__
(self)
evaluation/code_eval/coding/LiveCodeBench/lcb_runner/lm_styles.py:46
Method
__init__
(self, keywords_str, tokenizer)
evaluation/math_eval/eval/model_utils.py:10
Method
__init__
(self, stop_id_sequences, prompt_length)
evaluation/math_eval/eval/model_utils.py:35
Method
__init__
(self)
evaluation/math_eval/eval/python_executor.py:24
← previous
next →
501–600 of 861, ranked by callers