<commit_before><%+cbi/valueheader%>

<div<%=attr("data-ui-widget", luci.util.serialize_json({
	"FileUpload", self:cfgvalue(section) or self.default, {
		id = cbid,
		name = cbid,
		show_hidden = self.show_hidden,
		enable_remove = self.enable_remove,
		enable_upload = self.enable_upload,
		root_directory = "/" --self.root_directory
	}
}))%>></div>

<%+cbi/valuefooter%><commit_msg>luci-compat: upload.htm: expose root_directory and initial_directory<commit_after><%+cbi/valueheader%>

<div<%=attr("data-ui-widget", luci.util.serialize_json({
	"FileUpload", self:cfgvalue(section) or self.default, {
		id = cbid,
		name = cbid,
		show_hidden = self.show_hidden,
		enable_remove = self.enable_remove,
		enable_upload = self.enable_upload,
		root_directory = self.root_directory or "/",
		initial_directory = self.initial_directory
	}
}))%>></div>

<%+cbi/valuefooter%>
{'fraction_non_alphanumeric': 0.16244239631336405, 'fraction_numerical': 0.0, 'mean_word_length': 5.533834586466165, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6336983', 'n_tokens_mistral': 333, 'n_tokens_neox': 314, 'n_words': 49}