<commit_before>## Prerequisites

You will need [Leiningen][1] 2.0 or above installed.

[1]: https://github.com/technomancy/leiningen

## Running

To start a web server for the application, run:

    lein ring server

## Migrations

We use ragtime to handle migrations and instead of active record style migrations it utilizes SQL.

The basic way they are written is: `./migrations/${date}_name_.up.sql` and `./migrations/${date}_name_.down.sql`

It's important to ragtime to have both an up and down migration. That is solved using the following commands though

### Making a new migration

To make a new migration run `script/new_migration NAME_OF_MIGRATION_NO_SPACES`

### Migrating

Migrating is simple as `lein ragtime migrate`

### Rollbacks

Rollbacks are simple as `lein ragtime rollback`

## Help

If you get lost type `lein help` Usually it'll have what you need

## License

The Made to Measure API is AGPL see License.txt<commit_msg>Copyright<commit_after>## Prerequisites

You will need [Leiningen][1] 2.0 or above installed.

[1]: https://github.com/technomancy/leiningen

## Running

To start a web server for the application, run:

    lein ring server

## Migrations

We use ragtime to handle migrations and instead of active record style migrations it utilizes SQL.

The basic way they are written is: `./migrations/${date}_name_.up.sql` and `./migrations/${date}_name_.down.sql`

It's important to ragtime to have both an up and down migration. That is solved using the following commands though

### Making a new migration

To make a new migration run `script/new_migration NAME_OF_MIGRATION_NO_SPACES`

### Migrating

Migrating is simple as `lein ragtime migrate`

### Rollbacks

Rollbacks are simple as `lein ragtime rollback`

## Help

If you get lost type `lein help` Usually it'll have what you need

## License

The Made to Measure API is AGPL see License.txt

Copyright 2015 Made to Measure

{'fraction_non_alphanumeric': 0.07720396452790819, 'fraction_numerical': 0.006259780907668232, 'mean_word_length': 4.387640449438202, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '692022', 'n_tokens_mistral': 590, 'n_tokens_neox': 570, 'n_words': 252}