<commit_before>//
//  ConfigurationsJson.swift
//  RsyncOSX
//
//  Created by <NAME> on 17/10/2020.
//  Copyright © 2020 <NAME>. All rights reserved.
//

import Foundation

struct ConfigurationsJson: Codable {
    let backupID: String?
    let dateRun: String?
    let dayssincelastbackup: String?
    let haltshelltasksonerror: Int?
    let hiddenID: Int?
    let localCatalog: String?
    let markdays: Bool?
    let offsiteCatalog: String?
    let offsiteServer: String?
    let offsiteUsername: String?
    let parameter1: String?
    let parameter10: String?
    let parameter11: String?
    let parameter12: String?
    let parameter13: String?
    let parameter14: String?
    let parameter2: String?
    let parameter3: String?
    let parameter4: String?
    let parameter5: String?
    let parameter6: String?
    let parameter8: String?
    let parameter9: String?
    let rsyncdaemon: Int?
    let sshkeypathandidentityfile: String?
    let sshport: Int?
    let task: String?

    enum CodingKeys: String, CodingKey {
        case backupID
        case dateRun
        case dayssincelastbackup
        case haltshelltasksonerror
        case hiddenID
        case localCatalog
        case markdays
        case offsiteCatalog
        case offsiteServer
        case offsiteUsername
        case parameter1
        case parameter10
        case parameter11
        case parameter12
        case parameter13
        case parameter14
        case parameter2
        case parameter3
        case parameter4
        case parameter5
        case parameter6
        case parameter8
        case parameter9
        case rsyncdaemon
        case sshkeypathandidentityfile
        case sshport
        case task
    }

    init(from decoder: Decoder) throws {
        let values = try decoder.container(keyedBy: CodingKeys.self)
        backupID = try values.decodeIfPresent(String.self, forKey: .backupID)
        dateRun = try values.decodeIfPresent(String.self, forKey: .dateRun)
        dayssincelastbackup = try values.decodeIfPresent(String.self, forKey: .dayssincelastbackup)
        haltshelltasksonerror = try values.decodeIfPresent(Int.self, forKey: .haltshelltasksonerror)
        hiddenID = try values.decodeIfPresent(Int.self, forKey: .hiddenID)
        localCatalog = try values.decodeIfPresent(String.self, forKey: .localCatalog)
        markdays = try values.decodeIfPresent(Bool.self, forKey: .markdays)
        offsiteCatalog = try values.decodeIfPresent(String.self, forKey: .offsiteCatalog)
        offsiteServer = try values.decodeIfPresent(String.self, forKey: .offsiteServer)
        offsiteUsername = try values.decodeIfPresent(String.self, forKey: .offsiteUsername)
        parameter1 = try values.decodeIfPresent(String.self, forKey: .parameter1)
        parameter10 = try values.decodeIfPresent(String.self, forKey: .parameter10)
        parameter11 = try values.decodeIfPresent(String.self, forKey: .parameter11)
        parameter12 = try values.decodeIfPresent(String.self, forKey: .parameter12)
        parameter13 = try values.decodeIfPresent(String.self, forKey: .parameter13)
        parameter14 = try values.decodeIfPresent(String.self, forKey: .parameter14)
        parameter2 = try values.decodeIfPresent(String.self, forKey: .parameter2)
        parameter3 = try values.decodeIfPresent(String.self, forKey: .parameter3)
        parameter4 = try values.decodeIfPresent(String.self, forKey: .parameter4)
        parameter5 = try values.decodeIfPresent(String.self, forKey: .parameter5)
        parameter6 = try values.decodeIfPresent(String.self, forKey: .parameter6)
        parameter8 = try values.decodeIfPresent(String.self, forKey: .parameter8)
        parameter9 = try values.decodeIfPresent(String.self, forKey: .parameter9)
        rsyncdaemon = try values.decodeIfPresent(Int.self, forKey: .rsyncdaemon)
        sshkeypathandidentityfile = try values.decodeIfPresent(String.self, forKey: .sshkeypathandidentityfile)
        sshport = try values.decodeIfPresent(Int.self, forKey: .sshport)
        task = try values.decodeIfPresent(String.self, forKey: .task)
    }
}
<commit_msg>Update ConfigurationsJson.swift<commit_after>//
//  ConfigurationsJson.swift
//  RsyncOSX
//
//  Created by <NAME> on 17/10/2020.
//  Copyright © 2020 <NAME>. All rights reserved.
//

import Foundation

struct ConfigurationsJson: Codable {
    let backupID: String?
    let dateRun: String?
    let dayssincelastbackup: String?
    let haltshelltasksonerror: Int?
    let hiddenID: Int?
    let localCatalog: String?
    let markdays: Bool?
    let offsiteCatalog: String?
    let offsiteServer: String?
    let offsiteUsername: String?
    let parameter1: String?
    let parameter10: String?
    let parameter11: String?
    let parameter12: String?
    let parameter13: String?
    let parameter14: String?
    let parameter2: String?
    let parameter3: String?
    let parameter4: String?
    let parameter5: String?
    let parameter6: String?
    let parameter8: String?
    let parameter9: String?
    let rsyncdaemon: Int?
    let sshkeypathandidentityfile: String?
    let sshport: Int?
    let task: String?
    let snapdayoffweek: String?
    let snaplast: Int?
    let executepretask: Int?
    let pretask: String?
    let executeposttask: Int?
    let posttask: String?
    let snapshotnum: Int?

    enum CodingKeys: String, CodingKey {
        case backupID
        case dateRun
        case dayssincelastbackup
        case haltshelltasksonerror
        case hiddenID
        case localCatalog
        case markdays
        case offsiteCatalog
        case offsiteServer
        case offsiteUsername
        case parameter1
        case parameter10
        case parameter11
        case parameter12
        case parameter13
        case parameter14
        case parameter2
        case parameter3
        case parameter4
        case parameter5
        case parameter6
        case parameter8
        case parameter9
        case rsyncdaemon
        case sshkeypathandidentityfile
        case sshport
        case task
        case snapdayoffweek
        case snaplast
        case executepretask
        case pretask
        case executeposttask
        case posttask
        case snapshotnum
    }

    init(from decoder: Decoder) throws {
        let values = try decoder.container(keyedBy: CodingKeys.self)
        backupID = try values.decodeIfPresent(String.self, forKey: .backupID)
        dateRun = try values.decodeIfPresent(String.self, forKey: .dateRun)
        dayssincelastbackup = try values.decodeIfPresent(String.self, forKey: .dayssincelastbackup)
        haltshelltasksonerror = try values.decodeIfPresent(Int.self, forKey: .haltshelltasksonerror)
        hiddenID = try values.decodeIfPresent(Int.self, forKey: .hiddenID)
        localCatalog = try values.decodeIfPresent(String.self, forKey: .localCatalog)
        markdays = try values.decodeIfPresent(Bool.self, forKey: .markdays)
        offsiteCatalog = try values.decodeIfPresent(String.self, forKey: .offsiteCatalog)
        offsiteServer = try values.decodeIfPresent(String.self, forKey: .offsiteServer)
        offsiteUsername = try values.decodeIfPresent(String.self, forKey: .offsiteUsername)
        parameter1 = try values.decodeIfPresent(String.self, forKey: .parameter1)
        parameter10 = try values.decodeIfPresent(String.self, forKey: .parameter10)
        parameter11 = try values.decodeIfPresent(String.self, forKey: .parameter11)
        parameter12 = try values.decodeIfPresent(String.self, forKey: .parameter12)
        parameter13 = try values.decodeIfPresent(String.self, forKey: .parameter13)
        parameter14 = try values.decodeIfPresent(String.self, forKey: .parameter14)
        parameter2 = try values.decodeIfPresent(String.self, forKey: .parameter2)
        parameter3 = try values.decodeIfPresent(String.self, forKey: .parameter3)
        parameter4 = try values.decodeIfPresent(String.self, forKey: .parameter4)
        parameter5 = try values.decodeIfPresent(String.self, forKey: .parameter5)
        parameter6 = try values.decodeIfPresent(String.self, forKey: .parameter6)
        parameter8 = try values.decodeIfPresent(String.self, forKey: .parameter8)
        parameter9 = try values.decodeIfPresent(String.self, forKey: .parameter9)
        rsyncdaemon = try values.decodeIfPresent(Int.self, forKey: .rsyncdaemon)
        sshkeypathandidentityfile = try values.decodeIfPresent(String.self, forKey: .sshkeypathandidentityfile)
        sshport = try values.decodeIfPresent(Int.self, forKey: .sshport)
        task = try values.decodeIfPresent(String.self, forKey: .task)
        snapdayoffweek = try values.decodeIfPresent(String.self, forKey: .snapdayoffweek)
        snaplast = try values.decodeIfPresent(Int.self, forKey: .snaplast)
        executepretask = try values.decodeIfPresent(Int.self, forKey: .executepretask)
        pretask = try values.decodeIfPresent(String.self, forKey: .pretask)
        executeposttask = try values.decodeIfPresent(Int.self, forKey: .executeposttask)
        posttask = try values.decodeIfPresent(String.self, forKey: .posttask)
        snapshotnum = try values.decodeIfPresent(Int.self, forKey: .snapshotnum)
    }
}

{'fraction_non_alphanumeric': 0.07629693943998264, 'fraction_numerical': 0.018233123507705666, 'mean_word_length': 3.046991655687308, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1862039', 'n_tokens_mistral': 2701, 'n_tokens_neox': 2631, 'n_words': 677}