<commit_before>//
//  AuthorizePaymentTableViewCell.swift
//  MercadoPagoSDK
//
//  Created by <NAME> on 9/5/16.
//  Copyright © 2016 MercadoPago. All rights reserved.
//

import UIKit

class AuthorizePaymentHeaderTableViewCell: UITableViewCell, CongratsFillmentDelegate {

    static let ROW_HEIGHT = CGFloat(260)
    
    
    @IBOutlet weak var title: MPLabel!
    
    
    @IBOutlet weak var subtitle: MPLabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        self.title.addCharactersSpacing(-0.4)
        self.layer.shadowOffset = CGSizeMake(0, 1)
        self.layer.shadowColor = UIColor(red: 153, green: 153, blue: 153).CGColor
        self.layer.shadowRadius = 3
        self.layer.shadowOpacity = 0.6

    }

    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        // Configure the view for the selected state
    }
    
    func fillCell(payment: Payment, paymentMethod : PaymentMethod, callback : (Void -> Void)?) -> UITableViewCell {
        let title = NSMutableAttributedString(string: "Debes autorizar ante ".localized + paymentMethod.name + " el pago de ".localized)
        let attributedAmount = Utils.getAttributedAmount(String(payment.transactionDetails.totalPaidAmount), thousandSeparator: ",", decimalSeparator: ".", currencySymbol: "$", color: UIColor(red: 102, green: 102, blue: 102))
        title.appendAttributedString(attributedAmount)
        title.appendAttributedString(NSMutableAttributedString(string : " a MercadoPago".localized))
        self.title.attributedText = title
        self.title.addLineSpacing(4)
        self.subtitle.text = "El teléfono está al dorso de tu tarjeta".localized
        
        return self
    }
    
    
}<commit_msg>Proper currency for auth congrats<commit_after>//
//  AuthorizePaymentTableViewCell.swift
//  MercadoPagoSDK
//
//  Created by <NAME> on 9/5/16.
//  Copyright © 2016 MercadoPago. All rights reserved.
//

import UIKit

class AuthorizePaymentHeaderTableViewCell: UITableViewCell, CongratsFillmentDelegate {

    static let ROW_HEIGHT = CGFloat(260)
    
    
    @IBOutlet weak var title: MPLabel!
    
    
    @IBOutlet weak var subtitle: MPLabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        self.title.addCharactersSpacing(-0.4)
        self.layer.shadowOffset = CGSizeMake(0, 1)
        self.layer.shadowColor = UIColor(red: 153, green: 153, blue: 153).CGColor
        self.layer.shadowRadius = 3
        self.layer.shadowOpacity = 0.6

    }

    override func setSelected(selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        // Configure the view for the selected state
    }
    
    func fillCell(payment: Payment, paymentMethod : PaymentMethod, callback : (Void -> Void)?) -> UITableViewCell {
        let title = NSMutableAttributedString(string: "Debes autorizar ante ".localized + paymentMethod.name + " el pago de ".localized)
        let attributedAmount = Utils.getAttributedAmount(String(payment.transactionDetails.totalPaidAmount), thousandSeparator: ".", decimalSeparator: ",", currencySymbol: "$", color: UIColor(red: 102, green: 102, blue: 102))
        title.appendAttributedString(attributedAmount)
        title.appendAttributedString(NSMutableAttributedString(string : " a MercadoPago".localized))
        self.title.attributedText = title
        self.title.addLineSpacing(4)
        self.subtitle.text = "El teléfono está al dorso de tu tarjeta".localized
        
        return self
    }
    
    
}
{'fraction_non_alphanumeric': 0.09810479375696766, 'fraction_numerical': 0.020624303232998884, 'mean_word_length': 3.0923603192702394, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '983377', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1068, 'n_words': 248}