<commit_before>const { autoUpdater, dialog } = require('electron');
const { version } = require('./package');

const FEED_URL = 'https://hyperterm-updates.now.sh/update/osx';

module.exports = function AutoUpdater (rpc) {
  autoUpdater.on('error', (err, msg) => {
    dialog.showMessageBox({
      title: 'title',
      message: 'Auto updater error: ' + msg + ' (' + err.stack + ')',
      buttons: ['Ok']
    });
  });

  autoUpdater.setFeedURL(`${FEED_URL}/${version}`);

  autoUpdater.once('update-downloaded', () => {
    rpc.emit('update-available');
  });

  rpc.once('quit-and-install', () => {
    autoUpdater.quitAndInstall();
  });

  autoUpdater.checkForUpdates();
};<commit_msg>auto-updater: emit both release name and notes<commit_after>const { autoUpdater, dialog } = require('electron');
const { version } = require('./package');

const FEED_URL = 'https://hyperterm-updates.now.sh/update/osx';

module.exports = function AutoUpdater (rpc) {
  autoUpdater.on('error', (err, msg) => {
    dialog.showMessageBox({
      title: 'title',
      message: 'Auto updater error: ' + msg + ' (' + err.stack + ')',
      buttons: ['Ok']
    });
  });

  autoUpdater.setFeedURL(`${FEED_URL}/${version}`);

  autoUpdater.once('update-downloaded', (ev, releaseNotes, releaseName) => {
    rpc.emit('update available', { releaseNotes, releaseName });
  });

  rpc.once('quit-and-install', () => {
    autoUpdater.quitAndInstall();
  });

  autoUpdater.checkForUpdates();
};
{'fraction_non_alphanumeric': 0.19891378139850646, 'fraction_numerical': 0.0, 'mean_word_length': 3.9133333333333336, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7341781', 'n_tokens_mistral': 503, 'n_tokens_neox': 499, 'n_words': 80}