<commit_before>const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;

let mainWindow = null;

function createWindow() {
  // We want kiosk mode. Kiosk mode eg: https://developer.apple.com/library/mac/technotes/tn2062/_index.html
  // mainWindow = new BrowserWindow({
  //   kiosk: true,
  //   toolbar: false,
  //   title: 'Rebecca',
  //   frame: false
  // });

  // We set fullscreen for dev only
  mainWindow = new BrowserWindow({
    fullscreen: true,
    toolbar: false,
    title: 'Rebecca',
    frame: false
  });

  // Load index.html of the app
  mainWindow.loadURL(`file://${__dirname}/www/index.html`);

  // To open the devTools
  mainWindow.webContents.openDevTools();

  mainWindow.on('closed', function() {
    // Dereference the window object, usually you would store windows
    // in an array if your app supports multi windows, this is the time
    // when you should delete the corresponding element
    mainWindow = null;
  });
}

app.on('ready', createWindow);

app.on('window-all-closed', function() {
  // On OS X it is common for applications and their menu bar
  // to stay active until the user quits explicitly with Cmd + Q
  if(process.platform !== 'darwin') {
    app.quit();
  }
});

app.on('activate', function() {<commit_msg>Change default background colour to be black<commit_after>const electron = require('electron');
const app = electron.app;
const BrowserWindow = electron.BrowserWindow;

let mainWindow = null;

function createWindow() {
  // We want kiosk mode. Kiosk mode eg: https://developer.apple.com/library/mac/technotes/tn2062/_index.html
  // mainWindow = new BrowserWindow({
  //   kiosk: true,
  //   toolbar: false,
  //   title: 'Rebecca',
  //   frame: false
  // });

  // We set fullscreen for dev only
  mainWindow = new BrowserWindow({
    fullscreen: true,
    toolbar: false,
    title: 'Rebecca',
    frame: false,
    backgroundColor: '#000'
  });

  // Load index.html of the app
  mainWindow.loadURL(`file://${__dirname}/www/index.html`);

  // To open the devTools
  mainWindow.webContents.openDevTools();

  mainWindow.on('closed', function() {
    // Dereference the window object, usually you would store windows
    // in an array if your app supports multi windows, this is the time
    // when you should delete the corresponding element
    mainWindow = null;
  });
}

app.on('ready', createWindow);

app.on('window-all-closed', function() {
  // On OS X it is common for applications and their menu bar
  // to stay active until the user quits explicitly with Cmd + Q
  if(process.platform !== 'darwin') {
    app.quit();
  }
});

app.on('activate', function() {
{'fraction_non_alphanumeric': 0.13038632986627044, 'fraction_numerical': 0.004086181277860327, 'mean_word_length': 3.214397496087637, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '5332495', 'n_tokens_mistral': 830, 'n_tokens_neox': 799, 'n_words': 260}