<commit_before>require('dotenv').config()

const Deepgram = require( '../lib/deepgram' ).default,
      deepgram = new Deepgram({ userId: process.env.DEEPGRAM_USER_ID })

deepgram.getBalance().then( data => {
  console.log( '=> Balance', data.body.balance )
})

deepgram.objectSearch({
  contentID: '1458104273-e1f1c852-a21a-4963-82a1-590e5ac49481-2311040912',
  query: 'social epistemology',
  snippet: true  
}).then( data => {
  console.log( '=> Object Search Results', data.body )
})<commit_msg>Updating sample<commit_after>require('dotenv').config()

/*

  if you're using Babel do:

  import Deepgram from 'deepgram'

*/

const Deepgram = require( 'deepgram' ).default,
      deepgram = new Deepgram({ userId: process.env.DEEPGRAM_USER_ID })

deepgram.getBalance().then( data => {
  console.log( '=> Balance', data.body.balance )
})

deepgram.objectSearch({
  contentID: '1458104273-e1f1c852-a21a-4963-82a1-590e5ac49481-2311040912',
  query: 'social epistemology',
  snippet: true  
}).then( data => {
  console.log( '=> Object Search Results', data.body )
})
{'fraction_non_alphanumeric': 0.16338028169014085, 'fraction_numerical': 0.08075117370892018, 'mean_word_length': 4.523316062176166, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3343939', 'n_tokens_mistral': 436, 'n_tokens_neox': 382, 'n_words': 72}