<commit_before>package cz.metacentrum.perun.core.api.exceptions;

import cz.metacentrum.perun.core.api.Ban;

/**
 * This exception is thrown when the ban on the facility/resource does not exist
 *
 * @author <NAME> <<EMAIL>>
 */
public class BanNotExistsException extends EntityExistsException {

	private Ban ban;

	/**
	 * Simple constructor with a message
	 * @param message message with details about the cause
	 */
	public BanNotExistsException(String message) {
		super(message);
	}

	/**
	 * Constructor with a message and Throwable object
	 * @param message message with details about the cause
	 * @param cause Throwable that caused throwing of this exception
	 */
	public BanNotExistsException(String message, Throwable cause) {
		super(message, cause);
	}

	/**
	 * Constructor with a Throwable object
	 * @param cause Throwable that caused throwing of this exception
	 */
	public BanNotExistsException(Throwable cause) {
		super(cause);
	}

	/**
	 * Constructor with ban that does not exist
	 * @param ban
	 */
	public BanNotExistsException(Ban ban) {
		super("Ban of type: " + ban.getType() + " not exists for subjectID: " + ban.getSubjectId() + " and targetID: " + ban.getTargetId());
		this.ban = ban;
	}

	/**
	 * Getter for the ban
	 * @return ban that does not exist
	 */
	public Ban getBan() {
		return ban;
	}

	/**
	 * Setter for the ban
	 * @param ban that does not exist
	 */
	public void setBan(Ban ban) {
		this.ban = ban;
	}
}
<commit_msg>CORE: Fixed parent of BanNotExistsException<commit_after>package cz.metacentrum.perun.core.api.exceptions;

import cz.metacentrum.perun.core.api.Ban;

/**
 * This exception is thrown when the ban on the facility/resource does not exist
 *
 * @author <NAME> <<EMAIL>.com>
 */
public class BanNotExistsException extends EntityNotExistsException {

	private Ban ban;

	/**
	 * Simple constructor with a message
	 * @param message message with details about the cause
	 */
	public BanNotExistsException(String message) {
		super(message);
	}

	/**
	 * Constructor with a message and Throwable object
	 * @param message message with details about the cause
	 * @param cause Throwable that caused throwing of this exception
	 */
	public BanNotExistsException(String message, Throwable cause) {
		super(message, cause);
	}

	/**
	 * Constructor with a Throwable object
	 * @param cause Throwable that caused throwing of this exception
	 */
	public BanNotExistsException(Throwable cause) {
		super(cause);
	}

	/**
	 * Constructor with ban that does not exist
	 * @param ban
	 */
	public BanNotExistsException(Ban ban) {
		super("Ban of type: " + ban.getType() + " not exists for subjectID: " + ban.getSubjectId() + " and targetID: " + ban.getTargetId());
		this.ban = ban;
	}

	/**
	 * Getter for the ban
	 * @return ban that does not exist
	 */
	public Ban getBan() {
		return ban;
	}

	/**
	 * Setter for the ban
	 * @param ban that does not exist
	 */
	public void setBan(Ban ban) {
		this.ban = ban;
	}
}

{'fraction_non_alphanumeric': 0.10313447927199192, 'fraction_numerical': 0.0, 'mean_word_length': 3.580246913580247, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4632177', 'n_tokens_mistral': 945, 'n_tokens_neox': 865, 'n_words': 306}