<commit_before><!DOCTYPE html>
<!--
Copyright 2013 The Toolkitchen Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
-->
<html>
  <head>
    <title>CustomElements Workbench</title>
    <meta charset="UTF-8">
    <script src="../custom-elements.js"></script>
  </head>
  <body>
    <x-foo>XFoo One</x-foo>
    <script>
      XFoo = document.register('x-foo', {
        prototype: Object.create(HTMLElement.prototype, {
          readyCallback: {
            value: function() {
              console.log('readyCallback:', this.textContent);
            }
          },
          foo: {
            value: function() {
              console.log('foo');
            }
          }
        })
      });
      window.addEventListener('load', function() {
        xfoo.foo();
      });
    </script>
    <x-foo id="xfoo">XFoo Two</x-foo>
  </body>
</html><commit_msg>must do work on WebComponentsReady not load<commit_after><!DOCTYPE html>
<!--
Copyright 2013 The Toolkitchen Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
-->
<html>
  <head>
    <title>CustomElements Workbench</title>
    <meta charset="UTF-8">
    <script src="../custom-elements.js"></script>
  </head>
  <body>
    <x-foo>XFoo One</x-foo>
    <script>
      XFoo = document.register('x-foo', {
        prototype: Object.create(HTMLElement.prototype, {
          readyCallback: {
            value: function() {
              console.log('readyCallback:', this.textContent);
            }
          },
          foo: {
            value: function() {
              console.log('foo');
            }
          }
        })
      });
      window.addEventListener('WebComponentsReady', function() {
        xfoo.foo();
      });
    </script>
    <x-foo id="xfoo">XFoo Two</x-foo>
  </body>
</html>
{'fraction_non_alphanumeric': 0.15015641293013557, 'fraction_numerical': 0.005213764337851929, 'mean_word_length': 2.012558869701727, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '1981250', 'n_tokens_mistral': 584, 'n_tokens_neox': 565, 'n_words': 133}