<commit_before>--[[
LuCI - Lua Configuration Interface

Copyright 2008 <NAME> <<EMAIL>>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

	http://www.apache.org/licenses/LICENSE-2.0

$Id$
]]--
m = Map("dhcp", "Dnsmasq",
	translate("Dnsmasq is a combined <abbr title=\"Dynamic Host Configuration Protocol" ..
		"\">DHCP</abbr>-Server and <abbr title=\"Domain Name System\">DNS</abbr>-" ..
		"Forwarder for <abbr title=\"Network Address Translation\">NAT</abbr> " ..
		"firewalls"))

s = m:section(TypedSection, "dnsmasq", translate("Settings"))
s.anonymous = true
s.addremove = false

s:option(Flag, "domainneeded",
	translate("Domain required"),
	translate("Don't forward <abbr title=\"Domain Name System\">DNS</abbr>-Requests without " ..
		"<abbr title=\"Domain Name System\">DNS</abbr>-Name"))

s:option(Flag, "authoritative",
	translate("Authoritative"),
	translate("This is the only <abbr title=\"Dynamic Host Configuration Protocol\">DHCP</" ..
		"abbr> in the local network"))

s:option(Flag, "boguspriv",
	translate("Filter private"),
	translate("Don't forward reverse lookups for local networks"))

s:option(Flag, "filterwin2k",
	translate("Filter useless"),
	translate("filter useless <abbr title=\"Domain Name System\">DNS</abbr>-queries of " ..
		"Windows-systems"))

s:option(Flag, "localise_queries",
	translate("Localise queries"),
	translate("localises the hostname depending on its subnet"))

s:option(Value, "local",
	translate("Local Server"))

s:option(Value, "domain",
	translate("Local Domain"))

s:option(Flag, "expandhosts",
	translate("Expand Hosts"),
	translate("adds domain names to hostentries in the resolv file"))

s:option(Flag, "nonegcache",
	translate("don't cache unknown"),
	translate("prevents caching of negative <abbr title=\"Domain Name System\">DNS</abbr>-" ..
		"replies"))

s:option(Flag, "readethers",
	translate("Use <code>/etc/ethers</code>"),
	translate("Read <code>/etc/ethers</code> to configure the <abbr title=\"Dynamic Host " ..
		"Configuration Protocol\">DHCP</abbr>-Server"))

s:option(Value, "leasefile",
	translate("Leasefile"),
	translate("file where given <abbr title=\"Dynamic Host Configuration Protocol\">DHCP</" ..
		"abbr>-leases will be stored"))

s:option(Value, "resolvfile",
	translate("Resolvfile"),
	translate("local <abbr title=\"Domain Name System\">DNS</abbr> file"))

s:option(Flag, "nohosts",
	translate("Ignore <code>/etc/hosts</code>")).optional = true

s:option(Flag, "strictorder",
	translate("Strict order"),
	translate("<abbr title=\"Domain Name System\">DNS</abbr>-Server will be queried in the " ..
		"order of the resolvfile")).optional = true

s:option(Flag, "logqueries",
	translate("Log queries")).optional = true

s:option(Flag, "noresolv",
	translate("Ignore resolve file")).optional = true

s:option(Value, "dnsforwardmax",
	translate("concurrent queries")).optional = true

s:option(Value, "port",
	translate("<abbr title=\"Domain Name System\">DNS</abbr>-Port")).optional = true

s:option(Value, "ednspacket_max",
	translate("<abbr title=\"maximal\">max.</abbr> <abbr title=\"Extension Mechanisms for " ..
		"Domain Name System\">EDNS0</abbr> paket size")).optional = true

s:option(Value, "dhcpleasemax",
	translate("<abbr title=\"maximal\">max.</abbr> <abbr title=\"Dynamic Host Configuration " ..
		"Protocol\">DHCP</abbr>-Leases")).optional = true

s:option(Value, "addnhosts",
	translate("additional hostfile")).optional = true

s:option(Value, "queryport",
	translate("query port")).optional = true<commit_msg>modules/admin-full: make dnsmasq addnhosts option a dynamic list<commit_after>--[[
LuCI - Lua Configuration Interface

Copyright 2008 <NAME> <<EMAIL>>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

	http://www.apache.org/licenses/LICENSE-2.0

$Id$
]]--
m = Map("dhcp", "Dnsmasq",
	translate("Dnsmasq is a combined <abbr title=\"Dynamic Host Configuration Protocol" ..
		"\">DHCP</abbr>-Server and <abbr title=\"Domain Name System\">DNS</abbr>-" ..
		"Forwarder for <abbr title=\"Network Address Translation\">NAT</abbr> " ..
		"firewalls"))

s = m:section(TypedSection, "dnsmasq", translate("Settings"))
s.anonymous = true
s.addremove = false

s:option(Flag, "domainneeded",
	translate("Domain required"),
	translate("Don't forward <abbr title=\"Domain Name System\">DNS</abbr>-Requests without " ..
		"<abbr title=\"Domain Name System\">DNS</abbr>-Name"))

s:option(Flag, "authoritative",
	translate("Authoritative"),
	translate("This is the only <abbr title=\"Dynamic Host Configuration Protocol\">DHCP</" ..
		"abbr> in the local network"))

s:option(Flag, "boguspriv",
	translate("Filter private"),
	translate("Don't forward reverse lookups for local networks"))

s:option(Flag, "filterwin2k",
	translate("Filter useless"),
	translate("filter useless <abbr title=\"Domain Name System\">DNS</abbr>-queries of " ..
		"Windows-systems"))

s:option(Flag, "localise_queries",
	translate("Localise queries"),
	translate("localises the hostname depending on its subnet"))

s:option(Value, "local",
	translate("Local Server"))

s:option(Value, "domain",
	translate("Local Domain"))

s:option(Flag, "expandhosts",
	translate("Expand Hosts"),
	translate("adds domain names to hostentries in the resolv file"))

s:option(Flag, "nonegcache",
	translate("don't cache unknown"),
	translate("prevents caching of negative <abbr title=\"Domain Name System\">DNS</abbr>-" ..
		"replies"))

s:option(Flag, "readethers",
	translate("Use <code>/etc/ethers</code>"),
	translate("Read <code>/etc/ethers</code> to configure the <abbr title=\"Dynamic Host " ..
		"Configuration Protocol\">DHCP</abbr>-Server"))

s:option(Value, "leasefile",
	translate("Leasefile"),
	translate("file where given <abbr title=\"Dynamic Host Configuration Protocol\">DHCP</" ..
		"abbr>-leases will be stored"))

s:option(Value, "resolvfile",
	translate("Resolvfile"),
	translate("local <abbr title=\"Domain Name System\">DNS</abbr> file"))

s:option(Flag, "nohosts",
	translate("Ignore <code>/etc/hosts</code>")).optional = true

s:option(Flag, "strictorder",
	translate("Strict order"),
	translate("<abbr title=\"Domain Name System\">DNS</abbr>-Server will be queried in the " ..
		"order of the resolvfile")).optional = true

s:option(Flag, "logqueries",
	translate("Log queries")).optional = true

s:option(Flag, "noresolv",
	translate("Ignore resolve file")).optional = true

s:option(Value, "dnsforwardmax",
	translate("concurrent queries")).optional = true

s:option(Value, "port",
	translate("<abbr title=\"Domain Name System\">DNS</abbr>-Port")).optional = true

s:option(Value, "ednspacket_max",
	translate("<abbr title=\"maximal\">max.</abbr> <abbr title=\"Extension Mechanisms for " ..
		"Domain Name System\">EDNS0</abbr> paket size")).optional = true

s:option(Value, "dhcpleasemax",
	translate("<abbr title=\"maximal\">max.</abbr> <abbr title=\"Dynamic Host Configuration " ..
		"Protocol\">DHCP</abbr>-Leases")).optional = true

s:option(DynamicList, "addnhosts",
	translate("additional hostfile")).optional = true

s:option(Value, "queryport",
	translate("query port")).optional = true
{'fraction_non_alphanumeric': 0.17516750991385205, 'fraction_numerical': 0.002734855736359907, 'mean_word_length': 5.734806629834254, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 89, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3401397', 'n_tokens_mistral': 2405, 'n_tokens_neox': 2342, 'n_words': 592}