<commit_before>Actions
=======

Table of Contents
-----------------
 - [Overview](#overview)
 - [**collect_resources** Action](#collect_resources-action)
 - [**get** Action](#get-action)
 - [**get_list** Action](#get_list-action)
 - [**customize_loaded_data** Action](#customize_loaded_data-action)
 - [**get_config** Action](#get_config-action)
 - [**get_relation_config** Action](#get_relation_config-action)
 - [**get_metadata** Action](#get_metadata-action)
 - [**normalize_value** Action](#normalize_value-action)
 - [**Context** class](#context_class)
 - [Creating new action](#creating-new-action)

Overview
--------

The action is a set of processors intended to process some request.

Each action has two required elements:

- **context** - an object that is used to store input and output data and share data between processors.
- **main processor** - the main entry point for an action. This class is responsible for creating the context and executing all worker processors.

More details about these elements you can find in the [Creating new action](#creating-new-action) section.

The following table shows all actions provided out of the box:

| Action Name           | Description |
| ---                   | --- |
| [collect_resources](#collect_resources-action) | Returns a list of all resources available through Data API |
| [get](#get-action) | Returns an entity by its identifier |
| [get_list](#get_list-action) | Returns a list of entities |
| [customize_loaded_data](#customize_loaded_data-action) | Makes modifications of data loaded by [get](#get-action) or [get_list](#get_list-action) actions |<commit_msg>BAP-9187: Documentation for API Bundle. Docs for actions and processors<commit_after>Actions
=======

Table of Contents
-----------------
 - [Overview](#overview)
 - Existing actions
    - [**collect_resources** Action](#collect_resources-action)
    - [**get** Action](#get-action)
    - [**get_list** Action](#get_list-action)
    - [**customize_loaded_data** Action](#customize_loaded_data-action)
    - [**get_config** Action](#get_config-action)
    - [**get_relation_config** Action](#get_relation_config-action)
    - [**get_metadata** Action](#get_metadata-action)
    - [**normalize_value** Action](#normalize_value-action)
 - [**Context** class](#context_class)
 - [Creating new action](#creating-new-action)

Overview
--------

The action is a set of processors intended to process some request.

Each action has two required elements:

- **context** - an object that is used to store input and output data and share data between processors.
- **main processor** - the main entry point for an action. This class is responsible for creating the context and executing all worker processors.

More details about these elements you can find in the [Creating new action](#creating-new-action) section.

The following table shows all actions provided out of the box:

| Action Name           | Description |
| ---                   | --- |
| [collect_resources](#collect_resources-action) | Returns a list of all resources available through Data API |
| [get](#get-action) | Returns an entity by its identifier |
| [get_list](#get_list-action) | Returns a list of entities |
| [customize_loaded_data](#customize_loaded_data-action) | Makes modifications of data loaded by [get](#get-action) or [get_list](#get_list-action) actions |
{'fraction_non_alphanumeric': 0.13938315539739027, 'fraction_numerical': 0.0011862396204033216, 'mean_word_length': 4.262090483619345, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3307690', 'n_tokens_mistral': 965, 'n_tokens_neox': 880, 'n_words': 305}