<commit_before>class IdeasController < ApplicationController
  before_filter :require_user, :except => [ :preview, :show, :tags, :index, :about, :lookup_title ]
  respond_to :json, :html, :atom

  def index
    @ideas = Idea.by_date.recent.paginate(:page => params[:page], :per_page => 10)

    respond_to do |format|
      format.atom
      format.json { render :json => @ideas }
      format.html
    end
  end

  def trending
    @ideas = Idea.trending.by_date.paginate(:page => params[:page], :per_page => 10)
    @trending = true
    
    respond_to do |format|
      format.atom { render :template => 'ideas/index' }<commit_msg>This seems more succinct<commit_after>class IdeasController < ApplicationController
  before_filter :require_user, :only => [ :new, :create ]
  respond_to :json, :html, :atom

  def index
    @ideas = Idea.by_date.recent.paginate(:page => params[:page], :per_page => 10)

    respond_to do |format|
      format.atom
      format.json { render :json => @ideas }
      format.html
    end
  end

  def trending
    @ideas = Idea.trending.by_date.paginate(:page => params[:page], :per_page => 10)
    @trending = true
    
    respond_to do |format|
      format.atom { render :template => 'ideas/index' }
{'fraction_non_alphanumeric': 0.13096200485044462, 'fraction_numerical': 0.0064672594987873885, 'mean_word_length': 3.3286713286713288, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '802193', 'n_tokens_mistral': 427, 'n_tokens_neox': 408, 'n_words': 99}