<commit_before># Sabertron 3000

This is a demo app for calculating baseball statistics.

## Getting Started

This is a Rails app with no web-stuff. It requires Ruby > 2.0, and has been tested with Ruby 2.1.2.

The app is configured to use sqlite3 by default. If you want to use a fancier database, you'll need
to install the right gems and tweak `config/database.yml`.

1. Get the gems

    bundle install

2. Load your database

    rake db:create
    rake db:migrate
    rake db:seed

3. Use rake to run queries

    rake saber
    # or
    rake saber:batting_average:most_improved[2009,2010]
    rake saber:slugging_percentage:team[OAK,2007]
    rake saber:triple_crown[2012]<commit_msg>Fixed README formatting<commit_after># Sabertron 3000

This is a demo app for calculating baseball statistics.

## Getting Started

This is a Rails app with no web-stuff. It requires Ruby > 2.0, and has been tested with Ruby 2.1.2.

The app is configured to use sqlite3 by default. If you want to use a fancier database, you'll need
to install the right gems and tweak `config/database.yml`.

Get the gems:

    bundle install

Load your database:

    rake db:create
    rake db:migrate
    rake db:seed

Use rake to run queries:

    rake saber
    # or
    rake saber:batting_average:most_improved[2009,2010]
    rake saber:slugging_percentage:team[OAK,2007]
    rake saber:triple_crown[2012]
{'fraction_non_alphanumeric': 0.06204906204906205, 'fraction_numerical': 0.03968253968253968, 'mean_word_length': 3.5775577557755778, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1808807', 'n_tokens_mistral': 511, 'n_tokens_neox': 423, 'n_words': 180}