<commit_before>//
//  CouchbaseLitePrivate.h
//  CouchbaseLite
//
//  Created by <NAME> on 6/19/12.
//  Copyright (c) 2012-2013 Couchbase, Inc. All rights reserved.
//

#import "CouchbaseLite.h"
#import "CBLCache.h"
#import "CBLDatabase.h"
#import "CBLDatabaseChange.h"
#import "CBLReplication+Transformation.h"
#import "CBL_Revision.h"
#import "CBLGeometry.h"
@class CBL_Server;


@interface CBLManager ()
#if TARGET_OS_IPHONE
@property (readonly) NSDataWritingOptions fileProtection;
#endif
@property (readonly) CBL_Server* backgroundServer;
#if DEBUG // for unit tests only
- (CBLDatabase*) createEmptyDatabaseNamed: (NSString*)name error: (NSError**)outError;
#endif

@end


@interface CBLDatabase ()
- (instancetype) initWithDir: (NSString*)dir
                        name: (NSString*)name
                     manager: (CBLManager*)manager
                    readOnly: (BOOL)readOnly;
@property (readonly, nonatomic) NSMutableSet* unsavedModelsMutable;
- (void) removeDocumentFromCache: (CBLDocument*)document;
- (void) doAsyncAfterDelay: (NSTimeInterval)delay block: (void (^)())block;
- (BOOL) waitFor: (BOOL (^)())block;
- (void) addReplication: (CBLReplication*)repl;
- (void) forgetReplication: (CBLReplication*)repl;
- (void) _clearDocumentCache;
#if DEBUG // for testing
- (CBLDocument*) _cachedDocumentWithID: (NSString*)docID;
#endif
@end

@interface CBLDatabase (Private)
@property (nonatomic, readonly) NSString* privateUUID;
@property (nonatomic, readonly) NSString* publicUUID;
@end


@interface CBLDatabaseChange ()
- (instancetype) initWithAddedRevision: (CBL_Revision*)addedRevision
                       winningRevision: (CBL_Revision*)winningRevision
                            inConflict: (BOOL)maybeConflict
                                source: (NSURL*)source;
/** The revision just added. Guaranteed immutable. */
@property (nonatomic, readonly) CBL_Revision* addedRevision;
/** The revision that is now the default "winning" revision of the document.
 Guaranteed immutable.*/
@property (nonatomic, readonly) CBL_Revision* winningRevision;
/** Is this a relayed notification of one from another thread, not the original? */
@property (nonatomic, readonly) bool echoed;
@end
<commit_msg>Fixed compile error in Release build (regression from 56ef7a2)<commit_after>//
//  CouchbaseLitePrivate.h
//  CouchbaseLite
//
//  Created by <NAME> on 6/19/12.
//  Copyright (c) 2012-2013 Couchbase, Inc. All rights reserved.
//

#import "CouchbaseLite.h"
#import "CBLCache.h"
#import "CBLDatabase.h"
#import "CBLDatabaseChange.h"
#import "CBLReplication+Transformation.h"
#import "CBL_Revision.h"
#import "CBLGeometry.h"
@class CBL_Server;


@interface CBLManager ()
#if TARGET_OS_IPHONE
@property (readonly) NSDataWritingOptions fileProtection;
#endif
@property (readonly) CBL_Server* backgroundServer;
#if DEBUG // for unit tests only
- (CBLDatabase*) createEmptyDatabaseNamed: (NSString*)name error: (NSError**)outError;
#endif

@end


@interface CBLDatabase ()
- (instancetype) initWithDir: (NSString*)dir
                        name: (NSString*)name
                     manager: (CBLManager*)manager
                    readOnly: (BOOL)readOnly;
@property (readonly, nonatomic) NSMutableSet* unsavedModelsMutable;
- (void) removeDocumentFromCache: (CBLDocument*)document;
- (void) doAsyncAfterDelay: (NSTimeInterval)delay block: (void (^)())block;
- (BOOL) waitFor: (BOOL (^)())block;
- (void) addReplication: (CBLReplication*)repl;
- (void) forgetReplication: (CBLReplication*)repl;
- (void) _clearDocumentCache;
- (CBLDocument*) _cachedDocumentWithID: (NSString*)docID;
@end

@interface CBLDatabase (Private)
@property (nonatomic, readonly) NSString* privateUUID;
@property (nonatomic, readonly) NSString* publicUUID;
@end


@interface CBLDatabaseChange ()
- (instancetype) initWithAddedRevision: (CBL_Revision*)addedRevision
                       winningRevision: (CBL_Revision*)winningRevision
                            inConflict: (BOOL)maybeConflict
                                source: (NSURL*)source;
/** The revision just added. Guaranteed immutable. */
@property (nonatomic, readonly) CBL_Revision* addedRevision;
/** The revision that is now the default "winning" revision of the document.
 Guaranteed immutable.*/
@property (nonatomic, readonly) CBL_Revision* winningRevision;
/** Is this a relayed notification of one from another thread, not the original? */
@property (nonatomic, readonly) bool echoed;
@end

{'fraction_non_alphanumeric': 0.1202602647520754, 'fraction_numerical': 0.006730984967466906, 'mean_word_length': 4.326164874551972, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7536405', 'n_tokens_mistral': 1432, 'n_tokens_neox': 1320, 'n_words': 359}