<commit_before>//
//  NSString+UKPostcodeValidator.h
//  Deliverance
//
//  Created by <NAME> on 2/18/2014.
//  Copyright (c) 2014 Deliverance Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>

extern NSUInteger const MAX_UK_POSTCODE_CHARACTERS;

typedef NS_OPTIONS(NSInteger, UKPostcodeValidatorOptions) {
    UKPostcodeValidatorRequireSpace = 1 << 0,
};

// This NSString category provides a convenience method to validate whether the contents match a UK postcode format.
@interface NSString (UKPostcodeValidator)

/** Call this method to check whether the contents match a valid UK postcode format.
 @returns YES if the contents are valid. NO if they don't match any known UK postcode format.
 */
- (BOOL)isValidUKPostcode:(UKPostcodeValidatorOptions)options;

@end
<commit_msg>Added UKPostcodeValidatorRelaxed instead of 0 for no options<commit_after>//
//  NSString+UKPostcodeValidator.h
//  Deliverance
//
//  Created by <NAME> on 2/18/2014.
//  Copyright (c) 2014 Deliverance Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>

extern NSUInteger const MAX_UK_POSTCODE_CHARACTERS;

typedef NS_OPTIONS(NSInteger, UKPostcodeValidatorOptions) {
    UKPostcodeValidatorRelaxed = 0, // this allows no spaces or more than 1 space where required or trailing
    UKPostcodeValidatorRequireSpace = 1 << 0,
};

// This NSString category provides a convenience method to validate whether the contents match a UK postcode format.
@interface NSString (UKPostcodeValidator)

/** Call this method to check whether the contents match a valid UK postcode format.
 @returns YES if the contents are valid. NO if they don't match any known UK postcode format.
 */
- (BOOL)isValidUKPostcode:(UKPostcodeValidatorOptions)options;

@end

{'fraction_non_alphanumeric': 0.08018327605956473, 'fraction_numerical': 0.016609392898052692, 'mean_word_length': 4.546031746031746, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, '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': '5921409', 'n_tokens_mistral': 529, 'n_tokens_neox': 487, 'n_words': 184}