<commit_before>var firstMouseMove = false;

/**
 * send a message that the user has done something and we should close
   the screensaver
 */
var exitScreenSaver = function(e) {
  var ipcRenderer;

  // seems like you get a mousemove event even without moving the mouse, i'm
  // guessing to establish initial position/etc. anyway, we can skip that event
  if ( e.type.indexOf("mouse") !== -1 && firstMouseMove === false ) {
    firstMouseMove = true;
    return;
  }
  ipcRenderer = require('electron').ipcRenderer;
  ipcRenderer.send('stopScreenSaver');
};


var body = document.getElementsByTagName("body")[0];

var listenEvents = ["mousedown", "mousemove", "mousewheel", "keydown", "keyup", "keypress"];

for ( var i = 0; i < listenEvents.length; i++ ) {
  var name = listenEvents[i];
  body.addEventListener(name, exitScreenSaver, false);
}


window.hideCursor = function() {
  var cursorUrl = "url('data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==')";

  // waiting for a bit before hiding the cursor seems to help in windows
  // @see http://delphic.me.uk/controllingthecursor.html for cursor url idea
  document.getElementsByTagName('html')[0].style.cursor = cursorUrl + ", none !important";
};

setTimeout(window.hideCursor, 2500);<commit_msg>Remove unused saver window event checking<commit_after>window.hideCursor = function() {
  var cursorUrl = "url('data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==')";

  // waiting for a bit before hiding the cursor seems to help in windows
  // @see http://delphic.me.uk/controllingthecursor.html for cursor url idea
  document.getElementsByTagName('html')[0].style.cursor = cursorUrl + ", none !important";
};

setTimeout(window.hideCursor, 2500);
{'fraction_non_alphanumeric': 0.13016411997736277, 'fraction_numerical': 0.011884550084889643, 'mean_word_length': 4.815789473684211, 'pattern_counts': {'":': 0, '<': 4, '<?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': '5877734', 'n_tokens_mistral': 586, 'n_tokens_neox': 561, 'n_words': 146}