<commit_before>const defaultConfig = {
  isDev: true,
  minFirefoxVersion: 50,
  experimentsURL: '/api/experiments.json',
  usageCountsURL:
    'https://analysis-output.telemetry.mozilla.org/testpilot/data/installation-counts/latest.json',
  ravenPublicDSN:
    'https://5ceef9a20a6e4cdd93cc9a935be78c73@sentry.prod.mozaws.net/169',
  addonPath: '/static/addon/addon.xpi',
  // Main production host
  prodHost: 'testpilot.firefox.com',
  // Hosts used for development purposes
  devHosts: [
    'example.com:8000',
    'testpilot.dev.mozaws.net',
    'testpilot-l10n.dev.mozaws.net',
    'testpilot.stage.mozaws.net'
  ],
  // Dev hosts for which no access to mozAddonManager is expected
  nonAddonManagerDevHosts: [
    'testpilot-l10n.dev.mozaws.net'
  ]
};

const hostname = typeof window === 'undefined' ? '' : window.location.hostname;

const hostConfig = {
  'testpilot.firefox.com': {
    isDev: false,
    ravenPublicDSN:
      'https://51e23d7263e348a7a3b90a5357c61cb2@sentry.prod.mozaws.net/168',
    addonPath: '/files/@testpilot-addon/latest'
  },
  'testpilot.stage.mozaws.net': {
    isDev: false,
    ravenPublicDSN:
      'https://5aa2b40919a64763b32e1bca6e40b322@sentry.prod.mozaws.net/171',
    addonPath: '/files/@testpilot-addon/latest'
  },
  'testpilot.dev.mozaws.net': {
    addonPath: '/files/@testpilot-addon/latest'
  }
};

export default Object.assign({}, defaultConfig, hostConfig[hostname] || {});<commit_msg>Switch dev & stage to use local unsigned build of addon (#2838)<commit_after>const defaultConfig = {
  isDev: true,
  minFirefoxVersion: 50,
  experimentsURL: '/api/experiments.json',
  usageCountsURL:
    'https://analysis-output.telemetry.mozilla.org/testpilot/data/installation-counts/latest.json',
  ravenPublicDSN:
    'https://5ceef9a20a6e4cdd93cc9a935be78c73@sentry.prod.mozaws.net/169',
  addonPath: '/static/addon/addon.xpi',
  // Main production host
  prodHost: 'testpilot.firefox.com',
  // Hosts used for development purposes
  devHosts: [
    'example.com:8000',
    'testpilot.dev.mozaws.net',
    'testpilot-l10n.dev.mozaws.net',
    'testpilot.stage.mozaws.net'
  ],
  // Dev hosts for which no access to mozAddonManager is expected
  nonAddonManagerDevHosts: [
    'testpilot-l10n.dev.mozaws.net'
  ]
};

const hostname = typeof window === 'undefined' ? '' : window.location.hostname;

const hostConfig = {
  'testpilot.firefox.com': {
    isDev: false,
    ravenPublicDSN:
      'https://51e23d7263e348a7a3b90a5357c61cb2@sentry.prod.mozaws.net/168',
    addonPath: '/files/@testpilot-addon/latest'
  },
  'testpilot.stage.mozaws.net': {
    isDev: false,
    ravenPublicDSN:
      'https://5aa2b40919a64763b32e1bca6e40b322@sentry.prod.mozaws.net/171'
  }
};

export default Object.assign({}, defaultConfig, hostConfig[hostname] || {});
{'fraction_non_alphanumeric': 0.14326647564469913, 'fraction_numerical': 0.05730659025787966, 'mean_word_length': 3.969750889679715, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '783944', 'n_tokens_mistral': 1180, 'n_tokens_neox': 1078, 'n_words': 147}