<commit_before><commit_msg>standalone client to list requests<commit_after>package org.aktin.broker.client.run;

import java.io.IOException;
import java.net.URI;
import java.util.Arrays;
import java.util.List;

import org.aktin.broker.client.BrokerClient;
import org.aktin.broker.client.auth.HttpApiKeyAuth;
import org.aktin.broker.xml.RequestInfo;

public class App {

	public static void main(String[] args) throws IOException{
		String apiKey = args[1];
		String brokerUrl = args[0];
		BrokerClient client = new BrokerClient(URI.create(brokerUrl));
		client.setClientAuthenticator(HttpApiKeyAuth.newBearer(apiKey));
		System.out.println("Connecting to broker "+brokerUrl);
		List<RequestInfo> rl = client.listMyRequests();
		System.out.println("Number of requests "+rl.size());
		for( RequestInfo i : rl ){
			System.out.println("Request #"+i.getId());
			System.out.println("\ttargeted="+i.targeted);
			System.out.println("\tpublished="+i.published);
			System.out.println("\ttypes="+Arrays.toString(i.types));
			System.out.println();
		}
	}
}
{'fraction_non_alphanumeric': 0.14585319351763584, 'fraction_numerical': 0.0019065776930409914, 'mean_word_length': 5.441717791411043, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '5831108', 'n_tokens_mistral': 363, 'n_tokens_neox': 347, 'n_words': 62}