<commit_before>/**
 * Copyright IBM Corporation 2018
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 **/

import Foundation

/**
 A party and its corresponding role, including address and contact information if identified.
 */
public struct Parties: Codable, Equatable {

    /**
     A string identifying the party.
     */
    public var party: String?

    /**
     A string identifying the party's role.
     */
    public var role: String?

    /**
     List of the party's address or addresses.
     */
    public var addresses: [Address]?

    /**
     List of the names and roles of contacts identified in the input document.
     */
    public var contacts: [Contact]?

    // Map each property name to the key that shall be used for encoding/decoding.
    private enum CodingKeys: String, CodingKey {
        case party = "party"
        case role = "role"
        case addresses = "addresses"
        case contacts = "contacts"
    }

}
<commit_msg>feat(CompareComplyV1): Add `importance` to Parties<commit_after>/**
 * Copyright IBM Corporation 2018
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 **/

import Foundation

/**
 A party and its corresponding role, including address and contact information if identified.
 */
public struct Parties: Codable, Equatable {

    /**
     A string that identifies the importance of the party.
     */
    public enum Importance: String {
        case primary = "Primary"
        case unknown = "Unknown"
    }

    /**
     A string identifying the party.
     */
    public var party: String?

    /**
     A string that identifies the importance of the party.
     */
    public var importance: String?

    /**
     A string identifying the party's role.
     */
    public var role: String?

    /**
     List of the party's address or addresses.
     */
    public var addresses: [Address]?

    /**
     List of the names and roles of contacts identified in the input document.
     */
    public var contacts: [Contact]?

    // Map each property name to the key that shall be used for encoding/decoding.
    private enum CodingKeys: String, CodingKey {
        case party = "party"
        case importance = "importance"
        case role = "role"
        case addresses = "addresses"
        case contacts = "contacts"
    }

}

{'fraction_non_alphanumeric': 0.07894736842105263, 'fraction_numerical': 0.00514216575922565, 'mean_word_length': 2.7032474804031357, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '6122685', 'n_tokens_mistral': 857, 'n_tokens_neox': 823, 'n_words': 399}