From 08f5fc6f39402873942051dbbd068c6f69766c9d Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sat, 6 Nov 2010 16:13:39 +0100 Subject: Begin of stats refactoring --- web/views/reports/characters_in_keys.erb | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'web/views/reports') diff --git a/web/views/reports/characters_in_keys.erb b/web/views/reports/characters_in_keys.erb index 5c56710..c2bb497 100644 --- a/web/views/reports/characters_in_keys.erb +++ b/web/views/reports/characters_in_keys.erb @@ -6,33 +6,33 @@ case latin letters (a-z) and the underscore (_) are used, sometimes the colon - - + + - - + + - - + + - - + + - - + + - - + +
<%= @stats['characters_in_keys_plain'] %><%= sprintf '%.2f', @stats['characters_in_keys_plain'] * 100.0 / @stats['num_keys'] %>%<%= @db.stats('characters_in_keys_plain') %><%= sprintf '%.2f', @db.stats('characters_in_keys_plain') * 100.0 / @db.stats('num_keys') %>% Plain keys (only latin lowercase letters (a-z) and underscore (_), first and last characters are letters).
<%= @stats['characters_in_keys_colon'] %><%= sprintf '%.2f', @stats['characters_in_keys_colon'] * 100.0 / @stats['num_keys'] %>%<%= @db.stats('characters_in_keys_colon') %><%= sprintf '%.2f', @db.stats('characters_in_keys_colon') * 100.0 / @db.stats('num_keys') %>% Like plain keys but with one or more colons (:) inside.
<%= @stats['characters_in_keys_letters'] %><%= sprintf '%.2f', @stats['characters_in_keys_letters'] * 100.0 / @stats['num_keys'] %>%<%= @db.stats('characters_in_keys_letters') %><%= sprintf '%.2f', @db.stats('characters_in_keys_letters') * 100.0 / @db.stats('num_keys') %>% Like plain keys but with uppercase latin letters or letters from other alphabets (and possibly with colons).
<%= @stats['characters_in_keys_space'] %><%= sprintf '%.2f', @stats['characters_in_keys_space'] * 100.0 / @stats['num_keys'] %>%<%= @db.stats('characters_in_keys_space') %><%= sprintf '%.2f', @db.stats('characters_in_keys_space') * 100.0 / @db.stats('num_keys') %>% Contains whitespace (space, tab, new line, carriage return, or whitespace characters from other alphabets).
<%= @stats['characters_in_keys_problem'] %><%= sprintf '%.2f', @stats['characters_in_keys_problem'] * 100.0 / @stats['num_keys'] %>%<%= @db.stats('characters_in_keys_problem') %><%= sprintf '%.2f', @db.stats('characters_in_keys_problem') * 100.0 / @db.stats('num_keys') %>% Contains possibly problematic characters (=+/&<>;'"?%#@\,) or control characters.
<%= @stats['characters_in_keys_rest'] %><%= sprintf '%.2f', @stats['characters_in_keys_rest'] * 100.0 / @stats['num_keys'] %>%<%= @db.stats('characters_in_keys_rest') %><%= sprintf '%.2f', @db.stats('characters_in_keys_rest') * 100.0 / @db.stats('num_keys') %>% Everything else.
-- cgit v1.2.3