<commit_before>Develop EMLauncher on docker containers
---

# How to run

1. Checkout submodules
```sh
git submodule init
git submodule update
```

2. Modify configs
```sh
cp config/{emlauncher_config_sample.php,emlauncher_config.php}
cp config/{mfw_serverenv_config_docker.php,mfw_serverenv_config.php}

# set your aws keys and s3 bucket name.
vim config/emlauncher_config.php
```

3. Build and run docker
```sh
docker-compose up --build
```

4. Add EMLauncher user
```sh
docker exec $(docker ps -f "name=emlauncher_db" -q) mysql -uroot -ppassword emlauncher -e "INSERT INTO user_pass (mail) VALUES ('<EMAIL>');"
```

5. Open EMLauncher in a browser

http://localhost:10080
<commit_msg>Use docker-compose exec instead of docker exec<commit_after>Develop EMLauncher on docker containers
---

# How to run

1. Checkout submodules
```sh
git submodule init
git submodule update
```

2. Modify configs
```sh
cp config/{emlauncher_config_sample.php,emlauncher_config.php}
cp config/{mfw_serverenv_config_docker.php,mfw_serverenv_config.php}

# set your aws keys and s3 bucket name.
vim config/emlauncher_config.php
```

3. Build and run docker
```sh
docker-compose up --build
```

4. Add EMLauncher user
```sh
docker-compose exec db mysql -uroot -ppassword emlauncher -e 'INSERT INTO user_pass (mail) VALUES ("<EMAIL>");'
```

5. Open EMLauncher in a browser

http://localhost:10080

{'fraction_non_alphanumeric': 0.11320754716981132, 'fraction_numerical': 0.015965166908563134, 'mean_word_length': 4.818565400843882, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '7101741', 'n_tokens_mistral': 535, 'n_tokens_neox': 480, 'n_words': 152}