<commit_before>
                     
   STREAM-TO-PROMISE  
                     



ALTERNATIVES ==>                  #See raw-body

VERSION ==>                       #2.2.0

STREAM-TO-PROMISE(STREAM)->PROMISE#Wait for STREAM completion. If:
                                  #  - OSTREAM: wrapper around END-OF-STREAM (see its doc) but returning a PROMISE
                                  #  - ISTREAM:
                                  #     - wrapper around STREAM-TO-ARRAY
                                  #     - returns as ARR if objectMode or as BUFFER otherwise
<commit_msg>no commit message<commit_after>
                     
   STREAM-TO-PROMISE  
                     



ALTERNATIVES ==>                  #See raw-body

VERSION ==>                       #3.0.0

STREAM-TO-PROMISE(STREAM)->PROMISE#Wait for STREAM completion. If:
                                  #  - OSTREAM: wrapper around END-OF-STREAM (see its doc) but returning a PROMISE
                                  #  - ISTREAM:
                                  #     - wrapper around STREAM-TO-ARRAY
                                  #     - returns as ARR if objectMode or as BUFFER otherwise

{'fraction_non_alphanumeric': 0.39222222222222225, 'fraction_numerical': 0.0033333333333333335, 'mean_word_length': 1.9670510708401976, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4266007', 'n_tokens_mistral': 2183, 'n_tokens_neox': 2156, 'n_words': 86}