<commit_before>
<%= form_tag instances_path do %>
<%= hidden_field_tag("region", @instance_info[:region]) %>
<%= hidden_field_tag("plan", @instance_info[:plan]) %>
<%= hidden_field_tag("instance", @instance_info[:instance][:name]) %>
<%= hidden_field_tag("authenticity_token", @instance_info[:authenticity_token]) %>
  <article>
    <label class="amount">
        <h1> Your chose the following plan:</h1>
        <span> Name: <%= @instance_info[:instance][:name] %></span><br>
          <span>Amount: <%= number_to_currency((@instance_info[:plan].to_i/ 100), :unit => "€") %> &euro;</span><br>
          <span> Region: <%= @region[:name] %></span><br>
    </label>
  </article>

  <script src="https://checkout.stripe.com/checkout.js" class="stripe-button"
          data-key="<%= Rails.configuration.stripe[:publishable_key] %>"
          data-description="A month's subscription"
          data-amount="500"></script>
<% end %>
<commit_msg>Fix amount in stripes payment form<commit_after>
<%= form_tag instances_path do %>
<%= hidden_field_tag("region", @instance_info[:region]) %>
<%= hidden_field_tag("plan", @instance_info[:plan]) %>
<%= hidden_field_tag("instance", @instance_info[:instance][:name]) %>
<%= hidden_field_tag("authenticity_token", @instance_info[:authenticity_token]) %>
  <article>
    <label class="amount">
        <h1> Your chose the following plan:</h1>
        <span> Name: <%= @instance_info[:instance][:name] %></span><br>
          <span>Amount: <%= number_to_currency((@instance_info[:plan].to_i/ 100), :unit => "€") %> &euro;</span><br>
          <span> Region: <%= @region[:name] %></span><br>
    </label>
  </article>

  <script src="https://checkout.stripe.com/checkout.js" class="stripe-button"
          data-key="<%= Rails.configuration.stripe[:publishable_key] %>"
          data-currency='EUR'
          data-description="A month's subscription"
          data-amount=<%= @instance_info[:plan]%>></script>
<% end %>

{'fraction_non_alphanumeric': 0.2110373019928462, 'fraction_numerical': 0.006642820643842616, 'mean_word_length': 4.546742209631728, 'pattern_counts': {'":': 0, '<': 58, '<?xml version=': 0, '>': 60, 'https://': 2, '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': '6620771', 'n_tokens_mistral': 691, 'n_tokens_neox': 630, 'n_words': 101}