<commit_before>//
//  RxRealmWriteSinks.swift
//  RxRealm
//
//  Created by <NAME> on 6/4/16.
//  Copyright © 2016 CocoaPods. All rights reserved.
//

import XCTest

import RxSwift
import RxCocoa
import RealmSwift
import RxRealm
import RxTests

class RxRealmWriteSinks: XCTestCase {
    private func realmInMemoryConfiguration(name: String) -> Realm.Configuration {
        var conf = Realm.Configuration()
        conf.inMemoryIdentifier = name
        return conf
    }
    
    private func realmInMemory(name: String) -> Realm {
        var conf = Realm.Configuration()
        conf.inMemoryIdentifier = name
        return try! Realm(configuration: conf)
    }

    func testRxAddObject() {
        let expectation = expectationWithDescription("Message1")
        let realm = realmInMemory(#function)<commit_msg>* remove rococo<commit_after>//
//  RxRealmWriteSinks.swift
//  RxRealm
//
//  Created by <NAME> on 6/4/16.
//  Copyright © 2016 CocoaPods. All rights reserved.
//

import XCTest

import RxSwift
import RealmSwift
import RxRealm
import RxTests

class RxRealmWriteSinks: XCTestCase {
    private func realmInMemoryConfiguration(name: String) -> Realm.Configuration {
        var conf = Realm.Configuration()
        conf.inMemoryIdentifier = name
        return conf
    }
    
    private func realmInMemory(name: String) -> Realm {
        var conf = Realm.Configuration()
        conf.inMemoryIdentifier = name
        return try! Realm(configuration: conf)
    }

    func testRxAddObject() {
        let expectation = expectationWithDescription("Message1")
        let realm = realmInMemory(#function)
{'fraction_non_alphanumeric': 0.08821714990746453, 'fraction_numerical': 0.011104256631708822, 'mean_word_length': 2.908433734939759, 'pattern_counts': {'":': 0, '<': 5, '<?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': '404460', 'n_tokens_mistral': 505, 'n_tokens_neox': 467, 'n_words': 127}