<commit_before># gamification-engine-dokku
Deployable application for using the gamification engine (https://github.com/ActiDoo/gamification-engine) with dokku (https://github.com/progrium/dokku) or Heroku (https://www.heroku.com/).

The configuration uses multiple buildpacks (see .buildpacks and https://github.com/heroku/heroku-buildpack-multi.git).

## Demo

* A running stable version is available at https://gamification-engine.herokuapp.com/ [![Heroku](https://heroku-badge.herokuapp.com/?app=gamification-engine&root=admin/)](https://gamification-engine.herokuapp.com)
* A running development version at https://gamification-engine-develop.herokuapp.com/ [![Heroku](https://heroku-badge.herokuapp.com/?app=gamification-engine-develop&root=admin/)](https://gamification-engine-develop.herokuapp.com)

## Configuration
An installed PostgreSQL database and the following environment settings are needed:
* `BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-multi.git`
* `DATABASE_URL` (PostgreSQL connection string)
* `URLCACHE_ACTIVE=False` or `MEMCACHED_URL` (Memcached url)

To initiate the database and populate with demo data run `initialize_gengine_db production.ini reset_db=True populate_demo=True`.
<commit_msg>add deploy to heroku button<commit_after># gamification-engine-dokku
Deployable application for using the gamification engine (https://github.com/ActiDoo/gamification-engine) with dokku (https://github.com/progrium/dokku) or Heroku (https://www.heroku.com/).

The configuration uses multiple buildpacks (see .buildpacks and https://github.com/heroku/heroku-buildpack-multi.git).

## Demo

* [![Heroku](https://heroku-badge.herokuapp.com/?app=gamification-engine&root=admin/)](https://gamification-engine.herokuapp.com) A running stable version is available at https://gamification-engine.herokuapp.com/
* [![Heroku](https://heroku-badge.herokuapp.com/?app=gamification-engine-develop&root=admin/)](https://gamification-engine-develop.herokuapp.com) A running development version at https://gamification-engine-develop.herokuapp.com/
* [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy) Your con deploy your personal demo on Heroku with this button (free Heroku account required)

## Configuration
An installed PostgreSQL database and the following environment settings are needed:
* `BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-multi.git`
* `DATABASE_URL` (PostgreSQL connection string)
* `URLCACHE_ACTIVE=False` or `MEMCACHED_URL` (Memcached url)

To initiate the database and populate with demo data run `initialize_gengine_db production.ini reset_db=True populate_demo=True`.

{'fraction_non_alphanumeric': 0.12758750470455402, 'fraction_numerical': 0.0, 'mean_word_length': 6.126005361930295, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 24, 'lorem ipsum': 0, 'www.': 3, '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': '3642880', 'n_tokens_mistral': 841, 'n_tokens_neox': 829, 'n_words': 176}