<commit_before>//
//  TKInfoTypes.swift
//  TripKit
//
//  Created by <NAME> on 28/10/16.
//  Copyright © 2016 SkedGo. All rights reserved.
//

import Foundation

import Marshal

public struct TKCompanyInfo : Unmarshaling {
  public let name: String
  public let website: URL?
  public let remoteIcon: String?
  
  public init(object: MarshaledObject) throws {
    name        = try  object.value(for: "name")
    website     = try? object.value(for: "website")
    remoteIcon  = try? object.value(for: "remoteIcon")
  }
}


public struct TKDataAttribution : Unmarshaling {
  public let provider: TKCompanyInfo<commit_msg>Company info can have phone number, too<commit_after>//
//  TKInfoTypes.swift
//  TripKit
//
//  Created by <NAME> on 28/10/16.
//  Copyright © 2016 SkedGo. All rights reserved.
//

import Foundation

import Marshal

public struct TKCompanyInfo : Unmarshaling {
  public let name: String
  public let website: URL?
  public let phone: String?
  public let remoteIcon: String?
  
  public init(object: MarshaledObject) throws {
    name        = try  object.value(for: "name")
    website     = try? object.value(for: "website")
    phone       = try? object.value(for: "phone")
    remoteIcon  = try? object.value(for: "remoteIcon")
  }
}


public struct TKDataAttribution : Unmarshaling {
  public let provider: TKCompanyInfo
{'fraction_non_alphanumeric': 0.10459940652818991, 'fraction_numerical': 0.01483679525222552, 'mean_word_length': 3.202492211838006, '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': '7533698', 'n_tokens_mistral': 454, 'n_tokens_neox': 419, 'n_words': 131}