<commit_before># Community Size API

CiviCRM Extension provides API for getting size of community.

## Assumptions

* Contact is member of group specified by settings on status `Added`,
* Contact is not deleted,
* Contact is not Opt-out,
* Primary email is not hold.<commit_msg>Update README.md - settings, actions<commit_after># Community Size API

CiviCRM Extension provides API for getting size of community.

## Assumptions

* Contact is member of group specified by settings on status `Added`,
* Contact is not deleted,
* Contact is not Opt-out,
* Contact is not deceased,
* Contact has email,
* Primary email is not hold.

## Settings

* `member_group_id` Membership of this group means that contact is in our community
* `activity_type_name` Activity type used for marking contacts who are removed from group, by default *Optout*

## API actions

* `getcount`
* `cleanup` cleaning up contacts from group, parameters
    * `group_id` default from settings
    * `limit` number of contacts per one call
{'fraction_non_alphanumeric': 0.06852035749751738, 'fraction_numerical': 0.0, 'mean_word_length': 4.569060773480663, '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': '36003', 'n_tokens_mistral': 269, 'n_tokens_neox': 266, 'n_words': 134}