<commit_before>#!/usr/bin/env node
'use strict'

const fs = require('fs')
const Travis = require('travis-ci')
const resolve = require('path').resolve
const getCommit = require('git-current-commit').sync
const gitRemoteOriginUrl = require('git-remote-origin-url')
const parseGitHubRepoUrl = require('parse-github-repo-url')
const render = require('./lib/render')

if (process.argv[2] === '--help') {
  console.error('Usage: travis-watch [DIRECTORY]')
  process.exit(1)
}

const travis = new Travis({ version: '2.0.0' })
const dir = resolve(process.argv[2] || '.')

const state = {
  commit: { sha: getCommit(dir) },
  repo: null,
  build: null,<commit_msg>also print usage text on non existing directory. #15<commit_after>#!/usr/bin/env node
'use strict'

const fs = require('fs')
const Travis = require('travis-ci')
const resolve = require('path').resolve
const getCommit = require('git-current-commit').sync
const gitRemoteOriginUrl = require('git-remote-origin-url')
const parseGitHubRepoUrl = require('parse-github-repo-url')
const render = require('./lib/render')

const dir = resolve(process.argv[2] || '.')

try {
  fs.statSync(dir)
} catch (err) {
  console.error('Usage: travis-watch [DIRECTORY]')
  process.exit(1)
}

const travis = new Travis({ version: '2.0.0' })

const state = {
  commit: { sha: getCommit(dir) },
  repo: null,
  build: null,
{'fraction_non_alphanumeric': 0.17343173431734318, 'fraction_numerical': 0.00959409594095941, 'mean_word_length': 4.87012987012987, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1574864', 'n_tokens_mistral': 459, 'n_tokens_neox': 459, 'n_words': 108}