<commit_before>namespace :claim do
  desc "Push all stale claims"
  task :stale => :environment do
    Claim.stale.each do |claim|
      Claim.perform_later(claim)
      puts "Pushing stale claim #{claim.doi} for user #{claim.orcid} to ORCID."
    end
  end

  desc "Push all failed claims"
  task :failed => :environment do
    Claim.failed.each do |claim|
      Claim.perform_later(claim)
      puts "Pushing failed claim #{claim.doi} for user #{claim.orcid} to ORCID."
    end
  end

  desc "Push all ignored claims"
  task :ignored => :environment do
    Claim.ignored.each do |claim|
      # skip if not user account
      next unless claim.user.present?

      Claim.perform_later(claim)
      puts "Pushing ignored claim #{claim.doi} for user #{claim.orcid} to ORCID."
    end
  end
end
<commit_msg>fix syntax error<commit_after>namespace :claim do
  desc "Push all stale claims"
  task :stale => :environment do
    Claim.stale.each do |claim|
      ClaimJob.perform_later(claim)
      puts "Pushing stale claim #{claim.doi} for user #{claim.orcid} to ORCID."
    end
  end

  desc "Push all failed claims"
  task :failed => :environment do
    Claim.failed.each do |claim|
      ClaimJob.perform_later(claim)
      puts "Pushing failed claim #{claim.doi} for user #{claim.orcid} to ORCID."
    end
  end

  desc "Push all ignored claims"
  task :ignored => :environment do
    Claim.ignored.each do |claim|
      # skip if not user account
      next unless claim.user.present?

      ClaimJob.perform_later(claim)
      puts "Pushing ignored claim #{claim.doi} for user #{claim.orcid} to ORCID."
    end
  end
end

{'fraction_non_alphanumeric': 0.09852216748768473, 'fraction_numerical': 0.0, 'mean_word_length': 2.953771289537713, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5176061', 'n_tokens_mistral': 540, 'n_tokens_neox': 511, 'n_words': 176}