Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek committed Sep 10, 2024
1 parent 7b73add commit fc55ec3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
- name: Check ml_model.onnx integrity
if: ${{ always() && steps.code_checkout.conclusion == 'success' }}
run: |
md5sum --binary credsweeper/ml_model/ml_config.json | grep 02655134706ac53f6d60618545b4c86f
md5sum --binary credsweeper/ml_model/ml_model.onnx | grep 1fa73275c81e21a84b3a251796af005d
md5sum --binary credsweeper/ml_model/ml_config.json | grep 49c4352ae9ec82ad432d49d7e51c27f1
md5sum --binary credsweeper/ml_model/ml_model.onnx | grep ff66e97c446d0f2bbd8d37b7dfff7361
# # # line ending

Expand Down
1 change: 0 additions & 1 deletion credsweeper/ml_model/features/char_set.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import contextlib
import string
from typing import Dict, Set

Expand Down
4 changes: 2 additions & 2 deletions docs/source/credsweeper.ml_model.features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ credsweeper.ml\_model.features.is\_secret\_numeric module
:undoc-members:
:show-inheritance:

credsweeper.ml\_model.features.match\_in\_attribute module
credsweeper.ml\_model.features.search\_in\_attribute module
----------------------------------------------------------

.. automodule:: credsweeper.ml_model.features.match_in_attribute
.. automodule:: credsweeper.ml_model.features.search_in_attribute
:members:
:undoc-members:
:show-inheritance:
Expand Down
2 changes: 1 addition & 1 deletion tests/ml_model/test_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,5 @@ def test_char_set_n(self):
self.assertFalse(CharSet("ascii_lowercase").extract(Candidate([self.line_data], [], "rule", Severity.MEDIUM)))

def test_char_set_p(self):
self.line_data.value=self.line_data.value.replace(' ', '')
self.line_data.value = self.line_data.value.replace(' ', '')
self.assertTrue(CharSet("ascii_lowercase").extract(Candidate([self.line_data], [], "rule", Severity.MEDIUM)))

0 comments on commit fc55ec3

Please sign in to comment.