<commit_before>//
//  SFGeometryMap.swift
//  MAGE
//
//  Created by <NAME> on 2/17/22.
//  Copyright © 2022 National Geospatial Intelligence Agency. All rights reserved.
//

import Foundation
import MapKit
import geopackage_ios

protocol SFGeometryMap {
    var mapView: MKMapView? { get set }
    var scheme: MDCContainerScheming? { get set }
    var sfGeometryMapMixin: SFGeometryMapMixin? { get set }
}

class SFGeometryMapMixin: NSObject, MapMixin {
    var sfGeometryMap: SFGeometryMap
    var _sfGeometry: SFGeometry?
    var sfGeometry: SFGeometry? {
        get {
            return _sfGeometry
        }
        set {
            replaceSFGeometry(sfGeometry: newValue)
            _sfGeometry = newValue
        }
    }
    var geometryToShape: [SFGeometry : GPKGMapShape] = [:]
    
    init(sfGeometryMap: SFGeometryMap, sfGeometry: SFGeometry?) {
        self.sfGeometryMap = sfGeometryMap
        self._sfGeometry = sfGeometry<commit_msg>fix for not being able to archive<commit_after>//
//  SFGeometryMap.swift
//  MAGE
//
//  Created by <NAME> on 2/17/22.
//  Copyright © 2022 National Geospatial Intelligence Agency. All rights reserved.
//

import Foundation
import MapKit
import geopackage_ios
import sf_ios

protocol SFGeometryMap {
    var mapView: MKMapView? { get set }
    var scheme: MDCContainerScheming? { get set }
    var sfGeometryMapMixin: SFGeometryMapMixin? { get set }
}

class SFGeometryMapMixin: NSObject, MapMixin {
    var sfGeometryMap: SFGeometryMap
    var _sfGeometry: SFGeometry?
    var sfGeometry: SFGeometry? {
        get {
            return _sfGeometry
        }
        set {
            replaceSFGeometry(sfGeometry: newValue)
            _sfGeometry = newValue
        }
    }
    var geometryToShape: [SFGeometry : GPKGMapShape] = [:]
    
    init(sfGeometryMap: SFGeometryMap, sfGeometry: SFGeometry?) {
        self.sfGeometryMap = sfGeometryMap
        self._sfGeometry = sfGeometry
{'fraction_non_alphanumeric': 0.07938144329896907, 'fraction_numerical': 0.009278350515463918, 'mean_word_length': 2.739884393063584, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6935903', 'n_tokens_mistral': 596, 'n_tokens_neox': 575, 'n_words': 155}