<commit_before>'use strict';

// Expand/collapse details.
$(function() {
  function expandCollapseDetails() {
    var featureDetailsEls = window.document.getElementsByClassName('feature-details');
    var scenarioDetailsEls = window.document.getElementsByClassName('scenario-details');
    [].forEach.call(featureDetailsEls, function(el) {
      el.classList.toggle('collapse');
    });
    [].forEach.call(scenarioDetailsEls, function(el) {
      el.classList.toggle('collapse');
    });
  }

  var expandCollapseDetailsEl = window.document.getElementById('expand-collapse-details');
  expandCollapseDetailsEl.addEventListener('click', expandCollapseDetails);
});


// Expand/collapse tags.
$(function() {
  function expandCollapseTags() {
    var tagEls = window.document.getElementsByClassName('tags');
    [].forEach.call(tagEls, function(el) {
      el.classList.toggle('collapse');
    });
  }

  var expandCollapseTagsEl = window.document.getElementById('expand-collapse-tags');
  expandCollapseTagsEl.addEventListener('click', expandCollapseTags);<commit_msg>Switch from toggling visibility to switching on stored state in preparation for allow individual scenarios to toggle.<commit_after>'use strict';

// Expand/collapse details.
$(function() {
  var doExpand = 1

  function expandCollapseDetails() {
    var featureDetailsEls = window.document.getElementsByClassName('feature-details');
    var scenarioDetailsEls = window.document.getElementsByClassName('scenario-details');

    [].forEach.call(featureDetailsEls, function(el) {
      if (doExpand) {
        el.classList.remove('collapse');
      } else {
        el.classList.add('collapse');
      }
    });
    [].forEach.call(scenarioDetailsEls, function(el) {
      if (doExpand) {
        el.classList.remove('collapse');
      } else {
        el.classList.add('collapse');
      }
    });

    // Toggle expansion on alternative executions.
    doExpand = doExpand ^ 1;
  }

  var expandCollapseDetailsEl = window.document.getElementById('expand-collapse-details');
  expandCollapseDetailsEl.addEventListener('click', expandCollapseDetails);
});


// Expand/collapse tags.
$(function() {
  function expandCollapseTags() {
    var tagEls = window.document.getElementsByClassName('tags');
    [].forEach.call(tagEls, function(el) {
      el.classList.toggle('collapse');
    });
  }

  var expandCollapseTagsEl = window.document.getElementById('expand-collapse-tags');
  expandCollapseTagsEl.addEventListener('click', expandCollapseTags);
{'fraction_non_alphanumeric': 0.1346613545816733, 'fraction_numerical': 0.0007968127490039841, 'mean_word_length': 4.353944562899787, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '898163', 'n_tokens_mistral': 704, 'n_tokens_neox': 696, 'n_words': 114}