<commit_before>class ProcessImages

  def process_image image_id
    image = Image.find(image_id)
    image.do_background_work
  end

  def before
    @start = Time.now
  end

  def after
    duration = ((Time.now - @start) * 1_000).round
    Rails.logger.info "ProcessImages time: #{duration}ms"
  end
  
end<commit_msg>bg processing<commit_after>class ProcessImages

  def process_image image_id
    image = Image.unscoped.find(image_id)
    image.do_background_work
  end

  def before
    @start = Time.now
  end

  def after
    duration = ((Time.now - @start) * 1_000).round
    Rails.logger.info "ProcessImages time: #{duration}ms"
  end

end
{'fraction_non_alphanumeric': 0.09090909090909091, 'fraction_numerical': 0.012326656394453005, 'mean_word_length': 3.2483660130718954, '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': '5485284', 'n_tokens_mistral': 229, 'n_tokens_neox': 216, 'n_words': 52}