<commit_before>
<template id=snuggsi-header>
  <style>
    :root { border: 1px solid green; }
    hgroup { display: block; width: 100%; }
  </style>

  <hgroup>
    <h1><a href=/examples/index.html>snuggsi ツ</a></h1>
    <slot name=header><h2>try an example</h2></slot>
  </hgroup>
</template>

<script>
Element `header-group`

(class extends HTMLElement {

  static onwtf () {
    console.log ("WHATTT")
  }

  initialize () {
    console.log ('foo')
    const link = document.querySelector ('link[rel=import]')

    console.log (this.constructor.onwtf)
    link.onload = this.constructor.onwtf
    console.log (link.import.querySelector ('template'))
  }

})

var me = document.currentScript.ownerDocument;
var custom = me.querySelector('#snuggsi-header');
var container = document.querySelector('head');
container.appendChild(custom.cloneNode(true));
</script>

<commit_msg>Noel's convention of import naming<commit_after>
<template id=snuggsi-header>
  <style>
    :root { border: 1px solid green; }
    hgroup { display: block; width: 100%; }
  </style>

  <hgroup>
    <h1><a href=/examples/index.html>snuggsi ツ</a></h1>
    <slot name=header><h2>try an example</h2></slot>
  </hgroup>
</template>

<script>
Element `header-group`

(class extends HTMLElement {

  static onwtf () {
    console.log ("WHATTT")
  }

  initialize () {
    console.log ('foo')
    const tag = `header-group`
    const selector = `link[href='${tag}.html']`

    console.log (selector)

    const link = document.querySelector (selector)

    link.onload = this.constructor.onwtf
    console.log (link.import.querySelector ('template'))
  }

})

var me = document.currentScript.ownerDocument;
var custom = me.querySelector('#snuggsi-header');
var container = document.querySelector('head');
container.appendChild(custom.cloneNode(true));
</script>


{'fraction_non_alphanumeric': 0.15938864628820962, 'fraction_numerical': 0.008733624454148471, 'mean_word_length': 3.940700808625337, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, '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': '4907640', 'n_tokens_mistral': 636, 'n_tokens_neox': 620, 'n_words': 130}