<commit_before>class ConflictOfInterestStatementsController < ApplicationController

  def index
    authorize ConflictOfInterestStatement.new
    render json: current_user.conflict_of_interest_statements.map { |coi| ConflictOfInterestStatementPresenter.new(coi) }
  end

  def create
    authorize ConflictOfInterestStatement.new
    ConflictOfInterestStatement.create(coi_params.merge(user_id: current_user.id))<commit_msg>Fix typo in presenter name<commit_after>class ConflictOfInterestStatementsController < ApplicationController

  def index
    authorize ConflictOfInterestStatement.new
    render json: current_user.conflict_of_interest_statements.map { |coi| ConflictOfInterestPresenter.new(coi) }
  end

  def create
    authorize ConflictOfInterestStatement.new
    ConflictOfInterestStatement.create(coi_params.merge(user_id: current_user.id))
{'fraction_non_alphanumeric': 0.05620608899297424, 'fraction_numerical': 0.0, 'mean_word_length': 6.702702702702703, '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': '676529', 'n_tokens_mistral': 256, 'n_tokens_neox': 229, 'n_words': 41}