<commit_before><%= form_for @idea, :html => {:data => {:toggle => "validator"}} do |f| %>
  <div class="form-group">
    <%= f.label :title, :class => "control-label" %>
    <%= f.text_field :title, :class => "form-control", "placeholder" => "Enter idea description", :required => "" %>
    <div class="help-block with-errors"></div>
  </div>
  <div class="form-group">
    <%= f.label :tags, :class => "full control-label" %>
    <%= f.text_field :tags, :class => "form-control typeaheadtags", :placeholder => "Tag this idea", :value => "", :required => "" %>
    <div class="help-block with-errors"></div>
  </div>
  <div class="form-group">
    <%= f.label "A Brief Idea", :class => "control-label" %> &middot; <span id="word-count">0</span>
    <%= f.text_area :body, :rows => "16", :id => "idea-body", :placeholder => "This is what 200 words looks like: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum orci orci, lacinia a sagittis et, elementum ac eros. Ut ac posuere justo. Nunc nec libero vitae erat lacinia dapibus vel mollis ipsum. Integer tempor est quis eros eleifend tempus. Fusce sed orci vitae sapien blandit venenatis non nec nunc. Maecenas quam sapien, porttitor sit amet volutpat vitae, pharetra vel sem. Nullam vulputate libero accumsan porta ultricies. Praesent tortor mi, tempus quis odio sed, aliquet posuere magna. Etiam eget tellus id dui molestie imperdiet. Pellentesque vulputate, enim a pretium maximus, mauris ex viverra lectus, non consectetur enim ante at mauris. Mauris varius, mauris id varius varius, urna mi fringilla velit, quis bibendum leo justo sed justo. Etiam tincidunt turpis vestibulum justo vulputate iaculis. Vivamus tristique lacus at lorem molestie tempus. Pellentesque commodo laoreet lorem non ultrices. Morbi in imperdiet risus. Phasellus efficitur euismod felis at volutpat. Suspendisse viverra, dolor non volutpat fringilla, lorem risus accumsan quam, eget tempor ipsum nunc a purus. Sed tincidunt venenatis ante non feugiat. Nunc mattis risus at sapien eleifend, id iaculis orci dignissim. Suspendisse elementum nibh eget velit semper egestas. Suspendisse feugiat lorem eget urna laoreet, vel iaculis arcu.", :class => "form-control auto-complete", :required => ""  %>
    <div class="help-block with-errors"></div>
  </div>
  <button type="submit" class="btn btn-default">Submit Idea</button> <button class="btn btn-primary" id="preview-button" data-toggle="modal" data-target="#myModal">Preview</button>
<% end %>
<!-- TODO - should this div be removed? -->
<div id="type"></div>

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content"><commit_msg>Adding basic dialog for confirmation<commit_after><%= form_for @idea, :html => {:data => {:toggle => "validator"}} do |f| %>
  <div class="form-group">
    <%= f.label :title, :class => "control-label" %>
    <%= f.text_field :title, :class => "form-control", "placeholder" => "Enter idea description", :required => "" %>
    <div class="help-block with-errors"></div>
  </div>
  <div class="form-group">
    <%= f.label :tags, :class => "full control-label" %>
    <%= f.text_field :tags, :class => "form-control typeaheadtags", :placeholder => "Tag this idea", :value => "", :required => "" %>
    <div class="help-block with-errors"></div>
  </div>
  <div class="form-group">
    <%= f.label "A Brief Idea", :class => "control-label" %> &middot; <span id="word-count">0</span>
    <%= f.text_area :body, :rows => "16", :id => "idea-body", :placeholder => "This is what 200 words looks like: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum orci orci, lacinia a sagittis et, elementum ac eros. Ut ac posuere justo. Nunc nec libero vitae erat lacinia dapibus vel mollis ipsum. Integer tempor est quis eros eleifend tempus. Fusce sed orci vitae sapien blandit venenatis non nec nunc. Maecenas quam sapien, porttitor sit amet volutpat vitae, pharetra vel sem. Nullam vulputate libero accumsan porta ultricies. Praesent tortor mi, tempus quis odio sed, aliquet posuere magna. Etiam eget tellus id dui molestie imperdiet. Pellentesque vulputate, enim a pretium maximus, mauris ex viverra lectus, non consectetur enim ante at mauris. Mauris varius, mauris id varius varius, urna mi fringilla velit, quis bibendum leo justo sed justo. Etiam tincidunt turpis vestibulum justo vulputate iaculis. Vivamus tristique lacus at lorem molestie tempus. Pellentesque commodo laoreet lorem non ultrices. Morbi in imperdiet risus. Phasellus efficitur euismod felis at volutpat. Suspendisse viverra, dolor non volutpat fringilla, lorem risus accumsan quam, eget tempor ipsum nunc a purus. Sed tincidunt venenatis ante non feugiat. Nunc mattis risus at sapien eleifend, id iaculis orci dignissim. Suspendisse elementum nibh eget velit semper egestas. Suspendisse feugiat lorem eget urna laoreet, vel iaculis arcu.", :class => "form-control auto-complete", :required => ""  %>
    <div class="help-block with-errors"></div>
  </div>
  <%= button_tag 'Submit Idea', :data => { :confirm => "Once submitted, ideas cannot be edited. Please make sure you've checked your idea using the preview button." }, :class => 'btn btn-default' %> <button class="btn btn-primary" id="preview-button" data-toggle="modal" data-target="#myModal">Preview</button>


<% end %>
<!-- TODO - should this div be removed? -->
<div id="type"></div>

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
{'fraction_non_alphanumeric': 0.13524951507670605, 'fraction_numerical': 0.0024687004055722094, 'mean_word_length': 4.666333666333666, 'pattern_counts': {'":': 0, '<': 68, '<?xml version=': 0, '>': 107, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '901473', 'n_tokens_mistral': 1969, 'n_tokens_neox': 1903, 'n_words': 642}