<commit_before>Utility Filters
===============

Utility Filters is a [BBEdit Package](http://bbeditextras.org/wiki/index.php?title=Packages) with some Ruby-based utility scripts. As much as possible, I'm sticking with the standard library and 1.8.7 compatible Ruby, so these scripts should run on any recent version of Mac OS X (Snow Leopard/10.6 or later) without requiring further software installation.

### Filters

#### add.rb

A script that takes a row or column of numbers (no words), and adds them together. The input of:

    0.1 0.2 0.3
    1.0
    2.0
    3.0, 4.0
    3,000

…will return:

    0.1 0.2 0.3
    1.0
    2.0
    3.0, 4.0
    3,000
    ----
    3010.6


### Installation

Check this repository out under `~/Library/Application Support/BBEdit/Packages`. You may need to create the Packages directory if it does not already exist.

If you store your BBEdit preferences on DropBox, use `~/DropBox/Application Support/BBEdit/Packages` instead.

### Author

[<NAME>](http://wallscorp.us/)

### Contributing<commit_msg>Updated installation instructions<commit_after>Utility Filters
===============

Utility Filters is a [BBEdit Package](http://bbeditextras.org/wiki/index.php?title=Packages) with some Ruby-based utility scripts. As much as possible, I'm sticking with the standard library and 1.8.7 compatible Ruby, so these scripts should run on any recent version of Mac OS X (Snow Leopard/10.6 or later) without requiring further software installation.

### Filters

#### add.rb

A script that takes a row or column of numbers (no words), and adds them together. The input of:

    0.1 0.2 0.3
    1.0
    2.0
    3.0, 4.0
    3,000

…will return:

    0.1 0.2 0.3
    1.0
    2.0
    3.0, 4.0
    3,000
    ----
    3010.6


### Installation

Go to the BBEdit Application support directory in Terminal.app or iTerm:

    $ cd ~/Library/Application\ Support/BBEdit

If you're using DropBox to store your BBEdit configuration and support, use this instead:

    $ cd ~/DropBox/Application Support/BBEdit

If you don't have a `Packages` directory, create one:

    $ mkdir Packages

Go into the `Packages` directory

    $ cd Packages

Check out this repository:

    $ git clone https://github.com/base10/utility_filters.git utility_filters.bbpackage

Then, quit and restart BBEdit. You'll find the Text Filters under the `Text > Apply Text Filter` menu in a section called `utility_filters`.

You can update the filters at any time by returning to this checkout and refreshing the clone:

    $ cd utility_filters.bbpackage
    $ git pull

### Author

[<NAME>](http://wallscorp.us/)

### Contributing
{'fraction_non_alphanumeric': 0.10217308425467023, 'fraction_numerical': 0.036599313762866945, 'mean_word_length': 3.301639344262295, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 1, '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': '6103660', 'n_tokens_mistral': 844, 'n_tokens_neox': 796, 'n_words': 320}