<commit_before>fs = require 'fs'
path = require 'path'
temp = require 'temp'
express = require 'express'
http = require 'http'
apm = require '../lib/apm-cli'

describe 'apm command line interface', ->
  describe 'when no arguments are present', ->
    it 'prints a usage message', ->
      spyOn(console, 'log')
      spyOn(console, 'error')
      apm.run([])<commit_msg>Spy on write calls to process.stdout/stderr<commit_after>fs = require 'fs'
path = require 'path'
temp = require 'temp'
express = require 'express'
http = require 'http'
apm = require '../lib/apm-cli'

describe 'apm command line interface', ->
  beforeEach ->
    spyOn(process.stdout, 'write')
    spyOn(process.stderr, 'write')

  describe 'when no arguments are present', ->
    it 'prints a usage message', ->
      spyOn(console, 'log')
      spyOn(console, 'error')
      apm.run([])
{'fraction_non_alphanumeric': 0.1490104772991851, 'fraction_numerical': 0.0, 'mean_word_length': 3.526315789473684, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '5969090', 'n_tokens_mistral': 273, 'n_tokens_neox': 275, 'n_words': 87}