<commit_before><!--
/*
 * Copyright 2012 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.
 */
-->
<element name="g-page" attributes="nofit">
<link rel="components" href="g-component.html">
<template>
  <style>
    @host {
      height: 100%;
      display: block;
    }
  </style>
  <style id="pageSheet">
    html, body {
      height: 100%;
      margin: 0;
    }

    body {
      font-family: 'Helvetica Nue', 'Helvetica', Arial, 'open sans' sans-serif;
    }
  </style>
  <content></content>
</template>
<script>
  this.component({
    ready: function() {
      this.makePageFittable();
    },
    makePageFittable: function() {
      var sheet = document.querySelector('style[g-page]');
      if (!sheet) {
        sheet = this.$.pageSheet;
        sheet.setAttribute('g-page', '');
        sheet.removeAttribute('scoped');
        sheet.removeAttribute('id')
        var head = document.head;
        head.insertBefore(sheet, head.firstChild);
      }
      sheet.textContent += '\n' + this.node.tagName.toLowerCase() + ' {height: 100%;}\n';
    }
  });
</script>
</element><commit_msg>g-page: separate css so it can be included by extendors<commit_after><!--
/*
 * Copyright 2012 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.
 */
-->
<element name="g-page">
<link rel="components" href="g-component.html">
<link rel="stylesheet" href="css/g-page.css">
<template>
  <style id="pageSheet">
    html, body {
      height: 100%;
      margin: 0;
    }

    body {
      font-family: 'Helvetica Neue', Helvetica, Arial, 'open sans', sans-serif;
    }
  </style>
  <content></content>
</template>
<script>
  this.component({
    ready: function() {
      this.makePageFittable();
    },
    makePageFittable: function() {
      var sheet = document.querySelector('style[g-page]');
      if (!sheet) {
        sheet = this.$.pageSheet;
        sheet.setAttribute('g-page', '');
        sheet.removeAttribute('scoped');
        sheet.removeAttribute('id')
        var head = document.head;
        head.insertBefore(sheet, head.firstChild);
      }
    }
  });
</script>
</element>
{'fraction_non_alphanumeric': 0.15923009623797024, 'fraction_numerical': 0.009623797025371828, 'mean_word_length': 2.755336617405583, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 0, '>': 30, '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': '1823907', 'n_tokens_mistral': 741, 'n_tokens_neox': 720, 'n_words': 180}