<commit_before>window.onload = function() {
  chrome.windows.getCurrent({}, function(thisWindow) {
    chrome.windows.update(thisWindow.id, { focused: true });
  });

  chrome.runtime.sendMessage({ command: 'get-session' }, function(session) {
    var startSession = document.getElementById('start-session');
    startSession.onclick = function() {
      chrome.runtime.sendMessage({ command: 'start-session' });
      chrome.tabs.getCurrent(function(tab) {
        chrome.tabs.remove(tab.id);
      });
    };

    var sessionTitle = document.getElementById('session-title');
    sessionTitle.innerText = session.title;

    var sessionSubtitle = document.getElementById('session-subtitle');
    sessionSubtitle.innerText = session.subtitle;

    var sessionAction = document.getElementById('session-action');
    sessionAction.innerText = session.action;

    if (session.focusNext) {
      startSession.className += ' focus';
    } else {
      startSession.className += ' break';
    }
  });
};<commit_msg>Remove redundant expire page self-removal code.<commit_after>window.onload = function() {
  chrome.windows.getCurrent({}, function(thisWindow) {
    chrome.windows.update(thisWindow.id, { focused: true });
  });

  chrome.runtime.sendMessage({ command: 'get-session' }, function(session) {
    var startSession = document.getElementById('start-session');
    startSession.onclick = function() {
      chrome.runtime.sendMessage({ command: 'start-session' });
    };

    var sessionTitle = document.getElementById('session-title');
    sessionTitle.innerText = session.title;

    var sessionSubtitle = document.getElementById('session-subtitle');
    sessionSubtitle.innerText = session.subtitle;

    var sessionAction = document.getElementById('session-action');
    sessionAction.innerText = session.action;

    if (session.focusNext) {
      startSession.className += ' focus';
    } else {
      startSession.className += ' break';
    }
  });
};
{'fraction_non_alphanumeric': 0.1400916963830871, 'fraction_numerical': 0.0, 'mean_word_length': 3.8977556109725686, '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': '3777740', 'n_tokens_mistral': 548, 'n_tokens_neox': 527, 'n_words': 89}