<commit_before>package com.jayway.trumpet.server.boot;

import org.aeonbits.owner.ConfigFactory;

public class Main {

    public static void main(String[] args) {
        TrumpetServerConfig config = ConfigFactory.create(TrumpetServerConfig.class,
                System.getProperties(),
                System.getenv());

        if (args.length > 0) {
            if(args[0].equalsIgnoreCase("-help") || args[0].equalsIgnoreCase("-h") ){
                docs();
                System.exit(0);
            }
        }
        TrumpetServer trumpetServer = new TrumpetServer(config);
        trumpetServer.start();
    }

    private static void docs(){

        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("Configuration");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("When bootstrapping tha application will scan for configurations in the order described below.");
        System.out.println("Properties defined in one file has precedence over properties defined later in the list of sources.");
        System.out.println("");
        System.out.println("    file:trumpetServer.config");
        System.out.println("    file:~/.trumpetServer.config");
        System.out.println("    file:/etc/trumpetServer.config");
        System.out.println("");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("Commandline options");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("Default port: 9191 ");
        System.out.println("Default host: 0.0.0.0");
        System.out.println("");
        System.out.println("java -Dserver.http.port=9999 -Dserver.http.host=localhost -jar trumpet-server-1.0.0-shadow.jar");


        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("ENTRY POINT");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("");
        System.out.println("curl \"http://localhost:9191/api/?latitude=55.583985&longitude=12.957578\" ");
        System.out.println("");
        System.out.println("Respose 200 ");
        System.out.println("{");
        System.out.println("   \"id\" : \"1\",");
        System.out.println("   \"_links\": {");
        System.out.println("        \"location\": \"http://localhost:9191/api/trumpeters/1/location\",");
        System.out.println("        \"subscribe\": \"http://localhost:9191/api/trumpeters/1/subscribe\",");
        System.out.println("        \"trumpet\": \"http://localhost:9191/api/trumpeters/1/trumpet\"");
        System.out.println("    }");
        System.out.println("}");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("LOCATION");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("");
        System.out.println("curl -X PUT --data \"latitude=55.583985&longitude=12.957578\" http://localhost:9191/api/trumpeters/1/location");
        System.out.println("Respose 200 (no content)");
        System.out.println("");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("TRUMPET");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("");
        System.out.println("curl -X POST --data \"message=This is my first trumpet&distance=200\" http://localhost:9191/api/trumpeters/1/trumpet");
        System.out.println("The form parameter distance is optional");
        System.out.println("Respose 200 (no content)");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("SUBSCRIBE");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("1. Open EventSource to href");
        System.out.println("2. Message to subscribe to is 'trumpet'");
        System.out.println("3. Message format is: ");
        System.out.println("{");
        System.out.println("    \"message\": \"This is noise from a trumpeter!\", ");
        System.out.println("    \"distanceFromSource\": 240");
        System.out.println("}");
    }
}<commit_msg>Fixed typo in docs.<commit_after>package com.jayway.trumpet.server.boot;

import org.aeonbits.owner.ConfigFactory;

public class Main {

    public static void main(String[] args) {
        TrumpetServerConfig config = ConfigFactory.create(TrumpetServerConfig.class,
                System.getProperties(),
                System.getenv());

        if (args.length > 0) {
            if(args[0].equalsIgnoreCase("-help") || args[0].equalsIgnoreCase("-h") ){
                docs();
                System.exit(0);
            }
        }
        TrumpetServer trumpetServer = new TrumpetServer(config);
        trumpetServer.start();
    }

    private static void docs(){

        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("Configuration");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("When bootstrapping tha application will scan for configurations in the order described below.");
        System.out.println("Properties defined in one file has precedence over properties defined later in the list of sources.");
        System.out.println("");
        System.out.println("    file:trumpetServer.config");
        System.out.println("    file:~/.trumpetServer.config");
        System.out.println("    file:/etc/trumpetServer.config");
        System.out.println("");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("Commandline options");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("Default port: 9191 ");
        System.out.println("Default host: 0.0.0.0");
        System.out.println("");
        System.out.println("java -Dserver.http.port=9999 -Dserver.http.host=localhost -jar trumpet-server-1.0.0-shadow.jar");


        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("ENTRY POINT");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("");
        System.out.println("curl \"http://localhost:9191/api/?latitude=55.583985&longitude=12.957578\" ");
        System.out.println("");
        System.out.println("Response 200 ");
        System.out.println("{");
        System.out.println("   \"id\" : \"1\",");
        System.out.println("   \"_links\": {");
        System.out.println("        \"location\": \"http://localhost:9191/api/trumpeters/1/location\",");
        System.out.println("        \"subscribe\": \"http://localhost:9191/api/trumpeters/1/subscribe\",");
        System.out.println("        \"trumpet\": \"http://localhost:9191/api/trumpeters/1/trumpet\"");
        System.out.println("    }");
        System.out.println("}");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("LOCATION");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("");
        System.out.println("curl -X PUT --data \"latitude=55.583985&longitude=12.957578\" http://localhost:9191/api/trumpeters/1/location");
        System.out.println("Response 200 (no content)");
        System.out.println("");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("TRUMPET");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("");
        System.out.println("curl -X POST --data \"message=This is my first trumpet&distance=200\" http://localhost:9191/api/trumpeters/1/trumpet");
        System.out.println("The form parameter distance is optional");
        System.out.println("Response 200 (no content)");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("SUBSCRIBE");
        System.out.println("-----------------------------------------------------------------------------------------------");
        System.out.println("1. Open EventSource to href");
        System.out.println("2. Message to subscribe to is 'trumpet'");
        System.out.println("3. Message format is: ");
        System.out.println("{");
        System.out.println("    \"message\": \"This is noise from a trumpeter!\", ");
        System.out.println("    \"distanceFromSource\": 240");
        System.out.println("}");
    }
}
{'fraction_non_alphanumeric': 0.3645843879720563, 'fraction_numerical': 0.02004657284600587, 'mean_word_length': 1.2202742189256013, 'pattern_counts': {'":': 12, '<': 3, '<?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': '4227798', 'n_tokens_mistral': 2297, 'n_tokens_neox': 2204, 'n_words': 377}