<commit_before>import path from 'path'
import os from 'os'
import fs from 'fs'

const app = require('app')

const isProduction = process.env.NODE_ENV === 'production'
const IPFS_PATH_FILE = app.getDataPath() + '/ipfs-electron-app-node-path'

const trayIcon = () => {
  if (os.platform() !== 'darwin') {
    return path.resolve(__dirname, '../node_modules/ipfs-logo/ipfs-logo-256-ice.png')
  }

  return path.resolve(__dirname, '../node_modules/ipfs-logo/platform-icons/osx-menu-bar.png')
}

const menuBar = {
  dir: __dirname,
  width: 300,
  height: 400,
  index: isProduction
    ? `file://${__dirname}/menubar.html`
    : 'http://localhost:3000/menubar.html',
  icon: trayIcon(),
  'always-on-top': !isProduction,
  preloadWindow: true,
  resizable: false,
  'web-preferences': {
    'web-security': false
  }
}

const window = {
  icon: path.resolve(__dirname, '../node_modules/ipfs-logo/ipfs-logo-256-ice.png'),
  'auto-hide-menu-bar': true,
  width: 800,
  height: 600,
  'web-preferences': {
    'web-security': false
  }
}

const ipfsPath = () => {
  let pathIPFS
  try {
    pathIPFS = fs.readFileSync(IPFS_PATH_FILE, 'utf-8')
  } catch (e) {<commit_msg>Always be on top<commit_after>import path from 'path'
import os from 'os'
import fs from 'fs'

const app = require('app')

const isProduction = process.env.NODE_ENV === 'production'
const IPFS_PATH_FILE = app.getDataPath() + '/ipfs-electron-app-node-path'

const trayIcon = () => {
  if (os.platform() !== 'darwin') {
    return path.resolve(__dirname, '../node_modules/ipfs-logo/ipfs-logo-256-ice.png')
  }

  return path.resolve(__dirname, '../node_modules/ipfs-logo/platform-icons/osx-menu-bar.png')
}

const menuBar = {
  dir: __dirname,
  width: 300,
  height: 400,
  index: isProduction
    ? `file://${__dirname}/menubar.html`
    : 'http://localhost:3000/menubar.html',
  icon: trayIcon(),
  'always-on-top': true,
  preloadWindow: true,
  resizable: false,
  'web-preferences': {
    'web-security': false
  }
}

const window = {
  icon: path.resolve(__dirname, '../node_modules/ipfs-logo/ipfs-logo-256-ice.png'),
  'auto-hide-menu-bar': true,
  width: 800,
  height: 600,
  'web-preferences': {
    'web-security': false
  }
}

const ipfsPath = () => {
  let pathIPFS
  try {
    pathIPFS = fs.readFileSync(IPFS_PATH_FILE, 'utf-8')
  } catch (e) {
{'fraction_non_alphanumeric': 0.17456896551724138, 'fraction_numerical': 0.019827586206896553, 'mean_word_length': 3.6051587301587302, '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': '2521143', 'n_tokens_mistral': 906, 'n_tokens_neox': 859, 'n_words': 165}