<commit_before><html>
  <head>
    <title>
      Multi-Currency Display & Checkout on Your Snipcart Store
    </title>

    <script type="text/javascript"
      src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    
    <script type="text/javascript" 
      id="snipcart"
      src="https://cdn.snipcart.com/scripts/snipcart.js"
      data-api-key="<KEY>"></script>

    <link type="text/css"
      id="snipcart-theme"
      href="https://cdn.snipcart.com/themes/base/snipcart.min.css" 
      rel="stylesheet" />
  </head>

  <body>
    <nav>
      <span class="snipcart-summary">
        Number of items: <span class="snipcart-total-items"></span>
        Total price: <span class="snipcart-total-price"></span>
      </span>
      
      <span>
        <select id="currency">
          <option value="cad">CAD</option>
          <option value="usd">USD</option>
          <option value="eur">EUR</option>
        </select>
      </span>
      
      <a href="#" class="snipcart-checkout">View cart</a>
    </nav>
    
    <div>
      <button type="button" class="snipcart-add-item"
        data-item-name="Item"
        data-item-price='{"usd": 20.00, "cad": 30.00, "eur": 25.00}'
        data-item-id="ITEM"
        data-item-url="/multi-currency">
        Buy now
      </button>
    </div>
    
    <script>
      Snipcart.subscribe('cart.ready', function() {
        $('#currency').val(Snipcart.api.getCurrentCurrency());
      });
      
      Snipcart.subscribe('currency.changed', function (currency) {
        $('#currency').val(curency);
      });
      
      $(function() {
        $('#currency').change(function () {
          Snipcart.api.setCurrency($(this).val());
        });
      });
    </script>
  </body>
</html><commit_msg>Using Twitter Bootstrap instead of an ugly demo<commit_after><html>
  <head>
    <title>
      Multi-Currency Display & Checkout on Your Snipcart Store
    </title>

    <script type="text/javascript"
      src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    
    <script type="text/javascript" 
      id="snipcart"
      src="https://cdn.snipcart.com/scripts/snipcart.js"
      data-api-key="<KEY>"></script>

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="<KEY>" crossorigin="anonymous">

<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css" integrity="<KEY>" crossorigin="anonymous">

<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="<KEY>" crossorigin="anonymous"></script>

    <link type="text/css"
      id="snipcart-theme"
      href="https://cdn.snipcart.com/themes/base/snipcart.min.css" 
      rel="stylesheet" />
  </head>

  <body>
      <div class="container">
        <nav class="navbar navbar-default">
          <div class="container-fluid">
            <div class="navbar-header">
              <a class="navbar-brand" href="#">
                Snipcart
              </a>
            </div>
            <ul class="nav navbar-nav navbar-left">
              <li class="navbar-form">
                <div class="form-group">
                  <select id="currency" class="form-control">
                    <option value="cad">CAD</option>
                    <option value="usd">USD</option>
                    <option value="eur">EUR</option>
                  </select>
                </div>
              </li>
            </ul>
            <ul class="nav navbar-nav navbar-right snipcart-summary">
              <li>
                <a href="#" class="snipcart-checkout">
                  View cart
                  <span class="badge snipcart-total-items"></span>
                  <span class="snipcart-total-price"></span>
                </a>
              </li>
            </ul>
          </div>
        </nav>
    </div>
    
    <div class="container">
      <div class="jumbotron">
        <h1>Hello, friend!</h1>
        <p>
          Buy our super dummy item in your favorite currency on our basic demo!
        </p>
        <p>
          <button type="button" class="snipcart-add-item btn btn-primary btn-lg"
            data-item-name="Item"
            data-item-price='{"usd": 20.00, "cad": 30.00, "eur": 25.00}'
            data-item-id="ITEM"
            data-item-url="/multi-currency">
            Buy now
          </button>
        </p>
      </div>
      
    </div>
    
    <script>
      Snipcart.subscribe('cart.ready', function() {
        $('#currency').val(Snipcart.api.getCurrentCurrency());
      });
      
      Snipcart.subscribe('currency.changed', function (currency) {
        $('#currency').val(currency);
      });
      
      $(function() {
        $('#currency').change(function () {
          Snipcart.api.setCurrency($(this).val());
        });
      });
    </script>
  </body>
</html>
{'fraction_non_alphanumeric': 0.17038891028109357, 'fraction_numerical': 0.008278783211397767, 'mean_word_length': 1.796017222820237, 'pattern_counts': {'":': 6, '<': 115, '<?xml version=': 0, '>': 115, 'https://': 7, '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': '1748640', 'n_tokens_mistral': 1654, 'n_tokens_neox': 1565, 'n_words': 259}