<commit_before>"############################################################################
"
" Custom Color Syntax Definition
"
" This is meant to allow quicker/simpler previewing of syntax colors.
"
"############################################################################

" Create the base matching expressions.
syn match colorsFG0 display 'FG0'
syn match colorsFG1 display 'FG1'
syn match colorsFG2 display 'FG2'
syn match colorsFG3 display 'FG3'
syn match colorsFG4 display 'FG4'
syn match colorsFG5 display 'FG5'
syn match colorsFG6 display 'FG6'
syn match colorsFG7 display 'FG7'
syn match colorsFG8 display 'FG8'
syn match colorsFG9 display 'FG9'
syn match colorsFGA display 'FGA'
syn match colorsFGB display 'FGB'
syn match colorsFGC display 'FGC'
syn match colorsFGD display 'FGD'
syn match colorsFGE display 'FGE'
syn match colorsFGF display 'FGF'

" Hard-code these groups to a color scheme (for now).
hi colorsFG0    cterm=none      ctermbg=none    ctermfg=0
hi colorsFG1    cterm=none      ctermbg=none    ctermfg=1
hi colorsFG2    cterm=none      ctermbg=none    ctermfg=2
hi colorsFG3    cterm=none      ctermbg=none    ctermfg=3
hi colorsFG4    cterm=none      ctermbg=none    ctermfg=4
hi colorsFG5    cterm=none      ctermbg=none    ctermfg=5
hi colorsFG6    cterm=none      ctermbg=none    ctermfg=6
hi colorsFG7    cterm=none      ctermbg=none    ctermfg=7
hi colorsFG8    cterm=none      ctermbg=none    ctermfg=8
hi colorsFG9    cterm=none      ctermbg=none    ctermfg=9
hi colorsFGA    cterm=none      ctermbg=none    ctermfg=10
hi colorsFGB    cterm=none      ctermbg=none    ctermfg=11
hi colorsFGC    cterm=none      ctermbg=none    ctermfg=12
hi colorsFGD    cterm=none      ctermbg=none    ctermfg=13
hi colorsFGE    cterm=none      ctermbg=none    ctermfg=14
hi colorsFGF    cterm=none      ctermbg=none    ctermfg=15

" Create background modifying patterns.
syn match colorsBackgroundNone display 'background(\s*none\s*)\s*{[^}]*}'
syn match colorsBackgroundNone display 'background(\s*0\s*)\s*{[^}]*}'

hi colorsBGNone cterm=none      ctermbg=none    ctermfg=none
hi colorsBG0    cterm=none      ctermbg=0       ctermfg=none
<commit_msg>Added a quick function to demonstrate dynamic syntax generation.<commit_after>"############################################################################
"
" Custom Color Syntax Definition
"
" This is meant to allow quicker/simpler previewing of syntax colors.
"
"############################################################################

" Create the base matching expressions.
syn match colorsFG0 display 'FG0'
syn match colorsFG1 display 'FG1'
syn match colorsFG2 display 'FG2'
syn match colorsFG3 display 'FG3'
syn match colorsFG4 display 'FG4'
syn match colorsFG5 display 'FG5'
syn match colorsFG6 display 'FG6'
syn match colorsFG7 display 'FG7'
syn match colorsFG8 display 'FG8'
syn match colorsFG9 display 'FG9'
syn match colorsFGA display 'FGA'
syn match colorsFGB display 'FGB'
syn match colorsFGC display 'FGC'
syn match colorsFGD display 'FGD'
syn match colorsFGE display 'FGE'
syn match colorsFGF display 'FGF'

" Hard-code these groups to a color scheme (for now).
hi colorsFG0    cterm=none      ctermbg=none    ctermfg=0
hi colorsFG1    cterm=none      ctermbg=none    ctermfg=1
hi colorsFG2    cterm=none      ctermbg=none    ctermfg=2
hi colorsFG3    cterm=none      ctermbg=none    ctermfg=3
hi colorsFG4    cterm=none      ctermbg=none    ctermfg=4
hi colorsFG5    cterm=none      ctermbg=none    ctermfg=5
hi colorsFG6    cterm=none      ctermbg=none    ctermfg=6
hi colorsFG7    cterm=none      ctermbg=none    ctermfg=7
hi colorsFG8    cterm=none      ctermbg=none    ctermfg=8
hi colorsFG9    cterm=none      ctermbg=none    ctermfg=9
hi colorsFGA    cterm=none      ctermbg=none    ctermfg=10
hi colorsFGB    cterm=none      ctermbg=none    ctermfg=11
hi colorsFGC    cterm=none      ctermbg=none    ctermfg=12
hi colorsFGD    cterm=none      ctermbg=none    ctermfg=13
hi colorsFGE    cterm=none      ctermbg=none    ctermfg=14
hi colorsFGF    cterm=none      ctermbg=none    ctermfg=15

" Create background modifying patterns.
syn match colorsBGNone display 'background(\s*none\s*)\s*{[^}]*}'
syn match colorsBG0 display 'background(\s*0\s*)\s*{[^}]*}'

hi colorsBGNone cterm=none      ctermbg=none    ctermfg=none
hi colorsBG0    cterm=none      ctermbg=0       ctermfg=none

" A function for generating a color pallette display.
function! ColorsDraw()
    let num = 1
    while num < 16
        exec 'hi colors_' . num . ' ctermbg=' . num . ' ctermfg=15'
        exec 'syn match colors_' . num . ' "# ' . num . ' #" containedIn=ALL'
        call append( line( '.' ), '# ' . num . ' #' )
        let num = num + 1
    endwhile
endfunction

{'fraction_non_alphanumeric': 0.13463969658659924, 'fraction_numerical': 0.02465233881163085, 'mean_word_length': 3.7093253968253967, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, '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': '6155073', 'n_tokens_mistral': 1657, 'n_tokens_neox': 1526, 'n_words': 474}