<commit_before>//
//  Listener.swift
//  Events
//
//  Created by <NAME> on 12/2/15.
//  Copyright © 2015 BLITZ. All rights reserved.
//

import Foundation


public class Listener{
    var listeningTo: [String: Listener]
    let publisher: EventManager
    let subscriber: EventManager
    var count = 0

    public init(publisher: EventManager, subscriber: EventManager, listeningTo: [String: Listener]){
        self.publisher = publisher
        self.subscriber = subscriber
        self.listeningTo = listeningTo
    }

    var publisherId: String {
        return publisher.listenId
    }

    var subscriberId: String {
        return subscriber.listenId
    }
}<commit_msg>makes references to pub and sub unowned<commit_after>//
//  Listener.swift
//  Events
//
//  Created by <NAME> on 12/2/15.
//  Copyright © 2015 BLITZ. All rights reserved.
//

import Foundation


public class Listener{
    var listeningTo: [String: Listener]
    unowned let publisher: EventManager
    unowned let subscriber: EventManager
    var count = 0

    public init(publisher: EventManager, subscriber: EventManager, listeningTo: [String: Listener]){
        self.publisher = publisher
        self.subscriber = subscriber
        self.listeningTo = listeningTo
    }

    var publisherId: String {
        return publisher.listenId
    }

    var subscriberId: String {
        return subscriber.listenId
    }
}
{'fraction_non_alphanumeric': 0.08701854493580599, 'fraction_numerical': 0.014265335235378032, 'mean_word_length': 2.6631853785900783, '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': '94136', 'n_tokens_mistral': 427, 'n_tokens_neox': 386, 'n_words': 122}