<commit_before>stubble
=======

A super simple URL shortening app written in Ruby using Sinatra, Slim, and
MongoDB. Use it as a baseline for your own URL shortening service or as an
example project when learning Ruby, Sinatra, Slim, or MongoDB.

* [Sinatra](http://www.sinatrarb.com/): web framework that handles routing and
  backend logic
* [Slim](http://slim-lang.com/): templating engine for rendering the views
* [MongoDB](http://www.mongodb.org/): NoSQL database that stores data in
  JSON(-like) documents

Dependecies
-----------

Make sure you have Sinatra, Slim, and the Ruby driver for MongoDB installed. If
you don't, run these commands to get 'em:

    gem install sinatra
    gem install slim
    gem install mongo

    # needed for the MongoDB driver
    gem install bson

    # optional C extensions for a performance boost
    gem install bson_ext

Usage
-----

Fire up Sinatra with `ruby stubble.rb` and visit `http://localhost:4567` in your
browser. To use a different port, try `ruby stubble.rb -p PORT`.

Stubbing a URL is pretty self-explanatory: just hit the button. Look at the code to see how it works;
you'll figure it out!<commit_msg>Added more to the readme.<commit_after>stubble
=======

A super simple URL shortening app written in Ruby using Sinatra, Slim, and
MongoDB. Use it as a baseline for your own URL shortening service or as an
example project when learning Ruby, Sinatra, Slim, or MongoDB.

* [Sinatra](http://www.sinatrarb.com/): web framework that handles routing and
  backend logic
* [Slim](http://slim-lang.com/): templating engine for rendering the views
* [MongoDB](http://www.mongodb.org/): NoSQL database that stores data in
  JSON(-like) documents

Dependecies
-----------

Make sure you have Sinatra, Slim, and the Ruby driver for MongoDB installed. If
you don't, run these commands to get 'em:

    gem install sinatra gem install slim gem install mongo

    # needed for the MongoDB driver
    gem install bson

    # optional C extensions for a performance boost
    gem install bson_ext

Written using Ruby 1.9.3.

Usage
-----

Fire up Sinatra with `ruby stubble.rb` and visit `http://localhost:4567` in your
browser. To use a different port, try `ruby stubble.rb -p PORT`.

Stubbing a URL is pretty self-explanatory: just hit the button. Look at the code
to see how it works; you'll figure it out!

Copyright
---------

&copy; 2012 <NAME>

This software is released under the [MIT
license](http://www.opensource.org/licenses/MIT).
{'fraction_non_alphanumeric': 0.09452936444086886, 'fraction_numerical': 0.006033789219629927, 'mean_word_length': 3.588560885608856, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 5, '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': '1806714', 'n_tokens_mistral': 751, 'n_tokens_neox': 714, 'n_words': 337}