(t: int, low: int = 1, high: int = 300)
| 31 | |
| 32 | |
| 33 | def _clamp_timeout(t: int, low: int = 1, high: int = 300) -> int: |
| 34 | try: |
| 35 | n = int(t) |
| 36 | except Exception: |
| 37 | n = 30 |
| 38 | return max(low, min(high, n)) |
| 39 | |
| 40 | |
| 41 | async def execute_python_code( |
no outgoing calls
no test coverage detected