<commit_before>//  Copyright (c) 2015 <NAME>. All rights reserved.

import UIKit

/// Evaluates a distinct layout expression into a single constraint.
///
/// Returns an evaluated NSLayoutConstraint
public func evaluateLayoutExpression(_ expression: DistinctExpressionType) -> NSLayoutConstraint {
	return expression.evaluateDistinct()
}

/// Evaluates a layout expression into constraints.
///
/// Returns an array of layout constraints.
public func evaluateLayoutExpression(_ expression: ExpressionProtocol) -> [NSLayoutConstraint] {
	return expression.evaluateAll()
}

/// Evaluates multiple layout expressions into constraints.
///
/// Returns an array of layout constraints.
public func evaluateLayoutExpressions(_ expressions: [ExpressionProtocol]) -> [NSLayoutConstraint] {
	return expressions.reduce([]) { acc, expression in
		return acc + expression.evaluateAll()
	}
}

/// Evaluates a distinct layout expression and activates the constraint.
///
/// The effect of this function is the same as setting the `isActive` property of the constraint to
/// `true`.
public func activateLayoutExpression(_ expression: DistinctExpressionType) {
    evaluateLayoutExpression(expression).isActive = true
}

/// Evaluates a layout expression and activates its constraints.
///
/// The effect of this function is the same as setting the `isActive` property of the constraints to
/// `true`.
public func activateLayoutExpression(_ expression: ExpressionProtocol) {
    evaluateLayoutExpression(expression).activateConstraints()
}

/// Evaluates multiple layout expressions and activates their constraints.
///
/// The effect of this function is the same as setting the `isActive` property of each constraint
/// to `true`.
public func activateLayoutExpressions(_ expressions: [ExpressionProtocol]) {
    evaluateLayoutExpressions(expressions).activateConstraints()
}<commit_msg>Tabs not spaces for this proj<commit_after>//  Copyright (c) 2015 <NAME>. All rights reserved.

import UIKit

/// Evaluates a distinct layout expression into a single constraint.
///
/// Returns an evaluated NSLayoutConstraint
public func evaluateLayoutExpression(_ expression: DistinctExpressionType) -> NSLayoutConstraint {
	return expression.evaluateDistinct()
}

/// Evaluates a layout expression into constraints.
///
/// Returns an array of layout constraints.
public func evaluateLayoutExpression(_ expression: ExpressionProtocol) -> [NSLayoutConstraint] {
	return expression.evaluateAll()
}

/// Evaluates multiple layout expressions into constraints.
///
/// Returns an array of layout constraints.
public func evaluateLayoutExpressions(_ expressions: [ExpressionProtocol]) -> [NSLayoutConstraint] {
	return expressions.reduce([]) { acc, expression in
		return acc + expression.evaluateAll()
	}
}

/// Evaluates a distinct layout expression and activates the constraint.
///
/// The effect of this function is the same as setting the `isActive` property of the constraint to
/// `true`.
public func activateLayoutExpression(_ expression: DistinctExpressionType) {
	evaluateLayoutExpression(expression).isActive = true
}

/// Evaluates a layout expression and activates its constraints.
///
/// The effect of this function is the same as setting the `isActive` property of the constraints to
/// `true`.
public func activateLayoutExpression(_ expression: ExpressionProtocol) {
	evaluateLayoutExpression(expression).activateConstraints()
}

/// Evaluates multiple layout expressions and activates their constraints.
///
/// The effect of this function is the same as setting the `isActive` property of each constraint
/// to `true`.
public func activateLayoutExpressions(_ expressions: [ExpressionProtocol]) {
	evaluateLayoutExpressions(expressions).activateConstraints()
}
{'fraction_non_alphanumeric': 0.09219291233679723, 'fraction_numerical': 0.0021316280309086064, 'mean_word_length': 4.74885145482389, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '3609048', 'n_tokens_mistral': 875, 'n_tokens_neox': 836, 'n_words': 355}