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

Function section_value

tools/commitlist.py:197–201  ·  view source on GitHub ↗
(sections: dict[str, str], name: str)

Source from the content-addressed store, hash-verified

195
196
197def section_value(sections: dict[str, str], name: str) -> str:
198 for key, value in sections.items():
199 if key.casefold() == name.casefold():
200 return value
201 return ""
202
203
204def resolve_category(labels: list[str], body: str) -> str:

Callers 3

resolve_categoryFunction · 0.85
resolve_topicFunction · 0.85
resolve_descriptionFunction · 0.85

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected