<commit_before><!doctype html>
<!--
@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
-->
<html>
<head>
  <meta charset="utf-8">
  <script src="../../../web-component-tester/browser.js"></script>
  <script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
  <script>
    window.origOwnProps = Object.getOwnPropertyNames(window).reduce(function(props, prop) {
      return props[prop] = true && props;
    }, {});
  </script>
  <link rel="import" href="../../polymer.html">
<body>

<script>

suite('globals', function() {

  var expected = {
    origOwnProps: true,

    // Test harness
    a11ySuite: true,
    assert: true,
    expect: true,
    run: true,

    // Polymer
    Polymer: true,
    currentImport: true
  };

  test('check global leakage', function() {
    var newProps = Object.getOwnPropertyNames(window).filter(function(prop) {
      return !origOwnProps[prop] && !expected[prop];
    });
    assert.equal(newProps.length, 0, 'new globals added: \n' + newProps.sort().join('\n'));
  });

});

</script>

</body>
</html>
<commit_msg>Fix global leak test. Necessary due to changes to test harness.<commit_after><!doctype html>
<!--
@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
-->
<html>
<head>
  <meta charset="utf-8">
  <script src="../../../web-component-tester/browser.js"></script>
  <script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
  <script>
    window.origOwnProps = Object.getOwnPropertyNames(window).reduce(function(props, prop) {
      return props[prop] = true && props;
    }, {});
  </script>
  <link rel="import" href="../../polymer.html">
<body>

<script>

suite('globals', function() {

  var expected = {
    origOwnProps: true,

    // Test harness
    a11ySuite: true,
    assert: true,
    expect: true,
    run: true,
    fixture: true,
    replace: true,
    stub: true,

    // Polymer
    Polymer: true,
    currentImport: true
  };

  test('check global leakage', function() {
    var newProps = Object.getOwnPropertyNames(window).filter(function(prop) {
      return !origOwnProps[prop] && !expected[prop];
    });
    assert.equal(newProps.length, 0, 'new globals added: \n' + newProps.sort().join('\n'));
  });

});

</script>

</body>
</html>

{'fraction_non_alphanumeric': 0.15306122448979592, 'fraction_numerical': 0.00510204081632653, 'mean_word_length': 3.4750356633380886, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '2189696', 'n_tokens_mistral': 992, 'n_tokens_neox': 941, 'n_words': 280}