<commit_before># Hangman on Rails

This is a simple implementation of the game hangman as a Rails app.

## Installation

This requires ruby and the ruby gem `bundler`.

* Slackware

        # sbopkg -i ruby-bundler

* Others TODO

After cloning this repo run:

        $ bundle install --path vendor/bundle

## Configuration

The default configuration for development uses a PostgreSQL database. The  
configuration for this should be done in `config/database.yml`. You'll need  
adapt this for your PostgreSQL instance. To get started quickly, you can  
comment out the PostgreSQL development database in the file, and restore the  
sqlite values.

## Running

To start the server in development mode:

        $ ./bin/rails s
<commit_msg>Add missing info on db setup to readme<commit_after># Hangman on Rails

This is a simple implementation of the game hangman as a Rails app.

## Installation

This requires ruby and the ruby gem `bundler`.

* Slackware

        # sbopkg -i ruby-bundler

* Others TODO

After cloning this repo run:

        $ bundle install --path vendor/bundle

## Configuration

The default configuration for development uses a PostgreSQL database. The  
configuration for this should be done in `config/database.yml`. You'll need  
adapt this for your PostgreSQL instance. To get started quickly, you can  
comment out the PostgreSQL development database in the file, and restore the  
sqlite values.

Then to initialise the database:

        $ ./bin/rake db:migrate RAILS_ENV=development

## Running

To start the server in development mode:

        $ ./bin/rails s

{'fraction_non_alphanumeric': 0.054579673776662486, 'fraction_numerical': 0.0, 'mean_word_length': 3.381868131868132, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4636290', 'n_tokens_mistral': 448, 'n_tokens_neox': 418, 'n_words': 211}