<commit_before>//
//  main.swift
//  Carthage
//
//  Created by <NAME> on 2014-10-10.
//  Copyright (c) 2014 Carthage. All rights reserved.
//

import Foundation

let commands = [
	HelpCommand()
]

var arguments = Process.arguments
if arguments.count == 0 {
	arguments.append("help")
}

let verb = arguments[0]

// We should always find a match, since we default to `help`.
let match = find(commands.map { $0.verb }, verb)!

arguments.removeAtIndex(0)
commands[match].run(arguments)<commit_msg>Give this array a type.<commit_after>//
//  main.swift
//  Carthage
//
//  Created by <NAME> on 2014-10-10.
//  Copyright (c) 2014 Carthage. All rights reserved.
//

import Foundation

let commands : [Command] = [
	HelpCommand(),
]

var arguments = Process.arguments
if arguments.count == 0 {
	arguments.append("help")
}

let verb = arguments[0]

// We should always find a match, since we default to `help`.
let match = find(commands.map { $0.verb }, verb)!

arguments.removeAtIndex(0)
commands[match].run(arguments)
{'fraction_non_alphanumeric': 0.14540059347181009, 'fraction_numerical': 0.03165182987141444, 'mean_word_length': 3.5585585585585586, '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': '4249249', 'n_tokens_mistral': 358, 'n_tokens_neox': 327, 'n_words': 100}