<commit_before>class FeedsController < ApplicationController
  def landing
    @date = _parse_date(params)

    if @date.nil?
      feed = Feed.order("last_paper_date DESC").first
      @date = (feed && feed.last_paper_date) ? feed.last_paper_date.to_date : Date.today
    end

    @range = _parse_range(params) || 1
    @page = params[:page] || 1

    @backdate = @date - (@range-1).days

    @recent_comments = Comment.order("created_at DESC").limit(10)
<commit_msg>Don't show deleted comments to non-logged in users<commit_after>class FeedsController < ApplicationController
  def landing
    @date = _parse_date(params)

    if @date.nil?
      feed = Feed.order("last_paper_date DESC").first
      @date = (feed && feed.last_paper_date) ? feed.last_paper_date.to_date : Date.today
    end

    @range = _parse_range(params) || 1
    @page = params[:page] || 1

    @backdate = @date - (@range-1).days

    @recent_comments = Comment.where(deleted: false, hidden: false).order("created_at DESC").limit(10)

{'fraction_non_alphanumeric': 0.1306930693069307, 'fraction_numerical': 0.009900990099009901, 'mean_word_length': 3.6589861751152073, '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': '5897866', 'n_tokens_mistral': 349, 'n_tokens_neox': 328, 'n_words': 70}