<commit_before>import EventEmitter from 'events';
import keyMirror from 'keymirror';
import dialog from 'dialog';
import shell from 'shell';

import manifest from '../../../package.json';
import AutoUpdater from '../components/auto-updater';
import platform from '../utils/platform';
import prefs from '../utils/prefs';

const STATES = keyMirror({
  IDLE: null,
  UPDATE_CHECKING: null,
  UPDATE_AVAILABLE: null,
  UPDATE_DOWNLOADED: null
});

const IGNORED_ERRORS = [
  'The request timed out.',
  'The network connection was lost.',
  'Se ha agotado el tiempo de espera.',
  'An SSL error has occurred and a secure connection to the server cannot be made.',
  'Update download failed',
  'getaddrinfo EAI_AGAIN',
  'getaddrinfo ENOTFOUND',
  'connect ETIMEDOUT'
];

class AutoUpdateManager extends EventEmitter {

  constructor(manifest, options, mainWindowManager) {
    super();

    this.manifest = manifest;
    this.options = options;
    this.mainWindowManager = mainWindowManager;

    this.enabled = !this.options.mas && prefs.get('updates-auto-check');
    this.state = STATES.IDLE;
    this.states = STATES;

    this.latestVersion = null;
    this.latestDownloadUrl = null;
  }<commit_msg>Add another ignored error message (aum)<commit_after>import EventEmitter from 'events';
import keyMirror from 'keymirror';
import dialog from 'dialog';
import shell from 'shell';

import manifest from '../../../package.json';
import AutoUpdater from '../components/auto-updater';
import platform from '../utils/platform';
import prefs from '../utils/prefs';

const STATES = keyMirror({
  IDLE: null,
  UPDATE_CHECKING: null,
  UPDATE_AVAILABLE: null,
  UPDATE_DOWNLOADED: null
});

const IGNORED_ERRORS = [
  'The request timed out.',
  'The network connection was lost.',
  'Se ha agotado el tiempo de espera.',
  'An SSL error has occurred and a secure connection to the server cannot be made.',
  'System.Net.WebException: The request was aborted: The connection was closed unexpectedly.',
  'Update download failed',
  'getaddrinfo EAI_AGAIN',
  'getaddrinfo ENOTFOUND',
  'connect ETIMEDOUT'
];

class AutoUpdateManager extends EventEmitter {

  constructor(manifest, options, mainWindowManager) {
    super();

    this.manifest = manifest;
    this.options = options;
    this.mainWindowManager = mainWindowManager;

    this.enabled = !this.options.mas && prefs.get('updates-auto-check');
    this.state = STATES.IDLE;
    this.states = STATES;

    this.latestVersion = null;
    this.latestDownloadUrl = null;
  }
{'fraction_non_alphanumeric': 0.11564356435643565, 'fraction_numerical': 0.0, 'mean_word_length': 4.062124248496994, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6883463', 'n_tokens_mistral': 778, 'n_tokens_neox': 746, 'n_words': 237}