<commit_before># used to serve static angular templates from under app/views/static/

class StaticController < ActionController::Base
  # hide_action is gone in Rails, but high_voltage is still using it.
  # https://github.com/thoughtbot/high_voltage/pull/214
  def self.hide_action(*)
  end

  include HighVoltage::StaticPage
end<commit_msg>Add `protect_from_forgery` to satisfy Brakeman<commit_after># used to serve static angular templates from under app/views/static/

class StaticController < ActionController::Base
  # Added to satisfy Brakeman
  protect_from_forgery

  # hide_action is gone in Rails, but high_voltage is still using it.
  # https://github.com/thoughtbot/high_voltage/pull/214
  def self.hide_action(*)
  end

  include HighVoltage::StaticPage
end
{'fraction_non_alphanumeric': 0.07652399481193256, 'fraction_numerical': 0.007782101167315175, 'mean_word_length': 4.938461538461539, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2120344', 'n_tokens_mistral': 244, 'n_tokens_neox': 224, 'n_words': 70}