<commit_before>import datahub.*;
import org.apache.thrift.TException;
import org.apache.thrift.transport.TSSLTransportFactory;
import org.apache.thrift.transport.TTransport;
import org.apache.thrift.transport.TSocket;
import org.apache.thrift.transport.TSSLTransportFactory.TSSLTransportParameters;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TProtocol;

public class DHClient {
  public static void main(String [] args) {
    try {
      TTransport transport = new TSocket("datahub-experimental.csail.mit.edu", 9000);
      transport.open();

      TProtocol protocol = new  TBinaryProtocol(transport);
      DataHub.Client client = new DataHub.Client(protocol);
      System.out.println(client.get_version());


      transport.close();
    } catch(Exception e) {
      e.printStackTrace();
    }

   
  }

}<commit_msg>samle java client<commit_after>import datahub.*;
import org.apache.thrift.TException;
import org.apache.thrift.transport.TSSLTransportFactory;
import org.apache.thrift.transport.TTransport;
import org.apache.thrift.transport.TSocket;
import org.apache.thrift.transport.TSSLTransportFactory.TSSLTransportParameters;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TProtocol;

/** 
 * Sample DataHub Java Client
 * 
 * @author anantb
 * @date 11/07/2013
 * 
 */

public class DHClient {
  public static void main(String [] args) {
    try {
      TTransport transport = new TSocket(
		  "datahub-experimental.csail.mit.edu", 9000);
      transport.open();
	  
      TProtocol protocol = new  TBinaryProtocol(transport);
      DataHub.Client client = new DataHub.Client(protocol);
	  
      System.out.println(client.get_version());
	  
      transport.close();
    } catch(Exception e) {
      e.printStackTrace();
    }
 
  }

}
{'fraction_non_alphanumeric': 0.11275314723590586, 'fraction_numerical': 0.00875752599890531, 'mean_word_length': 3.900804289544236, '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': '5516043', 'n_tokens_mistral': 555, 'n_tokens_neox': 537, 'n_words': 99}