<commit_before><!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>vaadin-grid</title>

  <script src="../elements-demo-resources/ga.js"></script>
  <script src="../webcomponentsjs/webcomponents-lite.min.js"></script>
  <link rel="import" href="../polymer/polymer.html">
  <link rel="import" href="../iron-component-page/iron-component-page.html">
</head>

<body>
  <iron-component-page src="vaadin-grid.html"></iron-component-page>
</body>
</html><commit_msg>Filter out internal behaviors and elements<commit_after><!DOCTYPE html>
<html>

<head lang="en">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>vaadin-grid</title>

  <script src="../elements-demo-resources/ga.js"></script>
  <script src="../webcomponentsjs/webcomponents-lite.min.js"></script>
  <link rel="import" href="../polymer/polymer.html">
  <link rel="import" href="../iron-component-page/iron-component-page.html">
  <link rel="import" href="vaadin-grid.html">
</head>

<body>
  <vaadin-grid-docs></vaadin-grid-docs>
  <dom-module id="vaadin-grid-docs">
    <template>
      <iron-component-page id="docs" src="vaadin-grid.html" on-doc-elements-changed="_filterElements" on-doc-behaviors-changed="_filterBehaviors"></iron-component-page>
    </template>
    <script>
      document.addEventListener('WebComponentsReady', function() {
        Polymer({
          is: 'vaadin-grid-docs',

          _filterBehaviors: function(e) {
            this.$.docs.docBehaviors.forEach(function(beh, index) {
              // blacklist internal APIs
              if (/iron|Iron|TableScroll|vaadinGridTable/.test(beh.is)) {
                this.$.docs.splice('docBehaviors', index, 1);
              }
            }.bind(this));
          },

          _filterElements: function(e) {
            this.$.docs.docElements.forEach(function(el, index) {
              // whitelist public elements
              if (!/vaadin-grid$|column|filter|sorter/.test(el.is)) {
                this.$.docs.splice('docElements', index, 1);
              }
            }.bind(this));
          }
        });
      });
    </script>
  </dom-module>
</body>

</html>
{'fraction_non_alphanumeric': 0.1870567375886525, 'fraction_numerical': 0.0026595744680851063, 'mean_word_length': 2.945804195804196, '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': '2909358', 'n_tokens_mistral': 750, 'n_tokens_neox': 710, 'n_words': 105}