<commit_before>namespace $.$$ {
	export class $mol_dimmer extends $.$mol_dimmer {
		
		parts() {
			const needle = this.needle()
			if( needle.length < 2 ) return [ this.haystack() ]
			
			let chunks : any[] = []
			let strings = this.strings()
			
			for( let index = 0 ; index < strings.length ; index++ ) {
				if( strings[ index ] === '' ) continue
				
				chunks.push( ( index % 2 ) ? this.High( index ) : this.Low( index ) )
			}
			
			return chunks
		}
		
		@ $mol_mem
		strings() {
			const regexp = $mol_regexp.from( { needle: this.needle() } , { ignoreCase: true } )
			return this.haystack().split( regexp )<commit_msg>$mol_dimmer: highlight each word instead of full sentence<commit_after>namespace $.$$ {
	export class $mol_dimmer extends $.$mol_dimmer {
		
		parts() {
			const needle = this.needle()
			if( needle.length < 2 ) return [ this.haystack() ]
			
			let chunks : any[] = []
			let strings = this.strings()
			
			for( let index = 0 ; index < strings.length ; index++ ) {
				if( strings[ index ] === '' ) continue
				
				chunks.push( ( index % 2 ) ? this.High( index ) : this.Low( index ) )
			}
			
			return chunks
		}
		
		@ $mol_mem
		strings() {
			const variants = { ... this.needle().split( /\s/g ).filter( Boolean ) } as Record< number, string >
			const regexp = $mol_regexp.from( { needle: variants } , { ignoreCase: true } )
			return this.haystack().split( regexp )
{'fraction_non_alphanumeric': 0.15625, 'fraction_numerical': 0.004261363636363636, 'mean_word_length': 2.640826873385013, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 4, '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': '3179223', 'n_tokens_mistral': 576, 'n_tokens_neox': 454, 'n_words': 123}