<commit_before>package be.ugent;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;

import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.Properties;
 
/**
 *
 * @author Kiani
 */
public class TestClass {
    static Properties mailServerProperties;
    static Session getMailSession;
    static MimeMessage generateMailMessage;
 
    public static void generateAndSendEmail(String subject, String message) throws AddressException, MessagingException {
 
//    	Properties props = new Properties();
//    	Session session = Session.getDefaultInstance(props, null);
//
//    	try {
//    	  Message msg = new MimeMessage(session);
//    	  msg.setFrom(new InternetAddress("root@kiani", "Root admin bigot"));
//    	  msg.addRecipient(Message.RecipientType.TO,
//    	                   new InternetAddress("<EMAIL>", "Root admin bigot"));
//    	  msg.setSubject(subject);
//    	  msg.setText(message);
//    	  Transport.send(msg);
//    	} catch (AddressException e) {
//    	  // ...
//    	} catch (MessagingException e) {
//    	  // ...
//    	} catch (UnsupportedEncodingException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
    	
    	
    	Runtime rt = Runtime.getRuntime();
    	try {
			Process pr = rt.exec("mail -s \""+subject+"\" <EMAIL> <<< \""+message+"\"");
			System.out.println("Proces output from mail: "+pr.getErrorStream()+"\n"+pr.getOutputStream());
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    }
}<commit_msg>mails pls?<commit_after>package be.ugent;
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.AddressException;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.util.Properties;
 
/**
 *
 * @author Kiani
 */
public class TestClass {
    static Properties mailServerProperties;
    static Session getMailSession;
    static MimeMessage generateMailMessage;
 
    public static void generateAndSendEmail(String subject, String message) throws AddressException, MessagingException {
 
//    	Properties props = new Properties();
//    	Session session = Session.getDefaultInstance(props, null);
//
//    	try {
//    	  Message msg = new MimeMessage(session);
//    	  msg.setFrom(new InternetAddress("root@<EMAIL>", "Root admin bigot"));
//    	  msg.addRecipient(Message.RecipientType.TO,
//    	                   new InternetAddress("<EMAIL>", "Root admin bigot"));
//    	  msg.setSubject(subject);
//    	  msg.setText(message);
//    	  Transport.send(msg);
//    	} catch (AddressException e) {
//    	  // ...
//    	} catch (MessagingException e) {
//    	  // ...
//    	} catch (UnsupportedEncodingException e) {
//			// TODO Auto-generated catch block
//			e.printStackTrace();
//		}
    	
    	
    	Runtime rt = Runtime.getRuntime();
    	try {
			Process pr = rt.exec("mail -s \""+subject+"\" <EMAIL> <<< \""+message+"\"");
			BufferedReader input = new BufferedReader(new InputStreamReader(pr.getInputStream()));
			 
            String line=null;

            while((line=input.readLine()) != null) {
                System.out.println("Mail output: "+line);
            }

            int exitVal = pr.waitFor();
            System.out.println("Exited with error code "+exitVal);
		} catch (IOException | InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
    }
}
{'fraction_non_alphanumeric': 0.13718879668049794, 'fraction_numerical': 0.0, 'mean_word_length': 2.9397344228804902, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 8, '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': '5306044', 'n_tokens_mistral': 1180, 'n_tokens_neox': 1132, 'n_words': 243}