(s, max_length=256)
| 181 | |
| 182 | @staticmethod |
| 183 | def truncate(s, max_length=256): |
| 184 | half = max_length // 2 |
| 185 | if len(s) > max_length: |
| 186 | s = s[:half] + '...' + s[-half:] |
| 187 | return s |
| 188 | |
| 189 | def batch_apply(self, batch_code: List[str]) -> list: |
| 190 | from pebble import ProcessPool |
no outgoing calls
no test coverage detected