<commit_before>package org.fosstrak.hal.impl.intermec.connector;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketAddress;
import java.net.SocketTimeoutException;

import org.apache.log4j.Logger;

/**
 * Simple TCP connector for Intermec's BRI
 * 
 * @author <NAME>
 */
public class TCPBRISocketConnector {

	static Logger log = Logger.getLogger(TCPBRISocketConnector.class);

	/**
	 * TCP socket to the device
	 */
	private Socket s;

	private int timeout;

	/**
	 * 
	 */
	private SocketAddress address;

	/**
	 * Input stream to send data to the device
	 */
	private BufferedReader in;

	/**
	 * Output stream to receive data from the device
	 */
	private PrintWriter out;

	/** flag to indicate that a sendRequest method is proceeding */
	boolean sendRequestActive = false;<commit_msg>Update TCPBRISocketConnector.java<commit_after>package org.fosstrak.hal.impl.intermec.connector;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketAddress;
import java.net.SocketTimeoutException;

import org.apache.log4j.Logger;

/**
 * Simple TCP connector for Intermec's BRI
 * 
 * @author <NAME>
 */
public class TCPBRISocketConnector {

	static Logger log = Logger.getLogger(TCPBRISocketConnector.class);

	/**
	 * TCP socket to the device
	 */
	private Socket s;

	private int timeout;

	/**
	 * 
	 */
	private SocketAddress address;

	/**
	 * Input stream to send data to the device
	 */
	private BufferedReader in;

	/**
	 * Output stream to receive data from the device
	 */
	private PrintWriter out;

	/** flag to indicate that a sendRequest method is proceeding */
	boolean sendRequestActive = false;
{'fraction_non_alphanumeric': 0.09665991902834008, 'fraction_numerical': 0.0010121457489878543, 'mean_word_length': 4.161879895561357, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1222963', 'n_tokens_mistral': 618, 'n_tokens_neox': 581, 'n_words': 170}