<commit_before>//
//  RLMObject+SafeObject.h
//  RealmUtilities
//
//  Created by <NAME> on 2/11/15.
//  Copyright (c) 2015 Roobiq. All rights reserved.
//

#import "RLMObject.h"

@class RBQSafeRealmObject;

@interface RLMObject (SafeObject)

/**
 *  Create a RBQSafeRealmObject from a RLMObject
 *
 *  @return RBQSafeRealmObject which is a thread-safe representation of the original RLMObject
 */
- (RBQSafeRealmObject *)rbq_safeObject;

/**
 *  Create a RLMObject from a RBQSafeRealmObject
 *
 *  Returns nil if the safe object's className doesn't match ours.
 *
 *  @param safeObject RBQSafeRealmObject instance
 *
 *  @return RLMObject of appropriate subtype
 */
+ (instancetype)rbq_objectFromSafeObject:(RBQSafeRealmObject *)safeObject;

/**
 *  Create a RLMObject in a specific Realm from a RBQSafeRealmObject
 *
 *  Returns nil if the safe object's className doesn't match ours.
 *
 *  @param realm      Realm in which the returned RLMObject is persisted
 *  @param safeObject RBQSafeRealmObject to convert into RLMObject
 *
 *  @return RLMObject of appropriate subtype
 */
+ (instancetype)rbq_objectInRealm:(RLMRealm *)realm
                   fromSafeObject:(RBQSafeRealmObject *)safeObject;

@end<commit_msg>Updated the documentation for header.<commit_after>//
//  RLMObject+SafeObject.h
//  RealmUtilities
//
//  Created by <NAME> on 2/11/15.
//  Copyright (c) 2015 Roobiq. All rights reserved.
//

#import "RLMObject.h"

@class RBQSafeRealmObject;

/**
 *  Category methods for RLMObject to convert into a RBQSafeRealmObject and vice versa
 */
@interface RLMObject (SafeObject)

/**
 *  Create a RLMObject from a RBQSafeRealmObject
 *
 *  Returns nil if the safe object's className doesn't match ours.
 *
 *  @param safeObject RBQSafeRealmObject instance
 *
 *  @return RLMObject of appropriate subtype
 */
+ (instancetype)rbq_objectFromSafeObject:(RBQSafeRealmObject *)safeObject;

/**
 *  Create a RLMObject in a specific Realm from a RBQSafeRealmObject
 *
 *  Returns nil if the safe object's className doesn't match ours.
 *
 *  @param realm      Realm in which the returned RLMObject is persisted
 *  @param safeObject RBQSafeRealmObject to convert into RLMObject
 *
 *  @return RLMObject of appropriate subtype
 */
+ (instancetype)rbq_objectInRealm:(RLMRealm *)realm
                   fromSafeObject:(RBQSafeRealmObject *)safeObject;

/**
 *  Create a RBQSafeRealmObject from a RLMObject
 *
 *  @return RBQSafeRealmObject which is a thread-safe representation of the original RLMObject
 */
- (RBQSafeRealmObject *)rbq_safeObject;

@end
{'fraction_non_alphanumeric': 0.08806262230919765, 'fraction_numerical': 0.0070450097847358124, 'mean_word_length': 3.953488372093023, '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': '3061824', 'n_tokens_mistral': 863, 'n_tokens_neox': 808, 'n_words': 245}