<commit_before>[build]
  base = ""
  publish = "_site/"

# I test my security headers with https://securityheaders.com/
[[headers]]
  for = "/*"

  [headers.values]
    # https://scotthelme.co.uk/hardening-your-http-response-headers/#content-security-policy
    #
    #   - youtube-nocookie.com is used for YouTube embeds
    #   - polyfill.io and cdn.jsdelivr.net are used for MathJax
    #
    content-security-policy = """\
      default-src 'self' 'unsafe-inline' \
      https://youtube-nocookie.com https://www.youtube-nocookie.com; \
      script-src 'self' 'unsafe-inline'; \
      img-src 'self' 'unsafe-inline' data: \
    """

    # https://scotthelme.co.uk/a-new-security-header-feature-policy/
    # https://scotthelme.co.uk/goodbye-feature-policy-and-hello-permissions-policy/
    permissions-policy = """\
      geolocation=(), \
      midi=(), \
      notifications=(), \
      push=(), \
      sync-xhr=(), \
      microphone=(), \
      camera=(), \
      magnetometer=(), \
      gyroscope=(), \
      vibrate=(),
      payment=() \
    """

    # https://scotthelme.co.uk/a-new-security-header-referrer-policy/
    referrer-policy = "no-referrer-when-downgrade"
<commit_msg>Update the comment about CSP headers<commit_after>[build]
  base = ""
  publish = "_site/"

# I test my security headers with https://securityheaders.com/
[[headers]]
  for = "/*"

  [headers.values]
    # https://scotthelme.co.uk/hardening-your-http-response-headers/#content-security-policy
    #
    #   - youtube-nocookie.com is used for YouTube embeds
    #
    content-security-policy = """\
      default-src 'self' 'unsafe-inline' \
      https://youtube-nocookie.com https://www.youtube-nocookie.com; \
      script-src 'self' 'unsafe-inline'; \
      img-src 'self' 'unsafe-inline' data: \
    """

    # https://scotthelme.co.uk/a-new-security-header-feature-policy/
    # https://scotthelme.co.uk/goodbye-feature-policy-and-hello-permissions-policy/
    permissions-policy = """\
      geolocation=(), \
      midi=(), \
      notifications=(), \
      push=(), \
      sync-xhr=(), \
      microphone=(), \
      camera=(), \
      magnetometer=(), \
      gyroscope=(), \
      vibrate=(),
      payment=() \
    """

    # https://scotthelme.co.uk/a-new-security-header-referrer-policy/
    referrer-policy = "no-referrer-when-downgrade"

{'fraction_non_alphanumeric': 0.17852577758841073, 'fraction_numerical': 0.0, 'mean_word_length': 2.397973950795948, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, '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': '5723085', 'n_tokens_mistral': 814, 'n_tokens_neox': 805, 'n_words': 114}