<commit_before>if !exists('g:HammerDirectory')
  if has('win32') || has('win64')
    let g:HammerDirectory = $TEMP
  else
    let g:HammerDirectory = '/tmp'
  end
endif

if !exists('g:HammerBrowser')
  if has('mac')
    let g:HammerBrowser = 'open'
  elseif has('win32') || has('win64')
    let g:HammerBrowser = 'start'
  elseif has('unix') && executable('xdg-open')
    let g:HammerBrowser = 'xdg-open'<commit_msg>Hack-o-riffic. Should solve #9.<commit_after>if !exists('g:HammerDirectory')
  if has('win32') || has('win64')
    let g:HammerDirectory = $TEMP
  else
    let g:HammerDirectory = '/tmp'
  end
endif

if !exists('g:HammerBrowser')
  if has('mac')
    let g:HammerBrowser = 'open'
  elseif has('win32') || has('win64')
    
    " Crazy hack to be able to load Gems on Vim/Windows.
    " No idea _why_ rubygems can't be loaded from inside vim ...
    ruby << GEM_HACK
      require 'rubygems'
      Gem.source_index.find_name(//).each do |spec|
        spec.require_paths.each do |require_path|
       	  $LOAD_PATH.push File.join(spec.full_gem_path, require_path)
 	      end
      end	
GEM_HACK

    let g:HammerBrowser = 'start'
  elseif has('unix') && executable('xdg-open')
    let g:HammerBrowser = 'xdg-open'
{'fraction_non_alphanumeric': 0.1457654723127036, 'fraction_numerical': 0.013843648208469055, 'mean_word_length': 3.420863309352518, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6413885', 'n_tokens_mistral': 475, 'n_tokens_neox': 453, 'n_words': 104}