<commit_before>angular.module('dripdownode')
.factory('SettingsService', ['$q',
function($q) {
	var ALL_FORMATS = ['mp3', 'flac', 'aiff', 'wav'];

	localStorage.dripdownode = localStorage.dripdownode || "{}";
	var storage = JSON.parse(localStorage.dripdownode);

	var defaults = {
		dl_dir: '',
		formats: ALL_FORMATS
	};<commit_msg>Use {} if parsed settings are falsy<commit_after>angular.module('dripdownode')
.factory('SettingsService', ['$q',
function($q) {
	var ALL_FORMATS = ['mp3', 'flac', 'aiff', 'wav'];

	localStorage.dripdownode = localStorage.dripdownode || "{}";
	var storage = JSON.parse(localStorage.dripdownode) || {};

	var defaults = {
		dl_dir: '',
		formats: ALL_FORMATS
	};
{'fraction_non_alphanumeric': 0.1873198847262248, 'fraction_numerical': 0.002881844380403458, 'mean_word_length': 5.881188118811881, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2864229', 'n_tokens_mistral': 260, 'n_tokens_neox': 251, 'n_words': 45}