<commit_before># Copyright (c) 2015 AppNeta, Inc.
# All rights reserved.

class RemoteCallWorkerJob
  include Sidekiq::Worker

  def perform(*args)
    # Make some random Dalli (memcache) calls and top it
    # off with an excon call to the background rack webserver.
    @dc = Dalli::Client.new
    @dc.get(rand(10).to_s)
    Excon.get('http://127.0.0.1:8101/')
    @dc.get(rand(10).to_s)
    @dc.get(rand(10).to_s)
    @dc.get_multi([:one, :two, :three, :four, :five, :six])
  end
end
<commit_msg>Use Net::HTTP for tests<commit_after># Copyright (c) 2015 AppNeta, Inc.
# All rights reserved.

class RemoteCallWorkerJob
  include Sidekiq::Worker

  def perform(*args)
    # Make some random Dalli (memcache) calls and top it
    # off with an excon call to the background rack webserver.
    @dc = Dalli::Client.new
    @dc.get(rand(10).to_s)
    uri = URI('http://gameface.in/gamers')
    http = Net::HTTP.new(uri.host, uri.port)
    request = Net::HTTP::Get.new(uri.request_uri)
    http.request(request)
    @dc.get(rand(10).to_s)
    @dc.get(rand(10).to_s)
    @dc.get_multi([:one, :two, :three, :four, :five, :six])
  end
end

{'fraction_non_alphanumeric': 0.1519434628975265, 'fraction_numerical': 0.026501766784452298, 'mean_word_length': 3.5502008032128516, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6327065', 'n_tokens_mistral': 450, 'n_tokens_neox': 424, 'n_words': 106}