MCPcopy Create free account

hub / github.com/akumar2709/OVERTHINK_public / functions

Functions42 in github.com/akumar2709/OVERTHINK_public

↓ 5 callersFunction_get_env
(name: str)
utils.py:58
↓ 3 callersFunctionbuild_attack_contexts
(question, context, samples)
compile_datasets.py:45
↓ 2 callersFunctioncall_provider
(provider, prompt, model)
context_agnostic_hf.py:58
↓ 2 callersFunctionextract_reasoning_tokens
Extract reasoning token count from response.
context_agnostic_hf.py:268
↓ 2 callersFunctionget_score
( sample, processed_samples, sample_index=3, score_model="o3-mini", repeats=3, fetch_u
icl_evolve.py:214
↓ 2 callersFunctionrun_command
(user_prompt, system_prompt=None, model="o3-mini", max_retries=5, base_delay=1.0)
icl_evolve.py:119
↓ 2 callersFunctiontop_p_sample
(text_to_score, top_p=0.9, k=5)
icl_evolve.py:169
↓ 1 callersFunction_load_env
()
utils.py:46
↓ 1 callersFunction_manual_load_env
(env_path: Path)
utils.py:29
↓ 1 callersFunctionanthropic_run_command_sonnet_reasoning
(user_prompt, system_prompt=None)
utils.py:104
↓ 1 callersFunctioncompile_freshqa
(freshqa_csv, samples, output_path, limit, fetch_urls)
compile_datasets.py:53
↓ 1 callersFunctioncompile_musr
(samples, output_dir, limit)
compile_datasets.py:104
↓ 1 callersFunctioncompile_squad
(samples, output_path, limit)
compile_datasets.py:85
↓ 1 callersFunctioncount_tokens
Count tokens in text using tiktoken.
context_agnostic_hf.py:128
↓ 1 callersFunctiondebug_response_structure
Helper function to debug response structure.
context_agnostic_hf.py:235
↓ 1 callersFunctionensure_tokenizer_cache_dirs
()
context_agnostic_hf.py:80
↓ 1 callersFunctionextract_thinking_text
Extract thinking/reasoning text from various response formats.
context_agnostic_hf.py:141
↓ 1 callersFunctionfetch_wikipedia_article
(url)
compile_datasets.py:25
↓ 1 callersFunctionfetch_wikipedia_article
(url)
icl_evolve.py:92
↓ 1 callersFunctionformat_token_average
(total, count)
context_agnostic_hf.py:328
↓ 1 callersFunctionget_attack_columns
(df)
context_agnostic_hf.py:45
↓ 1 callersFunctionget_env
(name)
icl_evolve.py:84
↓ 1 callersFunctionget_reasoning_tokens
(response)
icl_evolve.py:159
↓ 1 callersFunctionget_token_encoder
()
context_agnostic_hf.py:92
↓ 1 callersFunctionicl_evolve_verbalized_sampling
( handwritten_examples, system_prompt, processed_samples, top_p=0.6, k=5, epochs=15,
icl_evolve.py:255
↓ 1 callersFunctionload_env
()
icl_evolve.py:63
↓ 1 callersFunctionload_processed_samples
(freshqa_csv)
icl_evolve.py:203
↓ 1 callersFunctionmain
()
compile_datasets.py:134
↓ 1 callersFunctionmain
()
context_agnostic_hf.py:431
↓ 1 callersFunctionmain
()
icl_evolve.py:321
↓ 1 callersFunctionprint_token_averages
(token_sums, token_counts)
context_agnostic_hf.py:334
↓ 1 callersFunctionresolve_split
(split_name)
context_agnostic_hf.py:72
↓ 1 callersFunctionrun_command
(prompt, model)
utils.py:151
↓ 1 callersFunctionrun_command_firework
(prompt, model="deepseek_firework")
utils.py:65
↓ 1 callersFunctionrun_command_gemini
(prompt)
utils.py:93
↓ 1 callersFunctionrun_command_mistral
(prompt, model="magistral-small-2509")
utils.py:81
↓ 1 callersFunctionrun_experiment
( df, provider, model, output_file, attack_cols, start_index=0, limit=None, )
context_agnostic_hf.py:342
↓ 1 callersFunctionsample_extraction
(text)
icl_evolve.py:198
↓ 1 callersFunctionsave_outputs
(sample_score, best_scores, csv_path, plot_path)
icl_evolve.py:305
Functionbuild_attack_contexts
(question, context, samples)
icl_evolve.py:111
Functionbuild_original_prompt
(question, source)
context_agnostic_hf.py:38
Functionsort_key
(col)
context_agnostic_hf.py:48