<commit_before>package ch.hsr.whitespace.javapilot.model;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Power {

	private final Logger LOGGER = LoggerFactory.getLogger(Power.class);

	public static final int MAX_POWER = 255;
	public static final int MIN_POWER = 0;

	private int value;

	public Power(Power power) {
		this(power.getValue());
	}

	public Power(int value) {
		this.value = value;
		if (value > MAX_POWER)
			this.value = MAX_POWER;
		if (value < MIN_POWER)
			this.value = MIN_POWER;
	}

	public Power increase(int amount) {
		return new Power(Math.min(value + amount, MAX_POWER));
	}

	public Power reduce(int amount) {
		return new Power(Math.max(value - amount, MIN_POWER));
	}

	public Power max() {
		return new Power(MAX_POWER);
	}

	public Power min() {
		return new Power(MIN_POWER);
	}

	public int getValue() {
		return value;
	}

	public double calcDiffFactor(Power otherPower) {
		double result = new Double(value) / new Double(otherPower.getValue());
		LOGGER.info("calcDiffFactor: " + result + "(thisPower=" + value + ", otherPower=" + otherPower.getValue() + ")");
		return result;
	}

	@Override
	public String toString() {
		return "Power[" + value + "]";
	}

}<commit_msg>Don't print powerDiff-Factor anymore<commit_after>package ch.hsr.whitespace.javapilot.model;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Power {

	private final Logger LOGGER = LoggerFactory.getLogger(Power.class);

	public static final int MAX_POWER = 255;
	public static final int MIN_POWER = 0;

	private int value;

	public Power(Power power) {
		this(power.getValue());
	}

	public Power(int value) {
		this.value = value;
		if (value > MAX_POWER)
			this.value = MAX_POWER;
		if (value < MIN_POWER)
			this.value = MIN_POWER;
	}

	public Power increase(int amount) {
		return new Power(Math.min(value + amount, MAX_POWER));
	}

	public Power reduce(int amount) {
		return new Power(Math.max(value - amount, MIN_POWER));
	}

	public Power max() {
		return new Power(MAX_POWER);
	}

	public Power min() {
		return new Power(MIN_POWER);
	}

	public int getValue() {
		return value;
	}

	public double calcDiffFactor(Power otherPower) {
		return (new Double(value) / new Double(otherPower.getValue()));
	}

	@Override
	public String toString() {
		return "Power[" + value + "]";
	}

}
{'fraction_non_alphanumeric': 0.12153518123667377, 'fraction_numerical': 0.00511727078891258, 'mean_word_length': 4.056034482758621, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '675397', 'n_tokens_mistral': 842, 'n_tokens_neox': 798, 'n_words': 210}