<commit_before>class StatementsController < ApplicationController
  before_filter :require_admin, except: [:new, :create, :browse, :show]
  before_action :set_statement, only: [:show, :edit, :update, :destroy]

  # GET /statements
  # GET /statements.json
  def index
    @statements = Statement.all
  end

  def browse
    @videos = Statement.approved
  end

  # GET /statements/1
  # GET /statements/1.json
  def show
  end

  # GET /statements/new<commit_msg>only show approved videos (unless you're an admin)<commit_after>class StatementsController < ApplicationController
  before_filter :require_admin, except: [:new, :create, :browse, :show]
  before_action :set_statement, only: [:show, :edit, :update, :destroy]

  # GET /statements
  # GET /statements.json
  def index
    @statements = Statement.all
  end

  def browse
    @videos = Statement.approved
  end

  # GET /statements/1
  # GET /statements/1.json
  def show
    redirect_to '/' unless @statement.approved or @current_user.admin?
  end

  # GET /statements/new
{'fraction_non_alphanumeric': 0.10562015503875968, 'fraction_numerical': 0.003875968992248062, 'mean_word_length': 3.8046511627906976, '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': '7646203', 'n_tokens_mistral': 350, 'n_tokens_neox': 317, 'n_words': 91}