Download examples/vulnerability/input.py from OSS-forge/BugGen: direct link, hf CLI and curl.
- Browser
- Download file 494 Bytes
-
https://huggingface.co/spaces/OSS-forge/BugGen/resolve/main/examples/vulnerability/input.py
- Command line
-
hf download hf://spaces/OSS-forge/BugGen/examples/vulnerability/input.py
-
curl -L -o input.py https://huggingface.co/spaces/OSS-forge/BugGen/resolve/main/examples/vulnerability/input.py
494 Bytes
| def kill_container(self): | |
| '' | |
| container_name = self.config.container_name | |
| if container_name: | |
| container_cli = self.config.process_isolation_executable | |
| cmd = [container_cli, 'kill', container_name] | |
| proc = Popen(cmd, stdout=PIPE, stderr=PIPE) | |
| _, stderr = proc.communicate() | |
| if proc.returncode: | |
| logger.info('Error from {} kill {} command: | |
| {}'.format(container_cli, container_name, stderr)) | |
| else: | |
| logger.info("Killed container {}".format(container_name)) | |