<commit_before>if exists('loaded_gogo') || &cp
	finish
endif
let loaded_gogo = 1

" Quickly launch input data
if has("win32")
    function! s:Gogo(filename)
        let fname = expand(a:filename)
        if len(fname) == 0 || match(fname, "://") > 0
            " Was a url or something else not expandable.
            let fname = a:filename
        endif
        let fname = fnamemodify(fname, ':p')
        " Forwardslashes are great, but old versions of cmd.exe won't handle
        " them. Convert to backslash.
        if &shellslash
            let fname = substitute(fname, '/', '\\', 'g')
        endif
        exec '! start "" "'. fname .'"'
    endfunction
    command! -nargs=1 Gogo silent call s:Gogo("<args>")
elseif has("macunix")
    " TODO: Does this work as expected? Does it need q-quoting?
    command! -nargs=1 Gogo ! open <args>
elseif has("unix")
    " TODO: Does this work as expected? Does it need q-quoting?
    command! -nargs=1 Gogo ! xdg-open <args>
endif

" Separate command with completion so vim doesn't try to force Gogo commands
" to be a file. (Fails on E480 on urls containing '?'.)<commit_msg>Don't expand # in urls<commit_after>if exists('loaded_gogo') || &cp
	finish
endif
let loaded_gogo = 1

" Quickly launch input data
if has("win32")
    function! s:Gogo(filename)
        let fname = expand(a:filename)
        if len(fname) == 0 || match(fname, "://") > 0
            " Was a url or something else not expandable.
            let fname = a:filename
        endif
        let fname = fnamemodify(fname, ':p')
        " Forwardslashes are great, but old versions of cmd.exe won't handle
        " them. Convert to backslash.
        if &shellslash
            let fname = substitute(fname, '/', '\\', 'g')
        endif
        " ! will expand #/% to filenames, but we already tried expanding
        " above. We might have a url with #, so escape to prevent expansion.
        let fname = escape(fname, '#%')
        exec '! start "" "'. fname .'"'
    endfunction
    command! -nargs=1 Gogo silent call s:Gogo("<args>")
elseif has("macunix")
    " TODO: Does this work as expected? Does it need q-quoting?
    command! -nargs=1 Gogo ! open <args>
elseif has("unix")
    " TODO: Does this work as expected? Does it need q-quoting?
    command! -nargs=1 Gogo ! xdg-open <args>
endif

" Separate command with completion so vim doesn't try to force Gogo commands
" to be a file. (Fails on E480 on urls containing '?'.)
{'fraction_non_alphanumeric': 0.11834078893859293, 'fraction_numerical': 0.008946726311508743, 'mean_word_length': 2.5807860262008733, 'pattern_counts': {'":': 2, '<': 9, '<?xml version=': 0, '>': 11, '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': '3462651', 'n_tokens_mistral': 805, 'n_tokens_neox': 775, 'n_words': 283}