<commit_before>import UIKit

class EventCollectionViewCell: UICollectionViewCell {
    
    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var timeLabel: UILabel!
    @IBOutlet weak var attendeesLabel: UILabel!

    var eventModel: Event? {
        didSet { update() }
    }

    func update() {
        if let event = eventModel {
            self.titleLabel.text = event.title
            self.timeLabel.text  = join(" - ", [event.startDate.stringFromFormat("HH:mm"), event.endDate.stringFromFormat("HH:mm")])
            self.attendeesLabel.text = "aaa"
        }<commit_msg>Use map<commit_after>import UIKit
import Timepiece

class EventCollectionViewCell: UICollectionViewCell {
    
    @IBOutlet weak var titleLabel: UILabel!
    @IBOutlet weak var timeLabel: UILabel!
    @IBOutlet weak var attendeesLabel: UILabel!

    var eventModel: Event? {
        didSet { update() }
    }

    func update() {
        if let event = eventModel {
            let time = join(" - ", [event.startDate, event.endDate].map { $0.stringFromFormat("HH:mm") })

            self.titleLabel.text = event.title
            self.timeLabel.text  = time
            self.attendeesLabel.text = "aaa"
        }
{'fraction_non_alphanumeric': 0.1037344398340249, 'fraction_numerical': 0.0008298755186721991, 'mean_word_length': 2.5680473372781063, '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': '2786', 'n_tokens_mistral': 374, 'n_tokens_neox': 365, 'n_words': 85}