<commit_before>class MatterhornJobs
  def send_request args
    logger.debug "<< Calling Matterhorn with arguments: #{args} >>"
    logger.debug Rubyhorn.client.methods.inspect
    workflow_doc = Rubyhorn.client.addMediaPackageWithUrl(args)
  end
  handle_asynchronously :send_request
end<commit_msg>Prevent duplicate calls to Matterhorn when one times out<commit_after>class MatterhornJobs
  def send_request args
    logger.debug "<< Calling Matterhorn with arguments: #{args} >>"
    workflow_doc = Rubyhorn.client.addMediaPackageWithUrl(args)
    rescue Timeout::Error => e
      logger.debug "<< Call to Matterhorn has timed out, but it's ok >>"
    end
  end
  handle_asynchronously :send_request
end
{'fraction_non_alphanumeric': 0.08073654390934844, 'fraction_numerical': 0.0, 'mean_word_length': 4.747967479674797, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, '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': '6319886', 'n_tokens_mistral': 216, 'n_tokens_neox': 208, 'n_words': 57}