<commit_before>'use strict'

/**
 * Dependencies
 */
const firebase = require('firebase')

/**
 * Initialize Firebase App
 */
firebase.initializeApp({
  databaseURL: 'https://project-4182143701827200211.firebaseio.com',
  serviceAccount: './secret.json'
})

/**
 * Example DB Fetch
 */
let ref = firebase.database().ref().child('games')

ref.once('value', function (data) {
  let val = data.val()
  Object.keys(val).forEach(function (key) {
    console.log('DATA', val[key])
  })
})<commit_msg>refactor(EventDispatcher): move dispatch code into separate class<commit_after>'use strict'

/**
 * Dependencies
 */
const firebase = require('firebase')
const EventDispatcher = require('./EventDispatcher')

/**
 * Initialize Firebase App
 */
firebase.initializeApp({
  databaseURL: 'https://project-4182143701827200211.firebaseio.com',
  serviceAccount: './secret.json'
})

/**
 * Main
 */
let dispatcher = new EventDispatcher()
{'fraction_non_alphanumeric': 0.16793066088840736, 'fraction_numerical': 0.041170097508125676, 'mean_word_length': 4.634146341463414, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4748097', 'n_tokens_mistral': 318, 'n_tokens_neox': 288, 'n_words': 58}