<commit_before>require 'cgi'
require 'action_view/helpers/date_helper'
require 'action_view/helpers/tag_helper'
require 'action_view/helpers/form_tag_helper'
require 'active_support/core_ext/class/inheritable_attributes'
require 'active_support/core_ext/hash/slice'
require 'active_support/core_ext/object/blank'

module ActionView
  module Helpers
    # Form helpers are designed to make working with resources much easier
    # compared to using vanilla HTML.
    #
    # There are methods to generate all kinds of input fields and the form
    # element itself. They get convenient names, IDs, endpoints, etc. so that
    # you can work at the model level. Thanks to conventions in the HTML they
    # generate controllers receive form data nicely structured in +params+.
    #
    # Model-based forms are created with +form_for+. That method yields a form
    # builder that knows the model the form is about. The form builder is thus
    # able to generate default values for input fields that correspond to model
    # attributes, and also convenient element names, IDs, endpoints, etc.
    #
    # Conventions in the generated field names allow controllers to receive form
    # data nicely structured in +params+ with no effort on your side.
    #
    # For example, to create a new +Person+ resource you typically set up a new
    # instance in <tt>PeopleController#new</tt> action, <tt>@person</tt>, and
    # write the form in <tt>new.html.erb</tt> this way:
    #
    #   <%= form_for @person do |f| %>
    #     <%= f.text_field :first_name %>
    #     <%= f.text_field :last_name %>
    #     <%= f.submit %><commit_msg>removes some duplication in previous edit<commit_after>require 'cgi'
require 'action_view/helpers/date_helper'
require 'action_view/helpers/tag_helper'
require 'action_view/helpers/form_tag_helper'
require 'active_support/core_ext/class/inheritable_attributes'
require 'active_support/core_ext/hash/slice'
require 'active_support/core_ext/object/blank'

module ActionView
  module Helpers
    # Form helpers are designed to make working with resources much easier
    # compared to using vanilla HTML.
    #
    # Model-based forms are created with +form_for+. That method yields a form
    # builder that knows the model the form is about. The form builder is thus
    # able to generate default values for input fields that correspond to model
    # attributes, and also convenient element names, IDs, endpoints, etc.
    #
    # Conventions in the generated field names allow controllers to receive form
    # data nicely structured in +params+ with no effort on your side.
    #
    # For example, to create a new +Person+ resource you typically set up a new
    # instance in <tt>PeopleController#new</tt> action, <tt>@person</tt>, and
    # write the form in <tt>new.html.erb</tt> this way:
    #
    #   <%= form_for @person do |f| %>
    #     <%= f.text_field :first_name %>
    #     <%= f.text_field :last_name %>
    #     <%= f.submit %>
{'fraction_non_alphanumeric': 0.08375209380234507, 'fraction_numerical': 0.0, 'mean_word_length': 3.565749235474006, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '4434291', 'n_tokens_mistral': 858, 'n_tokens_neox': 832, 'n_words': 328}