<commit_before>com! -nargs=1 -complete=dir DeployEclimd call s:DeployEclimd(<f-args>)

function! s:DeployEclimd(eclipsePath)
    let l:eclim_d = '/tmp/eclim'
    let l:eclipse_d = resolve(getcwd() . '/' . a:eclipsePath)
    let l:vim_d = resolve($HOME . '/.vim/bundle/vim-eclim')

    if ! filereadable(l:eclipse_d . '/eclipse.ini')
        echom 'Eclipse path invalid.'
        return
    endif

    let l:cmd_fmt = "silent !git clone https://github.com/ervandew/eclim.git %s -b 2.4.0 && "
                \ . "cd %s && ant -Dvim.files=%s -Declipse.home=%s && "
                \ . "cd - && rm -rf %s"
    let l:cmd = printf(l:cmd_fmt, l:eclim_d, l:eclim_d, l:vim_d, l:eclipse_d, l:eclim_d)
    execute l:cmd
endfunction<commit_msg>Always use latest stable tag. Separate commands.<commit_after>com! -nargs=1 -complete=dir DeployEclimd call s:deploy_eclimd(<f-args>)

function! s:deploy_eclimd(eclipsePath)
    let l:eclim_d = '/tmp/eclim'
    let l:eclipse_d = resolve(getcwd() . '/' . a:eclipsePath)
    let l:vim_d = resolve($HOME . '/.vim/bundle/vim-eclim')

    if ! filereadable(l:eclipse_d . '/eclipse.ini')
        echom 'Eclipse path invalid.'
        return
    endif

    execute 'silent !git clone https://github.com/ervandew/eclim.git ' . l:eclim_d,
    cd l:eclim_d,
    let l:last_tag = split(system('git tag'), '\n')[-1]
    execute 'silent !git checkout ' . l:last_tag
    execute 'silent !ant -Dvim.files=' . l:vim_d '-Declipse.home=' . l:eclipse_d
    cd '-'
    execute 'rm -rf ' . l:eclim_d
endfunction
{'fraction_non_alphanumeric': 0.15889691398555483, 'fraction_numerical': 0.003939592908732764, 'mean_word_length': 2.9278350515463916, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '7013950', 'n_tokens_mistral': 635, 'n_tokens_neox': 584, 'n_words': 121}