<commit_before># Git secrets extra patterns test file


# Should Match

## Operators
password '<PASSWORD>'
password: '<PASSWORD>'
password = '<PASSWORD>'
password := '<PASSWORD>'

## Quotes
password "<PASSWORD>"

## Language Syntax
private_key 'should_match'
private_key: 'should_match'
var privateKey = 'should_match'
private static String PrivateKey = 'should_match'
  private_key = "should_match"
private_key = "should_match" # TODO: comments shouldn't have an effect

## Suspicious Variable Names
some_secret: "should-match"
hard_coded_salt: "should_match"
private_key: "should_match"
some_password: "<PASSWORD>"


# Should Not Match

## Syntax Exclusions
varible_with_private_in_it = "should_not_match"
variable-with-private-key-in-it: "should_not_match"
variableWithPrivateKeyInIt = "should_not_match"
private_key: should_not_match
private_key = should_not_match
private_key="$bash_variable_should_not_match"
private_key=$bash_variable_should_not_match

## Variable Name Exclusions
variable_with_secret_in_it: "should_not_match"
variabe_with_salt_in_it: "should_not_match"
variable_with_private_key_in_it: "should_not_match"
variable_with_password_in_it: "should_not_match"

## Content Exclusions
private_key: "should not match"
private_key: "${should_not_match}"
private_key: "{{should_not_match}}"
private_key: "too-short"
private_key: "some_fake_key_should_not_match"
private_key: "some_example_key_should_not_match"

## Misc. Exclusions
'uuid' => '12324234234234234234' # should_not_match
GO15VENDOREXPERIMENT # should_not_match<commit_msg>[#121448845] add examples for git secrets pattern matching to avoid Java long values<commit_after># Git secrets extra patterns test file


# Should Match

## Operators
password '<PASSWORD>'
password: '<PASSWORD>'
password = '<PASSWORD>'
password := '<PASSWORD>'

## Quotes
password "<PASSWORD>"

## Language Syntax
private_key 'should_match'
private_key: 'should_match'
var privateKey = 'should_match'
private static String PrivateKey = 'should_match'
  private_key = "should_match"
private_key = "should_match" # TODO: comments shouldn't have an effect

## Suspicious Variable Names
some_secret: "should-match"
hard_coded_salt: "should_match"
private_key: "should_match"
some_password: "<PASSWORD>"


# Should Not Match

## Syntax Exclusions
varible_with_private_in_it = "should_not_match"
variable-with-private-key-in-it: "should_not_match"
variableWithPrivateKeyInIt = "should_not_match"
private_key: should_not_match
private_key = should_not_match
private_key="$bash_variable_should_not_match"
private_key=$bash_variable_should_not_match

## Variable Name Exclusions
variable_with_secret_in_it: "should_not_match"
variabe_with_salt_in_it: "should_not_match"
variable_with_private_key_in_it: "should_not_match"
variable_with_password_in_it: "should_not_match"

## Content Exclusions
private_key: "should not match"
private_key: "${should_not_match}"
private_key: "{{should_not_match}}"
private_key: "too-short"
private_key: "some_fake_key_should_not_match"
private_key: "some_example_key_should_not_match"

## Misc. Exclusions
'uuid' => '12324234234234234234' # should_not_match
GO15VENDOREXPERIMENT # should_not_match
private static final long serialVersionUID = -9999999999999999999L; # should_not_match
{'fraction_non_alphanumeric': 0.09422958870472682, 'fraction_numerical': 0.022099447513812154, 'mean_word_length': 9.027692307692307, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '406100', 'n_tokens_mistral': 1157, 'n_tokens_neox': 1076, 'n_words': 232}