<commit_before>//
//  CommandUpdate.swift
//  FireAlarm
//
//  Created by NobodyNada on 9/30/16.
//  Copyright © 2016 NobodyNada. All rights reserved.
//

import Foundation
import SwiftChatSE

class CommandUpdate: Command {
	override class func usage() -> [String] {
		return ["update force", "update", "pull"]
	}
	
	override class func privileges() -> ChatUser.Privileges {
		return .owner
	}
	
	override func run() throws {
		if !update(listener, [message.room], force: (usageIndex == 0), auto: true) {
			reply("No new update available.")
		}
	}
}<commit_msg>don't require "--autoupdate" when performing a manual update --autoupdate<commit_after>//
//  CommandUpdate.swift
//  FireAlarm
//
//  Created by NobodyNada on 9/30/16.
//  Copyright © 2016 NobodyNada. All rights reserved.
//

import Foundation
import SwiftChatSE

class CommandUpdate: Command {
	override class func usage() -> [String] {
		return ["update force", "update", "pull"]
	}
	
	override class func privileges() -> ChatUser.Privileges {
		return .owner
	}
	
	override func run() throws {
		if !update(listener, [message.room], force: (usageIndex == 0), auto: false) {
			reply("No new update available.")
		}
	}
}
{'fraction_non_alphanumeric': 0.13924050632911392, 'fraction_numerical': 0.016877637130801686, 'mean_word_length': 3.4754716981132074, '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': '1331569', 'n_tokens_mistral': 408, 'n_tokens_neox': 363, 'n_words': 118}