<commit_before>/*
 * Copyright 2013 Aljoschability and others. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * 	<NAME> <<EMAIL>> - initial API and implementation
 */
package com.aljoschability.eclipse.core.ui.properties

public final class State {
	public static enum Type {
		NONE,
		INFO,
		WARNING,
		ERROR
	}

	public static State NONE = new State(Type::NONE, null)

	final Type type

	final String message

	new(Type type, String message) {
		this.type = type
		this.message = message
	}

	def static error(String message) {
		return new State(Type::ERROR, message)
	}

	def static info(String message) {
		return new State(Type::INFO, message)
	}

	def static warning(String message) {
		return new State(Type::WARNING, message)
	}

	def String getMessage() {<commit_msg>cleaned up properties state class<commit_after>/*
 * Copyright 2013 Aljoschability and others. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * 	<NAME> <<EMAIL>> - initial API and implementation
 */
package com.aljoschability.eclipse.core.ui.properties

final class State {
	public static val NONE = new State(Type::NONE, null)

	def static error(String message) {
		return new State(Type::ERROR, message)
	}

	def static info(String message) {
		return new State(Type::INFO, message)
	}

	def static warning(String message) {
		return new State(Type::WARNING, message)
	}

	public static enum Type {
		NONE,
		INFO,
		WARNING,
		ERROR
	}

	final Type type

	final String message

	new(Type type, String message) {
		this.type = type
		this.message = message
	}

	def String getMessage() {
{'fraction_non_alphanumeric': 0.0916791230692576, 'fraction_numerical': 0.007972097658196313, 'mean_word_length': 3.9458128078817736, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2377231', 'n_tokens_mistral': 633, 'n_tokens_neox': 584, 'n_words': 213}