<commit_before>'use strict';

const Server = require('./server.js');
const Emoji = require('./emoji.js');
const Picker = require('./picker.js');
const {
	API_BASE,
	TOKEN_KEY,
	TRANSLATION_MODULE,
	EMOJI_STORAGE_MODULE,
	LOCAL_STORAGE_MODULE,
	CUSTOM_EMOJI_STORAGE_MODULE,
	SERVERS_STORAGE_MODULE,
	SERVERS_PERMISSIONS_MODULE,
} = require('./constants.js');

function getServers() {
	return new Promise((resolve, reject) => {
		if (!SERVERS_STORAGE_MODULE || !SERVERS_STORAGE_MODULE.getGuilds) {
			reject(new Error('Server storage module is not pointing to server storage'));
		}

		const servers = Object.values(SERVERS_STORAGE_MODULE.getGuilds());

		if (server.length > 0){
			resolve(server);
			return;
		}
<commit_msg>typo error<commit_after>'use strict';

const Server = require('./server.js');
const Emoji = require('./emoji.js');
const Picker = require('./picker.js');
const {
	API_BASE,
	TOKEN_KEY,
	TRANSLATION_MODULE,
	EMOJI_STORAGE_MODULE,
	LOCAL_STORAGE_MODULE,
	CUSTOM_EMOJI_STORAGE_MODULE,
	SERVERS_STORAGE_MODULE,
	SERVERS_PERMISSIONS_MODULE,
} = require('./constants.js');

function getServers() {
	return new Promise((resolve, reject) => {
		if (!SERVERS_STORAGE_MODULE || !SERVERS_STORAGE_MODULE.getGuilds) {
			reject(new Error('Server storage module is not pointing to server storage'));
		}

		const servers = Object.values(SERVERS_STORAGE_MODULE.getGuilds());

		if (servers.length > 0){
			resolve(servers);
			return;
		}

{'fraction_non_alphanumeric': 0.13250517598343686, 'fraction_numerical': 0.0013802622498274672, 'mean_word_length': 5.473214285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2803877', 'n_tokens_mistral': 543, 'n_tokens_neox': 520, 'n_words': 97}