<commit_before>//
//  main.swift
//  whereami
//
//  Created by <NAME> on 02/09/14.
//  Copyright © 2014 Hand Forged. All rights reserved.
//

import Foundation


// main code

CLI.setup(name:"whereami", version:"1.0", description:"Get your location from the command line")
let whereamiCommand = WhereAmICommand()
let versionCommand = WAIVersionCommand()
CLI.registerCustomVersionCommand(versionCommand)
CLI.registerDefaultCommand(whereamiCommand)
let result = CLI.go()
if (result) {
    exit(0)
} else {
    exit(-1)
}<commit_msg>More idiomatic error code expression<commit_after>//
//  main.swift
//  whereami
//
//  Created by <NAME> on 02/09/14.
//  Copyright © 2014 Hand Forged. All rights reserved.
//

import Foundation


// main code

CLI.setup(name:"whereami", version:"1.0", description:"Get your location from the command line")
let whereamiCommand = WhereAmICommand()
let versionCommand = WAIVersionCommand()
CLI.registerCustomVersionCommand(versionCommand)
CLI.registerDefaultCommand(whereamiCommand)
let result = CLI.go()
exit(result ? 0 : 1)
{'fraction_non_alphanumeric': 0.1259469696969697, 'fraction_numerical': 0.026515151515151516, 'mean_word_length': 4.392857142857143, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6095431', 'n_tokens_mistral': 350, 'n_tokens_neox': 325, 'n_words': 92}