MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / sanitize_filename

Function sanitize_filename

examples/run_benchmark.py:129–132  ·  view source on GitHub ↗

清洗文件名,移移除非法字符

(name: str)

Source from the content-addressed store, hash-verified

127 answer: str = Field(description="The final answer")
128
129def sanitize_filename(name: str) -> str:
130 """清洗文件名,移移除非法字符"""
131 name = str(name).replace('\n', ' ').replace('\r', '')
132 return re.sub(r'[\\/*?:"<>|]', '', name).strip()
133
134async def test_math_benchmark(benchmark_name: str = "aime25", max_concurrency: int = 5, result_saver: Optional[BenchmarkResultSaver] = None):
135 """

Callers 1

process_single_taskFunction · 0.70

Calls 2

replaceMethod · 0.45
subMethod · 0.45

Tested by

no test coverage detected