src/language model based query topic analysis/src/edu/virginia/cs/model/UserSession.java
public int isRepeatedQuery(String query) {
        for (Query userQuery : allQueriesInSession) {
            if (userQuery.getQuery().equals(query)) {
                return userQuery.getQueryId();
            }
        }
        return -1;
    }
/**
     * Checks whether a query is repeated in the same user session.
     *
     * @param query
     * @return
     */
Checks whether a query is repeated in the same user session.
@param query
@return
Checks whether a query is repeated in the same user session . @param query @return
public int isRepeatedQuery(String query) {
        for (Query userQuery : allQueriesInSession) {
            if (userQuery.getQuery().equals(query)) {
                return userQuery.getQueryId();
            }
        }
        return -1;
    }
public int isRepeatedQuery ( String query ) { for ( Query userQuery : allQueriesInSession ) { if ( userQuery . getQuery ( ) . equals ( query ) ) { return userQuery . getQueryId ( ) ; } } return - 1 ; }
Checks whether a query is repeated in the same user session.
Checks whether a query is repeated in the same user session .