<commit_before><commit_msg>made it a Vim plugin<commit_after>if exists('g:loaded_google_play') || &cp
  finish
endif
let g:loaded_google_play = 1

if !exists('g:google_play_net_exec')
  let g:google_play_net_exec = 'nc'
endif

function! s:GPVim(command)
  let output = system('echo ' . a:command . ' | ' . g:google_play_net_exec . ' 127.0.0.1 8080')
  echom output
endfunction

nnoremap <script> <silent> <leader><Space>   :call <sid>GPVim('play')<CR>
nnoremap <script> <silent> <leader><Left>    :call <sid>GPVim('previous')<CR>
nnoremap <script> <silent> <leader><Right>   :call <sid>GPVim('next')<CR>
nnoremap <script> <silent> <leader><Up>      :call <sid>GPVim('shuffle')<CR>

{'fraction_non_alphanumeric': 0.17180616740088106, 'fraction_numerical': 0.016152716593245228, 'mean_word_length': 5.959183673469388, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '623610', 'n_tokens_mistral': 283, 'n_tokens_neox': 270, 'n_words': 54}