<commit_before>//
//  Meldung.swift
//  Leichatletik
//
//  Created by <NAME> on 28.01.17.
//  Copyright © 2017 freiraum. All rights reserved.
//

import Foundation

public protocol CompetitionDescribing {
    var id: Int { get }
    var name: String { get }
    var date: Date { get }
    var endDate: Date? { get }
    var locationName: String { get }
}

extension CompetitionDescribing {
    public var ladvURL: URL {
        return URL(string: "https://ladv.de/ausschreibung/detail/\(id)")!
    }
}

public struct Competition {
    public let id: Int
    public let name: String
    public let date: Date
    public let endDate: Date?
    public let city: String?
    public let locationName: String
    
    public let description: String
    
    //Meldung
    public let meldeAdress: String
    public let meldeEMailAdress: String
    public let meldeSchlussDate: Date
    <commit_msg>Support for attendees url<commit_after>//
//  Meldung.swift
//  Leichatletik
//
//  Created by <NAME> on 28.01.17.
//  Copyright © 2017 freiraum. All rights reserved.
//

import Foundation

public protocol CompetitionDescribing {
    var id: Int { get }
    var name: String { get }
    var date: Date { get }
    var endDate: Date? { get }
    var locationName: String { get }
}

extension CompetitionDescribing {
    public var ladvURL: URL {
        return URL(string: "https://ladv.de/ausschreibung/detail/\(id)")!
    }
    
    public var attendeesURL: URL {
        return URL(string: "https://ladv.de/meldung/teilnehmer/\(id)")!
    }
}

public struct Competition {
    public let id: Int
    public let name: String
    public let date: Date
    public let endDate: Date?
    public let city: String?
    public let locationName: String
    
    public let description: String
    
    //Meldung
    public let meldeAdress: String
    public let meldeEMailAdress: String
    public let meldeSchlussDate: Date
    
{'fraction_non_alphanumeric': 0.09352142110762801, 'fraction_numerical': 0.01044932079414838, 'mean_word_length': 2.5794392523364484, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 3, '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': '4908815', 'n_tokens_mistral': 626, 'n_tokens_neox': 596, 'n_words': 196}