<commit_before>//
//  Bundle.swift
//  WaveLabs
//
//  Created by <NAME> on 23.12.15.
//  Copyright © 2015 WaveLabs. All rights reserved.
//

public enum BundleError: Error {
   case missedURLForResource(resourceName: String, resourceExtension: String)
}

public extension Bundle {

   public func urlForResource(resourceName: String, resourceExtension: String) throws -> URL {
      guard let url = url(forResource: resourceName, withExtension: resourceExtension) else {
         throw BundleError.missedURLForResource(resourceName: resourceName, resourceExtension: resourceExtension)
      }
      return url
   }
}<commit_msg>Added missed import statement.<commit_after>//
//  Bundle.swift
//  WaveLabs
//
//  Created by <NAME> on 23.12.15.
//  Copyright © 2015 WaveLabs. All rights reserved.
//

import Foundation

public enum BundleError: Error {
   case missedURLForResource(resourceName: String, resourceExtension: String)
}

public extension Bundle {

   public func urlForResource(resourceName: String, resourceExtension: String) throws -> URL {
      guard let url = url(forResource: resourceName, withExtension: resourceExtension) else {
         throw BundleError.missedURLForResource(resourceName: resourceName, resourceExtension: resourceExtension)
      }
      return url
   }
}
{'fraction_non_alphanumeric': 0.0919629057187017, 'fraction_numerical': 0.015455950540958269, 'mean_word_length': 3.832089552238806, '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': '4992724', 'n_tokens_mistral': 378, 'n_tokens_neox': 344, 'n_words': 105}