//# 2 errors, 247 messages
//#
/*
    //#viewuseragentsaction.java:1:1: class: net.sourceforge.pebble.web.action.ViewUserAgentsAction$2
    //#viewuseragentsaction.java:1:1: method: net.sourceforge.pebble.web.action.ViewUserAgentsAction$2.net.sourceforge.pebble.web.action.ViewUserAgentsAction$2__static_init
    //#viewuseragentsaction.java:1:1: class: net.sourceforge.pebble.web.action.ViewUserAgentsAction$1
    //#viewuseragentsaction.java:1:1: method: net.sourceforge.pebble.web.action.ViewUserAgentsAction$1.net.sourceforge.pebble.web.action.ViewUserAgentsAction$1__static_init
    //#viewuseragentsaction.java:1:1: class: net.sourceforge.pebble.web.action.ViewUserAgentsAction
    //#viewuseragentsaction.java:1:1: method: net.sourceforge.pebble.web.action.ViewUserAgentsAction.net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init
    //#viewuseragentsaction.java:1: method: void net.sourceforge.pebble.web.action.ViewUserAgentsAction$2.net.sourceforge.pebble.web.action.ViewUserAgentsAction$2(ViewUserAgentsAction)
    //#input(void net.sourceforge.pebble.web.action.ViewUserAgentsAction$2(ViewUserAgentsAction)): Param_1
    //#input(void net.sourceforge.pebble.web.action.ViewUserAgentsAction$2(ViewUserAgentsAction)): this
    //#output(void net.sourceforge.pebble.web.action.ViewUserAgentsAction$2(ViewUserAgentsAction)): this.this$0
    //#post(void net.sourceforge.pebble.web.action.ViewUserAgentsAction$2(ViewUserAgentsAction)): this.this$0 == Param_1
    //#post(void net.sourceforge.pebble.web.action.ViewUserAgentsAction$2(ViewUserAgentsAction)): init'ed(this.this$0)
    //#viewuseragentsaction.java:1: method: int net.sourceforge.pebble.web.action.ViewUserAgentsAction$2.compare(Object, Object)
    //#input(int compare(Object, Object)): Param_0
    //#input(int compare(Object, Object)): Param_0.__Tag
    //#input(int compare(Object, Object)): Param_1
    //#input(int compare(Object, Object)): Param_2
    //#input(int compare(Object, Object)): __Descendant_Table[net/sourceforge/pebble/web/action/ViewUserAgentsAction$2]
    //#input(int compare(Object, Object)): __Descendant_Table[others]
    //#input(int compare(Object, Object)): __Dispatch_Table.compare(Ljava/lang/String;Ljava/lang/String;)I
    //#output(int compare(Object, Object)): return_value
    //#pre[2] (int compare(Object, Object)): Param_0.__Tag == net/sourceforge/pebble/web/action/ViewUserAgentsAction$2
    //#post(int compare(Object, Object)): init'ed(return_value)
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:java.lang.String:compareToIgnoreCase
    //#viewuseragentsaction.java:1: end of method: int net.sourceforge.pebble.web.action.ViewUserAgentsAction$2.compare(Object, Object)
    //#viewuseragentsaction.java:1: method: void net.sourceforge.pebble.web.action.ViewUserAgentsAction$1.net.sourceforge.pebble.web.action.ViewUserAgentsAction$1(ViewUserAgentsAction)
    //#input(void net.sourceforge.pebble.web.action.ViewUserAgentsAction$1(ViewUserAgentsAction)): Param_1
    //#input(void net.sourceforge.pebble.web.action.ViewUserAgentsAction$1(ViewUserAgentsAction)): this
    //#output(void net.sourceforge.pebble.web.action.ViewUserAgentsAction$1(ViewUserAgentsAction)): this.this$0
    //#post(void net.sourceforge.pebble.web.action.ViewUserAgentsAction$1(ViewUserAgentsAction)): this.this$0 == Param_1
    //#post(void net.sourceforge.pebble.web.action.ViewUserAgentsAction$1(ViewUserAgentsAction)): init'ed(this.this$0)
    //#viewuseragentsaction.java:1: method: int net.sourceforge.pebble.web.action.ViewUserAgentsAction$1.compare(Object, Object)
    //#input(int compare(Object, Object)): Param_0
    //#input(int compare(Object, Object)): Param_0.__Tag
    //#input(int compare(Object, Object)): Param_1
    //#input(int compare(Object, Object)): Param_2
    //#input(int compare(Object, Object)): __Descendant_Table[net/sourceforge/pebble/web/action/ViewUserAgentsAction$1]
    //#input(int compare(Object, Object)): __Descendant_Table[others]
    //#input(int compare(Object, Object)): __Dispatch_Table.compare(Ljava/lang/String;Ljava/lang/String;)I
    //#output(int compare(Object, Object)): return_value
    //#pre[2] (int compare(Object, Object)): Param_0.__Tag == net/sourceforge/pebble/web/action/ViewUserAgentsAction$1
    //#post(int compare(Object, Object)): init'ed(return_value)
    //#unanalyzed(int compare(Object, Object)): Effects-of-calling:java.lang.String:compareToIgnoreCase
    //#viewuseragentsaction.java:1: end of method: int net.sourceforge.pebble.web.action.ViewUserAgentsAction$1.compare(Object, Object)
 * Copyright (c) 2003-2006, Simon Brown
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 *   - Redistributions of source code must retain the above copyright
 *     notice, this list of conditions and the following disclaimer.
 *
 *   - Redistributions in binary form must reproduce the above copyright
 *     notice, this list of conditions and the following disclaimer in
 *     the documentation and/or other materials provided with the
 *     distribution.
 *
 *   - Neither the name of Pebble nor the names of its contributors may
 *     be used to endorse or promote products derived from this software
 *     without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
package net.sourceforge.pebble.web.action;

import net.sourceforge.pebble.Constants;
import net.sourceforge.pebble.domain.Blog;
import net.sourceforge.pebble.logging.Log;
import net.sourceforge.pebble.logging.LogEntry;
import net.sourceforge.pebble.logging.UserAgentConsolidator;
import net.sourceforge.pebble.web.view.View;
import net.sourceforge.pebble.web.view.impl.UserAgentsView;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Comparator;
import java.util.Map;
import java.util.TreeMap;

/**
 * Gets the user agent information for the specified time period.
 *
 * @author    Simon Brown
 */
public class ViewUserAgentsAction extends AbstractLogAction {
    //#viewuseragentsaction.java:54: method: void net.sourceforge.pebble.web.action.ViewUserAgentsAction.net.sourceforge.pebble.web.action.ViewUserAgentsAction()
    //#input(void net.sourceforge.pebble.web.action.ViewUserAgentsAction()): this
    //#unanalyzed(void net.sourceforge.pebble.web.action.ViewUserAgentsAction()): Effects-of-calling:net.sourceforge.pebble.web.action.SecureAction
    //#viewuseragentsaction.java:54: end of method: void net.sourceforge.pebble.web.action.ViewUserAgentsAction.net.sourceforge.pebble.web.action.ViewUserAgentsAction()

  /**
   * Peforms the processing associated with this action.
   *
   * @param request  the HttpServletRequest instance
   * @param response the HttpServletResponse instance
   * @return the name of the next view
   */
  public View process(HttpServletRequest request, HttpServletResponse response) throws ServletException {
    Blog blog = (Blog)getModel().get(Constants.BLOG_KEY);
    //#viewuseragentsaction.java:64: method: View net.sourceforge.pebble.web.action.ViewUserAgentsAction.process(HttpServletRequest, HttpServletResponse)
    //#viewuseragentsaction.java:64: Warning: unused assignment
    //#    unused assignment into blog
    //#    severity: LOW
    //#    class: net.sourceforge.pebble.web.action.ViewUserAgentsAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#input(View process(HttpServletRequest, HttpServletResponse)): __Descendant_Table[net/sourceforge/pebble/web/action/ViewUserAgentsAction]
    //#input(View process(HttpServletRequest, HttpServletResponse)): __Descendant_Table[others]
    //#input(View process(HttpServletRequest, HttpServletResponse)): __Dispatch_Table.getLog(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lnet/sourceforge/pebble/logging/Log;
    //#input(View process(HttpServletRequest, HttpServletResponse)): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net.sourceforge.pebble.logging.UserAgentConsolidator__static_init.new String[](UserAgentConsolidator__static_init#1).length
    //#input(View process(HttpServletRequest, HttpServletResponse)): net.sourceforge.pebble.logging.UserAgentConsolidator__static_init.new String[](UserAgentConsolidator__static_init#1)[0..4_294_967_295]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/AbstractLogger.__Descendant_Table[net/sourceforge/pebble/logging/AbstractLogger]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/AbstractLogger.__Descendant_Table[net/sourceforge/pebble/logging/CombinedLogFormatLogger]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/AbstractLogger.__Descendant_Table[net/sourceforge/pebble/logging/NullLogger]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/AbstractLogger.__Descendant_Table[others]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/AbstractLogger.__Dispatch_Table.getLog()Lnet/sourceforge/pebble/logging/Log;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/AbstractLogger.__Dispatch_Table.getLog(II)Lnet/sourceforge/pebble/logging/Log;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/AbstractLogger.__Dispatch_Table.getLog(III)Lnet/sourceforge/pebble/logging/Log;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/CombinedFormatLogEntryFormat.__Descendant_Table[net/sourceforge/pebble/logging/CombinedFormatLogEntryFormat]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/CombinedFormatLogEntryFormat.__Dispatch_Table.parse(Ljava/lang/String;)Lnet/sourceforge/pebble/logging/LogEntry;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/CombinedLogFormatLogger.__Dispatch_Table.getLog()Lnet/sourceforge/pebble/logging/Log;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/CombinedLogFormatLogger.__Dispatch_Table.getLog(II)Lnet/sourceforge/pebble/logging/Log;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/CombinedLogFormatLogger.__Dispatch_Table.getLog(III)Lnet/sourceforge/pebble/logging/Log;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/Log.__Descendant_Table[net/sourceforge/pebble/logging/Log]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/Log.__Descendant_Table[others]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/Log.__Dispatch_Table.getLogEntries()Ljava/util/Collection;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/LogEntry.__Descendant_Table[net/sourceforge/pebble/logging/LogEntry]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/LogEntry.__Descendant_Table[others]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/LogEntry.__Dispatch_Table.getAgent()Ljava/lang/String;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/LogEntry.__Dispatch_Table.setAgent(Ljava/lang/String;)V
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/LogEntry.__Dispatch_Table.setBytes(J)V
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/LogEntry.__Dispatch_Table.setDate(Ljava/util/Date;)V
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/LogEntry.__Dispatch_Table.setHost(Ljava/lang/String;)V
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/LogEntry.__Dispatch_Table.setReferer(Ljava/lang/String;)V
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/LogEntry.__Dispatch_Table.setRequest(Ljava/lang/String;)V
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/LogEntry.__Dispatch_Table.setStatusCode(I)V
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/NullLogger.__Dispatch_Table.getLog()Lnet/sourceforge/pebble/logging/Log;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/NullLogger.__Dispatch_Table.getLog(II)Lnet/sourceforge/pebble/logging/Log;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/NullLogger.__Dispatch_Table.getLog(III)Lnet/sourceforge/pebble/logging/Log;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/logging/UserAgentConsolidator.KNOWN_AGENTS
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/action/AbstractLogAction.__Descendant_Table[net/sourceforge/pebble/web/action/AbstractLogAction]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/action/AbstractLogAction.__Descendant_Table[net/sourceforge/pebble/web/action/ViewCountriesAction]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/action/AbstractLogAction.__Descendant_Table[net/sourceforge/pebble/web/action/ViewLogAction]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/action/AbstractLogAction.__Descendant_Table[net/sourceforge/pebble/web/action/ViewReferersAction]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/action/AbstractLogAction.__Descendant_Table[net/sourceforge/pebble/web/action/ViewRequestsAction]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/action/AbstractLogAction.__Descendant_Table[net/sourceforge/pebble/web/action/ViewRequestsByHourAction]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/action/AbstractLogAction.__Descendant_Table[net/sourceforge/pebble/web/action/ViewRequestsByTypeAction]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/action/AbstractLogAction.__Descendant_Table[net/sourceforge/pebble/web/action/ViewUserAgentsAction]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/action/AbstractLogAction.__Descendant_Table[others]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/action/AbstractLogAction.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/action/ViewCountriesAction.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/action/ViewLogAction.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/action/ViewReferersAction.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/action/ViewRequestsAction.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/action/ViewRequestsByHourAction.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/action/ViewRequestsByTypeAction.__Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/model/Model.__Descendant_Table[net/sourceforge/pebble/web/model/Model]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/model/Model.__Descendant_Table[others]
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/model/Model.__Dispatch_Table.get(Ljava/lang/String;)Ljava/lang/Object;
    //#input(View process(HttpServletRequest, HttpServletResponse)): net/sourceforge/pebble/web/model/Model.__Dispatch_Table.put(Ljava/lang/String;Ljava/lang/Object;)V
    //#input(View process(HttpServletRequest, HttpServletResponse)): request
    //#input(View process(HttpServletRequest, HttpServletResponse)): response
    //#input(View process(HttpServletRequest, HttpServletResponse)): this
    //#input(View process(HttpServletRequest, HttpServletResponse)): this.__Tag
    //#input(View process(HttpServletRequest, HttpServletResponse)): this.model
    //#input(View process(HttpServletRequest, HttpServletResponse)): this.model.__Tag
    //#input(View process(HttpServletRequest, HttpServletResponse)): this.model.data
    //#output(View process(HttpServletRequest, HttpServletResponse)): new UserAgentsView(process#5) num objects
    //#output(View process(HttpServletRequest, HttpServletResponse)): return_value
    //#new obj(View process(HttpServletRequest, HttpServletResponse)): new UserAgentsView(process#5)
    //#pre[2] (View process(HttpServletRequest, HttpServletResponse)): request != null
    //#pre[5] (View process(HttpServletRequest, HttpServletResponse)): this.__Tag == net/sourceforge/pebble/web/action/ViewUserAgentsAction
    //#pre[6] (View process(HttpServletRequest, HttpServletResponse)): this.model != null
    //#pre[7] (View process(HttpServletRequest, HttpServletResponse)): this.model.__Tag == net/sourceforge/pebble/web/model/Model
    //#pre[8] (View process(HttpServletRequest, HttpServletResponse)): this.model.data != null
    //#pre[1] (View process(HttpServletRequest, HttpServletResponse)): (soft) init'ed(net.sourceforge.pebble.logging.UserAgentConsolidator__static_init.new String[](UserAgentConsolidator__static_init#1)[0..4_294_967_295])
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): java.lang.Integer:intValue(...)@89 <= 4_294_967_294
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): java.lang.Integer:intValue(...)@97 <= 4_294_967_294
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): java.util.Collections:unmodifiableCollection(...)@72 != null
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): java.util.Iterator:next(...).__Tag@79 == net/sourceforge/pebble/logging/LogEntry
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): java.util.Iterator:next(...)@79 != null
    //#presumption(View process(HttpServletRequest, HttpServletResponse)): log.__Tag@73 == net/sourceforge/pebble/logging/Log
    //#post(View process(HttpServletRequest, HttpServletResponse)): return_value == &new UserAgentsView(process#5)
    //#post(View process(HttpServletRequest, HttpServletResponse)): new UserAgentsView(process#5) num objects == 1
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.HashMap:get
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Collections:unmodifiableCollection
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.lang.String:contains
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.HashMap:put
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:javax.servlet.http.HttpServletRequest:getParameter
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Blog:getCalendar
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.lang.String:length
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.lang.Integer:parseInt
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Calendar:set
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Blog:getLogger
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Calendar:get
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Calendar:getTime
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.text.SimpleDateFormat:format
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Blog:getLogsDirectory
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.File
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.File:exists
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.FileReader
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.BufferedReader
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.BufferedReader:readLine
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.io.BufferedReader:close
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.lang.Exception:printStackTrace
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Blog:getLocale
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.text.SimpleDateFormat
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Blog:getTimeZone
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.text.SimpleDateFormat:setTimeZone
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Blog:getBlogForDay
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Calendar:getActualMaximum
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Blog:getBlogForMonth
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Blog:getBlogForToday
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Blog:getBlogForFirstMonth
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Month:getPreviousMonth
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Month:getNextMonth
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Month:before
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Month:getDate
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Date:after
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Month:getBlogForFirstDay
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Day:getPreviousDay
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Day:getNextDay
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Day:before
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:net.sourceforge.pebble.domain.Day:getDate
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:getLog
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.ArrayList
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Date
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.lang.String:indexOf
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.lang.String:substring
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.lang.String:charAt
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.lang.String:equals
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.text.SimpleDateFormat:parse
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.lang.Long:parseLong
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.List:add
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.HashSet
    //#unanalyzed(View process(HttpServletRequest, HttpServletResponse)): Effects-of-calling:java.util.Collection:addAll
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): java.util.Iterator:hasNext(...)@79: {1}, {0}
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): java.util.Map:get(...)@85: Inverse{null}, Addr_Set{null}
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): java.util.Map:get(...)@93: Inverse{null}, Addr_Set{null}
    //#test_vector(View process(HttpServletRequest, HttpServletResponse)): logEntry.agent@79: Inverse{null}, Addr_Set{null}
    Log log = getLog(request, response);

    Map<String, Integer> userAgents = new TreeMap<String, Integer>(new Comparator<String>() {
    //#viewuseragentsaction.java:67: end of method: void net.sourceforge.pebble.web.action.ViewUserAgentsAction$1.net.sourceforge.pebble.web.action.ViewUserAgentsAction$1(ViewUserAgentsAction)
      public int compare(String s1, String s2) {
        return s1 != null ? s1.compareToIgnoreCase(s2) : -1;
    //#viewuseragentsaction.java:69: method: int net.sourceforge.pebble.web.action.ViewUserAgentsAction$1.compare(String, String)
    //#input(int compare(String, String)): s1
    //#input(int compare(String, String)): s2
    //#output(int compare(String, String)): return_value
    //#post(int compare(String, String)): init'ed(return_value)
    //#viewuseragentsaction.java:69: end of method: int net.sourceforge.pebble.web.action.ViewUserAgentsAction$1.compare(String, String)
      }
    });

    Map<String, Integer> consolidatedUserAgents = new TreeMap<String, Integer>(new Comparator<String>() {
    //#viewuseragentsaction.java:73: end of method: void net.sourceforge.pebble.web.action.ViewUserAgentsAction$2.net.sourceforge.pebble.web.action.ViewUserAgentsAction$2(ViewUserAgentsAction)
      public int compare(String s1, String s2) {
        return s1 != null ? s1.compareToIgnoreCase(s2) : -1;
    //#viewuseragentsaction.java:75: method: int net.sourceforge.pebble.web.action.ViewUserAgentsAction$2.compare(String, String)
    //#input(int compare(String, String)): s1
    //#input(int compare(String, String)): s2
    //#output(int compare(String, String)): return_value
    //#post(int compare(String, String)): init'ed(return_value)
    //#viewuseragentsaction.java:75: end of method: int net.sourceforge.pebble.web.action.ViewUserAgentsAction$2.compare(String, String)
      }
    });

    for (LogEntry logEntry : log.getLogEntries()) {
      String userAgent = logEntry.getAgent();
      if (userAgent == null) {
        userAgent = "";
      }

      Integer count = userAgents.get(userAgent);
      if (count == null) {
        count = 0;
      }
      count = count+1;
    //#viewuseragentsaction.java:89: ?null dereference
    //#    count != null
    //#    severity: SUPPRESSED
    //#    class: net.sourceforge.pebble.web.action.ViewUserAgentsAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    basic block: bb_6
    //#    assertion: count != null
    //#    VN: count
    //#    Expected: Inverse{null} or Invalid
    //#    Bad: Addr_Set{null}
    //#    Attribs:  Ptr  null in Bad  Uncertain
      userAgents.put(userAgent, count);

      String consolidatedUserAgent = UserAgentConsolidator.consolidate(userAgent);
      Integer consolidatedCount = consolidatedUserAgents.get(consolidatedUserAgent);
      if (consolidatedCount == null) {
        consolidatedCount = 0;
      }
      consolidatedCount = consolidatedCount+1;
    //#viewuseragentsaction.java:97: ?null dereference
    //#    consolidatedCount != null
    //#    severity: SUPPRESSED
    //#    class: net.sourceforge.pebble.web.action.ViewUserAgentsAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    basic block: bb_8
    //#    assertion: consolidatedCount != null
    //#    VN: consolidatedCount
    //#    Expected: Inverse{null} or Invalid
    //#    Bad: Addr_Set{null}
    //#    Attribs:  Ptr  null in Bad  Uncertain
      consolidatedUserAgents.put(consolidatedUserAgent, consolidatedCount);
    }

    getModel().put("logAction", "viewUserAgents");
    getModel().put("userAgents", userAgents);
    getModel().put("consolidatedUserAgents", consolidatedUserAgents);

    return new UserAgentsView();
    //#viewuseragentsaction.java:105: Warning: method not available
    //#    -- call on void net.sourceforge.pebble.web.view.impl.UserAgentsView()
    //#    severity: INFORMATIONAL
    //#    class: net.sourceforge.pebble.web.action.ViewUserAgentsAction
    //#    method: View process(HttpServletRequest, HttpServletResponse)
    //#    unanalyzed callee: void net.sourceforge.pebble.web.view.impl.UserAgentsView()
    //#viewuseragentsaction.java:105: end of method: View net.sourceforge.pebble.web.action.ViewUserAgentsAction.process(HttpServletRequest, HttpServletResponse)
  }


}
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction$2__static_init): __Descendant_Table[net/sourceforge/pebble/web/action/ViewUserAgentsAction$2]
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction$2__static_init): __Dispatch_Table.compare(Ljava/lang/Object;Ljava/lang/Object;)I
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction$2__static_init): __Dispatch_Table.compare(Ljava/lang/String;Ljava/lang/String;)I
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction$2__static_init): __Descendant_Table[net/sourceforge/pebble/web/action/ViewUserAgentsAction$2] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction$2__static_init): __Dispatch_Table.compare(Ljava/lang/Object;Ljava/lang/Object;)I == &compare
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction$2__static_init): __Dispatch_Table.compare(Ljava/lang/String;Ljava/lang/String;)I == &compare
    //#viewuseragentsaction.java:: end of method: net.sourceforge.pebble.web.action.ViewUserAgentsAction$2.net.sourceforge.pebble.web.action.ViewUserAgentsAction$2__static_init
    //#viewuseragentsaction.java:: end of class: net.sourceforge.pebble.web.action.ViewUserAgentsAction$2
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction$1__static_init): __Descendant_Table[net/sourceforge/pebble/web/action/ViewUserAgentsAction$1]
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction$1__static_init): __Dispatch_Table.compare(Ljava/lang/Object;Ljava/lang/Object;)I
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction$1__static_init): __Dispatch_Table.compare(Ljava/lang/String;Ljava/lang/String;)I
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction$1__static_init): __Descendant_Table[net/sourceforge/pebble/web/action/ViewUserAgentsAction$1] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction$1__static_init): __Dispatch_Table.compare(Ljava/lang/Object;Ljava/lang/Object;)I == &compare
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction$1__static_init): __Dispatch_Table.compare(Ljava/lang/String;Ljava/lang/String;)I == &compare
    //#viewuseragentsaction.java:: end of method: net.sourceforge.pebble.web.action.ViewUserAgentsAction$1.net.sourceforge.pebble.web.action.ViewUserAgentsAction$1__static_init
    //#viewuseragentsaction.java:: end of class: net.sourceforge.pebble.web.action.ViewUserAgentsAction$1
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Descendant_Table[net/sourceforge/pebble/web/action/ViewUserAgentsAction]
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Dispatch_Table.getLocalizedString(Ljava/lang/String;)Ljava/lang/String;
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Dispatch_Table.getLog(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lnet/sourceforge/pebble/logging/Log;
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Dispatch_Table.getLogFile(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Ljava/lang/String;
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model;
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Dispatch_Table.getRoles(Ljavax/servlet/http/HttpServletRequest;)[Ljava/lang/String;
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Dispatch_Table.process(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lnet/sourceforge/pebble/web/view/View;
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Dispatch_Table.registerObjectsForNavigation(Lnet/sourceforge/pebble/domain/Blog;Lnet/sourceforge/pebble/domain/Day;)V
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Dispatch_Table.registerObjectsForNavigation(Lnet/sourceforge/pebble/domain/Blog;Lnet/sourceforge/pebble/domain/Month;)V
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Dispatch_Table.setModel(Lnet/sourceforge/pebble/web/model/Model;)V
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): net/sourceforge/pebble/web/action/AbstractLogAction.__Descendant_Table[net/sourceforge/pebble/web/action/ViewUserAgentsAction]
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): net/sourceforge/pebble/web/action/Action.__Descendant_Table[net/sourceforge/pebble/web/action/ViewUserAgentsAction]
    //#output(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): net/sourceforge/pebble/web/action/SecureAction.__Descendant_Table[net/sourceforge/pebble/web/action/ViewUserAgentsAction]
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Descendant_Table[net/sourceforge/pebble/web/action/ViewUserAgentsAction] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): net/sourceforge/pebble/web/action/AbstractLogAction.__Descendant_Table[net/sourceforge/pebble/web/action/ViewUserAgentsAction] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): net/sourceforge/pebble/web/action/Action.__Descendant_Table[net/sourceforge/pebble/web/action/ViewUserAgentsAction] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): net/sourceforge/pebble/web/action/SecureAction.__Descendant_Table[net/sourceforge/pebble/web/action/ViewUserAgentsAction] == &__Dispatch_Table
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Dispatch_Table.getLocalizedString(Ljava/lang/String;)Ljava/lang/String; == &net/sourceforge/pebble/web/action/Action.getLocalizedString
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Dispatch_Table.getLog(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lnet/sourceforge/pebble/logging/Log; == &net/sourceforge/pebble/web/action/AbstractLogAction.getLog
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Dispatch_Table.getLogFile(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Ljava/lang/String; == &net/sourceforge/pebble/web/action/AbstractLogAction.getLogFile
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Dispatch_Table.getModel()Lnet/sourceforge/pebble/web/model/Model; == &net/sourceforge/pebble/web/action/Action.getModel
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Dispatch_Table.getRoles(Ljavax/servlet/http/HttpServletRequest;)[Ljava/lang/String; == &net/sourceforge/pebble/web/action/AbstractLogAction.getRoles
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Dispatch_Table.process(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)Lnet/sourceforge/pebble/web/view/View; == &process
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Dispatch_Table.registerObjectsForNavigation(Lnet/sourceforge/pebble/domain/Blog;Lnet/sourceforge/pebble/domain/Day;)V == &net/sourceforge/pebble/web/action/AbstractLogAction.registerObjectsForNavigation
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Dispatch_Table.registerObjectsForNavigation(Lnet/sourceforge/pebble/domain/Blog;Lnet/sourceforge/pebble/domain/Month;)V == &net/sourceforge/pebble/web/action/AbstractLogAction.registerObjectsForNavigation
    //#post(net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init): __Dispatch_Table.setModel(Lnet/sourceforge/pebble/web/model/Model;)V == &net/sourceforge/pebble/web/action/Action.setModel
    //#viewuseragentsaction.java:: end of method: net.sourceforge.pebble.web.action.ViewUserAgentsAction.net.sourceforge.pebble.web.action.ViewUserAgentsAction__static_init
    //#viewuseragentsaction.java:: end of class: net.sourceforge.pebble.web.action.ViewUserAgentsAction
