<commit_before>import { IonicErrorHandler } from 'ionic-angular';
import Raven from 'raven-js';

Raven
    .config('https://54c01f896cbb4594b75639dfbf59b81e@sentry.io/155883')
    .install();

// Sentry.io error handling
export class SentryErrorHandler extends IonicErrorHandler {
    handleError(error) {
        super.handleError(error);

        try {
            Raven.captureException(error.originalError || error);
        }
        catch (e) {
            console.error(e);
        }
    }
}<commit_msg>Added sentry.io crash reporting dialog to collect info<commit_after>import { IonicErrorHandler } from 'ionic-angular';
import Raven from 'raven-js';

Raven
    .config('https://54c01f896cbb4594b75639dfbf59b81e@sentry.io/155883')
    .install();

// Sentry.io error handling
export class SentryErrorHandler extends IonicErrorHandler {
    handleError(error) {
        super.handleError(error);

        try {
            Raven.captureException(error.originalError || error);
            Raven.showReportDialog({});
        }
        catch (e) {
            console.error(e);
        }
    }
}
{'fraction_non_alphanumeric': 0.11171662125340599, 'fraction_numerical': 0.047229791099000905, 'mean_word_length': 2.7355932203389832, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '98511', 'n_tokens_mistral': 373, 'n_tokens_neox': 335, 'n_words': 62}