<commit_before>/* global HTMLElement CustomEvent Event */
(function () {
  // function to create template-element from template tag on the fly
  let makeTemplate = require('./make-template')
  let template = makeTemplate`<style>
      :host{
          display: inline-block;
          flex: 0 1 auto;
      }
      :host(:not([flexible])){
          box-sizing: border-box;
          width: 100%;
          min-height: 100vh;
      }
      :host([flexible]){
          margin-left: 50%;
          transform: translateX(-50%);
      }
    </style>
    <slot></slot>
  `

  class PageSection extends HTMLElement {
    constructor () {
      // If you define a ctor, always call super() first!
      // This is specific to CE and required by the spec.
      super()
      // Attach a shadow root to the element.
      var shadowRoot = this.attachShadow({mode: 'open'})
      // check if polyfill is used
      if (typeof ShadyCSS !== 'undefined') {
        ShadyCSS.prepareTemplate(template, 'page-section') // eslint-disable-line no-undef
        // apply css polyfill
        ShadyCSS.styleElement(this) // eslint-disable-line no-undef
      }<commit_msg>simplify css and removing need for flexible parameter<commit_after>/* global HTMLElement CustomEvent Event */
(function () {
  // function to create template-element from template tag on the fly
  let makeTemplate = require('./make-template')
  let template = makeTemplate`<style>
      :host{
          display: inline-block;
          flex: 0 1 auto;
          box-sizing: border-box;
          width: 100%;
          min-height: 100vh;
          align-self: center;
      }
    </style>
    <slot></slot>
  `

  class PageSection extends HTMLElement {
    constructor () {
      // If you define a ctor, always call super() first!
      // This is specific to CE and required by the spec.
      super()
      // Attach a shadow root to the element.
      var shadowRoot = this.attachShadow({mode: 'open'})
      // check if polyfill is used
      if (typeof ShadyCSS !== 'undefined') {
        ShadyCSS.prepareTemplate(template, 'page-section') // eslint-disable-line no-undef
        // apply css polyfill
        ShadyCSS.styleElement(this) // eslint-disable-line no-undef
      }
{'fraction_non_alphanumeric': 0.1143367574810183, 'fraction_numerical': 0.008932559178204555, 'mean_word_length': 2.223021582733813, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5482021', 'n_tokens_mistral': 649, 'n_tokens_neox': 626, 'n_words': 199}