<commit_before>class PollsController < ApplicationController
  load_and_authorize_resource only: [:new, :create, :edit, :update, 
:destroy, :published] 
  before_action :authenticate_user!

  # GET /polls
  # GET /polls.json
  def index
    @polls = Poll.all

    respond_to do |format|
      format.html # index.html.erb
      format.json { render json: @polls }<commit_msg>Fixed previously missed indentation in polls controller<commit_after>class PollsController < ApplicationController
  load_and_authorize_resource only: [:new, :create, :edit, :update, 
  :destroy, :published]
  before_action :authenticate_user!

  # GET /polls
  # GET /polls.json
  def index
    @polls = Poll.all

    respond_to do |format|
      format.html # index.html.erb
      format.json { render json: @polls }
{'fraction_non_alphanumeric': 0.09836065573770492, 'fraction_numerical': 0.0, 'mean_word_length': 3.841463414634146, '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': '2213549', 'n_tokens_mistral': 261, 'n_tokens_neox': 251, 'n_words': 66}