(content)
| 117 | return result |
| 118 | |
| 119 | def extract_code_from_content(content): |
| 120 | pattern = r'^```(?:\w+)?\s*\n(.*?)(?=^```)```' |
| 121 | code = re.findall(pattern, content, re.DOTALL | re.MULTILINE) |
| 122 | if len(code) == 0: |
| 123 | return "" |
| 124 | else: |
| 125 | return code[0] |
| 126 | |
| 127 | def extract_code_from_content2(content): |
| 128 | pattern = r'```python\s*(.*?)```' |
no outgoing calls
no test coverage detected