<commit_before>Sequelize = require("sequelize")
Settings = require("settings-sharelatex")
_ = require("underscore")
logger = require "logger-sharelatex"

options = _.extend {logging:false}, Settings.mysql.clsi

sequelize = new Sequelize(
	Settings.mysql.clsi.database,
	Settings.mysql.clsi.username,
	Settings.mysql.clsi.password,
	options
)

module.exports =
	UrlCache: sequelize.define("UrlCache", {<commit_msg>add log line for connecting to a db<commit_after>Sequelize = require("sequelize")
Settings = require("settings-sharelatex")
_ = require("underscore")
logger = require "logger-sharelatex"

options = _.extend {logging:false}, Settings.mysql.clsi

logger.log dbPath:Settings.mysql.clsi.storage, "connecting to db"

sequelize = new Sequelize(
	Settings.mysql.clsi.database,
	Settings.mysql.clsi.username,
	Settings.mysql.clsi.password,
	options
)

module.exports =
	UrlCache: sequelize.define("UrlCache", {
{'fraction_non_alphanumeric': 0.12896174863387977, 'fraction_numerical': 0.0, 'mean_word_length': 6.15625, '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': '5790206', 'n_tokens_mistral': 303, 'n_tokens_neox': 298, 'n_words': 56}