<commit_before>//
//  PerformanceCell.swift
//  JumuNordost
//
//  Created by <NAME> on 21/02/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import Cartography

class PerformanceCell: UITableViewCell {

    private let timeLabel = Label(fontWeight: .Bold, fontStyle: .Normal, fontSize: .Medium)
    private let categoryInfoLabel = Label(fontWeight: .Bold, fontStyle: .Normal, fontSize: .Medium)
    private let mainAppearancesLabel = Label(fontWeight: .Regular, fontStyle: .Normal, fontSize: .Medium)
    private let accompanistsLabel = Label(fontWeight: .Regular, fontStyle: .Normal, fontSize: .Medium)
    private let predecessorInfoLabel = Label(fontWeight: .Regular, fontStyle: .Normal, fontSize: .Medium)

    // MARK: - Lifecycle

    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: .Default, reuseIdentifier: reuseIdentifier)

        mainAppearancesLabel.numberOfLines = 0
        accompanistsLabel.numberOfLines = 0
        accompanistsLabel.textColor = Color.secondaryTextColor

        contentView.addSubview(timeLabel)
        contentView.addSubview(categoryInfoLabel)
        contentView.addSubview(predecessorInfoLabel)
        contentView.addSubview(mainAppearancesLabel)
        contentView.addSubview(accompanistsLabel)

        makeConstraints()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    // MARK: - Layout

    private func makeConstraints() {
        constrain(contentView, timeLabel) { contentView, timeLabel in
            timeLabel.top == contentView.topMargin
            timeLabel.left == contentView.leftMargin
            timeLabel.width == 45
        }

        constrain(categoryInfoLabel, timeLabel, contentView) { categoryInfoLabel, timeLabel, contentView in
            align(top: timeLabel, categoryInfoLabel)

            categoryInfoLabel.left == timeLabel.right + 8
            categoryInfoLabel.right == contentView.rightMargin<commit_msg>Make accompanists same color as main appearances in performance list<commit_after>//
//  PerformanceCell.swift
//  JumuNordost
//
//  Created by <NAME> on 21/02/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import Cartography

class PerformanceCell: UITableViewCell {

    private let timeLabel = Label(fontWeight: .Bold, fontStyle: .Normal, fontSize: .Medium)
    private let categoryInfoLabel = Label(fontWeight: .Bold, fontStyle: .Normal, fontSize: .Medium)
    private let mainAppearancesLabel = Label(fontWeight: .Regular, fontStyle: .Normal, fontSize: .Medium)
    private let accompanistsLabel = Label(fontWeight: .Regular, fontStyle: .Normal, fontSize: .Medium)
    private let predecessorInfoLabel = Label(fontWeight: .Regular, fontStyle: .Normal, fontSize: .Medium)

    // MARK: - Lifecycle

    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: .Default, reuseIdentifier: reuseIdentifier)

        mainAppearancesLabel.numberOfLines = 0
        accompanistsLabel.numberOfLines = 0

        contentView.addSubview(timeLabel)
        contentView.addSubview(categoryInfoLabel)
        contentView.addSubview(predecessorInfoLabel)
        contentView.addSubview(mainAppearancesLabel)
        contentView.addSubview(accompanistsLabel)

        makeConstraints()
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    // MARK: - Layout

    private func makeConstraints() {
        constrain(contentView, timeLabel) { contentView, timeLabel in
            timeLabel.top == contentView.topMargin
            timeLabel.left == contentView.leftMargin
            timeLabel.width == 45
        }

        constrain(categoryInfoLabel, timeLabel, contentView) { categoryInfoLabel, timeLabel, contentView in
            align(top: timeLabel, categoryInfoLabel)

            categoryInfoLabel.left == timeLabel.right + 8
            categoryInfoLabel.right == contentView.rightMargin
{'fraction_non_alphanumeric': 0.09115747640337804, 'fraction_numerical': 0.007451564828614009, 'mean_word_length': 3.297758804695838, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3391197', 'n_tokens_mistral': 1169, 'n_tokens_neox': 1085, 'n_words': 262}