<commit_before>//
//  WishesCollectionViewCell.swift
//  imagefy
//
//  Created by <NAME> on 21/05/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import UIKit

class WishesCollectionViewCell: UICollectionViewCell {
    
    @IBOutlet var content: UIView!
    @IBOutlet weak var lblProductBrief: UILabel!
    @IBOutlet weak var lblOffersCount: UILabel!
    
    override func prepareForReuse() {
        super.prepareForReuse()
    }
    
    func setupViewCell(urlImage: String, frameWidth: CGFloat) {
        UIDesign.viewShadowPath(self.content.layer, bounds: self.content.bounds, radius: 3.5, shadowOffset: CGSize(width: 4, height: 4), masksToBounds: true)
        UIDesign.viewShadowPath(self.layer, bounds: self.bounds, radius: 3.5, shadowOffset: CGSize(width: 1, height: 4), masksToBounds: false)
        let otherSubContent = UIImageView()
        otherSubContent.contentMode = .ScaleAspectFill
        otherSubContent.clipsToBounds = true
        otherSubContent.loadResourceImageWithUrl(urlImage, placeholder: nil)
        let height:CGFloat = frameWidth * 0.42
        
        otherSubContent.frame = CGRectMake(0, 0, frameWidth, height)
        self.content.addSubview(otherSubContent)
        self.content.sendSubviewToBack(otherSubContent)
    }
}<commit_msg>fix na imagem da celula de wish<commit_after>//
//  WishesCollectionViewCell.swift
//  imagefy
//
//  Created by <NAME> on 21/05/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import UIKit

class WishesCollectionViewCell: UICollectionViewCell {
    
    @IBOutlet var content: UIView!
    @IBOutlet weak var lblProductBrief: UILabel!
    @IBOutlet weak var lblOffersCount: UILabel!
    
    var otherSubContent: UIImageView!
    
    override func prepareForReuse() {
        super.prepareForReuse()
        self.otherSubContent.removeFromSuperview()
    }
    
    func setupViewCell(urlImage: String, frameWidth: CGFloat) {
        UIDesign.viewShadowPath(self.content.layer, bounds: self.content.bounds, radius: 3.5, shadowOffset: CGSize(width: 4, height: 4), masksToBounds: true)
        UIDesign.viewShadowPath(self.layer, bounds: self.bounds, radius: 3.5, shadowOffset: CGSize(width: 1, height: 4), masksToBounds: false)
        
        self.otherSubContent = UIImageView()
        self.otherSubContent.contentMode = .ScaleAspectFill
        self.otherSubContent.clipsToBounds = true
        self.otherSubContent.loadResourceImageWithUrl(urlImage, placeholder: nil)
        
        let height:CGFloat = frameWidth * 0.42
        
        otherSubContent.frame = CGRectMake(0, 0, frameWidth, height)
        self.content.addSubview(otherSubContent)
        self.content.sendSubviewToBack(otherSubContent)
    }
}
{'fraction_non_alphanumeric': 0.09653647752394989, 'fraction_numerical': 0.01694915254237288, 'mean_word_length': 3.2755905511811023, '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': '1687097', 'n_tokens_mistral': 882, 'n_tokens_neox': 840, 'n_words': 185}