<commit_before><tr class="purchase-shipment-row" data-id="<%= record.id %>">
  <td>
    <div class="form-group">
      <%= form.text_field :quantity_received,
                          type: "number", min: 1, placeholder: "Enter number",
                          class: "quantity-received form-control",
                          data: { guard: "required", guard_required_message: "Required" } %>
    </div>
  </td>
  <td>
    <div class="form-group">
      <%= form.text_field :received_date,
                          value: (record.received_date || Date.today).strftime("%Y-%m-%d"),
                          class: "form-control",
                          data: { guard: "required", guard_required_message: "Required",
                                  provide: "datepicker", date_format: "yyyy-mm-dd" } %>
    </div>
  </td>
  <td>
    <%= link_to_remove_purchase_association_row(record) %>
  </td>
</tr>
<commit_msg>Only allow shipments creation, not edits<commit_after><tr class="purchase-shipment-row" data-id="<%= record.id %>">
  <td>
    <div class="form-group">
      <%= form.text_field :quantity_received,
                          type: "number", min: 1, placeholder: "Enter number",
                          disabled: record.persisted?,
                          class: "quantity-received form-control",
                          data: { guard: "required", guard_required_message: "Required" } %>
    </div>
  </td>
  <td>
    <div class="form-group">
      <%= form.text_field :received_date,
                          value: (record.received_date || Date.today).strftime("%Y-%m-%d"),
                          disabled: record.persisted?,
                          class: "form-control",
                          data: { guard: "required", guard_required_message: "Required",
                                  provide: "datepicker", date_format: "yyyy-mm-dd" } %>
    </div>
  </td>
  <td>
    <%= link_to_remove_purchase_association_row(record) %>
  </td>
</tr>

{'fraction_non_alphanumeric': 0.15365239294710328, 'fraction_numerical': 0.0010075566750629723, 'mean_word_length': 1.8130311614730878, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '5935323', 'n_tokens_mistral': 615, 'n_tokens_neox': 573, 'n_words': 111}