<commit_before>//
//  Command.swift
//  GeekWeather
//
//  Created by 梅俊 on 15/12/17.
//  Copyright © 2015年 RangerStudio. All rights reserved.
//

import UIKit

public class Command: NSObject {
    internal(set) var workPath : String {
        get {
            return self.workPath
        }
        set(path) {
            self.workPath = path
        }
    }
    
    var arguments = [String]()
    var options = [CommandOption]()
    var validOptions : [String]
    
    init(path : String) {
        validOptions = [String]()
        super.init()
        workPath = path
    }
    
    func appendArgument(argument : String!) -> Bool! {
        arguments.append(argument)
        return true
    }
    
    func appendOption(option : CommandOption!) -> Bool! {
        if self.validOptions.contains(option.option) {
            options.append(option)
            return true
        }
        return false
    }
    
    enum CmdExecError : ErrorType{
        case CmdNotImp
    }
    
    func execute() throws -> String! {
        throw CmdExecError.CmdNotImp
    }
    
}<commit_msg>remove getter and setter; make func and enum as public<commit_after>//
//  Command.swift
//  GeekWeather
//
//  Created by 梅俊 on 15/12/17.
//  Copyright © 2015年 RangerStudio. All rights reserved.
//

import UIKit

public class Command: NSObject {
    
    var workPath : String!
    
    var arguments = [String]()
    var options = [CommandOption]()
    var validOptions : [String]
    
    init(path : String) {
        validOptions = [String]()
        super.init()
        workPath = path
    }
    
    public func appendArgument(argument : String!) -> Bool! {
        arguments.append(argument)
        return true
    }
    
    public func appendOption(option : CommandOption!) -> Bool! {
        if self.validOptions.contains(option.option) {
            options.append(option)
            return true
        }
        return false
    }
    
    public enum CmdExecError : ErrorType{
        case CmdNotImp
    }
    
    public func execute() throws -> String! {
        throw CmdExecError.CmdNotImp
    }
    
}
{'fraction_non_alphanumeric': 0.09881796690307329, 'fraction_numerical': 0.009456264775413711, 'mean_word_length': 1.7952443857331573, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7371237', 'n_tokens_mistral': 648, 'n_tokens_neox': 622, 'n_words': 158}