<commit_before>
import java.io.*;
import Mapi.*;


public class MapiClient 
{
    public static void usage(){
	System.out.println("Usage: java MapiClient <host> <port> <user>" );
       	System.out.println("or   : java MapiClient <port> <user>" );
       	System.out.println("or   : java MapiClient <user>" );
       	System.out.println("or   : java MapiClient" );
	System.exit(1);
    }

    public static void main(String argv[]){
	String hostname = "localhost";
	int portnr = 50000;
	String user = "niels";
	if (argv.length > 3 ){
	   	usage();
	}
	if (argv.length == 1){
      		user = argv[0];
	} else if (argv.length == 2){
		portnr = Integer.parseInt(argv[0]);
      		user = argv[1];
	} else if (argv.length == 3){
		hostname = argv[0];
		portnr = Integer.parseInt(argv[1]);
      		user = argv[2];
	}

	try {
      		Mapi M = new Mapi( hostname, portnr, user );
		Reader r = new BufferedReader(new InputStreamReader(System.in));
		LineNumberReader input = new LineNumberReader(r);
		String s;
		System.out.print(">");
		while((s=input.readLine()) != null){
			if (s == "quit;") break;
			System.out.println( M.query(s + "\n") );
			System.out.print(">");
		}
	} catch (MapiException e){
                System.err.println( "MapiClient: "+e );
        } catch (IOException e){
                System.err.println( "MapiClient: "+e );
	}
   }
}<commit_msg>MapiClient.java: - don't append a new line to the MIL query, the query method will handle this<commit_after>
import java.io.*;
import Mapi.*;


public class MapiClient 
{
    public static void usage(){
	System.out.println("Usage: java MapiClient <host> <port> <user>" );
       	System.out.println("or   : java MapiClient <port> <user>" );
       	System.out.println("or   : java MapiClient <user>" );
       	System.out.println("or   : java MapiClient" );
	System.exit(1);
    }

    public static void main(String argv[]){
	String hostname = "localhost";
	int portnr = 50000;
	String user = "niels";
	if (argv.length > 3 ){
	   	usage();
	}
	if (argv.length == 1){
      		user = argv[0];
	} else if (argv.length == 2){
		portnr = Integer.parseInt(argv[0]);
      		user = argv[1];
	} else if (argv.length == 3){
		hostname = argv[0];
		portnr = Integer.parseInt(argv[1]);
      		user = argv[2];
	}

	try {
      		Mapi M = new Mapi( hostname, portnr, user );
		Reader r = new BufferedReader(new InputStreamReader(System.in));
		LineNumberReader input = new LineNumberReader(r);
		String s;
		System.out.print(">");
		while((s=input.readLine()) != null){
			if (s.equals("quit;")) break;
			System.out.println(M.query(s));
			System.out.print(">");
		}
	} catch (MapiException e){
                System.err.println( "MapiClient: "+e );
        } catch (IOException e){
                System.err.println( "MapiClient: "+e );
	}
   }
}
{'fraction_non_alphanumeric': 0.16779721528025704, 'fraction_numerical': 0.011424491253123885, 'mean_word_length': 2.854195323246217, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 21, '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': '3734243', 'n_tokens_mistral': 1035, 'n_tokens_neox': 977, 'n_words': 240}