<commit_before># Use this file to easily define all of your cron jobs.
#
# It's helpful, but not entirely necessary to understand cron before proceeding.
# http://en.wikipedia.org/wiki/Cron

# Example:
#
# set :output, "/path/to/my/cron_log.log"
#
# every 2.hours do
#   command "/usr/bin/some_great_command"
#   runner "MyModel.some_method"
#   rake "some:great:rake:task"
# end
#
# every 4.days do
#   runner "AnotherModel.prune_old_records"
# end

# Learn more: http://github.com/javan/whenever

set :output, nil

env :RIPDIKO_OUTDIR, ENV['RIPDIKO_OUTDIR'] if ENV['RIPDIKO_OUTDIR']
env :RIPDIRU_OUTDIR, ENV['RIPDIRU_OUTDIR'] if ENV['RIPDIRU_OUTDIR']

job_type :rbenv_rake, %q!PATH="$HOME/.rbenv/bin:$PATH"; eval "$(rbenv init -)"; cd :path && :bundle_command rake :task --silent :output!
job_type :be_rake, 'cd :path && :bundle_command rake :task --silent :output'

def rake_method
  File.exist?("#{ENV['HOME']}/.rbenv/bin") ? :rbenv_rake : :be_rake
end

# junk
every('05 3 * * 0,2-6') { send rake_method, 'oreore:import_from_ripdiko' }
every('10 3 * * 0,2-6') { send rake_method, 'oreore:podcast' }

# deso
every(:saturday, at: '21:05') { send rake_method, 'oreore:import_from_ripdiko' }
every(:saturday, at: '21:10') { send rake_method, 'oreore:podcast' }

# ij
every('05 11 * * 1-4') { send rake_method, 'oreore:import_from_ripdiko' }
every('10 11 * * 1-4') { send rake_method, 'oreore:podcast' }

# so
every('05 13 * * 1-5') { send rake_method, 'oreore:import_from_ripdiko' }
every('10 13 * * 1-5') { send rake_method, 'oreore:podcast' }

# tama954
every('35 15 * * 1-5') { send rake_method, 'oreore:import_from_ripdiko' }
every('40 15 * * 1-5') { send rake_method, 'oreore:podcast' }

# nichiten
every(:sunday, at: '12:00') { send rake_method, 'oreore:import_from_ripdiko' }
every(:sunday, at: '12:05') { send rake_method, 'oreore:podcast' }

# denpa
every(:saturday, at: '01:05') { send rake_method, 'oreore:import_from_ripdiko' }
every(:saturday, at: '01:10') { send rake_method, 'oreore:podcast' }

# tokyopod
every(:sunday, at: '04:05') { send rake_method, 'oreore:import_from_ripdiko' }
every(:sunday, at: '04:10') { send rake_method, 'oreore:podcast' }<commit_msg>dd "nichiyou" to schedules<commit_after># Use this file to easily define all of your cron jobs.
#
# It's helpful, but not entirely necessary to understand cron before proceeding.
# http://en.wikipedia.org/wiki/Cron

# Example:
#
# set :output, "/path/to/my/cron_log.log"
#
# every 2.hours do
#   command "/usr/bin/some_great_command"
#   runner "MyModel.some_method"
#   rake "some:great:rake:task"
# end
#
# every 4.days do
#   runner "AnotherModel.prune_old_records"
# end

# Learn more: http://github.com/javan/whenever

set :output, nil

env :RIPDIKO_OUTDIR, ENV['RIPDIKO_OUTDIR'] if ENV['RIPDIKO_OUTDIR']
env :RIPDIRU_OUTDIR, ENV['RIPDIRU_OUTDIR'] if ENV['RIPDIRU_OUTDIR']

job_type :rbenv_rake, %q!PATH="$HOME/.rbenv/bin:$PATH"; eval "$(rbenv init -)"; cd :path && :bundle_command rake :task --silent :output!
job_type :be_rake, 'cd :path && :bundle_command rake :task --silent :output'

def rake_method
  File.exist?("#{ENV['HOME']}/.rbenv/bin") ? :rbenv_rake : :be_rake
end

# junk
every('05 3 * * 0,2-6') { send rake_method, 'oreore:import_from_ripdiko' }
every('10 3 * * 0,2-6') { send rake_method, 'oreore:podcast' }

# deso
every(:saturday, at: '21:05') { send rake_method, 'oreore:import_from_ripdiko' }
every(:saturday, at: '21:10') { send rake_method, 'oreore:podcast' }

# ij
every('05 11 * * 1-4') { send rake_method, 'oreore:import_from_ripdiko' }
every('10 11 * * 1-4') { send rake_method, 'oreore:podcast' }

# so
every('05 13 * * 1-5') { send rake_method, 'oreore:import_from_ripdiko' }
every('10 13 * * 1-5') { send rake_method, 'oreore:podcast' }

# tama954
every('35 15 * * 1-5') { send rake_method, 'oreore:import_from_ripdiko' }
every('40 15 * * 1-5') { send rake_method, 'oreore:podcast' }

# nichiten
every(:sunday, at: '12:00') { send rake_method, 'oreore:import_from_ripdiko' }
every(:sunday, at: '12:05') { send rake_method, 'oreore:podcast' }

# denpa
every(:saturday, at: '01:05') { send rake_method, 'oreore:import_from_ripdiko' }
every(:saturday, at: '01:10') { send rake_method, 'oreore:podcast' }

# tokyopod
every(:sunday, at: '04:05') { send rake_method, 'oreore:import_from_ripdiko' }
every(:sunday, at: '04:10') { send rake_method, 'oreore:podcast' }

# nichiyou
every(:sunday, at: '17:05') { send rake_method, 'oreore:import_from_ripdiko' }
every(:sunday, at: '17:10') { send rake_method, 'oreore:podcast' }
{'fraction_non_alphanumeric': 0.1734040203225094, 'fraction_numerical': 0.03931963772918047, 'mean_word_length': 5.4778254649499285, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1258379', 'n_tokens_mistral': 1992, 'n_tokens_neox': 1860, 'n_words': 400}