(text)
| 547 | } |
| 548 | |
| 549 | function looksLikePython(text) { |
| 550 | return /(from\s+[A-Za-z0-9_\.]+\s+import\s+|import\s+[A-Za-z0-9_\.]+|async\s+def\s+|def\s+[A-Za-z_][A-Za-z0-9_]*\s*\(|class\s+[A-Za-z_][A-Za-z0-9_]*\s*[(:]|asyncio\.run\(|await\s+[A-Za-z_][A-Za-z0-9_\.]*\(|if\s+__name__\s*==\s*['"]__main__['"])/m.test(String(text || '')); |
| 551 | } |
| 552 | |
| 553 | function extractPythonHeredocs(text) { |
| 554 | const blocks = []; |
no outgoing calls
no test coverage detected