<commit_before>import { createSimpleFunctional } from '../../util/helpers'

const Col = {
  functional: true,

  render: (h, { data, children }) => {
    data.staticClass = data.staticClass ? `col ${data.staticClass}` : 'col'
    data.staticClass += ` ${Object.keys(data.attrs).join(' ')}`
    delete data.attrs

    return h('div', data, children)
  }
}

const Layout = {
  functional: true,

  render: (h, { data, children }) => {
    data.staticClass = data.staticClass ? `layout ${data.staticClass}` : 'layout'
    if (data.attrs) {
      data.staticClass += ` ${Object.keys(data.attrs).join(' ')}`
      delete data.attrs
    }

    return h('div', data, children)
  }
}

const Container = {
  functional: true,

  render (h, { data, children }) {
    let staticClass = data.staticClass ? `container ${data.staticClass}` : 'container'

    if (data.attrs && typeof data.attrs.fluid !== 'undefined') {
      staticClass += ' container--fluid'
      data.attrs.fluid = undefined
    }

    data.staticClass = staticClass

    return h('div', data, children)
  }
}

const Content = {
  functional: true,

  props: {
    noScroll: Boolean
  },

  render (h, { props, data, children }) {
    data.staticClass = data.staticClass ? `content ${data.staticClass}` : 'content'

    if (props.noScroll) data.staticClass += ' content--no-scroll-y'

    return h('div', data, children)
  }
}

const Main = {
  functional: true,

  props: {
    row: Boolean
  },

  render (h, { props, data, children }) {
    if (props.row) {
      data.staticClass = data.staticClass ? `row ${data.staticClass}` : 'row'
    }

    return h('main', data, children)
  }
}

const ColSpacer = createSimpleFunctional('col--spacer')
const Spacer = createSimpleFunctional('spacer')

export default {
  Col,
  ColSpacer,
  Container,
  Content,<commit_msg>moved content back to simple functional<commit_after>import { createSimpleFunctional } from '../../util/helpers'

const Col = {
  functional: true,

  render: (h, { data, children }) => {
    data.staticClass = data.staticClass ? `col ${data.staticClass}` : 'col'
    data.staticClass += ` ${Object.keys(data.attrs).join(' ')}`
    delete data.attrs

    return h('div', data, children)
  }
}

const Layout = {
  functional: true,

  render: (h, { data, children }) => {
    data.staticClass = data.staticClass ? `layout ${data.staticClass}` : 'layout'
    if (data.attrs) {
      data.staticClass += ` ${Object.keys(data.attrs).join(' ')}`
      delete data.attrs
    }

    return h('div', data, children)
  }
}

const Container = {
  functional: true,

  render (h, { data, children }) {
    let staticClass = data.staticClass ? `container ${data.staticClass}` : 'container'

    if (data.attrs && typeof data.attrs.fluid !== 'undefined') {
      staticClass += ' container--fluid'
      data.attrs.fluid = undefined
    }

    data.staticClass = staticClass

    return h('div', data, children)
  }
}

const Main = {
  functional: true,

  props: {
    row: Boolean
  },

  render (h, { props, data, children }) {
    if (props.row) {
      data.staticClass = data.staticClass ? `row ${data.staticClass}` : 'row'
    }

    return h('main', data, children)
  }
}

const ColSpacer = createSimpleFunctional('col--spacer')
const Spacer = createSimpleFunctional('spacer')
const Content = createSimpleFunctional('content')

export default {
  Col,
  ColSpacer,
  Container,
  Content,
{'fraction_non_alphanumeric': 0.1576166715585559, 'fraction_numerical': 0.0, 'mean_word_length': 3.120918984280532, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3075168', 'n_tokens_mistral': 1109, 'n_tokens_neox': 1089, 'n_words': 256}