<commit_before>//
//  TUSUpload+getData.swift
//  TUSKit
//
//  Created by <NAME> on 27.02.21.
//

import Foundation

extension TUSUpload {
    func getData() -> Data {
        let data = try! Data(contentsOf: URL(fileURLWithPath: String(format: "%@%@", TUSClient.shared.fileManager.fileStorePath(), self.getUploadFilename())))
        return data
    }
}<commit_msg>refactor: throws when getData fails<commit_after>//
//  TUSUpload+getData.swift
//  TUSKit
//
//  Created by <NAME> on 27.02.21.
//

import Foundation

extension TUSUpload {
    func getData() throws -> Data {
        let data = try Data(contentsOf: URL(fileURLWithPath: String(format: "%@%@", TUSClient.shared.fileManager.fileStorePath(), self.getUploadFilename())))
        return data
    }
}
{'fraction_non_alphanumeric': 0.14960629921259844, 'fraction_numerical': 0.015748031496062992, 'mean_word_length': 3.2865168539325844, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4876641', 'n_tokens_mistral': 260, 'n_tokens_neox': 250, 'n_words': 55}