<commit_before>
if exists('g:loaded_hexedit')
	finish
endif
let g:loaded_hexedit= 1

function! s:split_16_byte() abort
  let i = 0
  while expand("<cword>") != ''
    echo i
    echo expand("<cword>")
    let i = i + 1
    normal! 016Wi

  endwhile
endfunction

command! -range=% HexSplit16BytePerLine :call s:split_16_byte()
command! -range=% HexAdd0x :'<,'>s/\%V\(\w\)\(\w\)/0x\1\2/g
command! -range=% AddCommaEachWord :'<,'>s/\%V\(\<\w*\>\)/\1\,/g

<commit_msg>Fix function<commit_after>
if exists('g:loaded_hexedit')
	finish
endif
let g:loaded_hexedit= 1

function! s:split_16_byte() abort
  while len(expand("<cword>")) != 0
    let cur = line('.')
    normal! 016W
    if line('.') != cur
      break
    endif
    normal! i
  endwhile
endfunction

command! -bar -range=% HexSplit16BytePerLine :call s:split_16_byte()
command! -bar -range=% HexAdd0x :'<,'>s/\%V\(\w\)\(\w\)/0x\1\2/g
command! -bar -range=% AddCommaEachWord :'<,'>s/\%V\(\<\w*\>\)/\1\,/g
command! -bar -range=% ConvertHexForProg '<,'>HexAdd0x | '<,'>AddCommaEachWord | '<,'>HexSplit16BytePerLine


{'fraction_non_alphanumeric': 0.21047708138447146, 'fraction_numerical': 0.03367633302151544, 'mean_word_length': 3.7767857142857144, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5422602', 'n_tokens_mistral': 455, 'n_tokens_neox': 436, 'n_words': 93}