| 12 | from concurrent.futures import ThreadPoolExecutor, as_completed |
| 13 | |
| 14 | class TextParser: |
| 15 | @staticmethod |
| 16 | def parse_questions(question_text: str) -> List[str]: |
| 17 | questions = [] |
| 18 | for line in question_text.splitlines(): |
| 19 | stripped = line.strip() |
| 20 | if not stripped: |
| 21 | continue |
| 22 | cleaned = re.sub(r'^[\d\.\-\+\*]+\s*', '', stripped) |
| 23 | cleaned = re.sub(r'\*+', '', cleaned).strip() |
| 24 | if '?' in cleaned: |
| 25 | questions.append(cleaned) |
| 26 | return questions |
nothing calls this directly
no outgoing calls
no test coverage detected