<commit_before>import * as TokenStore from '../shared-process/token-store'
import { UsersStore } from './users-store'
import { User } from '../models/user'
import { Account } from '../models/account'
import { Database } from './database'
import { RepositoriesStore } from './repositories-store'
import { Repository, IRepository } from '../models/repository'
import { register, broadcastUpdate as broadcastUpdate_ } from './communication'
import {
  IAddRepositoriesAction,
  IUpdateGitHubRepositoryAction,
  IRemoveRepositoriesAction,
  IAddUserAction,
  IUpdateRepositoryMissingAction,
  IUpdateRepositoryPathAction,
} from '../lib/dispatcher'
import { API } from '../lib/api'
import { reportError } from '../lib/exception-reporting'
import { getVersion } from '../ui/lib/app-proxy'

import { getLogger } from '../lib/logging/renderer'

process.on('uncaughtException', (error: Error) => {

  getLogger().error('Uncaught exception on shared process', error)<commit_msg>cleanup<commit_after>import * as TokenStore from '../shared-process/token-store'
import { UsersStore } from './users-store'
import { Account } from '../models/account'
import { Database } from './database'
import { RepositoriesStore } from './repositories-store'
import { Repository, IRepository } from '../models/repository'
import { register, broadcastUpdate as broadcastUpdate_ } from './communication'
import {
  IAddRepositoriesAction,
  IUpdateGitHubRepositoryAction,
  IRemoveRepositoriesAction,
  IAddUserAction,
  IUpdateRepositoryMissingAction,
  IUpdateRepositoryPathAction,
} from '../lib/dispatcher'
import { API } from '../lib/api'
import { reportError } from '../lib/exception-reporting'
import { getVersion } from '../ui/lib/app-proxy'

import { getLogger } from '../lib/logging/renderer'

process.on('uncaughtException', (error: Error) => {

  getLogger().error('Uncaught exception on shared process', error)
{'fraction_non_alphanumeric': 0.13621964097148892, 'fraction_numerical': 0.0, 'mean_word_length': 4.795107033639144, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6791393', 'n_tokens_mistral': 528, 'n_tokens_neox': 520, 'n_words': 137}