MCPcopy Index your code
hub / github.com/TIGER-AI-Lab/TheoremExplainAgent / process_topic_name

Function process_topic_name

evaluate.py:211–222  ·  view source on GitHub ↗

Process a topic name by capitalizing words and handling special characters. Args: topic_name (str): The topic name to process. Returns: str: The processed topic name.

(topic_name: str)

Source from the content-addressed store, hash-verified

209
210
211def process_topic_name(topic_name: str) -> str:
212 """
213 Process a topic name by capitalizing words and handling special characters.
214
215 Args:
216 topic_name (str): The topic name to process.
217
218 Returns:
219 str: The processed topic name.
220 """
221 words = topic_name.replace("_s_", "'s_").split("_")
222 return " ".join([word.capitalize() for word in words])
223
224
225def merge_dicts(dict1: dict, dict2: dict) -> dict:

Callers 1

process_theoremFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected