<commit_before>import { Adapter } from 'ember-pouch';
import Ember from 'ember';

import PouchAdapterUtils from 'hospitalrun/mixins/pouch-adapter-utils';

export default Adapter.extend(PouchAdapterUtils, {
    databaseName: 'config',
    database: Ember.inject.service(),
    db:  Ember.computed.alias('database.configDB'),

    _mapQuery: function(doc, emit) {
        if (doc._id) {
            emit(doc._id, null);
        }
    },

    findQuery: function(store, type, query, options) {
        if (!query.exactKeys) {
            return this._super(store, type, query, options);
        } else {
            var self = this,<commit_msg>Removed reference to database in config adapter<commit_after>import { Adapter } from 'ember-pouch';
import Ember from 'ember';

import PouchAdapterUtils from 'hospitalrun/mixins/pouch-adapter-utils';

export default Adapter.extend(PouchAdapterUtils, {
    databaseName: 'config',

    _mapQuery: function(doc, emit) {
        if (doc._id) {
            emit(doc._id, null);
        }
    },

    findQuery: function(store, type, query, options) {
        if (!query.exactKeys) {
            return this._super(store, type, query, options);
        } else {
            var self = this,
{'fraction_non_alphanumeric': 0.12153344208809136, 'fraction_numerical': 0.0, 'mean_word_length': 2.7987616099071206, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6236290', 'n_tokens_mistral': 373, 'n_tokens_neox': 364, 'n_words': 89}