<commit_before>function cursor#blink(time) abort
  set cursorline cursorcolumn
  redraw
  exec 'sleep ' . float2nr(a:time * 1000) . 'm'
  set nocursorline nocursorcolumn
  redraw
endfunction<commit_msg>vim: cursor#blink: take advantage of timers<commit_after>function cursor#blink(time) abort
  call cursor#hl_on()
  let time_in_ms = float2nr(a:time * 1000)
  if has('timers')
    let _ = timer_start(time_in_ms, {_ -> cursor#hl_off()})
  else
    exec 'sleep'  time_in_ms  'm'
    call cursor#hl_off()
  endif
endfunction

function cursor#hl_on() abort
  set cursorline cursorcolumn
  redraw
endfunction

function cursor#hl_off() abort
  set nocursorline nocursorcolumn
  redraw
endfunction
{'fraction_non_alphanumeric': 0.08827785817655572, 'fraction_numerical': 0.01447178002894356, 'mean_word_length': 4.914529914529915, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4379901', 'n_tokens_mistral': 253, 'n_tokens_neox': 237, 'n_words': 60}