<commit_before>package cc.tinker.utils;

/**
 * Created by Tinker on 2016/12/28.
 */
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;

public class SendFromYahoo {
    public static void sendEmailByYahoo(String to,String subject,String content) {
        // Sender's email ID needs to be mentioned

        // Recipient's email ID needs to be mentioned.
//        String from = "<EMAIL>";
//        String pass ="<PASSWORD>";
//        String host = "smtp.mail.yahoo.com";

        String from = "<EMAIL>";
        String pass = "<PASSWORD>";
        String host = "smtp.126.com";

        // Get system properties
        Properties properties = System.getProperties();
        // Setup mail server
        properties.put("mail.smtp.starttls.enable", "true");
        properties.put("mail.smtp.host", host);
        properties.put("mail.smtp.user", from);
        properties.put("mail.smtp.password", <PASSWORD>);
//        properties.put("mail.smtp.port", "587");
        properties.put("mail.smtp.auth", "true");
//        properties.put("mail.debug", "true");

        // Get the default Session object.
        Session session = Session.getDefaultInstance(properties);

        try{
            // Create a default MimeMessage object.
            MimeMessage message = new MimeMessage(session);

            // Set From: header field of the header.<commit_msg>1. email sender<commit_after>package cc.tinker.utils;

/**
 * Created by Tinker on 2016/12/28.
 */
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;

public class SendFromYahoo {
    public static void sendEmailByYahoo(String to,String subject,String content) {
        // Sender's email ID needs to be mentioned
        String from = "<EMAIL>";
        String pass = "<PASSWORD>";
        String host = "smtp.126.com";

        // Get system properties
        Properties properties = System.getProperties();
        // Setup mail server
        properties.put("mail.smtp.starttls.enable", "true");
        properties.put("mail.smtp.host", host);
        properties.put("mail.smtp.user", from);
        properties.put("mail.smtp.password", pass);
//        properties.put("mail.smtp.port", "587");
        properties.put("mail.smtp.auth", "true");
//        properties.put("mail.debug", "true");

        // Get the default Session object.
        Session session = Session.getDefaultInstance(properties);

        try{
            // Create a default MimeMessage object.
            MimeMessage message = new MimeMessage(session);

            // Set From: header field of the header.
{'fraction_non_alphanumeric': 0.13492675404780263, 'fraction_numerical': 0.01117964533538936, 'mean_word_length': 2.41897233201581, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '6264460', 'n_tokens_mistral': 756, 'n_tokens_neox': 704, 'n_words': 191}