<commit_before># Amahi Home Server
# Copyright (C) 2007-2013 Amahi
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License v3
# (29 June 2007), as published in the COPYING file.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# file COPYING for more details.
# 
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Amahi
# team at http://www.amahi.org/ under "Contact Us."

class SettingsController < ApplicationController

	before_filter :admin_required

	def index
		@page_title = t 'settings'
		@available_locales = locales_implemented
		@advanced = Setting.find_by_name('advanced')
		@guest = Setting.find_by_name("guest-dashboard")
		@version = {}
		@version[:platform] = "xyz (FIXME)"
		@version[:core] = "xyz (FIXME)"<commit_msg>tap the platform for version information<commit_after># Amahi Home Server
# Copyright (C) 2007-2013 Amahi
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License v3
# (29 June 2007), as published in the COPYING file.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# file COPYING for more details.
# 
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the Amahi
# team at http://www.amahi.org/ under "Contact Us."

class SettingsController < ApplicationController

	before_filter :admin_required

	def index
		@page_title = t 'settings'
		@available_locales = locales_implemented
		@advanced = Setting.find_by_name('advanced')
		@guest = Setting.find_by_name("guest-dashboard")
		@version = Platform.platform_versions
{'fraction_non_alphanumeric': 0.07669470559129143, 'fraction_numerical': 0.014844136566056407, 'mean_word_length': 4.570247933884297, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6612319', 'n_tokens_mistral': 611, 'n_tokens_neox': 557, 'n_words': 251}