<commit_before>class FactInteractorsController < ApplicationController
  respond_to :json

  def index
    # TODO: Make an interactor that does this once we get rid of "show"
    @interactors = [
      interactor(:'facts/opinion_users', fact_id, skip, take, 'believes'),
      interactor(:'facts/opinion_users', fact_id, skip, take, 'disbelieves'),
      interactor(:'facts/opinion_users', fact_id, skip, take, 'doubts')
    ]

    render 'fact_interactors/index', formats: ['json']
  end

  def show
    @data = interactor :'facts/opinion_users', fact_id, skip, take, type

    render 'fact_interactors/show', formats: ['json']
  end

  def fact_id
    puts params.inspect
    params[:fact_id].to_i
  end

  def type
    OpinionType.real_for(params[:id]).to_s
  end

  def skip
    (params[:skip] || 0).to_i
  end

  def take<commit_msg>Removed puts<commit_after>class FactInteractorsController < ApplicationController
  respond_to :json

  def index
    # TODO: Make an interactor that does this once we get rid of "show"
    @interactors = [
      interactor(:'facts/opinion_users', fact_id, skip, take, 'believes'),
      interactor(:'facts/opinion_users', fact_id, skip, take, 'disbelieves'),
      interactor(:'facts/opinion_users', fact_id, skip, take, 'doubts')
    ]

    render 'fact_interactors/index', formats: ['json']
  end

  def show
    @data = interactor :'facts/opinion_users', fact_id, skip, take, type

    render 'fact_interactors/show', formats: ['json']
  end

  def fact_id
    params[:fact_id].to_i
  end

  def type
    OpinionType.real_for(params[:id]).to_s
  end

  def skip
    (params[:skip] || 0).to_i
  end

  def take
{'fraction_non_alphanumeric': 0.11932162325863113, 'fraction_numerical': 0.0012113870381586917, 'mean_word_length': 3.679886685552408, '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': '1365083', 'n_tokens_mistral': 600, 'n_tokens_neox': 540, 'n_words': 142}