<commit_before>namespace :fromthepage do

  desc "Remove guest accounts more than a week old" 
  task :guest_cleanup => :environment do

    #permanent "Guest User" to migrate orphaned data
    @guest_user = User.find_by(login: "guest_user")
 
    #find all guest users that are over a week old
    guests = User.where("guest = ? AND created_at < ?", true, 1.week.ago)
    #for each user, find associated items and migrate to "Guest User"
    guests.each do |guest|
<commit_msg>variable time in guest cleanup<commit_after>namespace :fromthepage do

  desc "Remove guest accounts more than a week old" 
  task :guest_cleanup, [:days] => :environment do |t,args|

    num = args.days.to_i

    #permanent "Guest User" to migrate orphaned data
    @guest_user = User.find_by(login: "guest_user")
 
    #find all guest users that are over a week old
    guests = User.where("guest = ? AND created_at < ?", true, num.days.ago)
    #for each user, find associated items and migrate to "Guest User"
    guests.each do |guest|

{'fraction_non_alphanumeric': 0.09421000981354269, 'fraction_numerical': 0.0009813542688910696, 'mean_word_length': 3.6575342465753424, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1526679', 'n_tokens_mistral': 336, 'n_tokens_neox': 317, 'n_words': 120}