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

let s:save_cpo = &cpo
set cpo&vim

let s:source = {
  \ 'name': 'hassistant',
  \ 'kind': 'manual',
  \ 'rank': 200,
  \ 'filetypes': { 'haskell': 1 },
  \ 'min_pattern_length': 1,
  \ 'hooks': {},
  \ }

function! s:source.get_complete_position(context) "{{{
  call hassistant#check_type_process()
  let ret = eval(libcall(g:hassistant_executable_directory . "library.so", "position", a:context.input))
  let a:context.source__ret = ret
  return ret.position
endfunction "}}}
<commit_msg>add g:hassistant_min_mattern_length variable.<commit_after>if exists('g:loaded_neocomplete_source_hassistant')
  finish
endif
let g:loaded_neocomplete_source_hassistant = 1

let s:save_cpo = &cpo
set cpo&vim

let s:source = {
  \ 'name': 'hassistant',
  \ 'kind': 'manual',
  \ 'rank': 200,
  \ 'filetypes': { 'haskell': 1 },
  \ 'min_pattern_length': get(g:, 'hassistant_min_mattern_length', 2),
  \ 'hooks': {},
  \ }

function! s:source.get_complete_position(context) "{{{
  call hassistant#check_type_process()
  let ret = eval(libcall(g:hassistant_executable_directory . "library.so", "position", a:context.input))
  let a:context.source__ret = ret
  return ret.position
endfunction "}}}

{'fraction_non_alphanumeric': 0.15320121951219512, 'fraction_numerical': 0.009146341463414634, 'mean_word_length': 5.252380952380952, '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': '4218578', 'n_tokens_mistral': 507, 'n_tokens_neox': 486, 'n_words': 88}