<commit_before>import Foundation
import GaussKrueger

public struct FindResponse: Decodable {
    public let stops: [Stop]
    public let expirationTime: Date?

    private enum CodingKeys: String, CodingKey {
        case stops = "Points"
        case expirationTime = "ExpirationTime"
    }
}

/// A place where a bus, tram or whatever can stop.
public struct Stop: Decodable {
    public let id: String
    public let name: String
    public let region: String?
    public let location: WGSCoordinate?

    public init(from decoder: Decoder) throws {
        let container = try decoder.singleValueContainer()
        let string = container.decode(String.self)

        let components = string.components(separatedBy: "|")
        guard components.count == 9 else {
            throw DecodingError.dataCorrupted(DecodingError.Context(codingPath: [], debugDescription: "Illegal number of parameters for a Stop."))
        }
        self.id = components[0]
        self.region = components[2].isEmpty ? nil : components[2]
        self.name = components[3]

        guard
            let x = Double(components[5]),
            let y = Double(components[4])
        else {
            throw DecodingError.dataCorrupted(DecodingError.Context(codingPath: [], debugDescription: "Stop coordinates should be numeric values."))<commit_msg>add missing `try`<commit_after>import Foundation
import GaussKrueger

public struct FindResponse: Decodable {
    public let stops: [Stop]
    public let expirationTime: Date?

    private enum CodingKeys: String, CodingKey {
        case stops = "Points"
        case expirationTime = "ExpirationTime"
    }
}

/// A place where a bus, tram or whatever can stop.
public struct Stop: Decodable {
    public let id: String
    public let name: String
    public let region: String?
    public let location: WGSCoordinate?

    public init(from decoder: Decoder) throws {
        let container = try decoder.singleValueContainer()
        let string = try container.decode(String.self)

        let components = string.components(separatedBy: "|")
        guard components.count == 9 else {
            throw DecodingError.dataCorrupted(DecodingError.Context(codingPath: [], debugDescription: "Illegal number of parameters for a Stop."))
        }
        self.id = components[0]
        self.region = components[2].isEmpty ? nil : components[2]
        self.name = components[3]

        guard
            let x = Double(components[5]),
            let y = Double(components[4])
        else {
            throw DecodingError.dataCorrupted(DecodingError.Context(codingPath: [], debugDescription: "Stop coordinates should be numeric values."))
{'fraction_non_alphanumeric': 0.08825729244577413, 'fraction_numerical': 0.005235602094240838, 'mean_word_length': 2.8994169096209914, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6776869', 'n_tokens_mistral': 722, 'n_tokens_neox': 693, 'n_words': 224}