<commit_before># K2 - Sync Engine Experiment

# Initial Setup

1. Download https://toolbelt.heroku.com/

```
brew install redis
nvm install 6
npm install
```

# Running locally

```
npm start
```<commit_msg>Update README with auth instructions<commit_after># K2 - Sync Engine Experiment

# Initial Setup

1. Download https://toolbelt.heroku.com/

```
brew install redis
nvm install 6
npm install
```

# Running locally

```
npm start
```

## Auth an account

```
curl -X POST -H "Content-Type: application/json" -d '{"email":"<EMAIL>", "name":"<NAME>", "provider":"imap", "settings":{"imap_username":"<EMAIL>","imap_host":"mail.messagingengine.com","imap_port":993,"smtp_host":"mail.messagingengine.com","smtp_port":0,"smtp_username":"<EMAIL>", "smtp_password":"<PASSWORD>","imap_password":"<PASSWORD>","ssl_required":true}}' "http://localhost:5100/auth?client_id=123"
```
{'fraction_non_alphanumeric': 0.1915137614678899, 'fraction_numerical': 0.0194954128440367, 'mean_word_length': 6.398305084745763, 'pattern_counts': {'":': 13, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '2509243', 'n_tokens_mistral': 330, 'n_tokens_neox': 293, 'n_words': 64}