<commit_before># Credit Card Composed Validator

This is a custom validator (or plugin) for the composed validations library.

This is also a simple and useful repository to use as a example on how to create custom validators for the composed validations library.

# Installation

# How to Use

# Available Validations
* American Express
* VISA
* VISA Commercial Card
* VISA Corporate Card II
* VISA Corporate Card III
* Mastercard
* MasterCard Diners
* MasterCard II
* MasterCard III
* Diners Club
* Discover Network
* Discover Diners
* JCB
* Switch/Solo (Paymentech)
* Union
* Laser
* Dankort
* Insta Payment

# Goals
* ~~Number validation~~
* ~~Add possibility to pass options~~
* Add ```accepts``` option for accepted cards
* ~~Add individual regex for each card (remove generic one)~~
* ~~Split each card regex in a separated lib~~
* ~~Split each card regex in a separated spec~~

# Credit Card Test Numbers
We used this table: [https://www.auricsystems.com/support-center/sample-credit-card-numbers/](https://www.auricsystems.com/support-center/sample-credit-card-numbers/)

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -m 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
<commit_msg>Goals unlocked :P<commit_after># Credit Card Composed Validator

This is a custom validator (or plugin) for the composed validations library.

This is also a simple and useful repository to use as a example on how to create custom validators for the composed validations library.

# Installation

# How to Use

# Available Validations
* American Express
* VISA
* VISA Commercial Card
* VISA Corporate Card II
* VISA Corporate Card III
* Mastercard
* MasterCard Diners
* MasterCard II
* MasterCard III
* Diners Club
* Discover Network
* Discover Diners
* JCB
* Switch/Solo (Paymentech)
* Union
* Laser
* Dankort
* Insta Payment

# Credit Card Test Numbers
We used this table: [https://www.auricsystems.com/support-center/sample-credit-card-numbers/](https://www.auricsystems.com/support-center/sample-credit-card-numbers/)

## Contributing

1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -m 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

{'fraction_non_alphanumeric': 0.08877721943048576, 'fraction_numerical': 0.0041876046901172526, 'mean_word_length': 4.404977375565611, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, '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': '5334358', 'n_tokens_mistral': 735, 'n_tokens_neox': 700, 'n_words': 299}