<commit_before>//
//  IssuesTests.swift
//  Tentacle
//
//  Created by <NAME> on 2016-05-24.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import Argo
@testable import Tentacle
import XCTest

class IssuesTests: XCTestCase {
    
    func testDecodedPalleasOpensourceIssues() {
        let palleasOpensource = User(ID: "15802020",
                                     login: "Palleas-opensource",
                                     URL: NSURL(string: "https://api.github.com/users/Palleas-opensource")!,
                                     avatarURL: NSURL(string: "https://avatars.githubusercontent.com/u/15802020?v=3")!,
                                     name: nil,
                                     email: nil,
                                     websiteURL: nil,
                                     company: nil,
                                     joinedDate: NSDate.distantPast())

        let expected = [
            Issue(id: 156633109,
                url: NSURL(string: "https://api.github.com/repos/Palleas-opensource/Sample-repository/issues/1")!,
                number: 1,
                state: .Open,
                title: "This issue is open",
                body: "Issues are pretty cool.",<commit_msg>Fix User/UserInfo changes<commit_after>//
//  IssuesTests.swift
//  Tentacle
//
//  Created by <NAME> on 2016-05-24.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import Argo
@testable import Tentacle
import XCTest

class IssuesTests: XCTestCase {
    
    func testDecodedPalleasOpensourceIssues() {
        let palleasOpensource = User(ID: "15802020",
                                     login: "Palleas-opensource",
                                     URL: NSURL(string: "https://api.github.com/users/Palleas-opensource")!,
                                     avatarURL: NSURL(string: "https://avatars.githubusercontent.com/u/15802020?v=3")!
//                                     name: nil,
//                                     email: nil,User
//                                     websiteURL: nil,
//                                     company: nil,
//                                     joinedDate: NSDate.distantPast()
        )

        let expected = [
            Issue(id: 156633109,
                url: NSURL(string: "https://api.github.com/repos/Palleas-opensource/Sample-repository/issues/1")!,
                number: 1,
                state: .Open,
                title: "This issue is open",
                body: "Issues are pretty cool.",
{'fraction_non_alphanumeric': 0.10722795869737888, 'fraction_numerical': 0.03177124702144559, 'mean_word_length': 1.2511170688114388, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3791652', 'n_tokens_mistral': 766, 'n_tokens_neox': 672, 'n_words': 141}