<commit_before>
                
   CLI-TRUNCATE  
                



VERSION ==>                       #2.1.0

CLI-TRUNCATE(STR, NUM[, OPTS])    #Truncate at NUM characters. When truncating, add ellipsis …
 ->STR                            #OPTS:
                                  #  - position 'start', 'middle' or 'end' (def)
                                  #  - space BOOL (def: false): add a space next to ellipsis.
                                  #  - preferTruncationOnSpace BOOL (def: false): truncate on space if within 3 characters
                                  #Using SLICE-ANSI + STRING-WIDTH (see their doc), handles:
                                  #  - control characters
                                  #  - ANSI sequences
                                  #  - Unicode combining characters, emoji and >=U-10000
                                  #  - fullwidth code points<commit_msg>no commit message<commit_after>
                
   CLI-TRUNCATE  
                



VERSION ==>                       #3.0.0

CLI-TRUNCATE(STR, NUM[, OPTS])    #Truncate at NUM characters. When truncating, add ellipsis …
 ->STR                            #OPTS:
                                  #  - position 'start', 'middle' or 'end' (def)
                                  #  - space BOOL (def: false): add a space next to ellipsis.
                                  #  - preferTruncationOnSpace BOOL (def: false): truncate on space if within 3 characters
                                  #Using SLICE-ANSI + STRING-WIDTH (see their doc), handles:
                                  #  - control characters
                                  #  - ANSI sequences
                                  #  - Unicode combining characters, emoji and >=U-10000
                                  #  - fullwidth code points
{'fraction_non_alphanumeric': 0.3171912832929782, 'fraction_numerical': 0.007263922518159807, 'mean_word_length': 1.617740232312566, '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': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3024775', 'n_tokens_mistral': 2419, 'n_tokens_neox': 2372, 'n_words': 143}