Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek committed Jan 20, 2024
1 parent 1fa1a30 commit 741ea04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions experiment/src/prepare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 741ea04

Please sign in to comment.