<commit_before>//
//  NSPredicate.swift
//  CoreDataKit
//
//  Created by <NAME> on 27/09/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import CoreData


public extension NSPredicate {

	public class func require(info:[String:AnyObject?]) -> NSPredicate {
		var predicates = [NSPredicate]()
		
		for (key, value) in info {
			predicates.append(key == value)
		}
		
		return NSCompoundPredicate(type:.AndPredicateType, subpredicates:predicates)
	}
	
	
	//MARK: -
	
	public class func any(info:PredicateInfo) -> NSPredicate {
		return NSComparisonPredicate(info, .AnyPredicateModifier)
	}
	
	public class func all(info:PredicateInfo) -> NSPredicate {
		return NSComparisonPredicate(info, .AllPredicateModifier)
	}
}

public extension NSComparisonPredicate {

	public convenience init(_ info:PredicateInfo, _ modifier:NSComparisonPredicateModifier = NSComparisonPredicateModifier.DirectPredicateModifier, _ options:NSComparisonPredicateOptions = NSComparisonPredicateOptions(0)) {
		self.init(leftExpression:info.left, rightExpression:info.right, modifier:modifier, type:info.type, options:options)
	}
}<commit_msg>NSPredicate .any and .all class methods removed<commit_after>//
//  NSPredicate.swift
//  CoreDataKit
//
//  Created by <NAME> on 27/09/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import CoreData


public extension NSPredicate {

	public class func require(info:[String:AnyObject?]) -> NSPredicate {
		var predicates = [NSPredicate]()
		
		for (key, value) in info {
			predicates.append(key == value)
		}
		
		return NSCompoundPredicate(type:.AndPredicateType, subpredicates:predicates)
	}
}

public extension NSComparisonPredicate {

	public convenience init(_ info:PredicateInfo, _ modifier:NSComparisonPredicateModifier = NSComparisonPredicateModifier.DirectPredicateModifier, _ options:NSComparisonPredicateOptions = NSComparisonPredicateOptions(0)) {
		self.init(leftExpression:info.left, rightExpression:info.right, modifier:modifier, type:info.type, options:options)
	}
}
{'fraction_non_alphanumeric': 0.10687778327560614, 'fraction_numerical': 0.010885700148441365, 'mean_word_length': 5.108761329305136, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6852850', 'n_tokens_mistral': 678, 'n_tokens_neox': 617, 'n_words': 131}