<commit_before>require! {
	\../config-parser : config
	path
	fs
	util
}

local-path = path.join process.cwd!, "static/client-localization.json"
menu-path = path.join process.cwd!, 'static/navigation.json'

page-trait =
	lang: config.LANG
	charset: 'utf-8'
	local: require(local-path)[config.LANG]
	menu: {}

revision = new Date! .get-time!

static-url = (path-to-file)->
	path.join(\/, path-to-file) + "?v=#revision"

phone-link = (phone)->
	'tel:' + (phone - /[^0-9+]/g)

inspect = (smth, opts=null)->
	util.inspect smth, opts

for key, val of require menu-path
	new-menus-item = []
	for item in val
		new-menus-item.push let item
			retval =
				title: item.title[config.LANG]
				href: item.href or null
			if item.children?
				retval.children = [] ++ item.children
			retval
	page-trait.menu[key] = new-menus-item

console.log page-trait.menu

module.exports = {page-trait, static-url, phone-link, inspect}<commit_msg>removed some debug console.log<commit_after>require! {
	\../config-parser : config
	path
	fs
	util
}

local-path = path.join process.cwd!, "static/client-localization.json"
menu-path = path.join process.cwd!, 'static/navigation.json'

page-trait =
	lang: config.LANG
	charset: 'utf-8'
	local: require(local-path)[config.LANG]
	menu: {}

revision = new Date! .get-time!

static-url = (path-to-file)->
	path.join(\/, path-to-file) + "?v=#revision"

phone-link = (phone)->
	'tel:' + (phone - /[^0-9+]/g)

inspect = (smth, opts=null)->
	util.inspect smth, opts

for key, val of require menu-path
	new-menus-item = []
	for item in val
		new-menus-item.push let item
			retval =
				title: item.title[config.LANG]
				href: item.href or null
			if item.children?
				retval.children = [] ++ item.children
			retval
	page-trait.menu[key] = new-menus-item

module.exports = {page-trait, static-url, phone-link, inspect}
{'fraction_non_alphanumeric': 0.1668484187568157, 'fraction_numerical': 0.003271537622682661, 'mean_word_length': 3.443099273607748, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '7210021', 'n_tokens_mistral': 732, 'n_tokens_neox': 694, 'n_words': 154}