<commit_before>if exists('g:loaded_deleft') || &cp
  finish
endif

let g:loaded_deleft = '0.1.0' " version number
let s:keepcpo = &cpo
set cpo&vim

let s:indent_based_filetypes = ['coffee', 'python', 'haml', 'slim']

if !exists('g:deleft_indent_based_filetypes')
  let g:deleft_indent_based_filetypes = []
endif

if !exists('g:deleft_mapping')
  let g:deleft_mapping = 'dh'
endif

if !exists('g:deleft_remove_strategy')
  " possible values: "none", "comment", "delete", "spaces"
  let g:deleft_remove_strategy = 'none'
endif

command! Deleft call s:Deleft()
if g:deleft_mapping != ''
  exe 'nnoremap <silent> '.g:deleft_mapping.' :silent Deleft<cr>'
endif

function! s:Deleft()
  let saved_view = winsaveview()
  normal! ^
<commit_msg>Initialize matchit when the plugin loads<commit_after>if exists('g:loaded_deleft') || &cp
  finish
endif

let g:loaded_deleft = '0.1.0' " version number
let s:keepcpo = &cpo
set cpo&vim

" Initialize matchit, a requirement
if !exists('g:loaded_matchit')
  if has(':packadd')
    packadd matchit
  else
    runtime macros/matchit.vim
  endif
endif

let s:indent_based_filetypes = ['coffee', 'python', 'haml', 'slim']

if !exists('g:deleft_indent_based_filetypes')
  let g:deleft_indent_based_filetypes = []
endif

if !exists('g:deleft_mapping')
  let g:deleft_mapping = 'dh'
endif

if !exists('g:deleft_remove_strategy')
  " possible values: "none", "comment", "delete", "spaces"
  let g:deleft_remove_strategy = 'none'
endif

command! Deleft call s:Deleft()
if g:deleft_mapping != ''
  exe 'nnoremap <silent> '.g:deleft_mapping.' :silent Deleft<cr>'
endif

function! s:Deleft()
  let saved_view = winsaveview()
  normal! ^

{'fraction_non_alphanumeric': 0.14173703256936068, 'fraction_numerical': 0.0036188178528347406, 'mean_word_length': 5.716599190283401, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6110885', 'n_tokens_mistral': 637, 'n_tokens_neox': 626, 'n_words': 146}