<commit_before>import UIKit

class VCameraFooter:UICollectionReusableView
{
    private let kLabelMargin:CGFloat = 10
    
    override init(frame:CGRect)
    {
        super.init(frame:frame)
        clipsToBounds = true
        backgroundColor = UIColor.clear
        isUserInteractionEnabled = false
        
        let label:UILabel = UILabel()
        label.isUserInteractionEnabled = false
        label.translatesAutoresizingMaskIntoConstraints = false
        label.backgroundColor = UIColor.clear
        label.font = UIFont.regular(size:19)
        label.textColor = UIColor(white:0.4, alpha:1)
        label.numberOfLines = 0
        label.textAlignment = NSTextAlignment.center
        label.text = NSLocalizedString("VCameraFooter_label", comment:"")
        
        addSubview(label)
        
        let constraintsLabelVertical:[NSLayoutConstraint] = NSLayoutConstraint.equalsVertical(
            view:label,
            toView:self)
        let constraintsLabelHorizontal:[NSLayoutConstraint] = NSLayoutConstraint.equalsHorizontal(
            view:label,
            toView:self,
            margin:-kLabelMargin)
        
        addConstraints(constraintsLabelVertical)
        addConstraints(constraintsLabelHorizontal)
    }
    
    required init?(coder:NSCoder)
    {
        fatalError()
    }
}<commit_msg>refactor constraints<commit_after>import UIKit

class VCameraFooter:UICollectionReusableView
{
    private let kLabelMargin:CGFloat = 10
    
    override init(frame:CGRect)
    {
        super.init(frame:frame)
        clipsToBounds = true
        backgroundColor = UIColor.clear
        isUserInteractionEnabled = false
        
        let label:UILabel = UILabel()
        label.isUserInteractionEnabled = false
        label.translatesAutoresizingMaskIntoConstraints = false
        label.backgroundColor = UIColor.clear
        label.font = UIFont.regular(size:19)
        label.textColor = UIColor(white:0.4, alpha:1)
        label.numberOfLines = 0
        label.textAlignment = NSTextAlignment.center
        label.text = NSLocalizedString("VCameraFooter_label", comment:"")
        
        addSubview(label)
        
        NSLayoutConstraint.equalsVertical(
            view:label,
            toView:self)
        NSLayoutConstraint.equalsHorizontal(
            view:label,
            toView:self,
            margin:-kLabelMargin)
    }
    
    required init?(coder:NSCoder)
    {
        fatalError()
    }
}
{'fraction_non_alphanumeric': 0.07473598700243704, 'fraction_numerical': 0.006498781478472786, 'mean_word_length': 2.3878954607977994, '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': '242032', 'n_tokens_mistral': 683, 'n_tokens_neox': 687, 'n_words': 105}