MCPcopy
hub / github.com/bregman-arie/devops-exercises / get_question_list

Function get_question_list

scripts/question_utils.py:23–29  ·  view source on GitHub ↗
(file_content: str)

Source from the content-addressed store, hash-verified

21
22
23def get_question_list(file_content: str) -> List[str]:
24 details = DETAILS_PATTERN.findall(file_content)
25 return [
26 SUMMARY_PATTERN.search(detail).group(1)
27 for detail in details
28 if SUMMARY_PATTERN.search(detail)
29 ]
30
31
32def get_answered_questions(file_content: str) -> List[str]:

Callers 5

test_case_1Method · 0.90
test_case_2Method · 0.90
get_answers_countFunction · 0.85
get_random_questionFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_case_1Method · 0.72
test_case_2Method · 0.72