<commit_before>import Foundation

public extension URL {
    public func starts(with url: URL) -> Bool {
        return self.absoluteString.starts(with: url.absoluteString)
    }

    public func appendingQueryParameters(_ parameters: [String: String]?) -> URL {
        guard let parameters = parameters,
              var urlComponents = URLComponents(url: self, resolvingAgainstBaseURL: true) else {
                return self
        }
        
        var mutableQueryItems: [URLQueryItem] = urlComponents.queryItems ?? []
        mutableQueryItems.append(contentsOf: parameters.map { URLQueryItem(name: $0, value: $1) })
        urlComponents.queryItems = mutableQueryItems
        return urlComponents.url!
    }
}<commit_msg>add extension to avoid warnings for statics urls<commit_after>import Foundation

public extension URL {
    public func starts(with url: URL) -> Bool {
        return self.absoluteString.starts(with: url.absoluteString)
    }

    public func appendingQueryParameters(_ parameters: [String: String]?) -> URL {
        guard let parameters = parameters,
              var urlComponents = URLComponents(url: self, resolvingAgainstBaseURL: true) else {
                return self
        }
        
        var mutableQueryItems: [URLQueryItem] = urlComponents.queryItems ?? []
        mutableQueryItems.append(contentsOf: parameters.map { URLQueryItem(name: $0, value: $1) })
        urlComponents.queryItems = mutableQueryItems
        return urlComponents.url!
    }

    static func fromString(_ string: String) -> URL {
        guard let url = URL(string: string) else {
            fatalError("Cannot build url from string: \"\(string)\"")
        }
        return url
    }
}
{'fraction_non_alphanumeric': 0.09159859976662778, 'fraction_numerical': 0.002333722287047841, 'mean_word_length': 2.736383442265795, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '5376935', 'n_tokens_mistral': 453, 'n_tokens_neox': 439, 'n_words': 123}