<commit_before>hackerspace-api-bot
===================

Bridge your hackerspace to XMPP. The bot will be online when 
your hackerspace is open, and offline if the space is closed.

bot installation (Debian)
-------------------------
* add a dedicated user: ```adduser --shell /bin/bash --disabled-password hsbot```
* create directory: ```$ mkdir /etc/hsbot && chmod 755 /etc/hsbot```
* create file "run"
```
#!/bin/sh
cd /etc/hsbot
exec setuidgid hsbot source bot-env/bin/activate && ./bot.py -c CONFIG
```
* adjust file permissions and ownership: ```# chmod 755 hsbot/run && chown -R hsbot:hsbot /etc/hsbot```
* install Python: ```# apt-get install virtualenv python3```<commit_msg>XMPP linked<commit_after>hackerspace-api-bot
===================

Bridge your hackerspace to [XMPP](https://en.wikipedia.org/wiki/XMPP). 
The bot will be online when your hackerspace is open, and offline if 
the space is closed.

bot installation (Debian)
-------------------------
* add a dedicated user: ```adduser --shell /bin/bash --disabled-password hsbot```
* create directory: ```$ mkdir /etc/hsbot && chmod 755 /etc/hsbot```
* create file "run"
```
#!/bin/sh
cd /etc/hsbot
exec setuidgid hsbot source bot-env/bin/activate && ./bot.py -c CONFIG
```
* adjust file permissions and ownership: ```# chmod 755 hsbot/run && chown -R hsbot:hsbot /etc/hsbot```
* install Python: ```# apt-get install virtualenv python3```
{'fraction_non_alphanumeric': 0.19885958660014255, 'fraction_numerical': 0.009978617248752673, 'mean_word_length': 3.633663366336634, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1132787', 'n_tokens_mistral': 489, 'n_tokens_neox': 440, 'n_words': 148}