<commit_before>//
//  Currency.swift
//  FinanceKit
//
//  Created by <NAME> on 17/05/2017.
//  Copyright © 2017 <NAME>. All rights reserved.
//

import Foundation

public enum CurrencyCode: String, CaseIterable, Codable {
    #warning("get all currencies and sort by name")
    case dkk
    case USD
    case EUR
    case GBP
    case AUD
    case NOK
    case SEK

    public var currencyCodeString: String {
        self.rawValue.uppercased()
    }

    var currencyName: String {
        switch self {
        default:
            return ""
        }
    }
}

public struct Currency: Codable {

    public let code: CurrencyCode
    public let name: String

    init(code currencyCode: CurrencyCode) {
        code = currencyCode
        name = currencyCode.currencyName
    }
}<commit_msg>Add unknown case for currency<commit_after>//
//  Currency.swift
//  FinanceKit
//
//  Created by <NAME> on 17/05/2017.
//  Copyright © 2017 <NAME>. All rights reserved.
//

import Foundation

public enum CurrencyCode: String, CaseIterable, Codable {
    #warning("get all currencies and sort by name")
    case unknown
    case dkk
    case USD
    case EUR
    case GBP
    case AUD
    case NOK
    case SEK

    public var currencyCodeString: String {
        self.rawValue.uppercased()
    }

    public var currencyName: String {
        switch self {
        default:
            return ""
        }
    }
}

public struct Currency: Codable {

    public let code: CurrencyCode
    public let name: String

    public init(code currencyCode: CurrencyCode) {
        code = currencyCode
        name = currencyCode.currencyName
    }
}
{'fraction_non_alphanumeric': 0.08073394495412844, 'fraction_numerical': 0.014678899082568808, 'mean_word_length': 2.1522157996146434, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3376691', 'n_tokens_mistral': 515, 'n_tokens_neox': 475, 'n_words': 158}