<commit_before>//
//  Metadata+Kind.swift
//  Reflection
//
//  Created by <NAME> on 5/4/16.
//  Copyright © 2016 Zewo. All rights reserved.
//

extension Metadata {
    
    static let kind: Kind? = nil
    
    enum Kind {
        case Struct
        case Class
        case Other
        init(flag: Int) {
            switch flag {
            case 1: self = .Struct
            case let x where x > 4096: self = .Class
            default: self = .Other
            }
        }
    }
    
}


<commit_msg>Update `Metadata.Kind`<commit_after>//
//  Metadata+Kind.swift
//  Reflection
//
//  Created by <NAME> on 5/4/16.
//  Copyright © 2016 Zewo. All rights reserved.
//

//https://github.com/apple/swift/blob/swift-3.0-branch/utils/dtrace/runtime.d

extension Metadata {
    
    static let kind: Kind? = nil
    
    enum Kind {
        case Struct
        case Enum
        case Opaque
        case Tuple
        case Function
        case Existential
        case Metatype
        case ObjCClassWrapper
        case HeapLocalVariable
        case HeapArray
        case Class
        init(flag: Int) {
            switch flag {
            case 1: self = .Struct
            case 2: self = .Enum
            case 8: self = .Opaque
            case 9: self = .Tuple
            case 10: self = .Function
            case 12: self = .Existential
            case 13: self = .Metatype
            case 14: self = .ObjCClassWrapper
            case 64: self = .HeapLocalVariable
            case 65: self = .HeapArray
            default: self = .Class
            }
        }
    }
    
}



{'fraction_non_alphanumeric': 0.09090909090909091, 'fraction_numerical': 0.02445141065830721, 'mean_word_length': 1.3130434782608695, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 1, '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': '3279059', 'n_tokens_mistral': 505, 'n_tokens_neox': 463, 'n_words': 144}