<commit_before>package main


import (
    "fmt"
    "log"
     "flag"
     "os"
     jsonConf "github.com/daviddengcn/go-ljson-conf"
//      "github.com/cookieo9/resources-go/v2/resources"
     "github.com/hidu/cmd2http/serve"
     "path/filepath"
   )
   
var configPath=flag.String("conf","./cmd2http.conf","config file")
var _port=flag.Int("port",0,"http server port,overwrite the port in the config file")
var _help=flag.Bool("help",false,"show help")

var port int

var config *jsonConf.Conf

var logPath string

var useCache bool

func main(){
    flag.Parse()
    if(*_help){
      printHelp()
      os.Exit(0)
     }
    loadConfig()
    
    if(*_port>0){
       port=*_port
     }
     
    server:=new(serve.Cmd2HttpServe)<commit_msg>fix: cmd2http.go:11:6: cannot find package "github.com/hidu/cmd2http/serve" in any of<commit_after>package main


import (
    "fmt"
    "log"
     "flag"
     "os"
     jsonConf "github.com/daviddengcn/go-ljson-conf"
//      "github.com/cookieo9/resources-go/v2/resources"
     "./serve"
     "path/filepath"
   )
   
var configPath=flag.String("conf","./cmd2http.conf","config file")
var _port=flag.Int("port",0,"http server port,overwrite the port in the config file")
var _help=flag.Bool("help",false,"show help")

var port int

var config *jsonConf.Conf

var logPath string

var useCache bool

func main(){
    flag.Parse()
    if(*_help){
      printHelp()
      os.Exit(0)
     }
    loadConfig()
    
    if(*_port>0){
       port=*_port
     }
     
    server:=new(serve.Cmd2HttpServe)
{'fraction_non_alphanumeric': 0.14600908500973395, 'fraction_numerical': 0.012978585334198572, 'mean_word_length': 2.855, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6381288', 'n_tokens_mistral': 570, 'n_tokens_neox': 562, 'n_words': 108}