<commit_before>//
//  Router.swift
//  SwiftCLI
//
//  Created by <NAME> on 7/11/14.
//  Copyright (c) 2014 jakeheis. All rights reserved.
//

import Foundation

class Router {
    
    private let commands: [Command]
    private let arguments: Arguments
    private var defaultCommand: Command
    
    struct Route {
        let command: Command
        let arguments: Arguments
        
        init(command: Command, arguments: Arguments) {
            self.command = command
            self.arguments = arguments
        }
    }
    
    init(commands: [Command], arguments: Arguments, defaultCommand: Command) {
        self.commands = commands
        self.arguments = arguments
        self.defaultCommand = defaultCommand
    }
    
    func route() -> Result<Route> {
        if arguments.hasNoArguments {<commit_msg>Fixed var/let defaultCommand<commit_after>//
//  Router.swift
//  SwiftCLI
//
//  Created by <NAME> on 7/11/14.
//  Copyright (c) 2014 jakeheis. All rights reserved.
//

import Foundation

class Router {
    
    private let commands: [Command]
    private let arguments: Arguments
    private let defaultCommand: Command
    
    struct Route {
        let command: Command
        let arguments: Arguments
        
        init(command: Command, arguments: Arguments) {
            self.command = command
            self.arguments = arguments
        }
    }
    
    init(commands: [Command], arguments: Arguments, defaultCommand: Command) {
        self.commands = commands
        self.arguments = arguments
        self.defaultCommand = defaultCommand
    }
    
    func route() -> Result<Route> {
        if arguments.hasNoArguments {
{'fraction_non_alphanumeric': 0.08916816277678037, 'fraction_numerical': 0.010771992818671455, 'mean_word_length': 2.1194029850746268, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '3997862', 'n_tokens_mistral': 466, 'n_tokens_neox': 445, 'n_words': 130}