<commit_before>$(function() {
  var LIST_DOM_SELECTOR = "#speaker-list";
  var MENU_DOM_SELECTOR = "#presentation-select";

  var buildPresentations = function(
    presentations,
    listDomSelector,
    menuDomSelector
  ) {
    // dynamically build presentation list
    presentations.forEach(function(presi, index) {
      var specialCharRegex = /\W|_/g;
      var urlSlug = _.compact(
        presi.title
          .toLowerCase()
          .replace(specialCharRegex, " ")
          .split(" ")
      ).join("-");
      var listTemplate = `
        <section id="presentation-${index}" class="sponsors section-padding section-bord">
          <div class="container">
            <h5 class="tit tit-left">${presi.title}</h5>
            <div class="row">
              <div class="tit-center col-md-10 mb-100">
                <h6>${presi.name}</h6>
                <p>${presi.description}</p>
              </div>
            </div>
          </div>
        </section>
      `;
      $(listDomSelector).append(listTemplate);

      // dynamically build presentation menu
      var menuItemDomSelector = "presentation-menu-item";
      var menuItemTemplate = `
        <option class="${menuItemDomSelector}" value="${urlSlug}">
          ${presi.title}<commit_msg>fix: update section ids for menu to work<commit_after>$(function() {
  var LIST_DOM_SELECTOR = "#speaker-list";
  var MENU_DOM_SELECTOR = "#presentation-select";

  var buildPresentations = function(
    presentations,
    listDomSelector,
    menuDomSelector
  ) {
    // dynamically build presentation list
    presentations.forEach(function(presi) {
      var specialCharRegex = /\W|_/g;
      var urlSlug = _.compact(
        presi.title
          .toLowerCase()
          .replace(specialCharRegex, " ")
          .split(" ")
      ).join("-");
      var listTemplate = `
        <section id="${urlSlug}" class="sponsors section-padding section-bord">
          <div class="container">
            <h5 class="tit tit-left">${presi.title}</h5>
            <div class="row">
              <div class="tit-center col-md-10 mb-100">
                <h6>${presi.name}</h6>
                <p>${presi.description}</p>
              </div>
            </div>
          </div>
        </section>
      `;
      $(listDomSelector).append(listTemplate);

      // dynamically build presentation menu
      var menuItemDomSelector = "presentation-menu-item";
      var menuItemTemplate = `
        <option class="${menuItemDomSelector}" value="${urlSlug}">
          ${presi.title}
{'fraction_non_alphanumeric': 0.14207005116096025, 'fraction_numerical': 0.0070838252656434475, 'mean_word_length': 2.169576059850374, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '207078', 'n_tokens_mistral': 755, 'n_tokens_neox': 728, 'n_words': 141}