<commit_before>import UIKit

import MirrorDisplay
import EstimoteProximitySDK

class ViewController: UIViewController {

    let mirrorClient = MirrorClient(appID: "", appToken: "")
    var proximityObserver: EPXProximityObserver!


    override func viewDidLoad() {
        super.viewDidLoad()
        
        let sneakersBanner = Poster() { p in
            
            p.header = "Exceptional traction\nfrom your first to final mile"
            p.body = "Now 20% off!"
            p.image = .preloaded(path: "shoe_big.jpg")
            
            p.style = PosterStyle() { ps in
                ps.imagePosition = Position(horizontal: .center, vertical: .top(offset: 80))
                ps.textPosition = Position(horizontal: .center, vertical: .bottom(offset: 80))
                ps.textAlign = .center
                ps.headerFontSize = .percent(130)
            }
        }
        
        let credentials = EPXCloudCredentials(appID: "", appToken: "")
        self.proximityObserver = EPXProximityObserver(credentials: credentials, errorBlock: { error in
            print("\(error)")
        })
        
        let mirrorZone = EPXProximityZone(range: EPXProximityRange.near,
                                             tag: "mirror")
        mirrorZone.onEnterAction = { zoneContext in
            print("Enter mirror")
            self.mirrorClient.display(sneakersBanner, onMirror: zoneContext.deviceIdentifier)
        }
        mirrorZone.onExitAction = { zoneContext in
            print("Exit mirror")
        }

        self.proximityObserver.startObserving([mirrorZone])
    }
}
<commit_msg>Updated Swift example to compile with the newest ProximitySDK<commit_after>import UIKit

import MirrorDisplay
import EstimoteProximitySDK

class ViewController: UIViewController {

    let mirrorClient = MirrorClient(appID: "", appToken: "")
    var proximityObserver: EPXProximityObserver!


    override func viewDidLoad() {
        super.viewDidLoad()
        
        let sneakersBanner = Poster() { p in
            
            p.header = "Exceptional traction\nfrom your first to final mile"
            p.body = "Now 20% off!"
            p.image = .preloaded(path: "shoe_big.jpg")
            
            p.style = PosterStyle() { ps in
                ps.imagePosition = Position(horizontal: .center, vertical: .top(offset: 80))
                ps.textPosition = Position(horizontal: .center, vertical: .bottom(offset: 80))
                ps.textAlign = .center
                ps.headerFontSize = .percent(130)
            }
        }
        
        let credentials = CloudCredentials(appID: "", appToken: "")
        self.proximityObserver = ProximityObserver(credentials: credentials, onError: { error in
            print("\(error)")
        })
        
        let mirrorZone = ProximityZone(tag: "mirror", range: ProximityRange.near)
        mirrorZone.onEnter = { zoneContext in
            print("Enter mirror")
            self.mirrorClient.display(sneakersBanner, onMirror: zoneContext.deviceIdentifier)
        }
        mirrorZone.onExit = { zoneContext in
            print("Exit mirror")
        }

        self.proximityObserver.startObserving([mirrorZone])
    }
}

{'fraction_non_alphanumeric': 0.09458618543870566, 'fraction_numerical': 0.005600497822028625, 'mean_word_length': 2.0795019157088124, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5204327', 'n_tokens_mistral': 899, 'n_tokens_neox': 856, 'n_words': 190}