<commit_before># Sogy is an AI friends

## Prepare: get tokens and put `.env` file

this bot uses [Slack bot token](https://slack.com/apps/A0F7YS25R-bots) and [Recruit A3rt token](https://a3rt.recruit-tech.co.jp/product/talkAPI/)

if you got their tokens, you can use them to write to `.env` file.

```bash:.env
SLACK_API_TOKEN=your_slack_token
RECRUIT_TALK_API_TOKEN=your_a3rt_token
```

## Run Bots

```bash
node index.js
```<commit_msg>add descriptions for machine settings to README.md<commit_after># Sogy is an AI friends

## Prepare: get tokens and put `.env` file

this bot uses [Slack bot token](https://slack.com/apps/A0F7YS25R-bots) and [Recruit A3rt token](https://a3rt.recruit-tech.co.jp/product/talkAPI/)

if you got their tokens, you can use them to write to `.env` file.

```bash:.env
SLACK_API_TOKEN=your_slack_token
RECRUIT_TALK_API_TOKEN=your_a3rt_token
```

## Run Bots

```bash
node index.js
```


# Configuration

## manually

```bash
sudo apt-get update
sudo apt-get install git
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs

git clone https://github.com/kentork/sogy

cd sogy
npm install

sudo npm install pm2 -g
pm2 start index.js
```
{'fraction_non_alphanumeric': 0.1252072968490879, 'fraction_numerical': 0.014096185737976783, 'mean_word_length': 4.388392857142857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '1233648', 'n_tokens_mistral': 488, 'n_tokens_neox': 453, 'n_words': 132}