Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RUC-NLPIR/WebThinker
/ functions
Functions
400 in github.com/RUC-NLPIR/WebThinker
⨍
Functions
400
◇
Types & classes
45
↳
Endpoints
1
Method
__init__
(self, args, model: LanguageModel)
scripts/lcb_runner/runner/base_runner.py:14
Method
__init__
(self, args, model)
scripts/lcb_runner/runner/vllm_runner.py:12
Method
__init__
(self, args, model)
scripts/lcb_runner/runner/cohere_runner.py:15
Method
__init__
(self, args, model)
scripts/lcb_runner/runner/claude_runner.py:15
Method
__init__
(self, args, model)
scripts/lcb_runner/runner/oai_runner.py:19
Method
__init__
(self, args, model)
scripts/lcb_runner/runner/mistral_runner.py:17
Method
__init__
(self, args, model)
scripts/lcb_runner/runner/deepseek_runner.py:18
Method
__init__
(self, args, model)
scripts/lcb_runner/runner/gemini_runner.py:34
Method
__init__
(self, args, model)
scripts/lcb_runner/runner/claude3_runner.py:15
Method
__init__
(self, value)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:287
Method
__init__
(self, args, kwargs)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:348
Method
__init__
初始化Web解析器客户端 Args: base_url: API服务器的基础URL,默认为本地测试服务器
demo/bing_search.py:56
Method
__init__
初始化速率限制器 Args: rate_limit: 在时间窗口内允许的最大请求数 time_window: 时间窗口大小(秒),默认60秒
demo/bing_search.py:445
Method
__init__
(self, *args, **kwargs)
demo/settings.py:172
Method
__iter__
(self)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:301
Method
__post_init__
(self)
scripts/lcb_runner/benchmarks/code_generation.py:35
Method
__post_init__
(self)
scripts/lcb_runner/benchmarks/code_generation.py:56
Method
__post_init__
(self)
scripts/lcb_runner/benchmarks/test_output_prediction.py:29
Method
__post_init__
(self)
scripts/lcb_runner/benchmarks/code_execution.py:23
Method
__run_single
(counter)
scripts/lcb_runner/runner/cohere_runner.py:27
Method
__run_single
(counter)
scripts/lcb_runner/runner/claude_runner.py:26
Method
__run_single
(counter)
scripts/lcb_runner/runner/mistral_runner.py:28
Method
__run_single
(counter)
scripts/lcb_runner/runner/deepseek_runner.py:35
Method
__run_single
(counter)
scripts/lcb_runner/runner/gemini_runner.py:46
Method
__run_single
(counter)
scripts/lcb_runner/runner/claude3_runner.py:26
Function
_argspec
(func)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:120
Function
_fullargspec
(func)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:94
Function
_ipyargspec
(func)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:132
Method
_load_all
(self)
demo/settings.py:175
Function
_newf
(*args, **kwargs)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:351
Method
_newf
(*args, **kwargs)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:167
Method
_run_single
(self, prompt: str | list[dict[str, str]])
scripts/lcb_runner/runner/base_runner.py:36
Method
_run_single
(self, prompt: str)
scripts/lcb_runner/runner/vllm_runner.py:38
Method
_run_single
(self, prompt: tuple[dict[str,str], str])
scripts/lcb_runner/runner/cohere_runner.py:24
Method
_run_single
(self, prompt: str)
scripts/lcb_runner/runner/claude_runner.py:24
Method
_run_single
(self, prompt: list[dict[str, str]])
scripts/lcb_runner/runner/oai_runner.py:39
Method
_run_single
(self, prompt: list[dict[str, str]])
scripts/lcb_runner/runner/mistral_runner.py:26
Method
_run_single
(self, prompt: str)
scripts/lcb_runner/runner/gemini_runner.py:44
Method
_run_single
(self, prompt: tuple[str, str])
scripts/lcb_runner/runner/claude3_runner.py:24
Function
_temp_run
(sample, generation, debug, result, metadata_list, timeout)
scripts/lcb_runner/evaluation/compute_code_generation_metrics.py:20
Function
_wrap
(f)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:46
Method
_wrap
(f)
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:166
Function
annotate
Set function annotations using decorators. :param args: This is a list of annotations for the function, in the order of the function's paramet
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:368
Method
argc
Overloads a function based on the specified argument count. :param argc: The argument count. Defaults to ``None``. If ``None`` is given, a
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:141
Function
call_if_main
Call the `f` with `args` if the caller's module is main.
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:471
Function
copyfunc
Copies a funcion. :param f: The function to copy. :return: The copied function. .. deprecated:: 0.4 Use :func:`modify_fu
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:67
Function
evaluate_generations_by_problem
(args)
scripts/lcb_runner/evaluation/compute_code_generation_metrics.py:53
Function
evaluate_score
(args)
scripts/lcb_runner/evaluation/compute_code_execution_metrics.py:7
Function
extract_between
Extracts text between two markers in a string.
scripts/run_naive_rag_report.py:81
Function
extract_code
(model_output: str, lmstyle: LMStyle)
scripts/lcb_runner/prompts/self_repair.py:310
Method
f
(self, s)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:34
Function
fannotate
Set function annotations using decorators. :param \*args: The first positional argument is used for the function's return value; all others ar
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:388
Function
fetch_page_content
Concurrently fetch content from multiple URLs. Args: urls (list): List of URLs to scrape. max_workers (int): Maximum number
demo/bing_search.py:247
Function
format_prompt_execution
(question, LanguageModelStyle)
scripts/lcb_runner/prompts/code_execution.py:68
Function
format_prompt_execution_cot
(question, LanguageModelStyle)
scripts/lcb_runner/prompts/code_execution.py:72
Function
format_prompt_test_output
( question: TestOutputPredictionProblem, LanguageModelStyle: LMStyle )
scripts/lcb_runner/prompts/test_output_prediction.py:159
Function
format_search_results
Format search results into a readable string
scripts/run_naive_rag_report.py:96
Function
generate_queue
Generates a queue that can be shared amongst processes Returns: (multiprocessing.Queue): A queue instance
scripts/lcb_runner/utils/multiprocess.py:20
Function
get_direct_gen_report_instruction
(question)
scripts/prompts/prompts_report.py:300
Function
get_edit_section_instruction
(edit_instruction, article)
scripts/prompts/prompts_report.py:225
Method
get_evaluation_sample
(self)
scripts/lcb_runner/benchmarks/code_generation.py:106
Method
get_evaluation_sample
(self)
scripts/lcb_runner/benchmarks/test_output_prediction.py:55
Function
get_gpqa_web_thinker_instruction
(MAX_SEARCH_LIMIT=15)
scripts/prompts/prompts.py:2
Function
get_mixtral_question_template_answer
( question: TestOutputPredictionProblem, testcase_input: str )
scripts/lcb_runner/prompts/test_output_prediction.py:112
Function
get_mixtral_question_template_answer
(question: str, code, result, metadata)
scripts/lcb_runner/prompts/self_repair.py:106
Function
get_section_summary_instruction
(section)
scripts/prompts/prompts_report.py:196
Function
get_task_instruction_timeline
(text, model_name=None)
scripts/prompts/prompts.py:413
Function
get_timeline_search_o1_instruction
(MAX_SEARCH_LIMIT)
scripts/prompts/prompts.py:290
Function
initializer
Set maximum amount of memory each worker process can allocate.
scripts/lcb_runner/utils/multiprocess.py:92
Method
insert_output_evaluation
( self, output_list: list[str], code_list: list[str], graded_list: list[bool],
scripts/lcb_runner/benchmarks/code_generation.py:92
Method
insert_output_evaluation
( self, output_list: list[str], code_list: list[str], graded_list: list[bool] )
scripts/lcb_runner/benchmarks/test_output_prediction.py:47
Method
is_exception
(self)
scripts/lcb_runner/utils/multiprocess.py:85
Method
is_process_expired
(self)
scripts/lcb_runner/utils/multiprocess.py:88
Method
is_timeout
(self)
scripts/lcb_runner/utils/multiprocess.py:82
Function
judge_zh
(input_str: str)
scripts/run_naive_rag_report.py:119
Method
parse_urls
发送URL列表到解析服务器并获取解析结果 Args: urls: 需要解析的URL列表 timeout: 请求超时时间,默认20秒 Returns:
demo/bing_search.py:65
Method
readable
Returns True if the IO object can be read.
scripts/lcb_runner/evaluation/utils_execute.py:165
Method
readline
(self, *args, **kwargs)
scripts/lcb_runner/evaluation/utils_execute.py:159
Method
readlines
(self, *args, **kwargs)
scripts/lcb_runner/evaluation/utils_execute.py:162
Function
replace_recent_steps
Replaces specific steps in the original reasoning steps with new steps. If a replacement step contains "DELETE THIS STEP", that step is remov
scripts/run_search_o1.py:333
Function
run
(idx)
scripts/lcb_runner/evaluation/old_results_check.py:26
Method
run_batch
(self, prompts: list[str])
scripts/lcb_runner/runner/vllm_runner.py:41
Function
run_func_in_process
Runs the provided function in a separate process with the supplied args and kwargs. The args, kwargs, and return values must all be pickl
scripts/lcb_runner/utils/multiprocess.py:33
Function
run_main
Call `f` with the `args` and terminate the program with its return code if the caller's module is main.
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:475
Function
set_docstring
A simple decorator to set docstrings. :param doc: The docstring to tie to the function. Example:: @set_docstring('This is a
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:36
Function
signal_handler
(signum, frame)
scripts/lcb_runner/evaluation/utils_execute.py:122
Function
tail_recurse
Remove tail recursion from a function. :param spec: A function that, when given the arguments, returns a bool indicating whether or not to exi
scripts/lcb_runner/pyext/pyext-0.7/pyext.py:324
Method
test_annot
(self)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:62
Method
test_assign
(self)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:71
Method
test_compare_and_swap
(self)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:78
Method
test_module
(self)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:39
Method
test_overload_argc
(self)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:5
Method
test_overload_args
(self)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:17
Method
test_overload_args_annot
(self)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:86
Method
test_switch
(self)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:48
Method
test_unpack
(self)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:66
Function
timeout_handler
(signum, frame)
scripts/lcb_runner/evaluation/testing_util.py:44
Function
truncate_io
(io)
scripts/lcb_runner/prompts/test_output_prediction.py:37
Function
unsafe_execute
(check_program, result, timeout)
scripts/lcb_runner/evaluation/utils_execute.py:87
Method
x
(a, b, c)
scripts/lcb_runner/pyext/pyext-0.7/test/test_pyext.py:64
← previous
301–400 of 400, ranked by callers