<commit_before>Text Complies
====================

A jQuery plugin that checks text input against a set of rules you specify and provides feedback in real time.

Description
-----------
With the Text Complies plugin, you can specify a set of rules that the input for a specified text field must comply with. As the user types in the field you're checking, the compliance level to the rules is updated, and you can report to the user which rules they're complying with and which rules they're defying.

A typical usage for this plugin is with passwords; you can provide a set of rules (e.g., password must be 8-12 characters, contain one letter and one number, and can't contain spaces), and this plugin list the rules and whether or not the password the user is typing complies with those rules. As the user types the password, this plugin updates the compliance to the rules.

Options
-------
Text Complies allows you to configure several preset rules for compliance checking, each with accompanying text that you can override. Rules you don't configure are not invoked. Your options are:

<table>
  <thead>
    <tr>
      <th>Option Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>minLength</td>
      <td>The minimum allowable length of the text</td>
    </tr>
    <tr>
      <td>maxLength</td>
      <td>The maximum allowable length of the text</td>
    </tr>
    <tr>
      <td>numNumbers</td>
      <td>The minimum number of numbers (digits) that the text must contain</td>
    </tr>
    <tr>
      <td>numUppercaseLetters</td>
      <td>The minimum number of uppercase letters that the text must contain</td>
    </tr>
    <tr>
      <td>numLowercaseLetters</td>
      <td>The minimum number of lowercase letters that the text must contain</td>
    </tr>
    <tr>
      <td>numLetters</td>
      <td>The minimum number of letters that the text must contain</td>
    </tr>
    <tr>
      <td>disallowed</td>
      <td>An array containing strings that are disallowed in the text</td>
    </tr>
    <tr>
      <td>matchField</td>
      <td>The selector of a text field whose input must match the text</td><commit_msg>Add new options to README<commit_after>Text Complies
====================

A jQuery plugin that checks text input against a set of rules you specify and provides feedback in real time.

Description
-----------
With the Text Complies plugin, you can specify a set of rules that the input for a specified text field must comply with. As the user types in the field you're checking, the compliance level to the rules is updated, and you can report to the user which rules they're complying with and which rules they're defying.

A typical usage for this plugin is with passwords; you can provide a set of rules (e.g., password must be 8-12 characters, contain one letter and one number, and can't contain spaces), and this plugin list the rules and whether or not the password the user is typing complies with those rules. As the user types the password, this plugin updates the compliance to the rules.

Options
-------
Text Complies allows you to configure several preset rules for compliance checking, each with accompanying text that you can override. Rules you don't configure are not invoked. Your options are:

<table>
  <thead>
    <tr>
      <th>Option Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>minLength</td>
      <td>The minimum allowable length of the text</td>
    </tr>
    <tr>
      <td>maxLength</td>
      <td>The maximum allowable length of the text</td>
    </tr>
    <tr>
      <td>numNumbers</td>
      <td>The minimum number of numbers (digits) that the text must contain</td>
    </tr>
    <tr>
      <td>numUppercaseLetters</td>
      <td>The minimum number of uppercase letters that the text must contain</td>
    </tr>
    <tr>
      <td>numLowercaseLetters</td>
      <td>The minimum number of lowercase letters that the text must contain</td>
    </tr>
    <tr>
      <td>numLetters</td>
      <td>The minimum number of letters that the text must contain</td>
    </tr>
    <tr>
      <td>disallowed</td>
      <td>An array containing strings that are disallowed in the text</td>
    </tr>
    <tr>
      <td>matchField</td>
      <td>The selector of a text field whose input must match the text</td>
    </tr>
    <tr>
      <td>matchPattern</td>
      <td>The regular expression that the text must match</td>
    </tr>
    <tr>
      <td>validateOnStart</td>
    <td>If <code>true</code>, runs validation on start, before waiting for a keypress</td>
    </tr>
    <tr>
      <td>showAsFailOnStart</td>
      <td>If <code>true</code>, shows the rules on start with them all failing</td>
{'fraction_non_alphanumeric': 0.10214028395846578, 'fraction_numerical': 0.0012714558169103624, 'mean_word_length': 3.010195412064571, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 0, '>': 139, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '5336296', 'n_tokens_mistral': 1357, 'n_tokens_neox': 1334, 'n_words': 618}