<commit_before>//
//  BCJJSONSource+OptionsAdditons.h
//  BCJJSONContinuations
//
//  Created by <NAME> on 04/11/2014.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

#ifndef BCJJSONContinuations_BCJJSONSource_OptionsAdditons_h
#define BCJJSONContinuations_BCJJSONSource_OptionsAdditons_h

#import "BCJJSONSource.h"



static inline BOOL BCJIsOptionSet(NSInteger option, NSInteger options) {
    return (options & option) != 0;
}

static inline BOOL BCJMustReturnValue(BCJSourceOptions options) {
    return (options & BCJSourceOptionMustReturnValue) != 0;
}

static inline BOOL BCJPathMustEvaluateToValue(BCJSourceOptions options) {
    return (options & BCJSourceOptionPathMustEvaluateToValue) != 0;
}

static inline BOOL BCJReplaceNullWithDefaultValue(BCJSourceOptions options) {
    return (options & BCJSourceOptionReplaceNullWithDefaultValue) != 0;
}


<commit_msg>- Added documentation<commit_after>//
//  BCJJSONSource+OptionsAdditons.h
//  BCJJSONContinuations
//
//  Created by <NAME> on 04/11/2014.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

#ifndef BCJJSONContinuations_BCJJSONSource_OptionsAdditons_h
#define BCJJSONContinuations_BCJJSONSource_OptionsAdditons_h



#import "BCJJSONSource.h"

/**
 Checks if BCJSourceOptionMustReturnValue has been set.

 @param options the options to check.

 @return YES if options contains BCJSourceOptionMustReturnValue, other wise NO.
 */
static inline BOOL BCJMustReturnValue(BCJSourceOptions options) {
    return (options & BCJSourceOptionMustReturnValue) != 0;
}

/**
 Checks if BCJSourceOptionPathMustEvaluateToValue has been set.

 @param options the options to check.

 @return YES if options contains BCJSourceOptionPathMustEvaluateToValue, other wise NO.
 */
static inline BOOL BCJPathMustEvaluateToValue(BCJSourceOptions options) {
    return (options & BCJSourceOptionPathMustEvaluateToValue) != 0;
}

/**
 Checks if BCJSourceOptionReplaceNullWithDefaultValue has been set.

 @param options the options to check.

 @return YES if options contains BCJSourceOptionReplaceNullWithDefaultValue, other wise NO.
 */
static inline BOOL BCJReplaceNullWithDefaultValue(BCJSourceOptions options) {
    return (options & BCJSourceOptionReplaceNullWithDefaultValue) != 0;
}



{'fraction_non_alphanumeric': 0.07880676758682101, 'fraction_numerical': 0.013802315227070348, 'mean_word_length': 5.42, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3221328', 'n_tokens_mistral': 719, 'n_tokens_neox': 654, 'n_words': 172}