<commit_before># Overpunch

Simple module for parsing and formatting numbers in signed overpunch format.

[Signed overpunch](http://wikipedia.org/wiki/Signed_overpunch) is a code used
to indicate the sign of a number by replacing the last digit with a signed
overpunch code.

## Installation

Add this line to your application's Gemfile:

    gem 'overpunch'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install overpunch

## Usage

    require "overpunch"

    Overpunch.parse("032B")
    # => 322

    Overpunch.parse("1}")
    # => -10

    Overpunch.format(110)
    # => "11{"

    Overpunch.format(-272)
    # => "27K"<commit_msg>Added more detail to the README.<commit_after># Overpunch

Simple module for parsing and formatting numbers in signed overpunch format.

[Signed overpunch](http://wikipedia.org/wiki/Signed_overpunch) is a code used
to indicate the sign of a number by replacing the last digit with a signed
overpunch code. For example, -45 would be encoded as "4N".

| Sign | Digit | Code |
|:----:|:-----:|:----:|
|    + |     0 |    { |
|    + |     1 |    A |
|    + |     2 |    B |
|    + |     3 |    C |
|    + |     4 |    D |
|    + |     5 |    E |
|    + |     6 |    F |
|    + |     7 |    G |
|    + |     8 |    H |
|    + |     9 |    I |
|    - |     0 |    } |
|    - |     1 |    J |
|    - |     2 |    K |
|    - |     3 |    L |
|    - |     4 |    M |
|    - |     5 |    N |
|    - |     6 |    O |
|    - |     7 |    P |
|    - |     8 |    Q |
|    - |     9 |    R |

## Installation

Add this line to your application's Gemfile:

    gem 'overpunch'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install overpunch

## Usage

    require "overpunch"

    Overpunch.parse("032B")
    # => 322

    Overpunch.parse("1}")
    # => -10

    Overpunch.format(110)
    # => "11{"

    Overpunch.format(-272)
    # => "27K"
{'fraction_non_alphanumeric': 0.13942558746736292, 'fraction_numerical': 0.03185378590078329, 'mean_word_length': 1.733238231098431, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '1232540', 'n_tokens_mistral': 729, 'n_tokens_neox': 681, 'n_words': 191}