<commit_before>import UIKit

class TextSizeChangeExampleViewController: UIViewController {
    
    fileprivate var theme = Theme.standard
    
    @IBOutlet weak var textSizeChangeExampleLabel: UILabel!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        apply(theme: self.theme)
        //localize
        textSizeChangeExampleLabel.text = "Drag the slider above to change the article text sizing. Utilize your system text size to resize other text areas in the app."
        
        //TODO: update notification name
        NotificationCenter.default.addObserver(self, selector: #selector(self.textSizeChanged(notification:)), name: NSNotification.Name(rawValue: FontSizeSliderViewController.WMFArticleFontSizeUpdatedNotification), object: nil)
    }
    
    deinit {
        NotificationCenter.default.removeObserver(self)
        NSObject.cancelPreviousPerformRequests(withTarget: self)
    }
    
    func textSizeChanged(notification: Notification) {
        if let multiplier = notification.userInfo?[FontSizeSliderViewController.WMFArticleFontSizeMultiplierKey] as? NSNumber {
            //Font size too big
            textSizeChangeExampleLabel.font = textSizeChangeExampleLabel.font.withSize(CGFloat(multiplier.intValue))
        }
    }
    
}

extension TextSizeChangeExampleViewController: Themeable {
    public func apply(theme: Theme) {
        self.theme = theme
        
        guard viewIfLoaded != nil else {
            return
        }
        
        view.backgroundColor = theme.colors.baseBackground
        textSizeChangeExampleLabel.textColor = theme.colors.primaryText
    }
    
}
<commit_msg>divide multiplier by 100, use base size of 15<commit_after>import UIKit

class TextSizeChangeExampleViewController: UIViewController {
    
    fileprivate var theme = Theme.standard
    
    @IBOutlet weak var textSizeChangeExampleLabel: UILabel!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        apply(theme: self.theme)
        //localize
        textSizeChangeExampleLabel.text = "Drag the slider above to change the article text sizing. Utilize your system text size to resize other text areas in the app."
        
        //TODO: update notification name
        NotificationCenter.default.addObserver(self, selector: #selector(self.textSizeChanged(notification:)), name: NSNotification.Name(rawValue: FontSizeSliderViewController.WMFArticleFontSizeUpdatedNotification), object: nil)
    }
    
    deinit {
        NotificationCenter.default.removeObserver(self)
        NSObject.cancelPreviousPerformRequests(withTarget: self)
    }
    
    func textSizeChanged(notification: Notification) {
        if let multiplier = notification.userInfo?[FontSizeSliderViewController.WMFArticleFontSizeMultiplierKey] as? NSNumber {
            textSizeChangeExampleLabel.font = textSizeChangeExampleLabel.font.withSize(15*CGFloat(multiplier)/100)
        }
    }
    
}

extension TextSizeChangeExampleViewController: Themeable {
    public func apply(theme: Theme) {
        self.theme = theme
        
        guard viewIfLoaded != nil else {
            return
        }
        
        view.backgroundColor = theme.colors.baseBackground
        textSizeChangeExampleLabel.textColor = theme.colors.primaryText
    }
    
}

{'fraction_non_alphanumeric': 0.06783767413688674, 'fraction_numerical': 0.0030284675953967293, 'mean_word_length': 3.062730627306273, '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': '1787928', 'n_tokens_mistral': 864, 'n_tokens_neox': 844, 'n_words': 192}