<commit_before>package com.constructor.client

class ConstructorExample {
	public main(String[] args) {
		switch (args[0]) {
			case "query":
				// assertions?
				ConstructorIO constructor = new ConstructorIO("-", "P03bVBcmyYjSG1ZQyD4V", true, null);
				for (int i = 1; i < args.length; i++) {
					JsonNode res = constructor.query(s);
					System.out.println(res.toString());
				}
			default:
				System.out.println("Usage: constructor (query | add | remove | modify | trackSearch | trackConversion | trackClickThrough) args...");
		}
	}<commit_msg>example fleshed out for queries only<commit_after>package com.constructor.client;

import com.mashape.unirest.http.*;

class ConstructorExample {
	public void main(String[] args) {
		if (args.length == 0) {
			System.out.println("Usage: constructor (query | add | remove | modify | trackSearch | trackConversion | trackClickThrough) args...");
			// exit
		}
		String firstArg = args[0];
		// big if else in order to avoid dependency on java 7
		if (firstArg.equals("query")) {
			try {
				ConstructorIO constructor = new ConstructorIO("-", "P03bVBcmyYjSG1ZQyD4V", true, null);
				for (int i = 1; i < args.length; i++) {
					JsonNode res = constructor.query(args[i]);
					System.out.println(res.toString());
				}
			} catch (ConstructorException con) {
				System.out.println("fuck fuck fuck");
			}
		} else if (firstArg.equals("add")) {
			//
		} else if (firstArg.equals("remove")) {
			//
		} else if (firstArg.equals("modify")) {
			//
		} else if (firstArg.equals("trackSearch")) {
			//
		} else if (firstArg.equals("trackConversion")) {
			//
		} else if (firstArg.equals("trackClickThrough")) {
			//
		}
	}
}
{'fraction_non_alphanumeric': 0.15503875968992248, 'fraction_numerical': 0.008348240906380441, 'mean_word_length': 3.4157894736842107, 'pattern_counts': {'":': 1, '<': 5, '<?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': 1, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1092586', 'n_tokens_mistral': 638, 'n_tokens_neox': 545, 'n_words': 129}