<commit_before><%#
Copyright 2017-2020 <NAME> (<EMAIL>)
This is free software, licensed under the Apache License, Version 2.0
-%>

<%-
	local sys = require("luci.sys")
	local utl = require("luci.util")
	local dev = luci.http.formvalue("device")
	local ifn = utl.trim(sys.exec("/bin/ubus -S call network.wireless status 2>/dev/null | jsonfilter -l1 -e \"@." .. dev .. ".interfaces.*.ifname\" 2>/dev/null"))
	local iw<commit_msg>luci-app-travelmate: refine logical interface selection<commit_after><%#
Copyright 2017-2020 <NAME> (<EMAIL>)
This is free software, licensed under the Apache License, Version 2.0
-%>

<%-
	local sys = require("luci.sys")
	local utl = require("luci.util")
	local dev = luci.http.formvalue("device")
	local ifn = utl.trim(sys.exec("/bin/ubus -S call network.wireless status 2>/dev/null | jsonfilter -l1 -e '@." .. dev .. ".interfaces[@.config.mode=\"sta\"].ifname' 2>/dev/null"))
	local iw
{'fraction_non_alphanumeric': 0.1825136612021858, 'fraction_numerical': 0.02841530054644809, 'mean_word_length': 4.088888888888889, 'pattern_counts': {'":': 0, '<': 11, '<?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': '6961815', 'n_tokens_mistral': 344, 'n_tokens_neox': 317, 'n_words': 85}