<commit_before>- content_for :head do
  = stylesheet_link_tag "picker-classic"
  = stylesheet_link_tag "picker-classic.date"

- content_for :header_image do
  = image_tag("add-bagel-header.png", alt: "Fresh Baked Bagels")

= form_for @bagel do |bagel_form|
  = error_messages_for @bagel, class: "error-text", header_message: "Ya got some problems, buddy..", message: ""

  %div.row
    %div.span4
      %div.control-group
        = bagel_form.text_field :baked_on, class: "datepicker", size: 12

  %div.row
    %div.span4
      %div.control-group
        = bagel_form.fields_for :owner do |builder|
          = builder.label :name, "Owner's Name"
          = builder.text_field :name, "value placeholder" => "Owner's Name", autocomplete: "off"

    %div.span4
      %div.control-group
        = bagel_form.fields_for :teammate do |builder|
          = builder.label :name, "Teammate's Name"
          = builder.text_field :name, "value placeholder" => "Teammate's Name", autocomplete: "off"

  %div.row
    %div.span4
      %div.control-group
        = bagel_form.fields_for :opponent_1 do |builder|
          = builder.label :name, "Winning Offensive Player's Name"
          = builder.text_field :name, "value placeholder" => "Winning Offensive Player's Name", autocomplete: "off"

    %div.span4
      %div.control-group
        = bagel_form.fields_for :opponent_2 do |builder|
          = builder.label :name, "Winning Defensive Player's Name"
          = builder.text_field :name, "value placeholder" => "Winning Defensive Player's Name", autocomplete: "off"

  %div.row
    %br
  %div.row
    %div.span4
      = button_tag "Add New Bagel", class: 'btn btn-primary btn-large'

- content_for :page_js do
  = javascript_include_tag "picker"
  = javascript_include_tag "picker.date"

  :javascript
    $(function() {
      $("#bagel_owner_name").focus();


      $("#bagel_owner_name").typeahead({
        source: #{player_names}
      });

      $("#bagel_teammate_name").typeahead({
        source: #{player_names}
      });

      $("#bagel_opponent_1_name").typeahead({
        source: #{player_names}
      });

      $("#bagel_opponent_2_name").typeahead({
        source: #{player_names}
      });

      $(".datepicker").pickadate({
        format: 'Bake!d on yyyy-mm-dd',
        clear: false,
        onStart: function() {
          var today = new Date();
          var calendar = this;
          var month = today.getMonth() + 1;
          calendar.set("select", [today.getFullYear(), month, today.getDate()]);<commit_msg>Incorrect initial baked_on date.<commit_after>- content_for :head do
  = stylesheet_link_tag "picker-classic"
  = stylesheet_link_tag "picker-classic.date"

- content_for :header_image do
  = image_tag("add-bagel-header.png", alt: "Fresh Baked Bagels")

= form_for @bagel do |bagel_form|
  = error_messages_for @bagel, class: "error-text", header_message: "Ya got some problems, buddy..", message: ""

  %div.row
    %div.span4
      %div.control-group
        = bagel_form.text_field :baked_on, class: "datepicker", size: 12

  %div.row
    %div.span4
      %div.control-group
        = bagel_form.fields_for :owner do |builder|
          = builder.label :name, "Owner's Name"
          = builder.text_field :name, "value placeholder" => "Owner's Name", autocomplete: "off"

    %div.span4
      %div.control-group
        = bagel_form.fields_for :teammate do |builder|
          = builder.label :name, "Teammate's Name"
          = builder.text_field :name, "value placeholder" => "Teammate's Name", autocomplete: "off"

  %div.row
    %div.span4
      %div.control-group
        = bagel_form.fields_for :opponent_1 do |builder|
          = builder.label :name, "Winning Offensive Player's Name"
          = builder.text_field :name, "value placeholder" => "Winning Offensive Player's Name", autocomplete: "off"

    %div.span4
      %div.control-group
        = bagel_form.fields_for :opponent_2 do |builder|
          = builder.label :name, "Winning Defensive Player's Name"
          = builder.text_field :name, "value placeholder" => "Winning Defensive Player's Name", autocomplete: "off"

  %div.row
    %br
  %div.row
    %div.span4
      = button_tag "Add New Bagel", class: 'btn btn-primary btn-large'

- content_for :page_js do
  = javascript_include_tag "picker"
  = javascript_include_tag "picker.date"

  :javascript
    $(function() {
      $("#bagel_owner_name").focus();


      $("#bagel_owner_name").typeahead({
        source: #{player_names}
      });

      $("#bagel_teammate_name").typeahead({
        source: #{player_names}
      });

      $("#bagel_opponent_1_name").typeahead({
        source: #{player_names}
      });

      $("#bagel_opponent_2_name").typeahead({
        source: #{player_names}
      });

      $(".datepicker").pickadate({
        format: 'Bake!d on yyyy-mm-dd',
        clear: false,
        onStart: function() {
          var today = new Date();
          var calendar = this;
          calendar.set("select", [today.getFullYear(), today.getMonth(), today.getDate()]);
{'fraction_non_alphanumeric': 0.13958086200079084, 'fraction_numerical': 0.0049426650850138395, 'mean_word_length': 2.847148288973384, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3687797', 'n_tokens_mistral': 1711, 'n_tokens_neox': 1636, 'n_words': 358}