<commit_before>freepacktbook
=============

Claim Your `Free PacktPub eBook <https://www.packtpub.com/packt/offers/free-learning>`_ automatically.

.. code-block:: bash

  export PACKTPUB_EMAIL=<EMAIL>
  export PACKTPUB_PASSWORD=<PASSWORD>
  
  $ claim_free_ebook<commit_msg>Add info about slack<commit_after>freepacktbook
=============

Claim Your `Free PacktPub eBook <https://www.packtpub.com/packt/offers/free-learning>`_ automatically.

.. code-block:: bash

  export PACKTPUB_EMAIL=<EMAIL>
  export PACKTPUB_PASSWORD=<PASSWORD>
  
  $ claim_free_ebook

``Slack`` notification
----------------------

Set additionally the following environment variables:

.. code-block:: bash

  export SLACK_URL=https://hooks.slack.com/services/...
  export SLACK_CHANNEL=#random

.. image:: https://github-bogdal.s3.amazonaws.com/freepacktbook/slack.png
{'fraction_non_alphanumeric': 0.16943127962085308, 'fraction_numerical': 0.001184834123222749, 'mean_word_length': 4.314465408805032, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '2514003', 'n_tokens_mistral': 297, 'n_tokens_neox': 290, 'n_words': 48}