<commit_before>package com.llj.network;

import java.io.IOException;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;

import org.jivesoftware.smack.AbstractXMPPConnection;
import org.jivesoftware.smack.SmackException;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.parsing.ExceptionLoggingCallback;
import org.jivesoftware.smack.tcp.XMPPTCPConnection;
import org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration;
import org.jivesoftware.smack.util.TLSUtils;

public class SeverConnection {
	public static String severDNS = "ec2-54-254-130-230.ap-southeast-1.compute.amazonaws.com";
	public static int severPort = 5222;
	public static String xmppDomain = "ip-172-31-21-142.ap-southeast-1.compute.internal";
	public static String userName = "lgc";
	public static String userPass = "<PASSWORD>";

	public static void login(String username, String pass) {

		// Create a connection to the jabber.org server on a specific port.
		XMPPTCPConnectionConfiguration.Builder builder = XMPPTCPConnectionConfiguration.builder()
				.setUsernameAndPassword(userName, userPass)
				.setHost(severDNS)
				.setPort(severPort)
				.setServiceName(xmppDomain);

		try {
			TLSUtils.acceptAllCertificates(builder);// 信任所有证书
		} catch (NoSuchAlgorithmException | KeyManagementException e) {
			e.printStackTrace();
		}
		try {
			XMPPTCPConnectionConfiguration configuration = builder.build();
			AbstractXMPPConnection connection = new XMPPTCPConnection(configuration);
			connection.setParsingExceptionCallback(new ExceptionLoggingCallback());
			connection.connect();
		} catch (SmackException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		} catch (IOException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		} catch (XMPPException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}

		try {
			System.err.println(userName + ":" + userPass+" successfully login the xmpp server.");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public static void main(String[] args) {
		login("111", "5555");
	}
}<commit_msg>Connection<commit_after>package com.llj.network;

import java.io.IOException;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;

import org.jivesoftware.smack.AbstractXMPPConnection;
import org.jivesoftware.smack.SmackException;
import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.parsing.ExceptionLoggingCallback;
import org.jivesoftware.smack.tcp.XMPPTCPConnection;
import org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration;
import org.jivesoftware.smack.util.TLSUtils;
import org.pushingpixels.substance.api.shaper.RectangularButtonShaper;

public class SeverConnection {
	public static String severDNS = "ec2-54-254-130-230.ap-southeast-1.compute.amazonaws.com";
	public static int severPort = 5222;
	public static String xmppDomain = "ip-172-31-21-142.ap-southeast-1.compute.internal";
	public static AbstractXMPPConnection connection;// Create a XMPPConnection

	public static void login(String username, String pass) {
		// Create a connection to the server.
		XMPPTCPConnectionConfiguration.Builder builder = XMPPTCPConnectionConfiguration.builder()
				.setUsernameAndPassword(username, pass)
				.setHost(severDNS)
				.setPort(severPort)
				.setServiceName(xmppDomain);
		try {
			TLSUtils.acceptAllCertificates(builder);// Trust all certificates
		} catch (NoSuchAlgorithmException | KeyManagementException e) {
			e.printStackTrace();
		}
		try {
			XMPPTCPConnectionConfiguration configuration = builder.build();
			connection = new XMPPTCPConnection(configuration);
			connection.setParsingExceptionCallback(new ExceptionLoggingCallback());
			connection.connect();
			//return connection;
		} catch (SmackException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		} catch (IOException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		} catch (XMPPException e1) {
			// TODO Auto-generated catch block
			e1.printStackTrace();
		}
		try {
			System.err.println(username + ":" + pass+" successfully login the xmpp server.");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		//return null;
	}

	public static void main(String[] args) {
		login("lgc", "111111");
	}
}
{'fraction_non_alphanumeric': 0.1038374717832957, 'fraction_numerical': 0.018284424379232507, 'mean_word_length': 4.853368560105681, 'pattern_counts': {'":': 2, '<': 4, '<?xml version=': 0, '>': 4, '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': '5627111', 'n_tokens_mistral': 1504, 'n_tokens_neox': 1342, 'n_words': 283}