<commit_before>
import Ember from 'ember';

const { testing } = Ember;

export default function (container) {
	let config = container.lookupFactory('config:environment');
	let addonConfig = (config ? (config['ember-cli-use-pouchdb'] || {}) : {});

	switch (true) {
		case (testing && addonConfig['useMemoryAdapterInTests'] !== false):
			return 'memory';
		default:
			return null;
	}
}
<commit_msg>safeguard against missing container<commit_after>
import Ember from 'ember';

const { testing } = Ember;

export default function (container) {
	if (!container) {
		return null;
	}

	let config = container.lookupFactory('config:environment');
	let addonConfig = (config ? (config['ember-cli-use-pouchdb'] || {}) : {});

	switch (true) {
		case (testing && addonConfig['useMemoryAdapterInTests'] !== false):
			return 'memory';
		default:
			return null;
	}
}

{'fraction_non_alphanumeric': 0.1561771561771562, 'fraction_numerical': 0.0, 'mean_word_length': 4.76510067114094, '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': '1852565', 'n_tokens_mistral': 286, 'n_tokens_neox': 269, 'n_words': 67}