<commit_before># Experimenter

A platform to create and administer experiments.

## Prerequisites

You will need the following things properly installed on your computer.

* [Git](http://git-scm.com/)
* [Node.js](http://nodejs.org/) (with NPM)
* [Bower](http://bower.io/)
* [Ember CLI](http://www.ember-cli.com/)
* [PhantomJS](http://phantomjs.org/)

## Installation

* `git clone <repository-url>` this repository
* change into the new directory
* `npm install`
* `bower install`

## Running / Development

* make sure jamdb is running, see: https://github.com/CenterForOpenScience/jamdb
* with your jamdb virtualenv active:
  * make sure commonregex is installed `pip install commonregex`
  * run `python schemnas/generate.py` to generate json-schema files
  * run the setup-jam script: `python setup-jam.py`

This:
- Makes the _experimenter_ namespace in jamdb.
- Creates an _admins_ collection under the _experimenter_ namespace.
- Configures jamdb to use the schema from `schemas/admin.json` to validate _admins_ records.
- Adds a record 'root', with password 'password' to the _admins_ collection. This can be used to log in to the toast interface.
- Give the 'root' user ADMIN permissions on the _experimenter_ namespace.

Then:
* `ember server`
* Visit your app at [http://localhost:4200](http://localhost:4200).<commit_msg>Update README formatting<commit_after># Experimenter

A platform to create and administer experiments.

## Prerequisites

You will need the following things properly installed on your computer.

* [Git](http://git-scm.com/)
* [Node.js](http://nodejs.org/) (with NPM)
* [Bower](http://bower.io/)
* [Ember CLI](http://www.ember-cli.com/)
* [PhantomJS](http://phantomjs.org/)

## Installation

* `git clone <repository-url>` this repository
* change into the new directory
* `npm install`
* `bower install`

## Running / Development

First:
* make sure jamdb is running, see: https://github.com/CenterForOpenScience/jamdb
* with your jamdb virtualenv active:
  * make sure commonregex is installed: `pip install commonregex`
  * run `python schemnas/generate.py` to generate json-schema files
  * run the setup-jam script: `python setup-jam.py`

This:
- Makes the _experimenter_ namespace in jamdb.
- Creates an _admins_ collection under the _experimenter_ namespace.
- Configures jamdb to use the schema from `schemas/admin.json` to validate _admins_ records.
- Adds a record 'root', with password 'password' to the _admins_ collection. This can be used to log in to the toast interface.
- Give the 'root' user ADMIN permissions on the _experimenter_ namespace.

Then:
* `ember server`
* Visit your app at [http://localhost:4200](http://localhost:4200).
{'fraction_non_alphanumeric': 0.11256056653000372, 'fraction_numerical': 0.005963473723443906, 'mean_word_length': 4.477551020408163, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3535809', 'n_tokens_mistral': 853, 'n_tokens_neox': 801, 'n_words': 294}