<commit_before>import org.apache.thrift.transport.TTransport;
import org.apache.thrift.transport.TSocket;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TProtocol;
import java.nio.ByteBuffer;
import barista.*;

/** 
 * Sample Barista Java Client
 * 
 * @author anantb
 * @date 03/24/2014
 * 
 */

public class Client {
  public static void main(String [] args) {
    try {
      TTransport transport = new TSocket("172.16.58.3", 9000);
      TProtocol protocol = new  TBinaryProtocol(transport);
      Barista.Client client = new Barista.Client(protocol);

      transport.open();
      
      ConnectionParams con_params = new ConnectionParams();
      con_params.setUser("postgres");
      con_params.setPassword("<PASSWORD>");
      con_params.setDatabase("postgres");
      con_params.setClient_id("client_java");
      con_params.setSeq_id("1");

      Connection con = client.open_connection(con_params);	     
      ResultSet res = client.execute_sql(
          con, "SELECT 6.824 as id, 'Distributed Systems' as name", null);

      for (String fielf_name : res.getField_names()) {
        System.out.print(fielf_name + "\t");<commit_msg>more stuff<commit_after>import org.apache.thrift.transport.TTransport;
import org.apache.thrift.transport.TSocket;
import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.protocol.TProtocol;
import java.nio.ByteBuffer;
import barista.*;

/** 
 * Sample Barista Java Client
 * 
 * @author anantb
 * @date 03/24/2014
 * 
 */

public class Client {
  public static void main(String [] args) {
    try {
      TTransport transport = new TSocket("172.16.58.3", 9000);
      TProtocol protocol = new  TBinaryProtocol(transport);
      Barista.Client client = new Barista.Client(protocol);

      transport.open();
      
      ConnectionParams con_params = new ConnectionParams();
      con_params.setUser("postgres");
      con_params.setPassword("<PASSWORD>");
      con_params.setDatabase("postgres");
      con_params.setClient_id("client_java");
      con_params.setSeq_id("1");

      Connection con = client.open_connection(con_params);	     
      ResultSet res = client.execute_sql(
          con, "SELECT 6.824 as id, 'Distributed Systems' as name", null);

      for (String field_name : res.getField_names()) {
        System.out.print(field_name + "\t");
{'fraction_non_alphanumeric': 0.12177589852008457, 'fraction_numerical': 0.021141649048625793, 'mean_word_length': 3.4641509433962265, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1341052', 'n_tokens_mistral': 742, 'n_tokens_neox': 707, 'n_words': 148}