<commit_before><% @stamp_duty.errors.full_messages.each do |m| %>
  <span style="color:red;"><%= m %></span>
<% end %>

<%= form_for @stamp_duty, url: stamp_duty_path do |f| %>
  <%= f.label :price, 'Property Price' %>
  <%= f.text_field :price %>

  <%= f.submit %>
<% end %>
<commit_msg>stamp duty form<commit_after>
<div ng-controller="CalculatorCtrl">
  <h1>How much stamp duty will I have to pay?</h1>

    <form name="stamp_duty_form" role="form" novalidate>

      <fieldset>
        <label for="propertyPrice">
          Property Price
          </label>
        <input type="text" ng-pattern="/^\d+$/" name="propertyPrice" class="form-control" ng-model="stampDuty.propertyPrice" placeholder="The cost of the property" required autofocus />
      </fieldset>

  </form>

  <div ng-show="stampDuty.propertyPrice">
    <p >
      Based on your total purchase price of
      <span class='label label-primary'>{{ stampDuty.propertyPrice | currency:"£" }}</span>,
      you will have to pay
      <span class='label label-primary'>{{ stampDuty.rate | currency:"£" }}</span>
      in stamp duty, costing
      <span class='label label-primary'>{{ stampDuty.cost | currency:"£" }}</span>.
      Bringing your total spend to
      <span class='label label-primary'>{{ stampDuty.totalPurchase()  | currency:"£" }}</span>.
    </p>
  </div>
</div>
{'fraction_non_alphanumeric': 0.17769516728624535, 'fraction_numerical': 0.001486988847583643, 'mean_word_length': 3.456953642384106, 'pattern_counts': {'":': 0, '<': 36, '<?xml version=': 0, '>': 36, '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': '2888739', 'n_tokens_mistral': 466, 'n_tokens_neox': 436, 'n_words': 113}