<commit_before>class PostsController < ApplicationController
  


  require 'RMagick'
  include Magick
  
  # GET /posts
  # GET /posts.xml
  before_filter :authenticate, :except => [:index, :front_page]
  
  def index
    @posts = Post.all

    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => @posts }
    end
  end

  # GET /posts/1
  # GET /posts/1.xml
  def show
    @post = Post.find(params[:id])

    respond_to do |format|
      format.html # show.html.erb
      format.xml  { render :xml => @post }
    end
  end

  # GET /posts/new
  # GET /posts/new.xml
  def new
     # @post=Post.new
     # @post=Post.create()
       @post=current_user.posts.create()
   render :layout => "photos"
    respond_to do |format|
      format.html  # new.html.erb
      format.xml  { render :xml => @post }
    end
  end

  # GET /posts/1/edit
  def edit
    @post = Post.find(params[:id])
  end
<commit_msg>fixing cat loading first<commit_after>class PostsController < ApplicationController
  


  require 'RMagick'
  include Magick
  
  # GET /posts
  # GET /posts.xml
  before_filter :authenticate, :except => [:index, :front_page]
  
  def index
    @posts = Post.all

    respond_to do |format|
      format.html # index.html.erb
      format.xml  { render :xml => @posts }
    end
  end

  # GET /posts/1
  # GET /posts/1.xml
  def show
    @post = Post.find(params[:id])

    respond_to do |format|
      format.html # show.html.erb
      format.xml  { render :xml => @post }
    end
  end

  # GET /posts/new
  # GET /posts/new.xml
  def new
     # @post=Post.new
     # @post=Post.create()
       @post=current_user.posts.create()
   render :layout => "photos"
    respond_to do |format|
      format.html  # new.html.erb
      format.xml  
    end
  end

  # GET /posts/1/edit
  def edit
    @post = Post.find(params[:id])
  end

{'fraction_non_alphanumeric': 0.12266666666666666, 'fraction_numerical': 0.0032, 'mean_word_length': 2.24006908462867, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 17}, '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': '2996645', 'n_tokens_mistral': 683, 'n_tokens_neox': 662, 'n_words': 160}