<commit_before>require 'opencpu'
OpenCPU.configure do |config|
  config.endpoint_url = ENV['OPENCPU_ENDPOINT_URL']
  config.username     = ENV['OPENCPU_USERNAME']
  config.password     = ENV['<PASSWORD>']
  config.timeout      = ENV['OPENCPU_TIMEOUT'].to_i if ENV['OPENCPU_TIMEOUT']
end
<commit_msg>Shorten OpenCPU max timeout to 5 seconds because it should never take longer<commit_after>require 'opencpu'
OpenCPU.configure do |config|
  config.endpoint_url = ENV['OPENCPU_ENDPOINT_URL']
  config.username     = ENV['OPENCPU_USERNAME']
  config.password     = ENV['<PASSWORD>']
  config.timeout      = 5
end

{'fraction_non_alphanumeric': 0.11330049261083744, 'fraction_numerical': 0.003284072249589491, 'mean_word_length': 4.865384615384615, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3492203', 'n_tokens_mistral': 204, 'n_tokens_neox': 203, 'n_words': 42}