<commit_before>import UIKit

extension VPlansListCell
{
    //MARK: internal
    
    func updateRoute(model:DPlan)
    {
        guard
        
            let origin:DPlanStop = model.stops?.firstObject as? DPlanStop,
            let destination:DPlanStop = model.stops?.lastObject as? DPlanStop
        
        else
        {
            return
        }
        
        labelOrigin.text = origin.name
        labelDestination.text = destination.name
    }
    
    func updateCreated(model:DPlan)
    {
        guard
            
            let date:Date = model.created
        
        else
        {
            return
        }
        
        let dateString:String = dateFormatter.string(from:date)
        labelCreated.text = dateString
    }
    
    func updateButton(<commit_msg>Update using computed properties<commit_after>import UIKit

extension VPlansListCell
{
    //MARK: internal
    
    func updateRoute(model:DPlan)
    {
        labelOrigin.text = model.origin?.name
        labelDestination.text = model.destination?.name
    }
    
    func updateCreated(model:DPlan)
    {
        guard
            
            let date:Date = model.created
        
        else
        {
            return
        }
        
        let dateString:String = dateFormatter.string(from:date)
        labelCreated.text = dateString
    }
    
    func updateButton(
{'fraction_non_alphanumeric': 0.0674401740391588, 'fraction_numerical': 0.0, 'mean_word_length': 1.509090909090909, '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': '1206835', 'n_tokens_mistral': 372, 'n_tokens_neox': 372, 'n_words': 69}