<commit_before>let s:save_cpo = &cpo
set cpo&vim

let s:source = {
   \ 'name' : 'recent',
   \ 'kind' : 'keyword',
   \ 'mark' : '[R]',
   \ 'rank' : 20,
   \ 'min_pattern_length' : 1,
   \ 'max_candidates' : 20,
   \ 'is_volatile': 1,
   \ }

function! s:source.gather_candidates(context)
  let result = recentcomplete#matches(0, '')
  call map(result, "{ 'word': v:val.word, 'menu': '[R]' }")
  return result
endfunction

function! neocomplete#sources#recent#define()
  return s:source
endfunction

let &cpo = s:save_cpo
unlet s:save_cpo<commit_msg>only get things that start w/ first letter<commit_after>let s:save_cpo = &cpo
set cpo&vim

let s:source = {
   \ 'name' : 'recent',
   \ 'kind' : 'keyword',
   \ 'mark' : '[R]',
   \ 'rank' : 20,
   \ 'min_pattern_length' : 1,
   \ 'max_candidates' : 20,
   \ 'is_volatile': 1,
   \ }

function! s:source.gather_candidates(context)
  let result = recentcomplete#matches(0, a:context.complete_str[0])
  call map(result, "{ 'word': v:val.word, 'menu': '[R]' }")
  return result
endfunction

function! neocomplete#sources#recent#define()
  return s:source
endfunction

let &cpo = s:save_cpo
unlet s:save_cpo
{'fraction_non_alphanumeric': 0.17214532871972318, 'fraction_numerical': 0.012975778546712802, 'mean_word_length': 3.902542372881356, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1773311', 'n_tokens_mistral': 478, 'n_tokens_neox': 451, 'n_words': 97}