<commit_before># BankOCR Kata

This repository provides a solution for BankOCR kata.

[![Build status](https://travis-ci.org/solojavier/BankOCR.svg)](https://travis-ci.org/solojavier/BankOCR)

## What is it about?

Description of the problem can be found here: http://code.joejag.com/coding-dojo-bank-ocr/
Current implementation covers the first 3 use cases.

## How to run?

Use the following command:

```
ruby bin/bank_ocr_kata.rb
```

* It will generate a file under /bin/output directory with results
* If you want to modify input edit file /bin/ocr_input.in
<commit_msg>Adding test info in readme<commit_after># BankOCR Kata

This repository provides a solution for BankOCR kata.

[![Build status](https://travis-ci.org/solojavier/BankOCR.svg)](https://travis-ci.org/solojavier/BankOCR)

## What is it about?

Description of the problem can be found here: http://code.joejag.com/coding-dojo-bank-ocr/
Current implementation covers the first 3 use cases.

## How to run?

Use the following command:

```
ruby bin/bank_ocr_kata.rb
```

* It will generate a file under /bin/output directory with results
* If you want to modify input edit file /bin/ocr_input.in

## Tests

To run test use the following commands:

```
gem install bundler
bundle install
bundle exec rspec spec
```

{'fraction_non_alphanumeric': 0.10522213561964147, 'fraction_numerical': 0.001558846453624318, 'mean_word_length': 4.305785123966942, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '994018', 'n_tokens_mistral': 430, 'n_tokens_neox': 418, 'n_words': 145}