<commit_before>let b:ale_linters = ['golangci-lint']
let b:ale_fixers = ['goimports']
setlocal noexpandtab

"autocmd BufWritePre *.go :call LanguageClient#textDocument_formatting_sync()

nnoremap <silent> <leader>t :e %:h/%:t:r_test.%:e<cr>
nnoremap <silent> <leader>T :e %:s?_test??<cr>

" Snippets
iabbrev xtable tests := []struct{<cr>msg string<cr>wantErr string<cr>}{<cr>{<cr>msg: "ok",<cr>wantErr: "",<cr>},<cr>{<cr>msg: "err",<cr>wantErr: "foo",<cr>},<cr>}<cr><cr>for _, tt := range tests {<cr>t.Run(tt.msg, func(t *testing.T) {<cr>TODO<cr>})<cr>}
iabbrev xtest func TestTODO(t *testing.T) {<cr>TODO<cr>}<cr>
iabbrev example func TestTODO(t *testing.T) {<cr>}<cr>
iabbrev xterr if tt.wantErr != "" {<cr>assert.Error(t, err)<cr>assert.EqualError(t, err, tt.wantErr)<cr>return<cr>}<cr>assert.NoError(t, err)
iabbrev xerr if err != nil {<cr>return err<cr>}
iabbrev xforv for i := range
iabbrev xforp for _, i := range<commit_msg>Change the table test snippet to conform to static analysis better<commit_after>let b:ale_linters = ['golangci-lint']
let b:ale_fixers = ['goimports']
setlocal noexpandtab

"autocmd BufWritePre *.go :call LanguageClient#textDocument_formatting_sync()

nnoremap <silent> <leader>t :e %:h/%:t:r_test.%:e<cr>
nnoremap <silent> <leader>T :e %:s?_test??<cr>

" Snippets
iabbrev xtable tests := []struct{<cr>msg string<cr>wantErr string<cr>}{<cr>{<cr>msg: "ok",<cr>wantErr: "",<cr>},<cr>}<cr><cr>for i := range tests {<cr>tt := tests[i]<cr>t.Run(tt.msg, func(t *testing.T) {<cr>TODO<cr>})<cr>}
iabbrev xtest func TestTODO(t *testing.T) {<cr>TODO<cr>}<cr>
iabbrev example func TestTODO(t *testing.T) {<cr>}<cr>
iabbrev xterr if tt.wantErr != "" {<cr>assert.Error(t, err)<cr>assert.EqualError(t, err, tt.wantErr)<cr>return<cr>}<cr>assert.NoError(t, err)
iabbrev xerr if err != nil {<cr>return err<cr>}
iabbrev xforv for i := range
iabbrev xforp for _, i := range
{'fraction_non_alphanumeric': 0.2046659597030753, 'fraction_numerical': 0.0, 'mean_word_length': 7.424107142857143, 'pattern_counts': {'":': 0, '<': 72, '<?xml version=': 0, '>': 72, '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': '6703531', 'n_tokens_mistral': 841, 'n_tokens_neox': 783, 'n_words': 166}