<commit_before>infect = require "infect"

class Module
	view: (@viewName, @viewClass) =>
		infect.set @viewName, @viewClass
		name = !!@viewName
		klass = !!@viewClass
		if !name and !klass then return @view
		else if !name or !klass then throw new Error "Missing argument"
		else return this
	viewModel: (@viewModelName, @viewModelClass) =>
		infect.set @viewModelName, @viewModelClass
		name = !!@viewModelName
		klass = !!@viewModelClass
		if !name and !klass then return @viewModel
		else if !name or !klass then throw new Error "Missing argument"
		else return this
	init: =>
		@viewModel = new @viewModelClass()<commit_msg>Cleaned up module class<commit_after>infect = require "infect"

class Module
	view: (@viewName, @viewClass) =>
		if !!@viewName and !!@viewClass
			infect.set @viewName, @viewClass
			return this
		else return @view
	viewModel: (@viewModelName, @viewModelClass) =>
		if !!@viewModelName and !!@viewModelClass
			infect.set @viewModelName, @viewModelClass
			return this
		else return @viewModel
	init: =>
		@viewModel = new @viewModelClass?()
{'fraction_non_alphanumeric': 0.11297852474323063, 'fraction_numerical': 0.0, 'mean_word_length': 4.763440860215054, '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': '7274545', 'n_tokens_mistral': 370, 'n_tokens_neox': 341, 'n_words': 112}