Skip to content

Commit

Permalink
combined cred
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek committed Jul 22, 2024
1 parent bb80375 commit df31b7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Binary file modified credsweeper/ml_model/ml_model.onnx
Binary file not shown.
3 changes: 2 additions & 1 deletion experiment/src/data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ def read_metadata(meta_dir: str) -> Dict[identifier, Dict]:
df.loc[df["GroundTruth"] == "Template", "GroundTruth"] = 'F'
for _, row in df.iterrows():
j += 1
if row["LineStart"] != row["LineEnd"] or any(x in row["Category"] for x in ["AWS Multi", "Google Multi"]):
if row["LineStart"] != row["LineEnd"] \
or all(x in ["AWS Multi", "Google Multi"] for x in row["Category"].split(':')):
# print(f"WARNING: skip not ml category {row['FilePath']},{line_start},{line_end}"
# f",{row['GroundTruth']},{row['Category']}")
continue
Expand Down

0 comments on commit df31b7c

Please sign in to comment.