MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / category_output_name

Function category_output_name

tools/commitlist.py:523–526  ·  view source on GitHub ↗
(category: str)

Source from the content-addressed store, hash-verified

521
522
523def category_output_name(category: str) -> str:
524 cleaned = re.sub(r'[^0-9A-Za-z._-]+', '_', category.strip())
525 cleaned = cleaned.strip('._')
526 return cleaned or 'Others'
527
528
529def get_markdown_header(category: str) -> str:

Callers 1

write_category_exportsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected