<commit_before><a name="classes.module_PostBuffer"></a>
## PostBuffer
Data structure to manage post merging to prevent spamming

**License**: MIT  

* [PostBuffer](#classes.module_PostBuffer)
  * [~PostBuffer(delay, callback)](#classes.module_PostBuffer..PostBuffer)
    * [.add](#classes.module_PostBuffer..PostBuffer+add)
  * [~postBufferCallback](#classes.module_PostBuffer..postBufferCallback)

<a name="classes.module_PostBuffer..PostBuffer"></a>
### PostBuffer~PostBuffer(delay, callback)
Create a new PostBuffer

**Kind**: inner method of <code>[PostBuffer](#classes.module_PostBuffer)</code>  

| Param | Type | Description |
| --- | --- | --- |
| delay | <code>number</code> | Buffering time before posting |
| callback | <code>postBufferCallback</code> | Buffer delay expiry callback |

<a name="classes.module_PostBuffer..PostBuffer+add"></a>
#### postBuffer.add
Add details of a post to buffer

**Kind**: instance property of <code>[PostBuffer](#classes.module_PostBuffer..PostBuffer)</code>  

| Param | Type | Description |
| --- | --- | --- |
| topicId | <code>number</code> | Topic to post to |
| [replyTo] | <code>number</code> | Post Number in topic that this post is in reply to |
| content | <code>string</code> | Post Contents to post |
| callback | <code>postedCallback</code> | Completion callback |

<a name="classes.module_PostBuffer..postBufferCallback"></a><commit_msg>Automatically push updated documentation [ci skip]<commit_after><a name="classes.module_PostBuffer"></a>
## PostBuffer
Data structure to manage post merging to prevent spamming

**License**: MIT  

* [PostBuffer](#classes.module_PostBuffer)
  * [~PostBuffer(delay, callback)](#classes.module_PostBuffer..PostBuffer)
    * [.add(topicId, [replyTo], content, callback)](#classes.module_PostBuffer..PostBuffer+add)
  * [~postBufferCallback](#classes.module_PostBuffer..postBufferCallback)

<a name="classes.module_PostBuffer..PostBuffer"></a>
### PostBuffer~PostBuffer(delay, callback)
Create a new PostBuffer

**Kind**: inner method of <code>[PostBuffer](#classes.module_PostBuffer)</code>  

| Param | Type | Description |
| --- | --- | --- |
| delay | <code>number</code> | Buffering time before posting |
| callback | <code>postBufferCallback</code> | Buffer delay expiry callback |

<a name="classes.module_PostBuffer..PostBuffer+add"></a>
#### postBuffer.add(topicId, [replyTo], content, callback)
Add details of a post to buffer

**Kind**: instance method of <code>[PostBuffer](#classes.module_PostBuffer..PostBuffer)</code>  

| Param | Type | Description |
| --- | --- | --- |
| topicId | <code>number</code> | Topic to post to |
| [replyTo] | <code>number</code> | Post Number in topic that this post is in reply to |
| content | <code>string</code> | Post Contents to post |
| callback | <code>postedCallback</code> | Completion callback |

<a name="classes.module_PostBuffer..postBufferCallback"></a>
{'fraction_non_alphanumeric': 0.163855421686747, 'fraction_numerical': 0.0, 'mean_word_length': 5.236051502145923, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, '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': '5692561', 'n_tokens_mistral': 877, 'n_tokens_neox': 851, 'n_words': 202}