<commit_before>//
//  ValidationModel.h
//  ObjcModelValidation
//
//  Created by <NAME> on 12.06.13.
//  Copyright (c) 2013 <NAME>. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NSNumber+Validations.h"
#import "NSObject+Validations.h"
#import "NSString+Validations.h"
#import "NSDictionary+Validations.h"
#import "NSArray+Validations.h"

@interface ValidationModel : NSObject

/**
 Method that starts validation. And this should be overriden by the Model
 to support saving e.g. in a database using Magical Record.
 @return errors property containing NSError objects
 */
-(NSArray *)save;

/**
 Simple error with localized message status code 0 and className as error domain.
 @return Returns Error object
 */
-(NSError *)errorWithLocalizedMessage:(NSString *)errorMessage;

/**
 Error with custom error domain and localized error message
 @return Error object
 */
-(NSError *)errorWithErrorDomain:(NSString *)errorDomain andLocalizedMessage:(NSString *)localizedErrorMessage;

/**
 Error with custom error domain, error code and localized error message. 
 You could simply call this method on NSError but why not.
 @return Error object
 */
-(NSError *)errorWithErrorDomain:(NSString *)errorDomain code:(NSInteger)errorCode andUserInfoDictionary:(NSDictionary *)userInfoDict;

@end
<commit_msg>[REMOVED] old imports<commit_after>//
//  ValidationModel.h
//  ObjcModelValidation
//
//  Created by <NAME> on 12.06.13.
//  Copyright (c) 2013 <NAME>. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NSNumber+Validations.h"
#import "NSObject+Validations.h"
#import "NSString+Validations.h"

@interface ValidationModel : NSObject

/**
 Method that starts validation. And this should be overriden by the Model
 to support saving e.g. in a database using Magical Record.
 @return errors property containing NSError objects
 */
-(NSArray *)save;

/**
 Simple error with localized message status code 0 and className as error domain.
 @return Returns Error object
 */
-(NSError *)errorWithLocalizedMessage:(NSString *)errorMessage;

/**
 Error with custom error domain and localized error message
 @return Error object
 */
-(NSError *)errorWithErrorDomain:(NSString *)errorDomain andLocalizedMessage:(NSString *)localizedErrorMessage;

/**
 Error with custom error domain, error code and localized error message. 
 You could simply call this method on NSError but why not.
 @return Error object
 */
-(NSError *)errorWithErrorDomain:(NSString *)errorDomain code:(NSInteger)errorCode andUserInfoDictionary:(NSDictionary *)userInfoDict;

@end

{'fraction_non_alphanumeric': 0.10338126700349787, 'fraction_numerical': 0.008550330353672756, 'mean_word_length': 5.0, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2113586', 'n_tokens_mistral': 766, 'n_tokens_neox': 700, 'n_words': 256}