<commit_before>require('TraceKit')
var exceptionist = require('./lib/exceptionist')
var logger = require('./lib/logger')

var defaultOptions = {
  apiHost: 'https://opbeat.com',
  logger: 'javascript',
}

function Opbeat () {
  this.VERSION = '0.0.1'

  this.isInstalled = false
  this.options = defaultOptions

  this.isPlatformSupport = function () {
    // TODO: Add some platform checks
    return true
  }

  this.onTraceKitReport = function (stackInfo, options) {<commit_msg>Extend default options to include parameters needed for the API<commit_after>require('TraceKit')
var exceptionist = require('./lib/exceptionist')
var logger = require('./lib/logger')

var defaultOptions = {
  apiHost: 'https://opbeat.com',
  logger: 'javascript',
  organizationId: 123,
  appId: 123,
  clientToken: '<PASSWORD>'
}

function Opbeat () {
  this.VERSION = '0.0.1'

  this.isInstalled = false
  this.options = defaultOptions

  this.isPlatformSupport = function () {
    // TODO: Add some platform checks
    return true
  }

  this.onTraceKitReport = function (stackInfo, options) {
{'fraction_non_alphanumeric': 0.1309192200557103, 'fraction_numerical': 0.011142061281337047, 'mean_word_length': 3.990740740740741, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '1145436', 'n_tokens_mistral': 336, 'n_tokens_neox': 323, 'n_words': 83}