<commit_before>--[[

Luci configuration model for statistics - general collectd configuration
(c) 2008 Freifunk Leipzig / <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$

]]--

require("luci.sys")


m = Map("luci_statistics",
	translate("Collectd Settings"),
	translate(
		"Collectd is a small daeomon for collecting data from " ..
		"various sources through different plugins. On this page " ..
		"you can change general settings for the collectd daemon."
	))

-- general config section
s = m:section( NamedSection, "collectd", "luci_statistics" )

-- general.hostname (Hostname)
hostname = s:option( Value, "Hostname", translate("Hostname") )
hostname.default  = luci.sys.hostname()<commit_msg>applications/luci-statistics: fix typo in collectd cbi<commit_after>--[[

Luci configuration model for statistics - general collectd configuration
(c) 2008 Freifunk Leipzig / <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$

]]--

require("luci.sys")


m = Map("luci_statistics",
	translate("Collectd Settings"),
	translate(
		"Collectd is a small daemon for collecting data from " ..
		"various sources through different plugins. On this page " ..
		"you can change general settings for the collectd daemon."
	))

-- general config section
s = m:section( NamedSection, "collectd", "luci_statistics" )

-- general.hostname (Hostname)
hostname = s:option( Value, "Hostname", translate("Hostname") )
hostname.default  = luci.sys.hostname()
{'fraction_non_alphanumeric': 0.11742006615214995, 'fraction_numerical': 0.008820286659316428, 'mean_word_length': 4.401785714285714, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6818343', 'n_tokens_mistral': 566, 'n_tokens_neox': 549, 'n_words': 196}