From 741ea04e77f5e2ae83ef1968536e7d3564cc24d9 Mon Sep 17 00:00:00 2001 From: Roman Babenko Date: Sat, 20 Jan 2024 16:25:18 +0200 Subject: [PATCH] fix --- experiment/src/prepare_data.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/experiment/src/prepare_data.py b/experiment/src/prepare_data.py index 409c52079..179fa0a56 100644 --- a/experiment/src/prepare_data.py +++ b/experiment/src/prepare_data.py @@ -6,9 +6,9 @@ def execute_scanner(dataset_location: str, result_location_str, j, use_ml=False): """Execute CredSweeper as a separate process to make sure no global states is shared with training script""" dir_path = os.path.dirname(os.path.realpath(__file__)) + "/.." - command = f"{sys.executable} -m credsweeper --path {dataset_location}/data --save-json {result_location_str} -j {j} --severity critical" + command = f"{sys.executable} -m credsweeper --path {dataset_location}/data --save-json {result_location_str} -j {j}" if not use_ml: - command += "--no-filters --ml_threshold 0" + command += " --ml_threshold 0" subprocess.call(command, shell=True, cwd=dir_path, stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)