<commit_before><% if !signed_in? %>
  <div class="educational-modal">
    <p>
      <strong><a href="<%= new_user_registration_path %>">Sign up</a> to join the discussion.</strong>
      Already have an account? <a href="<%= new_user_session_path %>">Sign in</a>
    </p>
  </div>

<% else %>
  <div class="media js-new-event">

    <div class="pull-left">
      <% if signed_in? %>
        <img class="media-object avatar" src="<%= current_user.avatar.url(60) %>" width="30" height="30">
      <% else %>
        <img class="media-object avatar" src="<%= image_path('avatars/default.png') %>" width="30" height="30">
      <% end %>
    </div>

    <div class="media-body ">

      <div class="media-heading">
        Add to the discussion or share work to earn
        <%= format_coins(@wip.product, @wip.real_coin_value) %>.
      </div>

      <ul class="nav nav-tabs text-small" style="border-top: 1px dotted #ebebeb">
        <li class="active"><a href="#comment" data-toggle="tab">Comment</a></li>
        <li><a href="#code" data-toggle="tab">Code</a></li>
        <li><a href="#design" data-toggle="tab">Design</a></li>
        <li><a href="#copy" data-toggle="tab">Copy</a></li>
      </ul>


      <!-- Tab panes -->
      <div class="tab-content">


        <!-- Comments -->

        <div class="tab-pane active" id="comment">
          <%= form_tag product_wip_comments_path(@wip.product, @wip), method: :post, class: %w(form new_event_comment) do %>

            <div class="markdown-editor-control js-markdown-editor dropzone js-dropzone">
              <%= text_area_tag 'event_comment[body]', nil, class: 'form-control', placeholder: 'Say something awesome!', rows: 3, style: 'border-top-left-radius: 0', "data-product-id" => @wip.product.id %>

              <div class="dropzone-inner">
                To attach files drag &amp; drop here or <a href="#">select files from your computer</a>...
              </div>
            </div>

            <div class="form-actions">
              <div class="btn-group">
                <%= button_tag 'Comment', name: 'event_comment[type]', value: 'Event::Comment', type: 'submit', class: %w(btn btn-primary) %>
                <% if can?(:update, @wip.product) %>
                  <% if @wip.resolved? %>
                    <%= button_tag 'Comment & Reopen', name: 'event_comment[type]', value: 'Event::Reopen', type: 'submit', class: %w(btn btn-default) %>
                  <% else %>
                    <%= button_tag 'Comment & Close', name: 'event_comment[type]', value: 'Event::Close', type: 'submit', class: %w(btn btn-default) %>

                    <% if @wip.is_a?(Task) %>
                      <% if @wip.promoted? %>
                        <%= button_tag 'Comment & Demote', name: 'event_comment[type]', value: 'Event::Demotion', type: 'submit', class: %w(btn btn-default) %>
                      <% else %>
                        <%= button_tag 'Comment & Promote', name: 'event_comment[type]', value: 'Event::Promotion', type: 'submit', class: %w(btn btn-default) %>
                      <% end %>
                    <% end %>
                  <% end %>
                </div>
              <% end %>

            </div>
          <% end %>
        </div>


        <!-- Code -->

        <div class="tab-pane" id="code">
          <%= form_tag product_wip_code_deliverables_path(@wip.product, @wip), method: :post, class: %w(form) do %>

            <%= text_field_tag 'code_deliverable[url]', nil, class: 'form-control', placeholder: 'Pull Request URL' %>

            <div class="form-actions">
              <%= submit_tag 'Add Pull Request', class: %w(btn btn-primary) %>
            </div>
          <% end %>
        </div>


        <!-- Design -->

        <div class="tab-pane" id="design">

          <div class="well dropzone js-dropzone" id="design-deliverable-dropzone-el"><commit_msg>Fix html wacky-ness in new wip comment form.<commit_after><% if !signed_in? %>
  <div class="educational-modal">
    <p>
      <strong><a href="<%= new_user_registration_path %>">Sign up</a> to join the discussion.</strong>
      Already have an account? <a href="<%= new_user_session_path %>">Sign in</a>
    </p>
  </div>

<% else %>
  <div class="media js-new-event">

    <div class="pull-left">
      <% if signed_in? %>
        <img class="media-object avatar" src="<%= current_user.avatar.url(60) %>" width="30" height="30">
      <% else %>
        <img class="media-object avatar" src="<%= image_path('avatars/default.png') %>" width="30" height="30">
      <% end %>
    </div>

    <div class="media-body ">

      <div class="media-heading">
        Add to the discussion or share work to earn
        <%= format_coins(@wip.product, @wip.real_coin_value) %>.
      </div>

      <ul class="nav nav-tabs text-small" style="border-top: 1px dotted #ebebeb">
        <li class="active"><a href="#comment" data-toggle="tab">Comment</a></li>
        <li><a href="#code" data-toggle="tab">Code</a></li>
        <li><a href="#design" data-toggle="tab">Design</a></li>
        <li><a href="#copy" data-toggle="tab">Copy</a></li>
      </ul>


      <!-- Tab panes -->
      <div class="tab-content">


        <!-- Comments -->

        <div class="tab-pane active" id="comment">
          <%= form_tag product_wip_comments_path(@wip.product, @wip), method: :post, class: %w(form new_event_comment) do %>

            <div class="markdown-editor-control js-markdown-editor dropzone js-dropzone">
              <%= text_area_tag 'event_comment[body]', nil, class: 'form-control', placeholder: 'Say something awesome!', rows: 3, style: 'border-top-left-radius: 0', "data-product-id" => @wip.product.id %>

              <div class="dropzone-inner">
                To attach files drag &amp; drop here or <a href="#">select files from your computer</a>...
              </div>
            </div>

            <div class="form-actions">
              <div class="btn-group">
                <%= button_tag 'Comment', name: 'event_comment[type]', value: 'Event::Comment', type: 'submit', class: %w(btn btn-primary) %>
                <% if can?(:update, @wip.product) %>
                  <% if @wip.resolved? %>
                    <%= button_tag 'Comment & Reopen', name: 'event_comment[type]', value: 'Event::Reopen', type: 'submit', class: %w(btn btn-default) %>
                  <% else %>
                    <%= button_tag 'Comment & Close', name: 'event_comment[type]', value: 'Event::Close', type: 'submit', class: %w(btn btn-default) %>

                    <% if @wip.promoted? %>
                      <%= button_tag 'Comment & Demote', name: 'event_comment[type]', value: 'Event::Demotion', type: 'submit', class: %w(btn btn-default) %>
                    <% else %>
                      <%= button_tag 'Comment & Promote', name: 'event_comment[type]', value: 'Event::Promotion', type: 'submit', class: %w(btn btn-default) %>
                    <% end %>
                  <% end %>
                <% end %>
              </div>
            </div>
          <% end %>
        </div>


        <!-- Code -->

        <div class="tab-pane" id="code">
          <%= form_tag product_wip_code_deliverables_path(@wip.product, @wip), method: :post, class: %w(form) do %>

            <%= text_field_tag 'code_deliverable[url]', nil, class: 'form-control', placeholder: 'Pull Request URL' %>

            <div class="form-actions">
              <%= submit_tag 'Add Pull Request', class: %w(btn btn-primary) %>
            </div>
          <% end %>
        </div>


        <!-- Design -->

        <div class="tab-pane" id="design">

          <div class="well dropzone js-dropzone" id="design-deliverable-dropzone-el">
{'fraction_non_alphanumeric': 0.18644726613112206, 'fraction_numerical': 0.0033687483804094327, 'mean_word_length': 2.2337662337662336, 'pattern_counts': {'":': 0, '<': 183, '<?xml version=': 0, '>': 185, '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': '4924678', 'n_tokens_mistral': 2574, 'n_tokens_neox': 2341, 'n_words': 543}