<commit_before>package hamgo

//New : create a Server by Properties
func New(properties *Properties) Server {
	//set server by Properties
	if properties != nil {
		setLog(properties.LogFile)
		setSession(properties.SessionMaxLifeTime)
	}
	//set logo
	printLogo()
	//return
	return newServer()
}

//New : create a Server by config
func NewByConf(configFile string) Server {
	//set server by config
	setConfig(configFile)
	return New(&Properties{"", Conf.DefaultInt64("session_max_time", 0)})
}

type Properties struct {
	LogFile            string
	SessionMaxLifeTime int64
}<commit_msg>add NewProperties() func<commit_after>package hamgo

//New : create a Server by Properties
func New(properties *Properties) Server {
	//set server by Properties
	if properties != nil {
		setLog(properties.LogFile)
		setSession(properties.SessionMaxLifeTime)
	}
	//set logo
	printLogo()
	//return
	return newServer()
}

//New : create a Server by config
func NewByConf(configFile string) Server {
	//set server by config
	setConfig(configFile)
	return New(&Properties{"", Conf.DefaultInt64("session_max_time", 0)})
}

func NewProperties(logFile string, sessionMaxLifeTime int64) *Properties {
	return &Properties{logFile, sessionMaxLifeTime}
}

type Properties struct {
	LogFile            string
	SessionMaxLifeTime int64
}
{'fraction_non_alphanumeric': 0.09785932721712538, 'fraction_numerical': 0.009174311926605505, 'mean_word_length': 4.642241379310345, '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': '3324752', 'n_tokens_mistral': 406, 'n_tokens_neox': 391, 'n_words': 117}