<commit_before>Rack app
========

An experimental implementation of QMachine using Sinatra_ is available in the
project repository. It uses the `sqlite3 gem`_ to provide persistent storage in
a self-contained manner.

An outdated (but prebuilt!) sandbox for testing on localhost is available
here_. To use it, download the tarball and extract its contents. Then, from
within the new directory,
::

    $ bundle install --all
    $ bundle exec rackup

If you don't already have Bundler_ installed, you can install it via
::

    $ gem install bundler


Then, point your browser to http://localhost:8177.

Note also that RVM_ is indispensible here for installing everything in a
user-level sandbox. The teaching version has now been merged into the
:doc:`ruby-gem`, but it is not yet feature-complete.


.. ----------------------------
.. include:: external-links.rst

.. _here: https://code.google.com/p/qmachine/downloads/detail?name=rackup-app.tar.gz
<commit_msg>Use `bundle package` instead of `bundle install`<commit_after>Rack app
========

An experimental implementation of QMachine using Sinatra_ is available in the
project repository. It uses the `sqlite3 gem`_ to provide persistent storage in
a self-contained manner.

An outdated (but prebuilt!) sandbox for testing on localhost is available
here_. To use it, download the tarball and extract its contents. Then, from
within the new directory,
::

    $ bundle package --all
    $ bundle exec rackup

If you don't already have Bundler_ installed, you can install it via
::

    $ gem install bundler


Then, point your browser to http://localhost:8177.

Note also that RVM_ is indispensible here for installing everything in a
user-level sandbox. The teaching version has now been merged into the
:doc:`ruby-gem`, but it is not yet feature-complete.


.. ----------------------------
.. include:: external-links.rst

.. _here: https://code.google.com/p/qmachine/downloads/detail?name=rackup-app.tar.gz

{'fraction_non_alphanumeric': 0.10799796230259806, 'fraction_numerical': 0.005094243504839531, 'mean_word_length': 3.5568445475638053, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2923543', 'n_tokens_mistral': 551, 'n_tokens_neox': 516, 'n_words': 240}