<commit_before><template lang="pug">
form(
  v-if="active"
  method="post"
  action="https://codepen.io/pen/define/"
  target="_blank"
  rel="noopener"
  class="hidden"
)
  input(
    type="hidden"
    name="data"
    :value="options"
  )
</template>

<script>
import Quasar from 'quasar'

const cssResources = [
  'https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons',
  `https://cdn.jsdelivr.net/npm/quasar@${Quasar.version}/dist/quasar.min.css`
].join(';')

const jsResources = [
  'https://cdn.jsdelivr.net/npm/vue@^2.0.0/dist/vue.js',
  `https://cdn.jsdelivr.net/npm/quasar@${Quasar.version}/dist/quasar.umd.min.js`
].join(';')

export default {
  name: 'Codepen',

  props: {
    title: String,
    slugifiedTitle: String
  },

  data: () => ({ active: false, parts: {} }),

  computed: {
    css () {
      return (this.parts.style || '')
        .replace(/(<style.*?>|<\/style>)/g, '')
        .trim()
    },

    cssPreprocessor () {
      const lang = /<style.*lang=["'](.*)["'].*>/
        .exec(this.parts.style || '')

      return lang ? lang[1] : 'none'
    },

    js () {
      const importsQ = /import\s+{([^}'\n]+)}\s+from\s+'quasar'/g<commit_msg>feat(docs): small addition to previous commit in regards to codepen creation<commit_after><template lang="pug">
form(
  v-if="active"
  method="post"
  action="https://codepen.io/pen/define/"
  target="_blank"
  rel="noopener"
  class="hidden"
)
  input(
    type="hidden"
    name="data"
    :value="options"
  )
</template>

<script>
import Quasar from 'quasar'

const cssResources = [
  'https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons',
  `https://cdn.jsdelivr.net/npm/quasar@${Quasar.version}/dist/quasar.min.css`
].join(';')

const jsResources = [
  'https://cdn.jsdelivr.net/npm/vue@2.6.12/dist/vue.js',
  `https://cdn.jsdelivr.net/npm/quasar@${Quasar.version}/dist/quasar.umd.min.js`
].join(';')

export default {
  name: 'Codepen',

  props: {
    title: String,
    slugifiedTitle: String
  },

  data: () => ({ active: false, parts: {} }),

  computed: {
    css () {
      return (this.parts.style || '')
        .replace(/(<style.*?>|<\/style>)/g, '')
        .trim()
    },

    cssPreprocessor () {
      const lang = /<style.*lang=["'](.*)["'].*>/
        .exec(this.parts.style || '')

      return lang ? lang[1] : 'none'
    },

    js () {
      const importsQ = /import\s+{([^}'\n]+)}\s+from\s+'quasar'/g
{'fraction_non_alphanumeric': 0.22655298416565164, 'fraction_numerical': 0.018270401948842874, 'mean_word_length': 3.086235489220564, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, 'https://': 10, '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': '947962', 'n_tokens_mistral': 1011, 'n_tokens_neox': 964, 'n_words': 131}