<commit_before><!-- 
Copyright 2021 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <title>Google Cloud region recommender</title>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="Helper tool to pick a Google Cloud region, taking latency, price and carbon footprint into account.">
  <meta name="theme-color" content="#1c74e9">

  <link rel="stylesheet" href="style.css">
  <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🗺️</text></svg>">

  <meta name="twitter:card" content="summary">
  <meta name="twitter:title" content="Google Cloud region recommender">
  <meta name="twitter:description" content="Helper tool to pick a Google Cloud region, taking latency, price and carbon footprint into account.">
  <meta name="twitter:image" content="https://googlecloudplatform.github.io/region-picker/images/gcp-region-picker.png">

  <meta property="og:type" content="profile">
  <meta property="og:title" content="Google Cloud region recommender">
  <meta property="og:description" content="Helper tool to pick a Google Cloud region, taking latency, price and carbon footprint into account.">
  <meta property="og:url" content="https://googlecloudplatform.github.io/region-picker">
  <meta property="og:image" content="https://googlecloudplatform.github.io/region-picker/images/gcp-region-picker.png">

  <script type="application/ld+json">
  {
    "@context": "http://schema.org",
    "@type": "SoftwareApplication",
    "name": "Google Cloud region recommender",
    "abstract": "Helper tool to pick a Google Cloud region, taking latency, price and carbon footprint into account.",
    "url": "https://googlecloudplatform.github.io/region-picker",
    "image": "https://googlecloudplatform.github.io/region-picker/images/gcp-region-picker.png"
  }
  </script>

</head>

<body>
<header>
  <h1>Google Cloud region recommender</h1>
  <p>Helper tool to pick a Google Cloud region, taking into accout carbon footprint (before offset), price and latency.</p>
  <p>This is not an officially supported Google product. Read more about <a href="https://cloud.google.com/sustainability">Google Cloud sustainability efforts</a>.</p>
</header>

<main>
<div class="group">
  <h2>What do you want to optimize for?</h2>
  
  <div class="weight-group carbon">
    <label for="carbon">Lower carbon footprint:</label>
    <span class="weight-info">Not important</span>
    <input type="range" id="carbon" name="carbon" min="0" max="10" class="weight">
    <span class="weight-info">Important</span>
  </div>

  <div class="weight-group price">
    <label for="price">Lower price:</label>
    <span class="weight-info">Not important</span>
    <input type="range" id="price" name="price" min="0" max="10" class="weight">
    <span class="weight-info">Important</span>
  </div>

  <div class="weight-group latency">
    <label for="latency" class="weight-title">Lower latency:</label>
    <span class="weight-info">Not important</span>
    <input type="range" id="latency" name="latency" min="0" max="10" class="weight">
    <span class="weight-info">Important</span>

    <label for="locations">Where is your traffic coming from? (multiple selection allowed)</label>
    <select multiple id="locations" name="locations">
      <option value="--current-location--" selected>Your current location</option>
    </select>
  </div>
</div>

<div class="group">
  <h2>Recommended regions</h2>
  <ol id="results"></ol>
</div>

  <p class="footnotes">
    <b>Carbon footprint</b> is approximated using the yearly carbon free energy percentage and average electricity carbon intensity of the region (<a href="https://cloud.google.com/sustainability/region-carbon">source</a>).
    Google <a href="https://cloud.google.com/sustainability">invests</a> in enough renewable energy and carbon offsets to neutralize the global operational carbon emissions footprint of Google Cloud per the GHG protocol under the Scope 2 market-based methodology.
    <br/>
    <b>Latency</b> is approxiated using physical distance between selected countries and the city or country of the region.
    <br/>
    <b>Price</b> is approximated using <a href="https://cloud.google.com/compute/all-pricing#e2_machine-types">Google Compute Engine E2 instance vCPU price</a>.
    <br/>  
    All processing is happening client side in your browser. Data is never uploaded.
  </p>

  <p>Contribute or report issues <a href="https://github.com/GoogleCloudPlatform/region-picker">on GitHub</a>.</p>


</main>

<template id="result-row"><commit_msg>Move unofficial disclaimer at the bottom<commit_after><!-- 
Copyright 2021 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <title>Google Cloud region recommender</title>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="Helper tool to pick a Google Cloud region, taking latency, price and carbon footprint into account.">
  <meta name="theme-color" content="#1c74e9">

  <link rel="stylesheet" href="style.css">
  <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🗺️</text></svg>">

  <meta name="twitter:card" content="summary">
  <meta name="twitter:title" content="Google Cloud region recommender">
  <meta name="twitter:description" content="Helper tool to pick a Google Cloud region, taking latency, price and carbon footprint into account.">
  <meta name="twitter:image" content="https://googlecloudplatform.github.io/region-picker/images/gcp-region-picker.png">

  <meta property="og:type" content="profile">
  <meta property="og:title" content="Google Cloud region recommender">
  <meta property="og:description" content="Helper tool to pick a Google Cloud region, taking latency, price and carbon footprint into account.">
  <meta property="og:url" content="https://googlecloudplatform.github.io/region-picker">
  <meta property="og:image" content="https://googlecloudplatform.github.io/region-picker/images/gcp-region-picker.png">

  <script type="application/ld+json">
  {
    "@context": "http://schema.org",
    "@type": "SoftwareApplication",
    "name": "Google Cloud region recommender",
    "abstract": "Helper tool to pick a Google Cloud region, taking latency, price and carbon footprint into account.",
    "url": "https://googlecloudplatform.github.io/region-picker",
    "image": "https://googlecloudplatform.github.io/region-picker/images/gcp-region-picker.png"
  }
  </script>

</head>

<body>
<header>
  <h1>Google Cloud region recommender</h1>
  <p>Helper tool to pick a Google Cloud region, taking into accout carbon footprint (before offset), price and latency.</p>
</header>

<main>
<div class="group">
  <h2>What do you want to optimize for?</h2>
  
  <div class="weight-group carbon">
    <label for="carbon">Lower carbon footprint:</label>
    <span class="weight-info">Not important</span>
    <input type="range" id="carbon" name="carbon" min="0" max="10" class="weight">
    <span class="weight-info">Important</span>
  </div>

  <div class="weight-group price">
    <label for="price">Lower price:</label>
    <span class="weight-info">Not important</span>
    <input type="range" id="price" name="price" min="0" max="10" class="weight">
    <span class="weight-info">Important</span>
  </div>

  <div class="weight-group latency">
    <label for="latency" class="weight-title">Lower latency:</label>
    <span class="weight-info">Not important</span>
    <input type="range" id="latency" name="latency" min="0" max="10" class="weight">
    <span class="weight-info">Important</span>

    <label for="locations">Where is your traffic coming from? (multiple selection allowed)</label>
    <select multiple id="locations" name="locations">
      <option value="--current-location--" selected>Your current location</option>
    </select>
  </div>
</div>

<div class="group">
  <h2>Recommended regions</h2>
  <ol id="results"></ol>
</div>

  <p class="footnotes">
    <b>Carbon footprint</b> is approximated using the yearly carbon free energy percentage and average electricity carbon intensity of the region (<a href="https://cloud.google.com/sustainability/region-carbon">source</a>).
    Google <a href="https://cloud.google.com/sustainability">invests</a> in enough renewable energy and carbon offsets to neutralize the global operational carbon emissions footprint of Google Cloud per the GHG protocol under the Scope 2 market-based methodology.
    <br/>
    <b>Latency</b> is approxiated using physical distance between selected countries and the city or country of the region.
    <br/>
    <b>Price</b> is approximated using <a href="https://cloud.google.com/compute/all-pricing#e2_machine-types">Google Compute Engine E2 instance vCPU price</a>.
    <br/>  
    All processing is happening client side in your browser. Data is never uploaded.
  </p>

  <p>This is not an officially supported Google product. Read more about <a href="https://cloud.google.com/sustainability">Google Cloud sustainability efforts</a>.</p>

  <p>Contribute or report issues <a href="https://github.com/GoogleCloudPlatform/region-picker">on GitHub</a>.</p>


</main>

<template id="result-row">
{'fraction_non_alphanumeric': 0.1427750095822154, 'fraction_numerical': 0.012265235722499043, 'mean_word_length': 4.88, 'pattern_counts': {'":': 12, '<': 215, '<?xml version=': 0, '>': 215, 'https://': 22, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '3037269', 'n_tokens_mistral': 3170, 'n_tokens_neox': 2994, 'n_words': 958}