<commit_before>//
//  PhoneAppFactory.swift
//  Peekazoo
//
//  Created by <NAME> on 14/05/2017.
//  Copyright © 2017 Peekazoo. All rights reserved.
//

import UIKit

struct PhoneAppFactory: AppFactory {

    func makeApplication(window: UIWindow) -> App {
        let networkAdapter = URLSessionNetworkAdapter()
        let weasylAPI = WeasylAPI(networkAdapter: networkAdapter)
        let weasylAdapter = WeasylAPIAdapter(api: weasylAPI)
        let service = PeekazooClient(feeds: [weasylAdapter], delegateWorker: MainThreadWorker())
        let serviceAdapter = PeekazooHomepageAdapter(service: service)

        return PhoneApp(rootRouter: WindowRootRouter(window: window),
                        homepageService: serviceAdapter)
    }

}<commit_msg>Wire up Inkbunny when building core<commit_after>//
//  PhoneAppFactory.swift
//  Peekazoo
//
//  Created by <NAME> on 14/05/2017.
//  Copyright © 2017 Peekazoo. All rights reserved.
//

import UIKit

struct PhoneAppFactory: AppFactory {

    func makeApplication(window: UIWindow) -> App {
        let networkAdapter = URLSessionNetworkAdapter()
        let weasylAPI = WeasylAPI(networkAdapter: networkAdapter)
        let weasylAdapter = WeasylAPIAdapter(api: weasylAPI)
        let inkbunnyAPI = InkbunnyAPI(networkAdapter: networkAdapter)
        let inkbunnyAdapter = InkbunnyAPIAdapter(api: inkbunnyAPI)
        let service = PeekazooClient(feeds: [weasylAdapter, inkbunnyAdapter], delegateWorker: MainThreadWorker())
        let serviceAdapter = PeekazooHomepageAdapter(service: service)

        return PhoneApp(rootRouter: WindowRootRouter(window: window),
                        homepageService: serviceAdapter)
    }

}
{'fraction_non_alphanumeric': 0.08708530805687204, 'fraction_numerical': 0.014218009478672985, 'mean_word_length': 3.387012987012987, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5001812', 'n_tokens_mistral': 519, 'n_tokens_neox': 481, 'n_words': 116}