Skip to content

Commit

Permalink
put ml_probability after confidence
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek committed Jan 15, 2025
1 parent e2faf9f commit f70a6c0
Show file tree
Hide file tree
Showing 5 changed files with 2,033 additions and 2,033 deletions.
2 changes: 1 addition & 1 deletion credsweeper/credentials/candidate.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ def to_json(self, hashed: bool, subtext: bool) -> Dict:
"""
full_output = {
"patterns": [pattern.pattern for pattern in self.patterns],
"ml_probability": self.ml_probability,
"rule": self.rule_name,
"severity": self.severity.value,
"confidence": self.confidence.value,
"ml_probability": self.ml_probability,
# put the array to end to make json more readable
"line_data_list": [line_data.to_json(hashed, subtext) for line_data in self.line_data_list],
}
Expand Down
Loading

0 comments on commit f70a6c0

Please sign in to comment.