<commit_before>package main

//
// An example main for the router process.
//
import (
    "log"
    "github.com/trendrr/goshire/cheshire"
    "github.com/trendrr/goshire-shards/router"
       
)



func main() {
    
    bootstrap := cheshire.NewBootstrapFile("router_config.yaml")

    matcher := router.NewMatcher()
    bootstrap.Conf.Router = matcher


    //now add the services.
    matcher.AddService("http://localhost:8010")



    log.Println("Starting")
    //starts listening on all configured interfaces
    bootstrap.Start()
}<commit_msg>update router main<commit_after>package main

//
// An example main for the router process.
//
import (
    "log"
    // "github.com/trendrr/goshire/cheshire"
    "github.com/trendrr/goshire-shards/router"
    // "os"
)



func main() {

    // lf, err := os.Create("router.log")
    // if err != nil {
    //     log.Panicf("Coulding open log file -- %s", err)
    // }
    // //log to a file
    // log.SetOutput(lf)

    r := router.NewServerFile("router_config.yaml")



    //now add the services.
    err := r.AddService("http://localhost:8010")
    if err != nil {
        log.Panic(err)
    }


    log.Println("Starting")
    //starts listening on all configured interfaces
    r.Start()
}
{'fraction_non_alphanumeric': 0.14731785428342675, 'fraction_numerical': 0.006405124099279423, 'mean_word_length': 2.3875338753387534, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4688984', 'n_tokens_mistral': 442, 'n_tokens_neox': 412, 'n_words': 89}