<commit_before># [WIP] Melete

Melete is a web service of automatic composition based on the way of [Orpheus](http://www.orpheus-music.org/v3/).

## Instration

```
$ git clone https://github.com/kvvzr/Melete
```

### OS X

#### Requirements

- Homebrew
- Python (2.7.x)

#### Install MySQL

```
$ brew install mysql55
$ brew link mysql55 --force
```

#### Install Mecab and UniDic

```
$ brew install mecab kvvzr/mecab-unidic/mecab-unidic
$ vim $(brew --cellar)/mecab/0.996/lib/mecab/dic/unidic/dicrc
```

Assign `f[9]\t%f[23]\t%f[24]\n` to `node-format-unidic`

#### Install Python libraries

```
$ pip install -r requirements.txt
```

#### Edit config

```
$ vim config.py
```

#### Initialize DB

```
$ python app.py db init
$ python app.py db migrate
$ python app.py db upgrade
```

#### Run server

```
$ python app.py runserver
```
<commit_msg>Fix typo<commit_after># [WIP] Melete

Melete is a web service of automatic composition based on the way of [Orpheus](http://www.orpheus-music.org/v3/).

## Installation

```
$ git clone https://github.com/kvvzr/Melete
```

### OS X

#### Requirements

- Homebrew
- Python (2.7.x)

#### Install MySQL

```
$ brew install mysql55
$ brew link mysql55 --force
```

#### Install Mecab and UniDic

```
$ brew install mecab kvvzr/mecab-unidic/mecab-unidic
$ vim $(brew --cellar)/mecab/0.996/lib/mecab/dic/unidic/dicrc
```

Assign `f[9]\t%f[23]\t%f[24]\n` to `node-format-unidic`

#### Install Python libraries

```
$ pip install -r requirements.txt
```

#### Edit config

```
$ vim config.py
```

#### Initialize DB

```
$ python app.py db init
$ python app.py db migrate
$ python app.py db upgrade
```

#### Run server

```
$ python app.py runserver
```

{'fraction_non_alphanumeric': 0.1883460859329017, 'fraction_numerical': 0.01883460859329017, 'mean_word_length': 3.67032967032967, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '7671311', 'n_tokens_mistral': 716, 'n_tokens_neox': 644, 'n_words': 163}