<commit_before>
             
   WRAP-ANSI  
             



VERSION ==>                       #7.0.0

WRAP-ANSI(STR, NUM[, OPTS])->STR  #Wrap STR for NUM columns, using same logic as STRING-WIDTH
                                  #OPTS:
                                  #  - wordWrap BOOL:
                                  #     - If true (def), only break on space (not other whitespaces).
                                  #     - If false, break on any characters.
                                  #  - hard BOOL (def: false): if true, also break after NUM characters if no spaces before that
                                  #  - trim BOOL (def: true): trim whitespaces at start|end
                                  #Uses STRING-WIDTH (see their doc), i.e. handles:
                                  #  - control characters
                                  #  - ANSI sequences
                                  #  - Unicode combining characters, emoji and >=U-10000
                                  #  - fullwidth code points
                                  #Also handles:
                                  #  - Windows newlines (convert to Unix)<commit_msg>no commit message<commit_after>
             
   WRAP-ANSI  
             



VERSION ==>                       #8.0.0

WRAP-ANSI(STR, NUM[, OPTS])->STR  #Wrap STR for NUM columns, using same logic as STRING-WIDTH
                                  #OPTS:
                                  #  - wordWrap BOOL:
                                  #     - If true (def), only break on space (not other whitespaces).
                                  #     - If false, break on any characters.
                                  #  - hard BOOL (def: false): if true, also break after NUM characters if no spaces before that
                                  #  - trim BOOL (def: true): trim whitespaces at start|end
                                  #Uses STRING-WIDTH (see their doc), i.e. handles:
                                  #  - control characters
                                  #  - ANSI sequences
                                  #  - Unicode combining characters, emoji and >=U-10000
                                  #  - fullwidth code points
                                  #Also handles:
                                  #  - Windows newlines (convert to Unix)
{'fraction_non_alphanumeric': 0.2746525479814692, 'fraction_numerical': 0.005294506949040371, 'mean_word_length': 1.330763299922899, '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': 36, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2147460', 'n_tokens_mistral': 2581, 'n_tokens_neox': 2521, 'n_words': 187}