<commit_before># Notes

These are a collection of developer notes.

## Invoking the service from the command line

`curl -X POST http://0.0.0.0:5000/slash/cat-gif`

## Slack Doc Links

- Slash commands <https://api.slack.com/slash-commands>
- Message attachments <https://api.slack.com/docs/attachments>

## Flask

- Flask quickstart <http://flask.pocoo.org/docs/0.10/quickstart/>
- Returning JSON with jsonify <http://flask.pocoo.org/docs/0.10/api/#flask.json.jsonify>

## Heroku

- foreman <https://ddollar.github.io/foreman/>

## Requests and Responses

- Requests docs: <http://docs.python-requests.org/en/master/#>
- Responses (for mocking Requests): <https://github.com/getsentry/responses>

## Testing
- Testing your Code: <http://docs.python-guide.org/en/latest/writing/tests/>
- Mock : <http://www.voidspace.org.uk/python/mock/>
<commit_msg>moved notes to the wiki<commit_after># Notes

There are a collection of developer notes on the github wiki:

<https://github.com/martinpeck/bedlam-slack/wiki>
{'fraction_non_alphanumeric': 0.15674603174603174, 'fraction_numerical': 0.013888888888888888, 'mean_word_length': 3.995049504950495, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 5, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 1, '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': '5635719', 'n_tokens_mistral': 369, 'n_tokens_neox': 349, 'n_words': 77}