<commit_before>program = require('commander')
packageJSON = require('../package.json')
data = require('./data/data')
config = require('./config')

auth = require('./actions/auth')
app = require('./actions/app')

program.version(packageJSON.version)

# ---------- Auth Module ----------

program
	.command('login <username:password>')
	.description('Login with your resin.io account')
	.action(auth.login)

program
	.command('signup')
	.description('Open signup form')
	.action(auth.signup)

# ---------- App Module ----------

program
	.command('apps')
	.description('Show a list of your apps')
	.action(app.list)

# TODO: Check if not running on UNIX environment
# and add a custom path accordingly
data.prefix.set config.dataPrefix, (error) ->
	throw error if error?
	program.parse(process.argv)
<commit_msg>Organise action requires close to their use in app.coffee<commit_after>program = require('commander')
packageJSON = require('../package.json')
data = require('./data/data')
config = require('./config')

program.version(packageJSON.version)

# ---------- Auth Module ----------

auth = require('./actions/auth')

program
	.command('login <username:password>')
	.description('Login with your resin.io account')
	.action(auth.login)

program
	.command('signup')
	.description('Open signup form')
	.action(auth.signup)

# ---------- App Module ----------

app = require('./actions/app')

program
	.command('apps')
	.description('Show a list of your apps')
	.action(app.list)

# TODO: Check if not running on UNIX environment
# and add a custom path accordingly
data.prefix.set config.dataPrefix, (error) ->
	throw error if error?
	program.parse(process.argv)

{'fraction_non_alphanumeric': 0.187987987987988, 'fraction_numerical': 0.0, 'mean_word_length': 3.6666666666666665, 'pattern_counts': {'":': 0, '<': 5, '<?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': '601680', 'n_tokens_mistral': 495, 'n_tokens_neox': 491, 'n_words': 134}