<commit_before>//  Copyright (c) 2014 <NAME>. All rights reserved.
//  Licensed under the MIT license, see LICENSE file for more info.

import UIKit

struct ALOperand {
	let view: UIView
	let attribute: NSLayoutAttribute
	let multiplier: CGFloat
	let constant: CGFloat
    
    func relateTo(right: ALOperand, relation: NSLayoutRelation) -> NSLayoutConstraint {
        return NSLayoutConstraint(item: view, attribute: attribute, relatedBy: relation, toItem: right.view, attribute: right.attribute, multiplier: right.multiplier, constant: right.constant)
    }
    
    /// Equivalent to NSLayoutRelation.Equal
    func equalTo(right: ALOperand) -> NSLayoutConstraint {
        return relateTo(right, relation: .Equal)
    }
    
    /// Equivalent to NSLayoutRelation.GreaterThanOrEqual
    func greaterThanOrEqualTo(right: ALOperand) -> NSLayoutConstraint {
        return relateTo(right, relation: .GreaterThanOrEqual)
    }
    
    /// Equivalent to NSLayoutRelation.LessThanOrEqual
    func lessThanOrEqualTo(right: ALOperand) -> NSLayoutConstraint {
        return relateTo(right, relation: .LessThanOrEqual)
    }
}

/// Multiplies the operand's multiplier by the RHS value<commit_msg>Fix indenting<commit_after>//  Copyright (c) 2014 <NAME>. All rights reserved.
//  Licensed under the MIT license, see LICENSE file for more info.

import UIKit

struct ALOperand {
    let view: UIView
    let attribute: NSLayoutAttribute
    let multiplier: CGFloat
    let constant: CGFloat
    
    func relateTo(right: ALOperand, relation: NSLayoutRelation) -> NSLayoutConstraint {
        return NSLayoutConstraint(item: view, attribute: attribute, relatedBy: relation, toItem: right.view, attribute: right.attribute, multiplier: right.multiplier, constant: right.constant)
    }
    
    /// Equivalent to NSLayoutRelation.Equal
    func equalTo(right: ALOperand) -> NSLayoutConstraint {
        return relateTo(right, relation: .Equal)
    }
    
    /// Equivalent to NSLayoutRelation.GreaterThanOrEqual
    func greaterThanOrEqualTo(right: ALOperand) -> NSLayoutConstraint {
        return relateTo(right, relation: .GreaterThanOrEqual)
    }
    
    /// Equivalent to NSLayoutRelation.LessThanOrEqual
    func lessThanOrEqualTo(right: ALOperand) -> NSLayoutConstraint {
        return relateTo(right, relation: .LessThanOrEqual)
    }
}

/// Multiplies the operand's multiplier by the RHS value
{'fraction_non_alphanumeric': 0.08423686405337781, 'fraction_numerical': 0.003336113427856547, 'mean_word_length': 3.6134615384615385, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '5071022', 'n_tokens_mistral': 691, 'n_tokens_neox': 676, 'n_words': 194}