<commit_before>class RobotsController < ApplicationController
  caches_page :robots

  def robots
    env = Rails.env
    env = 'staging' if Socket.gethostname == 'nectar'

    robots = File.read(Rails.root + "config/robots/robots.#{env}.txt")
    render text: robots, layout: false, content_type: "text/plain"
  end
end<commit_msg>fix for robots, #170<commit_after>class RobotsController < ApplicationController
  caches_page :robots

  def robots
    env = Rails.env
    env = 'staging' if Socket.gethostname == 'nectar.umdl.umich.edu'

    robots = File.read(Rails.root + "config/robots/robots.#{env}.txt")
    render text: robots, layout: false, content_type: "text/plain"
  end
end
{'fraction_non_alphanumeric': 0.11807580174927114, 'fraction_numerical': 0.004373177842565598, 'mean_word_length': 4.088888888888889, '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': '2347283', 'n_tokens_mistral': 243, 'n_tokens_neox': 235, 'n_words': 54}