<commit_before>//
//  Locale.swift
//  Money
//
//  Created by <NAME> on 22/11/2015.
//
//

import Foundation

public protocol LanguageType {
    var languageIdentifier: String { get }
}

public protocol CountryType {
    var countryIdentifier: String { get }
}

public protocol LocaleType {
    var localeIdentifier: String { get }
}

extension LocaleType where Self: LanguageType, Self: CountryType {
    public var localeIdentifier: String {
        guard !countryIdentifier.isEmpty else {
            return languageIdentifier
        }
        return "\(languageIdentifier)_\(countryIdentifier)"
    }
}

let locale: Locale = .English(.UnitedKingdom)<commit_msg>[MNY-24]: Removes unneeded constant<commit_after>//
//  Locale.swift
//  Money
//
//  Created by <NAME> on 22/11/2015.
//
//

import Foundation

public protocol LanguageType {
    var languageIdentifier: String { get }
}

public protocol CountryType {
    var countryIdentifier: String { get }
}

public protocol LocaleType {
    var localeIdentifier: String { get }
}

extension LocaleType where Self: LanguageType, Self: CountryType {
    public var localeIdentifier: String {
        guard !countryIdentifier.isEmpty else {
            return languageIdentifier
        }
        return "\(languageIdentifier)_\(countryIdentifier)"
    }
}
{'fraction_non_alphanumeric': 0.0962566844919786, 'fraction_numerical': 0.013750954927425516, 'mean_word_length': 3.00611620795107, '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': '3482553', 'n_tokens_mistral': 374, 'n_tokens_neox': 349, 'n_words': 104}