(text: str)
| 148 | |
| 149 | |
| 150 | def clean_text(text: str) -> str: |
| 151 | text = re.sub( |
| 152 | r'```(?:python|javascript|text)\?code_(?:reference|stdout)&code_event_index=\d+\n.*?```\n?', |
| 153 | '', text, flags=re.DOTALL |
| 154 | ) |
| 155 | text = re.sub(r'http://googleusercontent\.com/card_content/\d+\n?', '', text) |
| 156 | return text.strip() |
| 157 | |
| 158 | |
| 159 | def _extract_texts_from_line(line: str) -> list: |
no outgoing calls
no test coverage detected