<commit_before>import Vue from 'vue/dist/vue.esm'
import ElementUI from 'element-ui'
import locale from 'element-ui/lib/locale/lang/en'
import Numeral from 'numeral'
import * as Sentry from '@sentry/browser'
import * as Integrations from '@sentry/integrations'
import 'core-js/stable'
import 'regenerator-runtime/runtime'

import router from '../router/index.js.erb'
import store from '../store/index'

// Issue https://github.com/epimorphics/ukhpi/issues/169
// Add fix for IE Edge
import '../lib/ie-d3-fix'

// Use Element.IO
Vue.use(ElementUI, { locale })

// locale settings
Numeral.register('locale', 'gb', {
  delimiters: {
    thousands: ',',
    decimal: '.'
  },
  currency: {
    symbol: '£'
  },
  ordinal: () => ''
})
Numeral.locale('gb')

document.addEventListener('DOMContentLoaded', () => {
  // Sentry.io logging
  Sentry.init({
    dsn: 'https://1150348b449a444bb3ac47ddd82b37c4@sentry.io/251669',
    integrations: [new Integrations.Vue({ Vue, attachProps: true })],
    release: window.ukhpi.version || 'unknown-version'
  })
  Sentry.configureScope(scope => {
    scope.setTag('app', 'ukhpi-js')
  })

  /* eslint-disable no-new */
  new Vue({
    router,
    store
  }).$mount('#application')
})
<commit_msg>Only send Sentry alerts in production<commit_after>import Vue from 'vue/dist/vue.esm'
import ElementUI from 'element-ui'
import locale from 'element-ui/lib/locale/lang/en'
import Numeral from 'numeral'
import * as Sentry from '@sentry/browser'
import * as Integrations from '@sentry/integrations'
import 'core-js/stable'
import 'regenerator-runtime/runtime'

import router from '../router/index.js.erb'
import store from '../store/index'

// Issue https://github.com/epimorphics/ukhpi/issues/169
// Add fix for IE Edge
import '../lib/ie-d3-fix'

// Use Element.IO
Vue.use(ElementUI, { locale })

// locale settings
Numeral.register('locale', 'gb', {
  delimiters: {
    thousands: ',',
    decimal: '.'
  },
  currency: {
    symbol: '£'
  },
  ordinal: () => ''
})
Numeral.locale('gb')

document.addEventListener('DOMContentLoaded', () => {
  if (process.env.NODE_ENV === 'production') {
    // Sentry.io logging
    Sentry.init({
      dsn: 'https://1150348b449a444bb3ac47ddd82b37c4@sentry.io/251669',
      integrations: [new Integrations.Vue({ Vue, attachProps: true })],
      release: window.ukhpi.version || 'unknown-version'
    })
    Sentry.configureScope(scope => {
      scope.setTag('app', 'ukhpi-js')
    })
  }

  /* eslint-disable no-new */
  new Vue({
    router,
    store
  }).$mount('#application')
})

{'fraction_non_alphanumeric': 0.16895335162681302, 'fraction_numerical': 0.024304194433555467, 'mean_word_length': 3.5899280575539567, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5303639', 'n_tokens_mistral': 931, 'n_tokens_neox': 891, 'n_words': 184}