<commit_before>service: blog
runtime: go112

env_variables:
  GOLANGORG_CHECK_COUNTRY: true
  BLOG_ANALYTICS: |
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-11222381-3"></script>
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag("js", new Date());
    gtag("config", "UA-11222381-3");
    gtag("config", "UA-49880327-6");
    </script>

default_expiration: "7d"

# Keep these static file handlers in sync with blog.go.
# They're here for improved latency across global regions.
handlers:
- url: /favicon.ico
  static_files: static/favicon.ico
  upload: static/favicon.ico
  secure: always
- url: /fonts.css
  static_files: static/fonts.css
  upload: static/fonts.css
  secure: always
- url: /fonts
  static_dir: static/fonts
  http_headers:
    Content-Type: application/font-woff
  secure: always<commit_msg>[x/blog] blog: redirect HTTP traffic to HTTPS<commit_after>service: blog
runtime: go112

env_variables:
  GOLANGORG_CHECK_COUNTRY: true
  BLOG_ANALYTICS: |
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-11222381-3"></script>
    <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag("js", new Date());
    gtag("config", "UA-11222381-3");
    gtag("config", "UA-49880327-6");
    </script>

default_expiration: "7d"

handlers:

# Keep these static file handlers in sync with blog.go.
# They're here for improved latency across global regions.
- url: /favicon.ico
  static_files: static/favicon.ico
  upload: static/favicon.ico
  secure: always
- url: /fonts.css
  static_files: static/fonts.css
  upload: static/fonts.css
  secure: always
- url: /fonts
  static_dir: static/fonts
  http_headers:
    Content-Type: application/font-woff
  secure: always

# This is here to redirect all HTTP traffic to an HTTPS URL
# with the same path.
- url: /.*
  script: auto
  secure: always
{'fraction_non_alphanumeric': 0.1295257521672616, 'fraction_numerical': 0.03161652218255992, 'mean_word_length': 3.917293233082707, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2521212', 'n_tokens_mistral': 735, 'n_tokens_neox': 673, 'n_words': 164}