<commit_before>package main

import (
	"fmt"
	"flag"
	"os"
	"github.com/51idc/port-agent/g"
	"github.com/51idc/port-agent/funcs"
	"github.com/51idc/port-agent/cron"
	"github.com/51idc/port-agent/http"
)

func main() {
	cfg := flag.String("c", "cfg.json", "configuration file")
	version := flag.Bool("v", false, "show version")
	check := flag.Bool("check", false, "check collector")
	flag.Parse()

	if *version {
		fmt.Println(g.VERSION)
		os.Exit(0)
	}

	if *check {
		funcs.CheckCollector()
		os.Exit(0)
	}

	g.ParseConfig(*cfg)
	g.InitRootDir()
	g.InitLocalIps()
	g.InitRpcClients()
	funcs.BuildMappers()
	cron.Collect()
	go http.Start()

	select {}

}



<commit_msg>test pull request<commit_after>package main

import (
	"fmt"
	"flag"
	"os"
	"github.com/51idc/port-agent/g"
	"github.com/51idc/port-agent/funcs"
	"github.com/51idc/port-agent/cron"
	"github.com/51idc/port-agent/http"
)

func main() {
	cfg := flag.String("c", "cfg.json", "configuration file")
	version := flag.Bool("v", false, "show version")
	check := flag.Bool("check", false, "check collector")
	flag.Parse()

	if *version {
		fmt.Println(g.VERSION)
		os.Exit(0)
	}

	if *check {
		funcs.CheckCollector()
		os.Exit(0)
	}

	g.ParseConfig(*cfg)
	g.InitRootDir()
	g.InitLocalIps()
	g.InitRpcClients()
	funcs.BuildMappers()
	cron.Collect()

	go http.Start()

	select {}

}




{'fraction_non_alphanumeric': 0.18587360594795538, 'fraction_numerical': 0.01486988847583643, 'mean_word_length': 3.9124087591240877, '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': '5570010', 'n_tokens_mistral': 606, 'n_tokens_neox': 575, 'n_words': 92}