<commit_before>require 'rufus-scheduler'
require 'active_support'
require 'active_support/core_ext'

class CronJobs

  attr_reader :helper, :request_helper, :scheduler, :waiting_requests
  def initialize(helper, request_helper, scheduler, waiting_requests, helper_point_checker, db_name)
    @helper = helper
    @request_helper = request_helper
    @scheduler = scheduler
    @waiting_requests = waiting_requests
    @helper_point_checker = helper_point_checker
    @db_name = db_name
  end

  def job
    return @job
  end

  def point_job
    return @point_job
  end

  def ua_feedback_job
    return @ua_feedback_job
  end

  def mongo_map_reduce_job
    return @mongo_map_reduce_job
  end

  def start_jobs
    @job ||= @scheduler.every('8s') do<commit_msg>call helpers more often<commit_after>require 'rufus-scheduler'
require 'active_support'
require 'active_support/core_ext'

class CronJobs

  attr_reader :helper, :request_helper, :scheduler, :waiting_requests
  def initialize(helper, request_helper, scheduler, waiting_requests, helper_point_checker, db_name)
    @helper = helper
    @request_helper = request_helper
    @scheduler = scheduler
    @waiting_requests = waiting_requests
    @helper_point_checker = helper_point_checker
    @db_name = db_name
  end

  def job
    return @job
  end

  def point_job
    return @point_job
  end

  def ua_feedback_job
    return @ua_feedback_job
  end

  def mongo_map_reduce_job
    return @mongo_map_reduce_job
  end

  def start_jobs
    @job ||= @scheduler.every('4s') do
{'fraction_non_alphanumeric': 0.06649282920469361, 'fraction_numerical': 0.001303780964797914, 'mean_word_length': 4.329861111111111, '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': '2840513', 'n_tokens_mistral': 531, 'n_tokens_neox': 510, 'n_words': 118}