<commit_before><!DOCTYPE html>
<html>
	<head>
		<title></title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<script src="../../Components/components-polyfill.js" export="components"></script>
	</head>
	<body>
    
		<x-element></x-element>	
    
    <hr/>
    
    <x-subelement></x-subelement>
    
    <hr/>
    
		<script>
      //
      // register
      //
			var proto = components.CustomDOMElements.generatePrototype("div", {
				orangate: function() {
					this.style.background = "orange";
				}
			});
			//
			var template = document.createElement("template");
			template.content.appendChild(document.createTextNode("x-element"));
			//
			XElement = document.register("x-element", {
				prototype: proto,
				template: template,
        lifecycle: {
          created: function(inShadowRoot, inKey) {
            console.log("x-element created", this.is, inShadowRoot, inKey);
          },
          key: 42
        }
			});
			//
      // imperative creation
      //
			var impElt = new XElement();
			document.body.appendChild(impElt);
			impElt.orangate();
			//
      // declarative creation
      //
			var decElt = document.querySelector("[is=x-element]");
			decElt.orangate();
      //
      // subclass
      //
      var proto = components.CustomDOMElements.generatePrototype("x-element", {});
      //
			var template = document.createElement("template");
			template.content.appendChild(document.createTextNode("x-subelement"));
      //
			XSubElement = document.register("x-subelement", {
				prototype: proto,
				template: template,
        lifecycle: {
          created: function(inShadowRoot, inKey) {
            console.log("x-subelement created", this.is, inShadowRoot, inKey);
          }
        }
			});
      //
      var sub = document.querySelector("[is=x-subelement]");
      sub.orangate();
		</script>
	</body>
</html><commit_msg>evolve smokeTest<commit_after><!DOCTYPE html>
<html>
<head>
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <script src="../../Components/components-polyfill.js" export="components" shimShadow></script>
  <style>
    shadow-root {
      color: silver !important;
      background-color: white !important;
      border: 1px dotted silver !important;
    }
  </style>
</head>
<body>

  <template id="x-element">
    x-element
    <content></content>
  </template>
  <x-element></x-element>

  <hr/>

<!--  <x-subelement></x-subelement>-->

  <hr/>

  <script>
    //
    // register
    //
    var proto = components.CustomDOMElements.generatePrototype("div", {
      orangate: function() {
        this.style.background = "orange";
      }
    });
    //
    XElement = document.register("x-element", {
      prototype: proto,
      template: document.querySelector("template#x-element"),
      lifecycle: {
        created: function(inShadowRoot, inKey) {
          console.log("x-element created", this.is, inShadowRoot, inKey);
        },
        key: 42
      }
    });
    //
    // imperative creation
    //
    var imperative = function() {
      var impElt = new XElement();
      document.body.appendChild(impElt);
      impElt.orangate();
    };
    //imperative();
      //
      // declarative creation
      //
    var declarative = function() {
      var decElt = document.querySelector("[is=x-element]");
      decElt.orangate();
    };
    declarative();
    //
    // subclass
    //
    var subclass = function() {
      var proto = components.CustomDOMElements.generatePrototype("x-element", {});
      //
      var template = document.createElement("template");
      template.content.appendChild(document.createTextNode("x-subelement"));
      //
      XSubElement = document.register("x-subelement", {
        prototype: proto,
        template: template,
        lifecycle: {
          created: function(inShadowRoot, inKey) {
            console.log("x-subelement created", this.is, inShadowRoot, inKey);
          }
        }
      });
      //
      var sub = document.querySelector("[is=x-subelement]");
      sub.orangate();
    };
    //subclass();
    //
  </script>
</body>
</html>
{'fraction_non_alphanumeric': 0.1606928073129661, 'fraction_numerical': 0.0016839066634592255, 'mean_word_length': 2.276595744680851, 'pattern_counts': {'":': 0, '<': 50, '<?xml version=': 0, '>': 50, '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': '3822731', 'n_tokens_mistral': 1348, 'n_tokens_neox': 1268, 'n_words': 212}