<commit_before><% deadline = @conference.registration_deadline || @conference.date %>
<% if deadline && (deadline > Time.now) %>
    <div class="table table-responsive col-md-10">
    	<!--<%= label_tag '', nil, class: 'col-md-5' %>-->
    	<!-- Button trigger modal -->
    	<button type="button" class="btn btn-primary btn-md call-for-speaker" data-toggle="modal" data-target="#myModal"><strong>CALL FOR SPEAKER!</strong>
    	</button>
    </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">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close" aria-hidden="true"><span>&times;</span></button>
                    <h3 class="modal-title" id="myModalLabel">Request for speaker</h3>
                </div>
                <div id='success-sent' class = '' > 
                </div>
                <div class="modal-body form-group">
                	<%= form_tag(send_mail_path, remote: true) do %>
                        <div class="form-group">
                            <%= label_tag 'name', 'Name and Surname' %>
                            <%= text_field_tag 'name', nil, class: 'form-control col-lg-3 control-label', placeholder: 'Your Name and Surname', required: true %>
                        </div>
                        <div class="form-group">
                            <%= label_tag 'email', 'Email' %>
                            <%= email_field_tag :email, nil, class: 'form-control col-lg-3 control-label', id: 'mail-address', placeholder: 'Your Email Address', required: true %>
                        </div>
                        <div>
                            <%= label_tag 'comment', 'Comment' %>
                            <%= text_area_tag 'comment', nil, class: 'form-control col-lg-3 control-label', rows: 1, placeholder: 'Comment...', required: true %>
                        </div>
                        <div class="modal-footer"></div>
                        <button type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
                        <input type="submit" value="Send" class="btn btn-primary">
                    <% end %>
                </div>
            </div>
        </div>
    </div>
<% end %><commit_msg>Fixed ability to call for speaker if deadline date today<commit_after><% deadline = @conference.registration_deadline || @conference.date %>
<% if deadline && (deadline >= Time.current.to_date) %>
  <div class="table table-responsive col-md-10">
  	<!--<%= label_tag '', nil, class: 'col-md-5' %>-->
  	<!-- Button trigger modal -->
  	<button type="button" class="btn btn-primary btn-md call-for-speaker" data-toggle="modal" data-target="#myModal"><strong>CALL FOR SPEAKER!</strong>
  	</button>
  </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">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close" aria-hidden="true"><span>&times;</span></button>
          <h3 class="modal-title" id="myModalLabel">Request for speaker</h3>
        </div>
        <div id='success-sent' class = '' > 
        </div>
        <div class="modal-body form-group">
          <%= form_tag(send_mail_path, remote: true) do %>
            <div class="form-group">
              <%= label_tag 'name', 'Name and Surname' %>
              <%= text_field_tag 'name', nil, class: 'form-control col-lg-3 control-label', placeholder: 'Your Name and Surname', required: true %>
            </div>
            <div class="form-group">
              <%= label_tag 'email', 'Email' %>
              <%= email_field_tag :email, nil, class: 'form-control col-lg-3 control-label', id: 'mail-address', placeholder: 'Your Email Address', required: true %>
            </div>
            <div>
              <%= label_tag 'comment', 'Comment' %>
              <%= text_area_tag 'comment', nil, class: 'form-control col-lg-3 control-label', rows: 1, placeholder: 'Comment...', required: true %>
            </div>
            <div class="modal-footer"></div>
            <button type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true">Close</button>
            <input type="submit" value="Send" class="btn btn-primary">
          <% end %>
        </div>
      </div>
    </div>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.172982230785699, 'fraction_numerical': 0.004281738385784628, 'mean_word_length': 2.122994652406417, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 105, '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': '821559', 'n_tokens_mistral': 1400, 'n_tokens_neox': 1316, 'n_words': 307}