<commit_before>//
//  ContactCell.swift
//  OSOrders
//
//  Created by <NAME> on 01.12.15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import UIKit

class ContactCell: UITableViewCell {
    
    @IBOutlet var pictureImageView: UIImageView!
    @IBOutlet var nameLabel: UILabel!
    @IBOutlet var phoneLabel: UILabel!

    override func awakeFromNib() {
        super.awakeFromNib()
        self.nameLabel.text = nil
        self.phoneLabel.text = nil
    }
    
    weak var contact: Contact? {
        didSet {
            self.nameLabel.text = contact?.name
            self.phoneLabel.text = contact?.phone
            self.pictureImageView.image = UIImage(named: "contact-default")
            if let pictureUrl = contact?.pictureUrl {
                self.pictureImageView.setImageWithURL(pictureUrl, placeholderImage: pictureImageView.image)
            }
        }
    }
}<commit_msg>image url setting enhancement<commit_after>//
//  ContactCell.swift
//  OSOrders
//
//  Created by <NAME> on 01.12.15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import UIKit

class ContactCell: UITableViewCell {
    
    @IBOutlet var pictureImageView: UIImageView!
    @IBOutlet var nameLabel: UILabel!
    @IBOutlet var phoneLabel: UILabel!

    override func awakeFromNib() {
        super.awakeFromNib()
        self.nameLabel.text = nil
        self.phoneLabel.text = nil
    }
    
    weak var contact: Contact? {
        didSet {
            self.nameLabel.text = contact?.name
            self.phoneLabel.text = contact?.phone
            self.pictureImageView.setImageWithURL(contact?.pictureUrl ?? NSURL(),
                placeholderImage: UIImage(named: "contact-default"))
        }
    }
}
{'fraction_non_alphanumeric': 0.10308677926616192, 'fraction_numerical': 0.011648223645894, 'mean_word_length': 2.259962049335863, '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': '2749512', 'n_tokens_mistral': 536, 'n_tokens_neox': 502, 'n_words': 116}