<commit_before>-- ToDo: Translate, Add descriptions and help texts
m = Map("wireless", "Netze")

s = m:section(TypedSection, "wifi-iface")
s.addremove = true
s.anonymous = true

s:option(Value, "ssid", "Netzkennung (ESSID)").maxlength = 32

device = s:option(ListValue, "device", "Gerät")
for k, v in pairs(ffluci.model.uci.show("wireless").wireless) do
	if v[".type"] == "wifi-device" then
		device:value(k)
	end
end

network = s:option(ListValue, "network", "Netzwerk")
network:value("")
for k, v in pairs(ffluci.model.uci.show("network").network) do
	if v[".type"] == "interface" then
		network:value(k)
	end
end

mode = s:option(ListValue, "mode", "Modus")
mode:value("ap", "Access Point")<commit_msg>* Fixed a bug in Wifi when no wifi interfaces are available<commit_after>-- ToDo: Translate, Add descriptions and help texts
m = Map("wireless", "Netze")

s = m:section(TypedSection, "wifi-iface")
s.addremove = true
s.anonymous = true

s:option(Value, "ssid", "Netzkennung (ESSID)").maxlength = 32

device = s:option(ListValue, "device", "Gerät")
local d = ffluci.model.uci.show("wireless").wireless
if d then
	for k, v in pairs(d) do
		if v[".type"] == "wifi-device" then
			device:value(k)
		end
	end
end

network = s:option(ListValue, "network", "Netzwerk")
network:value("")
for k, v in pairs(ffluci.model.uci.show("network").network) do
	if v[".type"] == "interface" then
		network:value(k)
	end
end

mode = s:option(ListValue, "mode", "Modus")
mode:value("ap", "Access Point")
{'fraction_non_alphanumeric': 0.1761936785474109, 'fraction_numerical': 0.0026899798251513113, 'mean_word_length': 5.386266094420601, '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': '1877694', 'n_tokens_mistral': 576, 'n_tokens_neox': 564, 'n_words': 147}