<commit_before># encoding: utf-8

class PassthroughController < ActionController::Base
  @@forwarder = Forwarder.new("pizza.de")
<commit_msg>also cache some of the non-image files<commit_after># encoding: utf-8

class PassthroughController < ActionController::Base
  @@forwarder = Forwarder.new("pizza.de")

  # cache some of the probably non-static elements
  after_filter :add_missing_content_type, only: :pass
  caches_action :pass, expires_in: 60.minutes, if: Proc.new {
    path = request.url
    return true if path == "/_shop/shopinit_json"
    return true if path.match(/framek[0-9]{3}\.htm$/)
    false
  }

{'fraction_non_alphanumeric': 0.1185064935064935, 'fraction_numerical': 0.011363636363636364, 'mean_word_length': 4.558558558558558, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4727142', 'n_tokens_mistral': 212, 'n_tokens_neox': 200, 'n_words': 51}