Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek committed Dec 17, 2024
1 parent 975fa44 commit 66e2479
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions markup_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

"""
The script performs updating CredSweeper report with according markup
currently the row from meta is placed to "api_validation" to keep the value at the position
currently the row from meta is placed to "ml_validation" to keep the value at the position
"""

import json
Expand Down Expand Up @@ -50,10 +50,10 @@ def main(report_file: str, meta_dir: str):
]
for key in key_variants:
if rows := meta_dict.get(key):
cred["api_validation"] = ';'.join(str(x) for x in rows)
cred["ml_validation"] = ';'.join(str(x) for x in rows)
break
else:
cred["api_validation"] = "not found in meta"
cred["ml_validation"] = "not found in meta"
# something was wrong
errors += 1

Expand Down
2 changes: 2 additions & 0 deletions meta/ec138349.csv
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,5 @@ Id,FileID,Domain,RepoName,FilePath,LineStart,LineEnd,GroundTruth,WithWords,Value
1480452,399221f4,GitHub,ec138349,data/ec138349/test/399221f4.java,52,52,T,F,135,171,F,F,,,,,0.0,0,F,F,F,Auth:Nonce:UUID
1480456,399221f4,GitHub,ec138349,data/ec138349/test/399221f4.java,64,64,T,F,148,167,F,F,,,,,0.0,0,F,F,F,Auth:Nonce
1480457,399221f4,GitHub,ec138349,data/ec138349/test/399221f4.java,52,52,T,F,256,292,F,F,,,,,0.0,0,F,F,F,Auth:Token:UUID
1480652,399221f4,GitHub,ec138349,data/ec138349/test/399221f4.java,52,52,F,F,229,239,F,F,,,,,0.0,0,F,F,F,Auth
1480653,399221f4,GitHub,ec138349,data/ec138349/test/399221f4.java,64,64,F,F,225,235,F,F,,,,,0.0,0,F,F,F,Auth

0 comments on commit 66e2479

Please sign in to comment.