<commit_before>require 'utils/json'

GitHub.open "https://api.github.com/legacy/repos/search/homebrew" do |f|
  Utils::JSON.load(f.read)["repositories"].each do |repo|
    if repo['name'] =~ /^homebrew-(\S+)$/
      puts tap = if repo['username'] == "Homebrew"
        "homebrew/#{$1}"
      else
        repo['username']+"/"+$1
      end
    end
  end
end
<commit_msg>Fix ls-taps for v3 API<commit_after>require "utils/json"

GitHub.open("https://api.github.com/search/repositories?q=homebrew+sort:stars&per_page=100") do |json|
  json["items"].each do |repo|
    if repo["name"] =~ /^homebrew-(\S+)$/
      user = repo["owner"]["login"]
      user = user.downcase if user == "Homebrew"
      puts "#{user}/#{$1}"
    end
  end
end

{'fraction_non_alphanumeric': 0.2019099590723056, 'fraction_numerical': 0.009549795361527967, 'mean_word_length': 3.2674418604651163, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3941184', 'n_tokens_mistral': 280, 'n_tokens_neox': 271, 'n_words': 51}