<commit_before># Connectors

A connector acts as the backend of shownoteseditor. Its job is it to store notes and possibly sync with a
server of some kind.

## Static functions
* listDocuments (options, cb)
* getDocument (options, docname, cb)
  * returns the documents content as notes-object
* createDocument (options, doc, cb)
* deleteDocument (options, docname, cb)
* changeDocument (options, docname, newDoc, cb)

## Public functions

* `ctor (options, cb)`
* `addNote (note,[ parent,] cb)`
  * callback: `function (err, id)`
  * triggers `noteAdded`-event<commit_msg>clarified documentation of static connector functions<commit_after># Connectors

A connector acts as the backend of shownoteseditor. Its job is it to store notes and possibly sync with a
server of some kind.

## Static functions
* listDocuments (options, cb)
  * callback: `function (err, docs)`
    * `docs` is an array, see `document.md`
* getDocument (options, docname, cb)
  * callback: `function (err, doc)`, see `document.md`
* createDocument (options, doc, cb)
* deleteDocument (options, docname, cb)
* changeDocument (options, docname, newDoc, cb)

## Public functions

* `ctor (options, cb)`
* `addNote (note,[ parent,] cb)`
  * callback: `function (err, id)`
  * triggers `noteAdded`-event
{'fraction_non_alphanumeric': 0.11713836477987422, 'fraction_numerical': 0.0, 'mean_word_length': 4.976525821596244, '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': '2046521', 'n_tokens_mistral': 397, 'n_tokens_neox': 384, 'n_words': 152}