<commit_before>discoball
=========

`discoball` is a tool to filter streams and colorize patterns. It functions somewhat like `egrep --color`,
except that it can highlight multiple patterns (in different colors). Patterns are arbitrary ruby regexes that
are matched against the entire line.

Usage
-----

    $ discoball [options] <pattern1 pattern2 ...>

where options are:

  * `--group-colors` or `-g`: Color all matches of the same pattern with the same color
  * `--one-color` or `-o`: Highlight all matches with a single color
  * `--match` or `-m`: Only print lines with matches
  * `--help` or `-h`: Print the help message

Examples
------------------

  * Highlight instances of "foo" and "bar" in the text of `myfile.txt`:

        $ cat myfile.txt | discoball foo bar

  * Highlight paths of processes running out of `/usr/sbin/`:

        $ ps -ef | discoball --one_color --match '/usr/sbin/.*$'

  * I wrote discoball for use with [<NAME>'s todo-list tool, t](https://github.com/sjl/t). I put tags on
    my tasks annotated with `+`:

        $ t Make an appointment with the dentist +health

    When I list my tasks (using `t`), I use discoball to highlight the tags with different colors:

        $ t | discoball '\+\S+'<commit_msg>Credit to todo.txt for the tag syntax<commit_after>discoball
=========

`discoball` is a tool to filter streams and colorize patterns. It functions somewhat like `egrep --color`,
except that it can highlight multiple patterns (in different colors). Patterns are arbitrary ruby regexes that
are matched against the entire line.

Usage
-----

    $ discoball [options] <pattern1 pattern2 ...>

where options are:

  * `--group-colors` or `-g`: Color all matches of the same pattern with the same color
  * `--one-color` or `-o`: Highlight all matches with a single color
  * `--match` or `-m`: Only print lines with matches
  * `--help` or `-h`: Print the help message

Examples
------------------

  * Highlight instances of "foo" and "bar" in the text of `myfile.txt`:

        $ cat myfile.txt | discoball foo bar

  * Highlight paths of processes running out of `/usr/sbin/`:

        $ ps -ef | discoball --one_color --match '/usr/sbin/.*$'

  * I wrote discoball for use with [<NAME>'s todo-list tool, t](https://github.com/sjl/t). I put tags on
    my tasks annotated with `+` (inspired by [Todo.txt](http://todotxt.com/)):

        $ t Make an appointment with the dentist +health

    When I list my tasks (using `t`), I use discoball to highlight the tags with different colors:

        $ t | discoball '\+\S+'
{'fraction_non_alphanumeric': 0.13356697819314642, 'fraction_numerical': 0.001557632398753894, 'mean_word_length': 2.8924242424242426, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '3447639', 'n_tokens_mistral': 803, 'n_tokens_neox': 748, 'n_words': 334}