<commit_before>class CategoriesController < ApplicationController

  # Before Filters
  before_filter :require_login, only: [:edit, :update]
  before_filter :find_category_and_repos, except: :index

  # GET /categories
  def index
    # Cache in Rack-Cache for 30 seconds
    response.headers['Cache-Control'] = 'public, max-age=30'
  end

  # GET /categories/:id
  def show
    redirect_on_request_to_outdated_path
  end

  # GET /categories/:id/edit
  def edit
  end

  # PUT /categories/:id
  def update
    # Prepare Attributes<commit_msg>Try caching categories index view in rack cache<commit_after>class CategoriesController < ApplicationController

  # Before Filters
  before_filter :require_login, only: [:edit, :update]
  before_filter :find_category_and_repos, except: :index

  # GET /categories
  def index
    # Cache in Rack-Cache for 30 seconds
    response.headers['Cache-Control'] = 'public, max-age=90'
  end

  # GET /categories/:id
  def show
    redirect_on_request_to_outdated_path
  end

  # GET /categories/:id/edit
  def edit
  end

  # PUT /categories/:id
  def update
    # Prepare Attributes
{'fraction_non_alphanumeric': 0.08392857142857142, 'fraction_numerical': 0.007142857142857143, 'mean_word_length': 3.75, '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': '3616988', 'n_tokens_mistral': 365, 'n_tokens_neox': 351, 'n_words': 96}