<commit_before>$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)

require File.expand_path('../lib/pickwick-workers',  __FILE__)

require 'sidekiq/web'

if ENV['SIDEKIQ_USERNAME'] && ENV['SIDEKIQ_PASSWORD']

  Sidekiq::Web.use Rack::Auth::Basic do |username, password|
    username == ENV['SIDEKIQ_USERNAME'] && password == ENV['<PASSWORD>']
  end

end

run Sidekiq::Web<commit_msg>[SIDEKIQ] Added web ui for sidekiq-cron<commit_after>$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)

require File.expand_path('../lib/pickwick-workers',  __FILE__)

require 'sidekiq/web'
require 'sidekiq/cron/web'

if ENV['SIDEKIQ_USERNAME'] && ENV['SIDEKIQ_PASSWORD']

  Sidekiq::Web.use Rack::Auth::Basic do |username, password|
    username == ENV['SIDEKIQ_USERNAME'] && password == ENV['SIDEKIQ_PASSWORD']
  end

end

run Sidekiq::Web
{'fraction_non_alphanumeric': 0.16407185628742516, 'fraction_numerical': 0.0, 'mean_word_length': 5.909090909090909, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '7601646', 'n_tokens_mistral': 332, 'n_tokens_neox': 317, 'n_words': 54}