<commit_before>package com.onyx.persistence.factory.impl

import com.onyx.diskmap.store.StoreType
import com.onyx.persistence.context.SchemaContext
import com.onyx.persistence.context.impl.ServerSchemaContext

/**
 * Created by <NAME> on 3/27/17.
 *
 * Persistence manager factory for a server based database.
 *
 * This is a server persistence manager factory.  It is overridden so that the context
 * type is also a server schema context.  It differs due to the query caching policies.
 *
 * @author <NAME>
 * @since 1.3.0 Introduced as work done on query subscribers.
 *
 * <pre>
 * <code>
 *
 * PersistenceManagerFactory factory = new ServerPersistenceManagerFactory("/MyDatabaseLocation");
 * factory.setCredentials("username", "password");
 * factory.initialize();
 *
 * PersistenceManager manager = factory.getPersistenceManager();
 *
 * factory.close(); //Close the in embedded database
 *
 * or Kotlin ...
 *
 * val factory = ServerPersistenceManagerFactory("/MyDatabaseLocation")
 * factory.setCredentials("username", "password")
 * factory.initialize()
 *
 * val manager = factory.persistenceManager
 *
 * factory.close()
 *
 * </code
 * </pre>
 *
 * @see com.onyx.persistence.factory.PersistenceManagerFactory
 */
open class ServerPersistenceManagerFactory @JvmOverloads constructor(databaseLocation: String, override var schemaContext: SchemaContext = ServerSchemaContext(databaseLocation, databaseLocation)) : EmbeddedPersistenceManagerFactory(databaseLocation, databaseLocation, schemaContext) {
    override var storeType: StoreType = StoreType.FILE
}
<commit_msg>revert change to mark servers as file channel only<commit_after>package com.onyx.persistence.factory.impl

import com.onyx.persistence.context.SchemaContext
import com.onyx.persistence.context.impl.ServerSchemaContext

/**
 * Created by <NAME> on 3/27/17.
 *
 * Persistence manager factory for a server based database.
 *
 * This is a server persistence manager factory.  It is overridden so that the context
 * type is also a server schema context.  It differs due to the query caching policies.
 *
 * @author <NAME>
 * @since 1.3.0 Introduced as work done on query subscribers.
 *
 * <pre>
 * <code>
 *
 * PersistenceManagerFactory factory = new ServerPersistenceManagerFactory("/MyDatabaseLocation");
 * factory.setCredentials("username", "password");
 * factory.initialize();
 *
 * PersistenceManager manager = factory.getPersistenceManager();
 *
 * factory.close(); //Close the in embedded database
 *
 * or Kotlin ...
 *
 * val factory = ServerPersistenceManagerFactory("/MyDatabaseLocation")
 * factory.setCredentials("username", "password")
 * factory.initialize()
 *
 * val manager = factory.persistenceManager
 *
 * factory.close()
 *
 * </code
 * </pre>
 *
 * @see com.onyx.persistence.factory.PersistenceManagerFactory
 */
open class ServerPersistenceManagerFactory @JvmOverloads constructor(databaseLocation: String, override var schemaContext: SchemaContext = ServerSchemaContext(databaseLocation, databaseLocation)) : EmbeddedPersistenceManagerFactory(databaseLocation, databaseLocation, schemaContext)
{'fraction_non_alphanumeric': 0.10429447852760736, 'fraction_numerical': 0.005166289958023894, 'mean_word_length': 5.1590457256461235, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 13, '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': '6726193', 'n_tokens_mistral': 822, 'n_tokens_neox': 815, 'n_words': 231}