<commit_before>/* istanbul ignore next */
import Dictionary from './model/dictionary'
import { Tracker } from './model/tracker'
import StructEvent from './model/event/structEvent'

// const startTimestamp = Date.now()

const d = new Dictionary()
const t = new Tracker( 'testTracker', '', {
    appId: 'web',
    post: true,
} )

d.newTracker( t )
    .then( dict => {
        const event = new StructEvent( t, 'test-category' )
        return Promise.all( [ dict.getTracker( 'testTracker' )
            .then( tracker => tracker.trackEvent( event ) ),
            dict.track() ] )
    } )
    .catch( error => {
        // eslint-disable-next-line no-console
        console.error( error )
    } )

window.snowplow = d<commit_msg>Ignore lib/index.js in coverage<commit_after>import Dictionary from './model/dictionary'
import { Tracker } from './model/tracker'
import StructEvent from './model/event/structEvent'

// const startTimestamp = Date.now()

const d = new Dictionary()
const t = new Tracker( 'testTracker', '', {
    appId: 'web',
    post: true,
} )

d.newTracker( t )
    .then( dict => {
        const event = new StructEvent( t, 'test-category' )
        return Promise.all( [ dict.getTracker( 'testTracker' )
            .then( tracker => tracker.trackEvent( event ) ),
            dict.track() ] )
    } )
    .catch( error => {
        /* istanbul ignore next */
        // eslint-disable-next-line no-console
        console.error( error )
    } )

window.snowplow = d
{'fraction_non_alphanumeric': 0.14670255720053835, 'fraction_numerical': 0.0, 'mean_word_length': 2.4906103286384975, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '6664384', 'n_tokens_mistral': 461, 'n_tokens_neox': 454, 'n_words': 119}