(text: str)
| 136 | |
| 137 | |
| 138 | def _score_multi_step(text: str) -> float: |
| 139 | patterns = [r"first.*then", r"step \d", r"\d\.\s"] |
| 140 | hits = sum(1 for p in patterns if re.search(p, text, re.IGNORECASE)) |
| 141 | return 0.5 if hits > 0 else 0.0 |
| 142 | |
| 143 | |
| 144 | def _score_question_complexity(text: str) -> float: |
no outgoing calls
no test coverage detected