<commit_before>const path = require('path')
const Tray = require('electron').Tray

let tray = null

const syncsInProgress = new Map()

const displaySyncingIcon = () => {
  tray.setImage(path.join(__dirname, '../icons/syncing20.png'))
}

const displaySyncCompleteIcon = () => {
  tray.setImage(path.join(__dirname, '../icons/sync-complete20.png'))
}

module.exports = {
  init: () => {
    tray = new Tray(path.join(__dirname, '../icons/sync-complete20.png'))
  },

  tray: tray,

  setSyncing: (repo) => {<commit_msg>hack, handle uninitialized tray for tests<commit_after>const path = require('path')
const Tray = require('electron').Tray

let tray = null

const syncsInProgress = new Map()

const displaySyncingIcon = () => {
  tray ? tray.setImage(path.join(__dirname, '../icons/syncing20.png')) : ''
}

const displaySyncCompleteIcon = () => {
  tray ? tray.setImage(path.join(__dirname, '../icons/sync-complete20.png')) : ''
}

module.exports = {
  init: () => {
    tray = new Tray(path.join(__dirname, '../icons/sync-complete20.png'))
  },

  tray: tray,

  setSyncing: (repo) => {
{'fraction_non_alphanumeric': 0.1832412523020258, 'fraction_numerical': 0.011049723756906077, 'mean_word_length': 4.079439252336448, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6361721', 'n_tokens_mistral': 373, 'n_tokens_neox': 369, 'n_words': 69}