<commit_before>$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'escualo'



def vagrant_up
  @vagrant_up ||= ENV['TEST_ESCUALO_WITH_VAGRANT']
end

def escualo(args)
  options = '--hostname 127.0.0.1 ' +
  '--username root ' +
  '--password <PASSWORD> ' +
  '--ssh-port 2222 '
  raw_escualo args, options
end

def raw_escualo(args, options='')
  %x{./bin/escualo #{args} #{options}}
end

unless vagrant_up
  puts "[WARNING] "
  puts "[WARNING] ***************************"
  puts "[WARNING] *Not running vagrant tests*"
  puts "[WARNING] ***************************"
  puts "[WARNING] "
  puts "[WARNING] Please have a look at readme for instructions about installing vagrant machine and running with vagrant support"
end<commit_msg>Adding more info to spec warning<commit_after>$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'escualo'



def vagrant_up
  @vagrant_up ||= ENV['TEST_ESCUALO_WITH_VAGRANT']
end

def escualo(args)
  options = '--hostname 127.0.0.1 ' +
  '--username root ' +
  '--password <PASSWORD> ' +
  '--ssh-port 2222 '
  raw_escualo args, options
end

def raw_escualo(args, options='')
  %x{./bin/escualo #{args} #{options}}
end

unless vagrant_up
  puts '[WARNING] '
  puts '[WARNING] ***************************'
  puts '[WARNING] *Not running vagrant tests*'
  puts '[WARNING] ***************************'
  puts '[WARNING] '
  puts '[WARNING] You have not enabled TEST_ESCUALO_WITH_VAGRANT=true variable'
  puts '[WARNING] Please have a look at readme for instructions about installing vagrant machine and running with vagrant support'
  puts '[WARNING] '
end
{'fraction_non_alphanumeric': 0.19555829734731647, 'fraction_numerical': 0.012338062924120914, 'mean_word_length': 4.573883161512027, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '876140', 'n_tokens_mistral': 572, 'n_tokens_neox': 558, 'n_words': 150}