<commit_before>'use strict';

var hide_epics_checkbox = document.getElementById('toggle-cards'),
    epics_list =          document.getElementById('epics-list');


document.addEventListener('DOMContentLoaded', function() {
  chrome.storage.sync.get({ hideEpicCards: true }, function(items) {
    if (items.hideEpicCards) {
      hide_epics_checkbox.checked = true;
      toggle_epics_list(true);
    } else {
      toggle_epics_list(false);
    }
  });
});

document.getElementById('toggle-cards').addEventListener('change', function(e) {
  toggle_epics_list(e.target.checked);
  chrome.storage.sync.set({
    'hideEpicCards': e.target.checked
  });
});

function toggle_epics_list(show_it) {
  if (show_it) {
    chrome.storage.sync.get({ columnsToHide: '' }, function(items) {
      epics_list.value = items.columnsToHide;
    });
    epics_list.classList.remove('hidden');
  } else {
    epics_list.classList.add('hidden');
  }
}<commit_msg>fix silly bug where I was looking at columns instead of epics<commit_after>'use strict';

var hide_epics_checkbox = document.getElementById('toggle-cards'),
    epics_list =          document.getElementById('epics-list');


document.addEventListener('DOMContentLoaded', function() {
  chrome.storage.sync.get({ hideEpicCards: true }, function(items) {
    if (items.hideEpicCards) {
      hide_epics_checkbox.checked = true;
      toggle_epics_list(true);
    } else {
      toggle_epics_list(false);
    }
  });
});

document.getElementById('toggle-cards').addEventListener('change', function(e) {
  toggle_epics_list(e.target.checked);
  chrome.storage.sync.set({
    'hideEpicCards': e.target.checked
  });
});

function toggle_epics_list(show_it) {
  if (show_it) {
    chrome.storage.sync.get({ epicsToHide: '' }, function(items) {
      epics_list.value = items.epicsToHide;
    });
    epics_list.classList.remove('hidden');
  } else {
    epics_list.classList.add('hidden');
  }
}
{'fraction_non_alphanumeric': 0.14699792960662525, 'fraction_numerical': 0.0, 'mean_word_length': 4.14095744680851, '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': '6169765', 'n_tokens_mistral': 633, 'n_tokens_neox': 627, 'n_words': 87}