<commit_before>const xjs   = require('extrajs')
const Award = require('../class/Award.class.js')

window.customElements.define('x-contactlink', require('./XContactLink.class.js'))
window.customElements.define('x-skill', require('./XSkill.class.js'))
window.customElements.define('x-position', require('./XPosition.class.js'))
window.customElements.define('x-city', require('./XCity.class.js'))
window.customElements.define('x-award', require('./XAward.class.js'))

let vctm_summary = {
  "dates"  : "<time>2011</time>&ndash;<time>2014</time>",
  "content": [
    "<span itemscope=\"\" itemtype=\"http://schema.org/EducationalOrganization\">",
      "<abbr class=\"c-Acro\" title=\"Virginia Council of Teachers of Mathematics\" itemprop=\"name\"><span class=\"c-Acro__First\">V</span>CTM</abbr>",
      " Conferences, annually statewide (<time datetime=\"PT40H\">10 hr each</time>)",
    "</span>"
  ]
}

// copied from `Resume.class.js`:
function _content(x) { return (xjs.Object.typeOf(x) === 'array') ? x.join('') : x }
function newAward(d) { return new Award(d.dates, _content(d.content)) }
$('#prof-dev > dl > dd:nth-of-type(1)').after(newAward(vctm_summary).view())
<commit_msg>use x-award CE for dynamic content<commit_after>
window.customElements.define('x-contactlink', require('./XContactLink.class.js'))
window.customElements.define('x-skill', require('./XSkill.class.js'))
window.customElements.define('x-position', require('./XPosition.class.js'))
window.customElements.define('x-city', require('./XCity.class.js'))
window.customElements.define('x-award', require('./XAward.class.js'))

// let vctm_summary = {
//   "dates"  : "<time>2011</time>&ndash;<time>2014</time>",
//   "content": [
//     "<span itemscope=\"\" itemtype=\"http://schema.org/EducationalOrganization\">",
//       "<abbr class=\"c-Acro\" title=\"Virginia Council of Teachers of Mathematics\" itemprop=\"name\"><span class=\"c-Acro__First\">V</span>CTM</abbr>",
//       " Conferences, annually statewide (<time datetime=\"PT40H\">10 hr each</time>)",
//     "</span>"
//   ]
// }

$('#prof-dev > dl > dd:nth-of-type(1)').after(`
  <x-award>
    <dates><time>2011</time>&ndash;<time>2014</time></dates>
    <text>
      <span itemscope="" itemtype="http://schema.org/EducationalOrganization">
        <abbr class="c-Acro" title="Virginia Council of Teachers of Mathematics" itemprop="name"><span class="c-Acro__First">V</span>CTM</abbr>
        Conferences, annually statewide (<time datetime="PT40H">10 hr each</time>)
      </span>
    </text>
  </x-award>
`)

{'fraction_non_alphanumeric': 0.2223968565815324, 'fraction_numerical': 0.01493123772102161, 'mean_word_length': 4.558951965065503, 'pattern_counts': {'":': 2, '<': 45, '<?xml version=': 0, '>': 49, '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': '3994810', 'n_tokens_mistral': 893, 'n_tokens_neox': 852, 'n_words': 132}