<commit_before>Settings = require "settings-sharelatex"
fs = require("fs")
mongojs = require("mongojs")
ObjectId = mongojs.ObjectId
db = mongojs(Settings.mongo.url, ['users'])
_ = require("underscore")
BSON = db.bson.BSON


handleExit = () ->
	console.log('Got signal.  Shutting down.')


process.on 'SIGINT', handleExit
process.on 'SIGHUP', handleExit


exports.migrate = (client, done=()->) ->
	patch = {
		$set: {
			features: {
				collaborators: -1
				dropbox: true
				versioning: true
				references: true
				templates: true
				compileTimeout: 180<commit_msg>Remove un-used package import<commit_after>Settings = require "settings-sharelatex"
fs = require("fs")
mongojs = require("mongojs")
ObjectId = mongojs.ObjectId
db = mongojs(Settings.mongo.url, ['users'])
_ = require("underscore")


handleExit = () ->
	console.log('Got signal.  Shutting down.')


process.on 'SIGINT', handleExit
process.on 'SIGHUP', handleExit


exports.migrate = (client, done=()->) ->
	patch = {
		$set: {
			features: {
				collaborators: -1
				dropbox: true
				versioning: true
				references: true
				templates: true
				compileTimeout: 180
{'fraction_non_alphanumeric': 0.14462081128747795, 'fraction_numerical': 0.007054673721340388, 'mean_word_length': 3.9780701754385963, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '409402', 'n_tokens_mistral': 443, 'n_tokens_neox': 384, 'n_words': 88}