<commit_before><!--
@license
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->

<link rel="import" href="polymer-mini.html">

<link rel="import" href="src/features/standard/annotations.html">
<link rel="import" href="src/features/standard/events.html">
<link rel="import" href="src/features/standard/utils.html">
<link rel="import" href="src/features/standard/bind.html">
<link rel="import" href="src/features/standard/notify-path.html">

<link rel="import" href="src/layout.html">

<script>

  using('Base', function(Base) {

    Base.addFeature({

      registerFeatures: function() {
        this._prepMixins();
        this._prepExtends();
        this._prepConstructor();
        this._prepTemplate();
        this._prepBind();
        this._prepPublished();
        this._prepAnnotations();
        this._prepBindEffects();
        this._prepContent();
      },

      initFeatures: function() {
        this._poolContent();
        this._stampTemplate();
        if (this._template) {
          this._marshalIdNodes();
          this._marshalAnnotatedNodes();
          this._setupAnnotatedListeners();
          this._memoizeTemplateContent();
          this._finishStamping();
        }
        this._setupInstanceBindings();
        this._setupBindListeners();
        this._takeAttributes();
        this._installHostAttributes();
        this._listenListeners();
        this._listenKeyPresses();
        this._checkReady();
      }

    });

  });

</script>
<commit_msg>add note about _stampTemplate<commit_after><!--
@license
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->

<link rel="import" href="polymer-mini.html">

<link rel="import" href="src/features/standard/annotations.html">
<link rel="import" href="src/features/standard/events.html">
<link rel="import" href="src/features/standard/utils.html">
<link rel="import" href="src/features/standard/bind.html">
<link rel="import" href="src/features/standard/notify-path.html">

<link rel="import" href="src/layout.html">

<script>

  using('Base', function(Base) {

    Base.addFeature({

      registerFeatures: function() {
        this._prepMixins();
        this._prepExtends();
        this._prepConstructor();
        this._prepTemplate();
        this._prepBind();
        this._prepPublished();
        this._prepAnnotations();
        this._prepBindEffects();
        this._prepContent();
      },

      initFeatures: function() {
        this._poolContent();
        // TODO(sjmiles): must do this even if !this._template because it 
        // initializes _clients for ready feature(?).  Would be clearer if it 
        // was not factored this way.
        this._stampTemplate();
        if (this._template) {
          this._marshalTemplateContent();
          this._marshalIdNodes();
          this._marshalAnnotatedNodes();
          this._setupAnnotatedListeners();
          this._finishStamping();
        }
        this._setupInstanceBindings();
        this._setupBindListeners();
        this._takeAttributes();
        this._installHostAttributes();
        this._listenListeners();
        this._listenKeyPresses();
        this._checkReady();
      }

    });

  });

</script>

{'fraction_non_alphanumeric': 0.12812960235640647, 'fraction_numerical': 0.0019636720667648502, 'mean_word_length': 3.0386521308225967, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '7504637', 'n_tokens_mistral': 1160, 'n_tokens_neox': 1091, 'n_words': 273}