<commit_before>#!/usr/bin/env ruby

require 'bundler/setup'
require 'eventless'

require 'open-uri'

Eventless.spawn do
  open("http://www.google.com/") do |f|
    puts f.read
  end
end.join<commit_msg>download multiple websites in openuri-resolv.rb<commit_after>#!/usr/bin/env ruby

require 'bundler/setup'
require 'eventless'

require 'open-uri'

jobs = %w(http://www.google.com/ http://www.ruby-lang.org/ http://www.github.com/).map do |url|
  Eventless.spawn do
    open("http://www.google.com/") do |f|
      puts f.read
    end
  end
end

jobs.each { |j| j.join }
{'fraction_non_alphanumeric': 0.16695957820738136, 'fraction_numerical': 0.0, 'mean_word_length': 3.4186046511627906, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 5, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3189494', 'n_tokens_mistral': 225, 'n_tokens_neox': 220, 'n_words': 47}