<commit_before>//
//  File.swift
//  MercadoPagoSDK
//
//  Created by <NAME> on 9/11/17.
//  Copyright © 2017 MercadoPago. All rights reserved.
//

extension UIView {

    //Eventualmente hay que borrar esto. Cuando summary deje de usarlo
    func addSeparatorLineToTop(horizontalMargin: CGFloat, width: CGFloat, height: CGFloat) {
        let lineFrame = CGRect(origin: CGPoint(x: horizontalMargin, y :0), size: CGSize(width: width, height: height))
        let line = UIView(frame: lineFrame)
        line.alpha = 0.6
        line.backgroundColor = UIColor.UIColorFromRGB(0xEEEEEE)
        addSubview(line)
    }

    func addSeparatorLineToTop(height: CGFloat, horizontalMarginPercentage: CGFloat = 100, color: UIColor = .UIColorFromRGB(0xEEEEEE)) {
        let line = UIView()
        line.translatesAutoresizingMaskIntoConstraints = false
        line.backgroundColor = color
        self.addSubview(line)
        PXLayout.pinTop(view: line).isActive = true
        PXLayout.matchWidth(ofView: line, withPercentage: horizontalMarginPercentage).isActive = true
        PXLayout.centerHorizontally(view: line).isActive = true
        PXLayout.setHeight(owner: line, height: height).isActive = true
    }

    //Eventualmente hay que borrar esto. Cuando summary deje de usarlo
    func addSeparatorLineToBottom(horizontalMargin: CGFloat, width: CGFloat, height: CGFloat) {
        let lineFrame = CGRect(origin: CGPoint(x: horizontalMargin, y :self.frame.size.height - height), size: CGSize(width: width, height: height))
        let line = UIView(frame: lineFrame)
        line.alpha = 0.6
        line.backgroundColor = .UIColorFromRGB(0xEEEEEE)
        addSubview(line)
    }

    func addSeparatorLineToBottom(height: CGFloat, horizontalMarginPercentage: CGFloat = 100, color: UIColor = .UIColorFromRGB(0xEEEEEE)) {
        let line = UIView()
        line.translatesAutoresizingMaskIntoConstraints = false
        line.backgroundColor = color
        self.addSubview(line)
        PXLayout.pinBottom(view: line).isActive = true
        PXLayout.matchWidth(ofView: line, withPercentage: horizontalMarginPercentage).isActive = true
        PXLayout.centerHorizontally(view: line).isActive = true
        PXLayout.setHeight(owner: line, height: height).isActive = true
    }

    //Eventualmente hay que borrar esto. Cuando summary deje de usarlo
    func addLine(y: CGFloat, horizontalMargin: CGFloat, width: CGFloat, height: CGFloat) {
        let lineFrame = CGRect(origin: CGPoint(x: horizontalMargin, y :y), size: CGSize(width: width, height: height))
        let line = UIView(frame: lineFrame)
        line.alpha = 0.6
        line.backgroundColor = UIColor.px_grayLight()
        addSubview(line)
    }

    func addLine(yCoordinate: CGFloat, height: CGFloat, horizontalMarginPercentage: CGFloat = 100, color: UIColor = .UIColorFromRGB(0xEEEEEE)) {
        let line = UIView()
        line.translatesAutoresizingMaskIntoConstraints = false
        line.backgroundColor = color
        self.addSubview(line)
        PXLayout.pinBottom(view: line, withMargin: yCoordinate).isActive = true
        PXLayout.matchWidth(ofView: line, withPercentage: horizontalMarginPercentage).isActive = true
        PXLayout.centerHorizontally(view: line).isActive = true
        PXLayout.setHeight(owner: line, height: height).isActive = true
    }
}<commit_msg>Summary line - UI improvement<commit_after>//
//  File.swift
//  MercadoPagoSDK
//
//  Created by <NAME> on 9/11/17.
//  Copyright © 2017 MercadoPago. All rights reserved.
//

extension UIView {

    //Eventualmente hay que borrar esto. Cuando summary deje de usarlo
    func addSeparatorLineToTop(horizontalMargin: CGFloat, width: CGFloat, height: CGFloat) {
        let lineFrame = CGRect(origin: CGPoint(x: horizontalMargin, y :0), size: CGSize(width: width, height: height))
        let line = UIView(frame: lineFrame)
        line.alpha = 0.6
        line.backgroundColor = UIColor.UIColorFromRGB(0xEEEEEE)
        addSubview(line)
    }

    func addSeparatorLineToTop(height: CGFloat, horizontalMarginPercentage: CGFloat = 100, color: UIColor = .UIColorFromRGB(0xEEEEEE)) {
        let line = UIView()
        line.translatesAutoresizingMaskIntoConstraints = false
        line.backgroundColor = color
        self.addSubview(line)
        PXLayout.pinTop(view: line).isActive = true
        PXLayout.matchWidth(ofView: line, withPercentage: horizontalMarginPercentage).isActive = true
        PXLayout.centerHorizontally(view: line).isActive = true
        PXLayout.setHeight(owner: line, height: height).isActive = true
    }

    //Eventualmente hay que borrar esto. Cuando summary deje de usarlo
    func addSeparatorLineToBottom(horizontalMargin: CGFloat, width: CGFloat, height: CGFloat) {
        let lineFrame = CGRect(origin: CGPoint(x: horizontalMargin, y :self.frame.size.height - height), size: CGSize(width: width, height: height))
        let line = UIView(frame: lineFrame)
        line.alpha = 0.6
        line.backgroundColor = .UIColorFromRGB(0xEEEEEE)
        addSubview(line)
    }

    func addSeparatorLineToBottom(height: CGFloat, horizontalMarginPercentage: CGFloat = 100, color: UIColor = .UIColorFromRGB(0xEEEEEE)) {
        let line = UIView()
        line.translatesAutoresizingMaskIntoConstraints = false
        line.backgroundColor = color
        self.addSubview(line)
        PXLayout.pinBottom(view: line).isActive = true
        PXLayout.matchWidth(ofView: line, withPercentage: horizontalMarginPercentage).isActive = true
        PXLayout.centerHorizontally(view: line).isActive = true
        PXLayout.setHeight(owner: line, height: height).isActive = true
    }

    //Eventualmente hay que borrar esto. Cuando summary deje de usarlo
    func addLine(y: CGFloat, horizontalMargin: CGFloat, width: CGFloat, height: CGFloat) {
        let lineFrame = CGRect(origin: CGPoint(x: horizontalMargin, y :y), size: CGSize(width: width, height: height))
        let line = UIView(frame: lineFrame)
        line.alpha = 0.6
        line.backgroundColor = UIColor(red:0.00, green:0.00, blue:0.00, alpha:0.4)
        addSubview(line)
    }

    func addLine(yCoordinate: CGFloat, height: CGFloat, horizontalMarginPercentage: CGFloat = 100, color: UIColor = .UIColorFromRGB(0xEEEEEE)) {
        let line = UIView()
        line.translatesAutoresizingMaskIntoConstraints = false
        line.backgroundColor = color
        self.addSubview(line)
        PXLayout.pinBottom(view: line, withMargin: yCoordinate).isActive = true
        PXLayout.matchWidth(ofView: line, withPercentage: horizontalMarginPercentage).isActive = true
        PXLayout.centerHorizontally(view: line).isActive = true
        PXLayout.setHeight(owner: line, height: height).isActive = true
    }
}
{'fraction_non_alphanumeric': 0.09634453159686251, 'fraction_numerical': 0.010507621725617878, 'mean_word_length': 3.411227154046997, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7054041', 'n_tokens_mistral': 2131, 'n_tokens_neox': 2084, 'n_words': 480}