<commit_before><%+cbi/valueheader%>

<script type="text/javascript"><![CDATA[
	var iwxhr = new XHR();
	(function() {
		iwxhr.get('<%=luci.dispatcher.build_url("admin", "network", "wireless_status", self.ifname)%>', null,
			function(x)
			{
				var iw = x.responseText ? eval('(' + x.responseText + ')') : null;
				if (iw && (iw = iw[0]))
				{
					var is_assoc = (iw.bssid && iw.channel);
					var p = (100 / iw.quality_max * iw.quality);
					var q = is_assoc ? p : -1;

					var icon;
					if (q < 0)
						icon = "<%=resource%>/icons/signal-none.png";
					else if (q == 0)
						icon = "<%=resource%>/icons/signal-0.png";
					else if (q < 25)
						icon = "<%=resource%>/icons/signal-0-25.png";
					else if (q < 50)
						icon = "<%=resource%>/icons/signal-25-50.png";
					else if (q < 75)
						icon = "<%=resource%>/icons/signal-50-75.png";
					else
						icon = "<%=resource%>/icons/signal-75-100.png";

					var s = document.getElementById('<%=self.option%>-iw-signal');
					if (s)
						s.innerHTML = String.format(
							'<img src="%s" title="<%:Signal%>: %d dBm / <%Noise%>: %d dBm" /><br />' +
							'<small>%d%%</small>', icon, iw.signal, iw.noise, p
						);

					var d = document.getElementById('<%=self.option%>-iw-description');
					if (d && is_assoc)
						d.innerHTML = String.format(
							'<strong><%:Mode%>:</strong> %s | ' +
							'<strong><%:SSID%>:</strong> %s<br />' +
							'<strong><%:BSSID%>:</strong> %s | ' +
							'<strong><%:Encryption%>:</strong> %s<br />' +
							'<strong><%:Channel%>:</strong> %d (%.3f GHz) | ' +
							'<strong><%:Tx-Power%>:</strong> %d dBm<br />' +
							'<strong><%:Signal%>:</strong> %d dBm | ' +
							'<strong><%:Noise%>:</strong> %d dBm<br />' +
							'<strong><%:Bit Rate%>:</strong> %.1f MBit/s | ' +
							'<strong><%:Country%>:</strong> %s',
								iw.mode, iw.ssid, iw.bssid,
								iw.encryption ? iw.encryption.description : '<%:None%>',
								iw.channel, iw.frequency ? (iw.frequency / 1000) : 0,
								iw.txpower, iw.signal, iw.noise,<commit_msg>modules/admin-full: fix typo introduced with r6406<commit_after><%+cbi/valueheader%>

<script type="text/javascript"><![CDATA[
	var iwxhr = new XHR();
	(function() {
		iwxhr.get('<%=luci.dispatcher.build_url("admin", "network", "wireless_status", self.ifname)%>', null,
			function(x)
			{
				var iw = x.responseText ? eval('(' + x.responseText + ')') : null;
				if (iw && (iw = iw[0]))
				{
					var is_assoc = (iw.bssid && iw.channel);
					var p = (100 / iw.quality_max * iw.quality);
					var q = is_assoc ? p : -1;

					var icon;
					if (q < 0)
						icon = "<%=resource%>/icons/signal-none.png";
					else if (q == 0)
						icon = "<%=resource%>/icons/signal-0.png";
					else if (q < 25)
						icon = "<%=resource%>/icons/signal-0-25.png";
					else if (q < 50)
						icon = "<%=resource%>/icons/signal-25-50.png";
					else if (q < 75)
						icon = "<%=resource%>/icons/signal-50-75.png";
					else
						icon = "<%=resource%>/icons/signal-75-100.png";

					var s = document.getElementById('<%=self.option%>-iw-signal');
					if (s)
						s.innerHTML = String.format(
							'<img src="%s" title="<%:Signal%>: %d dBm / <%:Noise%>: %d dBm" /><br />' +
							'<small>%d%%</small>', icon, iw.signal, iw.noise, p
						);

					var d = document.getElementById('<%=self.option%>-iw-description');
					if (d && is_assoc)
						d.innerHTML = String.format(
							'<strong><%:Mode%>:</strong> %s | ' +
							'<strong><%:SSID%>:</strong> %s<br />' +
							'<strong><%:BSSID%>:</strong> %s | ' +
							'<strong><%:Encryption%>:</strong> %s<br />' +
							'<strong><%:Channel%>:</strong> %d (%.3f GHz) | ' +
							'<strong><%:Tx-Power%>:</strong> %d dBm<br />' +
							'<strong><%:Signal%>:</strong> %d dBm | ' +
							'<strong><%:Noise%>:</strong> %d dBm<br />' +
							'<strong><%:Bit Rate%>:</strong> %.1f MBit/s | ' +
							'<strong><%:Country%>:</strong> %s',
								iw.mode, iw.ssid, iw.bssid,
								iw.encryption ? iw.encryption.description : '<%:None%>',
								iw.channel, iw.frequency ? (iw.frequency / 1000) : 0,
								iw.txpower, iw.signal, iw.noise,
{'fraction_non_alphanumeric': 0.2441860465116279, 'fraction_numerical': 0.0188953488372093, 'mean_word_length': 2.6219298245614033, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 107, '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': '7389941', 'n_tokens_mistral': 2125, 'n_tokens_neox': 1608, 'n_words': 288}