<commit_before>import UIKit

protocol InfoMessageAnimatorBehavior {
    func configure(messageView: UIView, in container: UIView)
    func present(messageView: UIView, in container: UIView)
    func dismiss(messageView: UIView, in container: UIView)
}

final class DefaultInfoMessageAnimatorBehavior: InfoMessageAnimatorBehavior {
    
    func configure(messageView: UIView, in container: UIView) {
        messageView.autoresizingMask = [.flexibleWidth, .flexibleTopMargin]
        messageView.alpha = 0
        
        // Hardcoded, because the camera camera controls is located above all views on iPad
        var bottomInset: CGFloat = 20
        if UIDevice.current.userInterfaceIdiom == .pad {
            bottomInset = 154
        }
        messageView.bottom = container.height - bottomInset
        messageView.centerX = ceil(container.width / 2)
    }
    
    func present(messageView: UIView, in container: UIView) {
        messageView.alpha = 1
    }
    
    func dismiss(messageView: UIView, in container: UIView) {<commit_msg>AI-7183: Improve imfo message cludge<commit_after>import UIKit

protocol InfoMessageAnimatorBehavior {
    func configure(messageView: UIView, in container: UIView)
    func present(messageView: UIView, in container: UIView)
    func dismiss(messageView: UIView, in container: UIView)
}

final class DefaultInfoMessageAnimatorBehavior: InfoMessageAnimatorBehavior {
    
    func configure(messageView: UIView, in container: UIView) {
        messageView.autoresizingMask = [.flexibleWidth, .flexibleTopMargin]
        messageView.alpha = 0
        
        // Hardcoded, because the camera controls are located above all views on iPad
        let bottomInset: CGFloat = UIDevice.current.userInterfaceIdiom == .pad ? 154 : 20
        messageView.bottom = container.height - bottomInset
        messageView.centerX = ceil(container.width / 2)
    }
    
    func present(messageView: UIView, in container: UIView) {
        messageView.alpha = 1
    }
    
    func dismiss(messageView: UIView, in container: UIView) {
{'fraction_non_alphanumeric': 0.07419980601357905, 'fraction_numerical': 0.009699321047526674, 'mean_word_length': 3.2274590163934427, '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': '2016262', 'n_tokens_mistral': 590, 'n_tokens_neox': 568, 'n_words': 159}