<commit_before>class Admin::GalleriesController < Admin::BaseController
  
  cache_sweeper :gallery_sweeper,  :only => [:create, :update, :destroy]

  def index
    @galleries = Gallery.find :all, :include => 'pictures'
    @page_title = 'List of Gallery'
  end

  # See a gallery in Admin like a User
  def show
    @gallery = Gallery.find_by_permalink params[:id]
    unless @gallery.nil?
      @pictures = Picture.paginate_by_gallery_id @gallery.id, :page => params[:page],
        :per_page => 10<commit_msg> * forget add mass_upload in reload cache<commit_after>class Admin::GalleriesController < Admin::BaseController
  
  cache_sweeper :gallery_sweeper,  :only => [:create, :update, :destroy, :mass_upload]

  def index
    @galleries = Gallery.find :all, :include => 'pictures'
    @page_title = 'List of Gallery'
  end

  # See a gallery in Admin like a User
  def show
    @gallery = Gallery.find_by_permalink params[:id]
    unless @gallery.nil?
      @pictures = Picture.paginate_by_gallery_id @gallery.id, :page => params[:page],
        :per_page => 10
{'fraction_non_alphanumeric': 0.11538461538461539, 'fraction_numerical': 0.00375234521575985, 'mean_word_length': 3.9627906976744187, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1955', 'n_tokens_mistral': 369, 'n_tokens_neox': 337, 'n_words': 92}