<commit_before>const d = require('debug')('src:index')
const { app, BrowserWindow, ipcMain } = require('electron')
const { join } = require('path')
const { format } = require('url')
const init = require('./model')

let win

function createWindow() {
  let db

  win = new BrowserWindow({ width: 1024, height: 720 })

  win.loadURL(format({
    pathname: join(__dirname, '../views/index.html'),
    protocol: 'file:',
    slashes: true
  }))

  win.on('closed', () => {
    win = null
  })

  ipcMain.on('init', async (event, passphrase) => {
    try {
      d('Got init', passphrase)
      db = await init(passphrase)<commit_msg>Remove all graphical 'chrome' from the app window<commit_after>const d = require('debug')('src:index')
const { app, BrowserWindow, ipcMain } = require('electron')
const { join } = require('path')
const { format } = require('url')
const init = require('./model')

let win

function createWindow() {
  let db

  win = new BrowserWindow({ width: 1024, height: 720, frame: false })

  win.loadURL(format({
    pathname: join(__dirname, '../views/index.html'),
    protocol: 'file:',
    slashes: true
  }))

  win.on('closed', () => {
    win = null
  })

  ipcMain.on('init', async (event, passphrase) => {
    try {
      d('Got init', passphrase)
      db = await init(passphrase)
{'fraction_non_alphanumeric': 0.1743119266055046, 'fraction_numerical': 0.010703363914373088, 'mean_word_length': 3.609154929577465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5470388', 'n_tokens_mistral': 447, 'n_tokens_neox': 412, 'n_words': 112}