<commit_before>class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception

  if Rails.env.staging?
    http_basic_authenticate_with name: ENV['HTTP_AUTH_USERNAME'],
                                 password: ENV['HTTP_AUTH_PASSWORD']
  end

  def index
    @data = {}
    @actual_path = request.original_fullpath
    @is_contained = @actual_path.include?('contained')
    @is_production = Rails.env.production?
    response.headers['X-FRAME-OPTIONS'] = 'ALLOWALL'
    render 'index'<commit_msg>Expand is_contained to the embed route<commit_after>class ApplicationController < ActionController::Base
  protect_from_forgery with: :exception

  if Rails.env.staging?
    http_basic_authenticate_with name: ENV['HTTP_AUTH_USERNAME'],
                                 password: ENV['<PASSWORD>']
  end

  def index
    @data = {}
    @actual_path = request.original_fullpath
    @is_contained = @actual_path.include?('contained') ||
      @actual_path.include?('embed')
    @is_production = Rails.env.production?
    response.headers['X-FRAME-OPTIONS'] = 'ALLOWALL'
    render 'index'
{'fraction_non_alphanumeric': 0.1087151841868823, 'fraction_numerical': 0.0, 'mean_word_length': 3.6224066390041494, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7379041', 'n_tokens_mistral': 347, 'n_tokens_neox': 330, 'n_words': 59}