<commit_before>Overview of the Audiere API

Everything is in the audiere namespace.  After #including <audiere.h>,
you can enter the line "using namespace audiere;" or explicitly
qualify the API symbols, i.e. "audiere::GetVersion();".

Every Audiere class has an associated refcounted smart pointer type.
For example, class File has a FilePtr type which manages the number of
references on the File objects.  (For the curious, FilePtr is a
typedef to RefPtr<File>.)  Remember!!  FilePtr is NOT the same as
File*.  File* does not automatically manage references, and is
therefore unsafe.  If you don't understand the difference, just use
FilePtr.<commit_msg>document that factories return objects with initial refcounts of 0<commit_after>Overview of the Audiere API

Everything is in the audiere namespace.  After #including <audiere.h>,
you can enter the line "using namespace audiere;" or explicitly
qualify the API symbols, i.e. "audiere::GetVersion();".

Every Audiere class has an associated refcounted smart pointer type.
For example, class File has a FilePtr type which manages the number of
references on the File objects.  (For the curious, FilePtr is a
typedef to RefPtr<File>.)  Remember!!  FilePtr is NOT the same as
File*.  File* does not automatically manage references, and is
therefore unsafe.  If you don't understand the difference, just use
FilePtr.

All factory functions return an object with an initial reference count
of 0.  This facilitates reasonable RefPtr behavior (That is, ref() on
construction or assignment, unref() on destruction).  Unfortunately,
when using Audiere from a language without smart pointers, such as
Delphi, one must be careful to ref() the object before calling
unref().
{'fraction_non_alphanumeric': 0.0594059405940594, 'fraction_numerical': 0.0011648223645894002, 'mean_word_length': 4.883561643835616, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1426162', 'n_tokens_mistral': 454, 'n_tokens_neox': 428, 'n_words': 248}