<commit_before>package de.ieg.infra.serviceimpl;

import java.net.ConnectException;
import java.util.ArrayList;
import java.util.List;

import javax.mail.MessagingException;
import javax.mail.SendFailedException;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;

import org.apache.log4j.Logger;
import org.springframework.dao.DataAccessException;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.mail.javamail.MimeMessageHelper;

import de.ieg.infra.domain.Booking;
import de.ieg.infra.domain.Event;
import de.ieg.infra.service.MailService;
import de.ieg.infra.utils.Utils;

/**
 * @author steinkamp
 * The implementation of the mail service
 */
public class MailServiceImpl implements MailService {
	private JavaMailSender mailSender;
	private String from;
	private String subject;
	private String subjectUpdatedBookingList;

	/**
	 * Sets a reference of the mail sender
	 * @param mailSender
	 */
	public void setMailSender(JavaMailSender mailSender) {
		this.mailSender = mailSender;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}<commit_msg>add Disaster field<commit_after>package de.ieg.infra.serviceimpl;

import java.net.ConnectException;
import java.util.ArrayList;
import java.util.List;

import javax.mail.MessagingException;
import javax.mail.SendFailedException;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;

import org.apache.log4j.Logger;
import org.springframework.dao.DataAccessException;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.mail.javamail.MimeMessageHelper;

import de.ieg.infra.domain.Booking;
import de.ieg.infra.domain.Event;
import de.ieg.infra.service.MailService;
import de.ieg.infra.utils.Utils;

/**
 * @author steinkamp
 * The implementation of the mail service
 */
public class MailServiceImpl implements MailService {
	private JavaMailSender mailSender;
	private String from;
	private String disaster;
	private String subject;
	private String subjectUpdatedBookingList;

	/**
	 * Sets a reference of the mail sender
	 * @param mailSender
	 */
	public void setMailSender(JavaMailSender mailSender) {
		this.mailSender = mailSender;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}
	
	/**
	 * @return the disaster
	 */
	public String getDisaster() {
		return disaster;
	}

	/**
	 * @param disaster the disaster to set
	 */
	public void setDisaster(String disaster) {
		this.disaster = disaster;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}
{'fraction_non_alphanumeric': 0.0935692412385165, 'fraction_numerical': 0.0006805035726437564, 'mean_word_length': 4.833333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2012373', 'n_tokens_mistral': 917, 'n_tokens_neox': 868, 'n_words': 217}