<commit_before>//
//  Address.swift
//  SwiftlySalesforce
//
//  For license & details see: https://www.github.com/mike4aday/SwiftlySalesforce
//  Copyright (c) 2017. All rights reserved.
//

/// Standard objects' compound address field data. 
/// See https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/compound_fields_address.htm

public struct Address: Codable {
	
	public enum GeocodeAccuracy: String, Codable {
		case address = "Address"
		case nearAddress = "NearAddress"
		case block = "Block"
		case street = "Street"
		case extendedZip = "ExtendedZip"
		case zip = "Zip"
		case city = "Neighborhood"
		case county = "County"
		case state = "State"
		case unknown = "Unknown"
	}
	
	public let city: String?
	public let country: String?
	public let countryCode: String?
	public let geocodeAccuracy: GeocodeAccuracy?
	public let latitude: Double?
	public let longitude: Double?
	public let postalCode: String?
	public let state: String?
	public let stateCode: String?
	public let street: String?
}
<commit_msg>Implements Codable (not just Decodable)<commit_after>//
//  Address.swift
//  SwiftlySalesforce
//
//  For license & details see: https://www.github.com/mike4aday/SwiftlySalesforce
//  Copyright (c) 2017. All rights reserved.
//

/// Standard objects' compound address field data. 
/// See https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/compound_fields_address.htm

public struct Address: Decodable {
	
	public enum GeocodeAccuracy: String, Decodable {
		case address = "Address"
		case nearAddress = "NearAddress"
		case block = "Block"
		case street = "Street"
		case extendedZip = "ExtendedZip"
		case zip = "Zip"
		case city = "Neighborhood"
		case county = "County"
		case state = "State"
		case unknown = "Unknown"
	}
	
	public let city: String?
	public let country: String?
	public let countryCode: String?
	public let geocodeAccuracy: GeocodeAccuracy?
	public let latitude: Double?
	public let longitude: Double?
	public let postalCode: String?
	public let state: String?
	public let stateCode: String?
	public let street: String?
}

{'fraction_non_alphanumeric': 0.10652591170825336, 'fraction_numerical': 0.0047984644913627635, 'mean_word_length': 3.9058823529411764, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '4725175', 'n_tokens_mistral': 736, 'n_tokens_neox': 647, 'n_words': 206}