<commit_before>settings = require("settings-sharelatex")
logger = require("logger-sharelatex")
S3PersistorManager = require("./S3PersistorManager")

logger.log backend:settings.filestoreBackend, "Loading backend"
module.exports = switch settings.filestoreBackend
	when "s3",null
		S3PersistorManager
	else
		throw new Error( "Unknown filestore backend: #{settings.filestoreBackend}" )
<commit_msg>change the method for assuming s3<commit_after>settings = require("settings-sharelatex")
logger = require("logger-sharelatex")
S3PersistorManager = require("./S3PersistorManager")

# assume s3 if none specified
settings.filestoreBackend ||= "s3"


logger.log backend:settings.filestoreBackend, "Loading backend"
module.exports = switch settings.filestoreBackend
	when "s3"
		S3PersistorManager
	else
		throw new Error( "Unknown filestore backend: #{settings.filestoreBackend}" )

{'fraction_non_alphanumeric': 0.1050228310502283, 'fraction_numerical': 0.012557077625570776, 'mean_word_length': 7.12037037037037, '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': '3609201', 'n_tokens_mistral': 271, 'n_tokens_neox': 266, 'n_words': 60}