<commit_before>Activities
==========

``(implementation of Activity entity)``

Provides following methods for `API <index.html>`_ calls:

    * `Get activity`_
    * `Get activities`_
    * `Save activity`_
    * `Attach file to activity`_
    * `Download attached file`_

.. _`Get activity`:

Get activity
------------

URL:
~~~~
    */activities/{id}*

Method:
~~~~~~~
    *GET*

Parameters request:
~~~~~~~~~~~~~~~~~~~
    *null*

Parameters response:
~~~~~~~~~~~~~~~~~~~~
    *Object*

    *With properties:*
        #. id (Number)
        #. description (String)
        #. reported_date (Number)
        #. reported_by (Object)
        #. file_name (String)
        #. issue (Object)

.. note::

    reported_by links with Person entity

    reported_date represent as number of seconds since 1 Jan 1970 00:00:00 (UTC)

Example of response:
~~~~~~~~~~~~~~~~~~~~

.. code-block:: json

    {
        "id":1,
        "description":"Test",
        "reported_date":1465828993000,
        "reported_by":{},
        "issue":{},
        "file_name":"file.pdf",
    }

.. _`Get activities`:

Get activities
--------------

URL:
~~~~
    */activities*

Method:
~~~~~~~
    *GET*

Parameters request:
~~~~~~~~~~~~~~~~~~~
    *null*

Parameters response:
~~~~~~~~~~~~~~~~~~~~
    *Array*

.. seealso::
Array consists of objects from `Get activities`_ method

Example of response:
~~~~~~~~~~~~~~~~~~~~

.. code-block:: json

    [
        {},
        {},
        ...
        {}<commit_msg>activities docs fixed<commit_after>Activities
==========

``(implementation of Activity entity)``

Provides following methods for `API <index.html>`_ calls:

    * `Get activity`_
    * `Get activities`_
    * `Save activity`_
    * `Attach file to activity`_
    * `Download attached file`_

.. _`Get activity`:

Get activity
------------

URL:
~~~~
    */activities/{id}*

Method:
~~~~~~~
    *GET*

Parameters request:
~~~~~~~~~~~~~~~~~~~
    *null*

Parameters response:
~~~~~~~~~~~~~~~~~~~~
    *Object*

    *With properties:*
        #. id (Number)
        #. description (String)
        #. reported_date (Number)
        #. reported_by (Object)
        #. file_name (String)
        #. issue (Object)

.. note::

    reported_by links with Person entity

    reported_date represent as number of seconds since 1 Jan 1970 00:00:00 (UTC)

Example of response:
~~~~~~~~~~~~~~~~~~~~

.. code-block:: json

    {
        "id":1,
        "description":"Test",
        "reported_date":1465828993000,
        "reported_by":{},
        "issue":{},
        "file_name":"file.pdf",
    }

.. _`Get activities`:

Get activities
--------------

URL:
~~~~
    */activities*

Method:
~~~~~~~
    *GET*

Parameters request:
~~~~~~~~~~~~~~~~~~~
    *null*

Parameters response:
~~~~~~~~~~~~~~~~~~~~
    *Array*

.. seealso::
    Array consists of objects from `Get activities`_ method

Example of response:
~~~~~~~~~~~~~~~~~~~~

.. code-block:: json

    [
        {},
        {},
        ...
        {}
{'fraction_non_alphanumeric': 0.23169912693082606, 'fraction_numerical': 0.0167897918065816, 'mean_word_length': 2.43598615916955, 'pattern_counts': {'":': 12, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6238336', 'n_tokens_mistral': 956, 'n_tokens_neox': 862, 'n_words': 222}