<commit_before>api package
===========
API Routes where you define each route and their functions.

We also use a Cache file who are invalidate every 10minutes. Feel free to modificate it at your ease.
You can find it in the begginning of the api.py file.

.. code-block:: python

    requests_cache.install_cache('/tmp/ics-api-cache', expire_after=600)

1. Argument: Location of the cache directory.
2. Argument: Time before expiration in seconds.

See requests-cache_ doc for more information.

.. _requests-cache: http://requests-cache.readthedocs.org/en/latest/

API Routes
----------
.. code-block:: python

    @app.route('/')

Return "Server Running"<commit_msg>update and correct api ref #6<commit_after>api package
===========
API Routes where you define each route and their functions.

We also use a Cache file who are invalidate every 10minutes. Feel free to change it at your ease.
You can find it in the beginning of the api.py file.

.. code-block:: python

    requests_cache.install_cache('/tmp/ics-api-cache', expire_after=600)

1. Argument: Location of the cache directory.
2. Argument: Time before expiration in seconds.

See requests-cache_ doc for more information.

.. _requests-cache: http://requests-cache.readthedocs.org/en/latest/

API Routes
----------
.. code-block:: python

    @app.route('/')

Return "Server Running"
{'fraction_non_alphanumeric': 0.11934766493699037, 'fraction_numerical': 0.01111934766493699, 'mean_word_length': 3.6551724137931036, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '3053355', 'n_tokens_mistral': 404, 'n_tokens_neox': 381, 'n_words': 156}