Skip to content

Commit

Permalink
Try #NOSONAR
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj725 committed Sep 17, 2024
1 parent 9c37474 commit 3761292
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pebblo/entity_classifier/entity_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,14 @@ def presidio_entity_classifier_and_anonymizer(
input_text = " My SSN is 222-85-4836.
ITIN number 993-77 0690
And AWS Access Key is: AKIAQIPT4PDORIRTV6PH." # NOSONAR
And AWS Access Key is: AKIAQIPT4PDORIRTV6PH."
response:
entities = {'aws-access-key': 1, 'us-itin': 1, 'us-ssn': 1}
total_count = 3
anonymized_text = "My SSN is <US_SSN>.
ITIN number <US_ITIN>
And AWS Access Key is: <AWS_ACCESS_KEY>."
"""
""" #NOSONAR
entities = {}
total_count = 0
try:
Expand Down
4 changes: 2 additions & 2 deletions tests/entity_classifier/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
ITIN number 993-77 0690
His AWS Access Key is: AKIAQIPT4PDORIRTV6PH.
And Github Token is: ghp_hgu657yiujgwfrtigu3ver238765tyuhygvtrder6t7gyvhbuy5e676578976tyghy76578uygfyfgcyturtdf
""" # NOSONAR
""" #NOSONAR

input_text2 = """
Content
Expand All @@ -26,7 +26,7 @@
Slack Token - xoxb-3204014939555-4519358291237-TTIf0243T8YFSAGEVr1wBrWE
Google API key- KLzaSyB_tWrbmfWx8g2bzL7Vhq7znuTUn0JPKmY"
My IP Address - 10.55.60.61
""" # NOSONAR
""" #NOSONAR

negative_data = """
Sachin's SSN is 222-85.
Expand Down

0 comments on commit 3761292

Please sign in to comment.