<commit_before>module Pawi
  class PagesController < ::ApplicationController
    
    caches_page :show

    def show
      
      format = "#{request.format.to_sym}"
      format = Pawi.default_format unless Pawi.available_formats.include?(format)

      @page = Page.find_by_slug_and_format(params[:id],format)

      redirect_to '/404' and return if @page.nil? 
      
      respond_to do |format|
        format.html { render :layout => false if request.xhr? }
        format.xml  { render :xml => @page }
        format.json  { render :json => @page }
      end
    end
  
  end
end<commit_msg>no cache please<commit_after>module Pawi
  class PagesController < ::ApplicationController
    
    # caches_page :show

    def show
      
      format = "#{request.format.to_sym}"
      format = Pawi.default_format unless Pawi.available_formats.include?(format)

      @page = Page.find_by_slug_and_format(params[:id],format)

      redirect_to '/404' and return if @page.nil? 
      
      respond_to do |format|
        format.html { render :layout => false if request.xhr? }
        format.xml  { render :xml => @page }
        format.json  { render :json => @page }
      end
    end
  
  end
end
{'fraction_non_alphanumeric': 0.10232945091514144, 'fraction_numerical': 0.004991680532445923, 'mean_word_length': 2.456896551724138, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '7473632', 'n_tokens_mistral': 382, 'n_tokens_neox': 371, 'n_words': 89}