<commit_before>//
//  Habit.swift
//  Habits
//
//  Created by <NAME> on 27/09/15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import Foundation
import RealmSwift

class Habit: Object {
    
    //MARK: Properties

    dynamic var id = NSUUID().UUIDString
    dynamic var name = ""

    //MARK: Initialization

    convenience init(name: String) {
        self.init()
        self.name = name
    }

    //MARK: Object

    override static func primaryKey() -> String? {
        return "id"
    }
}<commit_msg>Add `PrimaryKey` typealias<commit_after>//
//  Habit.swift
//  Habits
//
//  Created by <NAME> on 27/09/15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import Foundation
import RealmSwift

typealias PrimaryKey = String

class Habit: Object {
    
    //MARK: Properties

    dynamic var id = NSUUID().UUIDString
    dynamic var name = ""

    //MARK: Initialization

    convenience init(name: String) {
        self.init()
        self.name = name
    }

    //MARK: Object

    override static func primaryKey() -> PrimaryKey? {
        return "id"
    }
}
{'fraction_non_alphanumeric': 0.12408088235294118, 'fraction_numerical': 0.01838235294117647, 'mean_word_length': 2.1293103448275863, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '780890', 'n_tokens_mistral': 364, 'n_tokens_neox': 340, 'n_words': 101}