<commit_before>//
//  Issue.swift
//  GithubClient
//
//  Created by <NAME> on 8/13/17.
//  Copyright © 2017 GameChanger. All rights reserved.
//

import Foundation

public struct Issue: Decodable {

  public let id: Int
  public let url: String
  public let htmlUrl: String
  public let commentsUrl: String
  public let eventsUrl: String
  public let number: Int
  public let state: IssueState
  public let title: String
  public let body: String
  public let closedBy: User?
  public let user: User?
  public let labels: [IssueLabel]
  public let assignee: User?
  public let assignees:  [User]?
  //let milestone: Milestone?
  public let comments: Int
  // let pullRequest: PullRequest
  public let closedAt: Date?
  public let createdAt: Date?
  public let updatedAt: Date?
  public let locked: Bool
  public let repository: Repository?

}
<commit_msg>Correct Issue coding keys<commit_after>//
//  Issue.swift
//  GithubClient
//
//  Created by <NAME> on 8/13/17.
//  Copyright © 2017 GameChanger. All rights reserved.
//

import Foundation

public struct Issue: Decodable {

  public let id: Int
  public let url: String
  public let htmlUrl: String?
  public let commentsUrl: String
  public let eventsUrl: String
  public let number: Int
  public let state: IssueState
  public let title: String
  public let body: String
  public let closedBy: User?
  public let user: User?
  public let labels: [IssueLabel]
  public let assignee: User?
  public let assignees:  [User]?
  //let milestone: Milestone?
  public let comments: Int
  // let pullRequest: PullRequest
  public let closedAt: Date?
  public let createdAt: Date?
  public let updatedAt: Date?
  public let locked: Bool
  public let repository: Repository?

}

extension Issue {
  enum CodingKeys: String, CodingKey {
    case id
    case url
    case htmlUrl = "html_url"
    case commentsUrl = "comments_url"
    case eventsUrl = "events_url"
    case number
    case state
    case title
    case body
    case closedBy = "closed_by"
    case user
    case labels
    case assignee
    case assignees
    case comments
    case closedAt = "closed_at"
    case createdAt = "created_at"
    case updatedAt = "updated_at"
    case locked
    case repository
  }
}

{'fraction_non_alphanumeric': 0.07357559443696725, 'fraction_numerical': 0.008075370121130552, 'mean_word_length': 3.137291280148423, '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': '7241967', 'n_tokens_mistral': 700, 'n_tokens_neox': 668, 'n_words': 270}