<commit_before>import UIKit

class InsertMediaSettingsImageView: UIView {
    @IBOutlet private weak var imageView: UIImageView!
    @IBOutlet private weak var headingLabel: UILabel!
    @IBOutlet private weak var titleLabel: UILabel!
    @IBOutlet private weak var separatorView: UIView!

    var image: UIImage? {
        didSet {
            imageView.image = image
        }
    }

    var heading: String? {
        didSet {
            headingLabel.text = heading
        }
    }

    var title: String? {
        didSet {
            titleLabel.text = title
        }
    }

    override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
        super.traitCollectionDidChange(previousTraitCollection)
        headingLabel.font = UIFont.wmf_font(.caption1, compatibleWithTraitCollection: traitCollection)
        titleLabel.font = UIFont.wmf_font(.body, compatibleWithTraitCollection: traitCollection)
    }

    override func layoutSubviews() {
        super.layoutSubviews()
        headingLabel.preferredMaxLayoutWidth = titleLabel.bounds.width
        titleLabel.preferredMaxLayoutWidth = titleLabel.bounds.width
    }
}
<commit_msg>reset to correct width<commit_after>import UIKit

class InsertMediaSettingsImageView: UIView {
    @IBOutlet private weak var imageView: UIImageView!
    @IBOutlet private weak var headingLabel: UILabel!
    @IBOutlet private weak var titleLabel: UILabel!
    @IBOutlet private weak var separatorView: UIView!

    var image: UIImage? {
        didSet {
            imageView.image = image
        }
    }

    var heading: String? {
        didSet {
            headingLabel.text = heading
        }
    }

    var title: String? {
        didSet {
            titleLabel.text = title
        }
    }

    override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) {
        super.traitCollectionDidChange(previousTraitCollection)
        headingLabel.font = UIFont.wmf_font(.caption1, compatibleWithTraitCollection: traitCollection)
        titleLabel.font = UIFont.wmf_font(.body, compatibleWithTraitCollection: traitCollection)
    }

    override func layoutSubviews() {
        super.layoutSubviews()
        headingLabel.preferredMaxLayoutWidth = headingLabel.bounds.width
        titleLabel.preferredMaxLayoutWidth = titleLabel.bounds.width
    }
}

{'fraction_non_alphanumeric': 0.06957997454391175, 'fraction_numerical': 0.0008485362749257531, 'mean_word_length': 2.8403908794788273, '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': '4733174', 'n_tokens_mistral': 654, 'n_tokens_neox': 635, 'n_words': 141}