<commit_before>//
//  Reference.swift
//  GlueKit
//
//  Created by <NAME> on 2015-12-13.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import Foundation

internal struct UnownedReference<Class: AnyObject>: Hashable, Equatable {
    unowned var value: Class

    init(_ value: Class) {
        self.value = value
    }

    internal var hashValue: Int {
        return ObjectIdentifier(value).hashValue
    }
}

internal func ==<Class: AnyObject>(a: UnownedReference<Class>, b: UnownedReference<Class>) -> Bool {
    return a.value === b.value
}
<commit_msg>Better name for type parameter for UnownedReference<commit_after>//
//  Reference.swift
//  GlueKit
//
//  Created by <NAME> on 2015-12-13.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import Foundation

internal struct UnownedReference<Target: AnyObject>: Hashable, Equatable {
    unowned var value: Target

    init(_ value: Target) {
        self.value = value
    }

    internal var hashValue: Int {
        return ObjectIdentifier(value).hashValue
    }
}

internal func ==<Target: AnyObject>(a: UnownedReference<Target>, b: UnownedReference<Target>) -> Bool {
    return a.value === b.value
}

{'fraction_non_alphanumeric': 0.12244897959183673, 'fraction_numerical': 0.02040816326530612, 'mean_word_length': 3.1010452961672472, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '5250287', 'n_tokens_mistral': 378, 'n_tokens_neox': 348, 'n_words': 104}