<commit_before>class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception

  def add
    @result = params[:op1].to_i + params[:op2].to_i
    render inline: "<h1><%= @result %></h1>"
  end

  def bad_request
    render :nothing => true, :status => 400
  end

end<commit_msg>Add a note about non-integer inputs.<commit_after>class ApplicationController < ActionController::Base
  # Prevent CSRF attacks by raising an exception.
  # For APIs, you may want to use :null_session instead.
  protect_from_forgery with: :exception

  def add
    # TODO: consider how to handle non-integer inputs
    @result = params[:op1].to_i + params[:op2].to_i
    render inline: "<h1><%= @result %></h1>"
  end

  def bad_request
    render :nothing => true, :status => 400
  end

end
{'fraction_non_alphanumeric': 0.10718232044198896, 'fraction_numerical': 0.015469613259668509, 'mean_word_length': 3.8972972972972975, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '6332588', 'n_tokens_mistral': 295, 'n_tokens_neox': 276, 'n_words': 95}