<commit_before># A ruby script to download zips of dojos identified by
# the output of the prunt_large.rb script

txt_file = ARGV[0]
lo = (ARGV[1] || "0").to_i
hi = (ARGV[2] || "10000").to_i

`cat #{ARGV[0]}`.scan(/^will rm ([A-Z0-9]*) ([0-9]*)/) do |matches|
  id = matches[0]
  rags = matches[1].to_i
  if lo <= rags && rags <= hi
    p id + " " + rags.to_s
    xfer_cmd = "wget -O #{id}.tar.gz http://cyber-dojo.com/dashboard/download/#{id}"
    `#{xfer_cmd}`
  end
end
<commit_msg>added -q to xfer's wget<commit_after># A ruby script to download zips of dojos identified by
# the output of the prunt_large.rb script

txt_file = ARGV[0]
lo = (ARGV[1] || "0").to_i
hi = (ARGV[2] || "10000").to_i

`cat #{ARGV[0]}`.scan(/^will rm ([A-Z0-9]*) ([0-9]*)/) do |matches|
  id = matches[0]
  rags = matches[1].to_i
  if lo <= rags && rags <= hi
    p id + " " + rags.to_s
    xfer_cmd = "wget -q -O #{id}.tar.gz http://cyber-dojo.com/dashboard/download/#{id}"
    `#{xfer_cmd}`
  end
end

{'fraction_non_alphanumeric': 0.20651068158697863, 'fraction_numerical': 0.03255340793489318, 'mean_word_length': 3.2782608695652176, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5838890', 'n_tokens_mistral': 446, 'n_tokens_neox': 434, 'n_words': 109}