<commit_before>//
//  UILabelFactory.swift
//  McMileage
//
//  Created by <NAME> on 10/24/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import Foundation

func label(withText text: String, font: UIFont, textColor: UIColor = .black) -> UILabel {
    let label = UILabel(frame: .zero)
    label.text = text
    label.font = font
    label.textColor = textColor
    return label
}
<commit_msg>add text aligment parameter for label factory method<commit_after>//
//  UILabelFactory.swift
//  McMileage
//
//  Created by <NAME> on 10/24/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import Foundation

func label(withText text: String, font: UIFont, textColor: UIColor = .black, alignment: NSTextAlignment = .left) -> UILabel {
    let label = UILabel(frame: .zero)
    label.text = text
    label.font = font
    label.textColor = textColor
    label.textAlignment = alignment
    return label
}

{'fraction_non_alphanumeric': 0.11995637949836423, 'fraction_numerical': 0.021810250817884406, 'mean_word_length': 2.9740259740259742, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '2733246', 'n_tokens_mistral': 318, 'n_tokens_neox': 301, 'n_words': 90}