<commit_before>var fs = require('fs-extra')
var os = require('os')
var path = require('path')
var test = require('tape')
var EventLogger = require('./')

test('EventLogger -- all operating systems', t => {
  var log = new EventLogger()
  t.equal(log.source, 'NodeJS', 'source')
  t.equal(log.eventLog, 'APPLICATION', 'eventLog')
  t.equal(log.toString(), 'EventLogger("NodeJS")')
  t.end()
})

test('EventLogger -- wrong types', t => {
  var log = new EventLogger({
    eventLog: 'UNKNOWN'
  })
  t.equal(log.eventLog, 'APPLICATION', 'eventLog')<commit_msg>Change default path to /tmp/log<commit_after>var fs = require('fs-extra')
var os = require('os')
var path = require('path')
var test = require('tape')
var EventLogger = require('./')

test('EventLogger -- all operating systems', t => {
  var log = new EventLogger({
    logPath: '/tmp/log'
  })
  t.equal(log.source, 'NodeJS', 'source')
  t.equal(log.eventLog, 'APPLICATION', 'eventLog')
  t.equal(log.toString(), 'EventLogger("NodeJS")')
  t.end()
})

test('EventLogger -- wrong types', t => {
  var log = new EventLogger({
    logPath: '/tmp/log',
    eventLog: 'UNKNOWN'
  })
  t.equal(log.eventLog, 'APPLICATION', 'eventLog')
{'fraction_non_alphanumeric': 0.19477234401349072, 'fraction_numerical': 0.0, 'mean_word_length': 4.346846846846847, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1899016', 'n_tokens_mistral': 409, 'n_tokens_neox': 406, 'n_words': 99}