<commit_before>package com.boundary.sdk;

import java.util.Date;

import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.main.Main;
import org.apache.camel.Processor;
import org.apache.camel.Exchange;

public class BoundaryIntegrationApp {
 
    private Main main;
 
    public static void main(String[] args) throws Exception {
        MainExample example = new MainExample();
        example.boot();
    }
 
    public void boot() throws Exception {
		// TODO Fixed values, need to make externally configurable
		//String orgID = "3ehRi7uZeeaTN12dErF5XOnRXjC";
		//String apiKey = "<KEY>";

        //
		// Create new main instance and enable hang support so the process can be killed.
		// TODO: Option to run daemonized
        main = new Main();
        // enable hangup support so you can press ctrl + c to terminate the JVM
        main.enableHangupSupport();
        
        //
        // Bind any beans if we are using any to the registry.
        //TODO: Configurable or dynamic configuration.
        
        main.bind("foo", new MyBean());
        
        //
        // Add routes
        // TODO: how to integrate spring configuration routes
        // TODO: Dynamic loading of route objects using reflection
        // main.addRouteBuilder(new BoundaryRoute(orgID,apiKey));
        main.addRouteBuilder(new MyRouteBuilder());
 
        // run until you terminate the JVM
        System.out.println("Starting Boundary Integration Application. Use ctrl + c to terminate the JVM.\n");
        main.run();<commit_msg>Working version of example Route using Camel Main class<commit_after>package com.boundary.sdk;

import java.util.Date;

import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.main.Main;
import org.apache.camel.Processor;
import org.apache.camel.Exchange;

public class BoundaryIntegrationApp {
 
    private Main main;
 
    public static void main(String[] args) throws Exception {
    	BoundaryIntegrationApp app = new BoundaryIntegrationApp();
        app.boot();
    }
 
    public void boot() throws Exception {
		// TODO Fixed values, need to make externally configurable
		//String orgID = "3ehRi7uZeeaTN12dErF5XOnRXjC";
		//String apiKey = "<KEY>";

        //
		// Create new main instance and enable hang support so the process can be killed.
		// TODO: Option to run daemonized
        main = new Main();
        // enable hangup support so you can press ctrl + c to terminate the JVM
        main.enableHangupSupport();
        
        //
        // Bind any beans if we are using any to the registry.
        //TODO: Configurable or dynamic configuration.
        
        main.bind("foo", new MyBean());
        
        //
        // Add routes
        // TODO: how to integrate spring configuration routes
        // TODO: Dynamic loading of route objects using reflection
        // main.addRouteBuilder(new BoundaryRoute(orgID,apiKey));
        main.addRouteBuilder(new MyRouteBuilder());
 
        // run until you terminate the JVM
        System.out.println("Starting Boundary Integration Application. Use ctrl + c to terminate the JVM.\n");
        main.run();
{'fraction_non_alphanumeric': 0.09035952911231308, 'fraction_numerical': 0.003181673560292714, 'mean_word_length': 2.5011135857461024, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3106387', 'n_tokens_mistral': 891, 'n_tokens_neox': 828, 'n_words': 293}