<commit_before>package com.flyingbuffalo.wfdmanager;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.Socket;

import android.net.wifi.p2p.WifiP2pInfo;
import android.os.AsyncTask;

/**
 * Paired WiFi direct device info. Wrapping origin object for library.
 * @author Shin
 *
 */
public class WFDPairInfo {

	public WifiP2pInfo info;
	
	public final static int PORT = 8988;
	public final static int SOCKET_TIMEOUT = 10000;
	public int port = PORT;
	public int socket_timeout = SOCKET_TIMEOUT;
	
	protected PairSocketConnectedListener pairSocketConnectedListener;
	
	/**
	 * Constructor WFDPairInfo
	 * @param i WifiP2pInfo
	 */
	public WFDPairInfo(WifiP2pInfo i) {
		this.info = i;
	}
<commit_msg>WFDPairInfo interface update<commit_after>package com.flyingbuffalo.wfdmanager;

import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.UnknownHostException;

import android.net.wifi.p2p.WifiP2pInfo;
import android.os.AsyncTask;

/**
 * Paired WiFi direct device info. Wrapping origin object for library.
 * @author Shin
 *
 */
public class WFDPairInfo {

	public WifiP2pInfo info;
	
	public final static int PORT = 8988;
	public final static int SOCKET_TIMEOUT = 10000;
	public int port = PORT;
	public int socket_timeout = SOCKET_TIMEOUT;
	
	protected PairSocketConnectedListener pairSocketConnectedListener;
	
	/**
	 * Constructor WFDPairInfo
	 * @param i WifiP2pInfo
	 */
	public WFDPairInfo(WifiP2pInfo i) {
		this.info = i;
	}

	public String getLocalAddress() throws UnknownHostException {
		return InetAddress.getLocalHost().toString();
	}
	
	public String getRemoteAddress() {
		return info.groupOwnerAddress.getHostAddress();				
	}		
	
{'fraction_non_alphanumeric': 0.08393152954168967, 'fraction_numerical': 0.015461071231363888, 'mean_word_length': 4.644859813084112, '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': '6741784', 'n_tokens_mistral': 635, 'n_tokens_neox': 589, 'n_words': 148}