<commit_before>package main;

import (
    "github.com/herman-rogers/kingkai"
    //"github.com/hudl/fargo"
);

func main() {
    RegisterEureka();
    kingkai.StartKingKai(routes, "");
}

func RegisterEureka() {
    //e := fargo.NewConn("http://eureka-gamebuildr.herokuapp.com");
    // // app, _ := e.GetApp("TESTAPP");
    //e.GetApps();
    // fmt.Println(apps);
    // for k, v := range apps {
    //     fmt.Println("k:", k, "v:", v);
    // }

    // e, _ := fargo.NewConnFromConfigFile("/etc/fargo.gcfg")
    // app, _ := e.GetApp("TESTAPP")
    // // starts a goroutine that updates the application on poll interval
    // e.UpdateApp(&app)
    // for {
    //     for _, ins := range app.Instances {
    //         fmt.Printf("%s, ", ins.HostName)
    //     }
    //     fmt.Println(len(app.Instances))
    //     <-time.After(10 * time.Second)
    // }
}
<commit_msg>Add default port and environment port capabilties<commit_after>package main;

import (
    "fmt"
    "os"
    "github.com/herman-rogers/kingkai"
    //"github.com/hudl/fargo"
);

func main() {
    var port string = GetPort();
    RegisterEureka();
    kingkai.StartKingKai(routes, port);
}

func GetPort() string {
    var port = os.Getenv("PORT");
    if (port == "") {
        port = "9000";
        fmt.Println("INFO: No PORT environment variable found, setting default.");
    }
    return ":" + port;
}

func RegisterEureka() {
    //e := fargo.NewConn("http://eureka-gamebuildr.herokuapp.com");
    // // app, _ := e.GetApp("TESTAPP");
    //e.GetApps();
    // fmt.Println(apps);
    // for k, v := range apps {
    //     fmt.Println("k:", k, "v:", v);
    // }

    // e, _ := fargo.NewConnFromConfigFile("/etc/fargo.gcfg")
    // app, _ := e.GetApp("TESTAPP")
    // // starts a goroutine that updates the application on poll interval
    // e.UpdateApp(&app)
    // for {
    //     for _, ins := range app.Instances {
    //         fmt.Printf("%s, ", ins.HostName)
    //     }
    //     fmt.Println(len(app.Instances))
    //     <-time.After(10 * time.Second)
    // }
}

{'fraction_non_alphanumeric': 0.19506292352371732, 'fraction_numerical': 0.003872216844143272, 'mean_word_length': 2.094311377245509, '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': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3647393', 'n_tokens_mistral': 755, 'n_tokens_neox': 751, 'n_words': 135}