<commit_before>//
//  Leitung.swift
//  Experiments
//
//  Created by <NAME> on 10/12/14.
//  Copyright (c) 2014 cismet. All rights reserved.
//

import Foundation
import ObjectMapper

class Leitung : GeoBaseEntity , MapperProtocol{
    var leitungstyp : String?; //wird Leitungstypobjekt
    init(id: Int, leitungstyp: String, geoString: String) {
        super.init();
        self.id=id;
        self.leitungstyp=leitungstyp;
        self.wgs84WKT=geoString;
    }
    required init(){}
    override func map(mapper: Mapper) {
        id <= mapper["id"];
        leitungstyp <= mapper["fk_leitungstyp.bezeichnung"];
        wgs84WKT <= mapper["fk_geom.wgs84_wkt"]
    }
}
<commit_msg>working on #8: added Annotation Info to better visualize the selection<commit_after>//
//  Leitung.swift
//  Experiments
//
//  Created by <NAME> on 10/12/14.
//  Copyright (c) 2014 cismet. All rights reserved.
//

import Foundation
import ObjectMapper

class Leitung : GeoBaseEntity , MapperProtocol{
    var leitungstyp : String?; //wird Leitungstypobjekt
    init(id: Int, leitungstyp: String, geoString: String) {
        super.init();
        self.id=id;
        self.leitungstyp=leitungstyp;
        self.wgs84WKT=geoString;
    }
    required init(){}
    override func map(mapper: Mapper) {
        id <= mapper["id"];
        leitungstyp <= mapper["fk_leitungstyp.bezeichnung"];
        wgs84WKT <= mapper["fk_geom.wgs84_wkt"]
    }
    
//    override func getAnnotationImageName() -> String{
//        return "handle.png";
//    }
    
    override func getAnnotationTitle() -> String{
        return "Leitung \(id)";
    }
    override func getAnnotationSubTitle() -> String{
        return "\(leitungstyp!)";
    }
    override func canShowCallout() -> Bool{
        return true;
    }

}

{'fraction_non_alphanumeric': 0.12744550027948576, 'fraction_numerical': 0.0184460592509782, 'mean_word_length': 2.623481781376518, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '4296930', 'n_tokens_mistral': 631, 'n_tokens_neox': 626, 'n_words': 135}