<commit_before># Get commit info from each repo using the redis queue
namespace :dispatch do
  require_relative '../scraper/scraper_dispatcher'
  require_relative '../scraper/github_repo_scraper'

  task :commits => :environment do |t|
    babysitter(t) do
      puts "Dispatching commits and issues scraping pathway..."
      ScraperDispatcher.scrape_commits
    end
  end

  task :issues => :environment do |t|
    babysitter(t) do
      puts "Dispatching commits and issues scraping pathway..."
      ScraperDispatcher.scrape_issues
    end
  end

  task :metadata => :environment do |t|
    babysitter(t) do
      puts "Dispatching agent to work on blank repositories scraping metadata..."
      ScraperDispatcher.scrape_metadata
    end
  end

  task :redis_requeue, [:queue_name, :query] => :environment do |t, args|
    puts "Enqueuing redis..."
    ScraperDispatcher.redis_requeue(args.to_h)
  end
end<commit_msg>removed babysitter--reserving it for local testing of scraper (scraper_tasks)<commit_after># Get commit info from each repo using the redis queue
namespace :dispatch do
  require_relative '../scraper/scraper_dispatcher'
  require_relative '../scraper/github_repo_scraper'

  task :commits => :environment do |t|
    puts "Dispatching commits and issues scraping pathway..."
    ScraperDispatcher.scrape
  end

  task :issues => :environment do |t|
    puts "Dispatching issues scraping pathway..."
    ScraperDispatcher.scrape
  end

  task :metadata => :environment do |t|
    puts "Dispatching agent to work on blank repositories scraping metadata..."
    ScraperDispatcher.scrape
  end
end
{'fraction_non_alphanumeric': 0.08555486670799752, 'fraction_numerical': 0.0, 'mean_word_length': 3.691860465116279, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4905661', 'n_tokens_mistral': 508, 'n_tokens_neox': 482, 'n_words': 155}