<commit_before>//
//  ExampleLabelInsetViewController.swift
//  Example
//
//  Created by <NAME> on 12/03/2020.
//  Copyright © 2020 Xcore. All rights reserved.
//

import Foundation

final class ExampleLabelInsetViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        title = "UILabel + ContentInset"
        view.backgroundColor = .white
        setupContentView()
    }

    private func setupContentView() {
        let label = UILabel().apply {
            $0.text = "This has horizontal inset"
            $0.contentInset = UIEdgeInsets(horizontal: .maximumPadding)
            $0.backgroundColor = .gray
            $0.numberOfLines = 0
        }
        let label2 = UILabel().apply {
            $0.text = "This has horizontal and vertical inset."
            $0.contentInset = .maximumPadding
            $0.backgroundColor = .gray
            $0.numberOfLines = 0
        }
        let label3 = UILabel().apply {
            $0.text = "100w constrained."
            $0.contentInset = UIEdgeInsets(horizontal: .maximumPadding)
            $0.backgroundColor = .gray
            $0.numberOfLines = 0
        }
        let label4 = UILabel().apply {
            $0.text = "This is label is 100h 100w constrained."
            $0.contentInset = UIEdgeInsets(horizontal: .maximumPadding)
            $0.backgroundColor = .gray
            $0.numberOfLines = 0
        }
        let label5 = UILabel().apply {
            $0.text = "This is label is constrained to 300h 150w."
            $0.contentInset = UIEdgeInsets(horizontal: .maximumPadding)
            $0.backgroundColor = .gray
            $0.numberOfLines = 0
        }
        let stackView = UIStackView(arrangedSubviews: [
            label,
            label2,
            label3,
            label4,<commit_msg>fixed example<commit_after>//
//  ExampleLabelInsetViewController.swift
//  Example
//
//  Created by <NAME> on 12/03/2020.
//  Copyright © 2020 Xcore. All rights reserved.
//

import Foundation

final class ExampleLabelInsetViewController: UIViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
        title = "UILabel + ContentInset"
        view.backgroundColor = .white
        setupContentView()
    }

    private func setupContentView() {
        let label = UILabel().apply {
            $0.text = "This has horizontal inset"
            $0.contentInset = UIEdgeInsets(horizontal: .maximumPadding)
            $0.backgroundColor = .gray
            $0.numberOfLines = 0
        }
        let label2 = UILabel().apply {
            $0.text = "This has horizontal and vertical inset."
            $0.contentInset = .maximumPadding
            $0.backgroundColor = .gray
            $0.numberOfLines = 0
        }
        let label3 = UILabel().apply {
            $0.text = "100w constrained."
            $0.contentInset = UIEdgeInsets(horizontal: .maximumPadding)
            $0.backgroundColor = .gray
            $0.numberOfLines = 0
        }
        let label4 = UILabel().apply {
            $0.text = "100h 100w constrained."
            $0.contentInset = UIEdgeInsets(horizontal: .maximumPadding)
            $0.backgroundColor = .gray
            $0.numberOfLines = 0
        }
        let label5 = UILabel().apply {
            $0.text = "This is label is constrained to 300h 150w."
            $0.contentInset = UIEdgeInsets(horizontal: .maximumPadding)
            $0.backgroundColor = .gray
            $0.numberOfLines = 0
        }
        let stackView = UIStackView(arrangedSubviews: [
            label,
            label2,
            label3,
            label4,
{'fraction_non_alphanumeric': 0.09925966547847546, 'fraction_numerical': 0.03235536057033178, 'mean_word_length': 1.7678300455235205, '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': '6988552', 'n_tokens_mistral': 1099, 'n_tokens_neox': 1011, 'n_words': 240}