<commit_before>class klass < Udongo::ActiveModelSimulator

  def form_instance
    Form.find_by(name: 'form_name')
  end

  def save(parameters)
    if valid?
      submission = form_instance.submissions.create!
      form_instance.fields.each do |field|
        submission.data.new(name: field.name, value: parameters[field.name.to_sym])
      end
      submission.save!
    else
      false
    end
  end
end<commit_msg>remove unnecessary method param from Form template<commit_after>class klass < Udongo::ActiveModelSimulator

  def form_instance
    Form.find_by(name: 'form_name')
  end

  def save
    if valid?
      submission = form_instance.submissions.create!
      form_instance.fields.each do |field|
        submission.data.new(name: field.name, value: send(field.name.to_sym))
      end
      submission.save!
    else
      false
    end
  end
end
{'fraction_non_alphanumeric': 0.08342989571263036, 'fraction_numerical': 0.0, 'mean_word_length': 3.0186046511627906, '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': '4032608', 'n_tokens_mistral': 270, 'n_tokens_neox': 271, 'n_words': 61}