<commit_before><html>
  <head>
    <title>generator</title>
    <%= stylesheet_link_tag 'generator' %>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <%= csrf_meta_tags %>
    <script type="text/javascript">
      $(document).on('click', '#add_attr_type', function() {
          var i = $('#attr_type input').length;
          $('#attr_type').append('<span class="new_attr"><%= escape_javascript text_field_tag('attr[@]', '') %><span class="separator">:</span><%= escape_javascript(type_select 'type[@]', :class => 'type') %></span>'.replace(/@/g, i));
          $('#attr_' + i).focus();
      })
    </script>
  </head>
  <body>
    <div id="container">
      <div id="generate">
        <h1>Generate Scaffold</h1>
        <%= form_tag scaffold_generator_path, :remote => true, :id => 'generator_form' do %>
          <h2>
            <% if @name.include? '_' %>
              g scaffold
              <%= select_tag :name, options_for_select([@name, @name.gsub('_', '/')]) %>
            <% else %>
              g scaffold <%= @name %><commit_msg>Rails now requests the authenticity_token for AJAX requests as well<commit_after><html>
  <head>
    <title>generator</title>
    <%= stylesheet_link_tag 'generator' %>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
    <%= csrf_meta_tags %>
    <script type="text/javascript">
      $(document).on('click', '#add_attr_type', function() {
          var i = $('#attr_type input').length;
          $('#attr_type').append('<span class="new_attr"><%= escape_javascript text_field_tag('attr[@]', '') %><span class="separator">:</span><%= escape_javascript(type_select 'type[@]', :class => 'type') %></span>'.replace(/@/g, i));
          $('#attr_' + i).focus();
      })
    </script>
  </head>
  <body>
    <div id="container">
      <div id="generate">
        <h1>Generate Scaffold</h1>
        <%= form_tag scaffold_generator_path, :remote => true, :id => 'generator_form', authenticity_token: true do %>
          <h2>
            <% if @name.include? '_' %>
              g scaffold
              <%= select_tag :name, options_for_select([@name, @name.gsub('_', '/')]) %>
            <% else %>
              g scaffold <%= @name %>
{'fraction_non_alphanumeric': 0.21140350877192982, 'fraction_numerical': 0.005263157894736842, 'mean_word_length': 2.879251700680272, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 65, 'https://': 2, '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': '2771668', 'n_tokens_mistral': 775, 'n_tokens_neox': 726, 'n_words': 131}