<commit_before><%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
<%@page import="org.wso2.carbon.ui.CarbonUIMessage"%>
<%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceStub" %>
<%@ page import="org.wso2.carbon.andes.ui.UIUtils" %>
<%@ page import="org.wso2.carbon.andes.stub.admin.types.Queue" %>
<%@ page import="org.wso2.carbon.andes.ui.Constants" %>
<%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceBrokerManagerAdminException" %>

<%
    AndesAdminServiceStub stub = UIUtils.getAndesAdminServiceStub(config, session, request);
    Queue[] queueList = null;
    String queueListString = "";
    try{
        queueList = stub.getAllQueues();
        for(int count=0 ; count < queueList.length ; count ++) {
             if(!queueList[count].getQueueName().equals(Constants.DEAD_LETTER_QUEUE_NAME)) {
                 queueListString = queueListString + queueList[count].getQueueName() + "#";
             }
        }
        //remove the last #
        queueListString = queueListString.substring(0,queueListString.length()-1);

    } catch (AndesAdminServiceBrokerManagerAdminException e) {
        CarbonUIMessage uiMsg = new CarbonUIMessage(CarbonUIMessage.ERROR, e.getFaultMessage().getBrokerManagerAdminException().getErrorMessage(), e);
        session.setAttribute(CarbonUIMessage.ID, uiMsg);
    }
%>
<%=queueListString%><commit_msg>Added check to see if the list is empty when retrieved all queues<commit_after><%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
<%@page import="org.wso2.carbon.ui.CarbonUIMessage"%>
<%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceStub" %>
<%@ page import="org.wso2.carbon.andes.ui.UIUtils" %>
<%@ page import="org.wso2.carbon.andes.stub.admin.types.Queue" %>
<%@ page import="org.wso2.carbon.andes.ui.Constants" %>
<%@ page import="org.wso2.carbon.andes.stub.AndesAdminServiceBrokerManagerAdminException" %>

<%
    AndesAdminServiceStub stub = UIUtils.getAndesAdminServiceStub(config, session, request);
    Queue[] queueList = null;
    String queueListString = "";
    try{
        queueList = stub.getAllQueues();
        for(int count=0 ; count < queueList.length ; count ++) {
             if(!queueList[count].getQueueName().equals(Constants.DEAD_LETTER_QUEUE_NAME)) {
                 queueListString = queueListString + queueList[count].getQueueName() + "#";
             }
        }

        //We can remove the # tag only if the queueList is not empty
        if (queueListString.length() > 0) {
            //remove the last #
            queueListString = queueListString.substring(0, queueListString.length() - 1);
        }

    } catch (AndesAdminServiceBrokerManagerAdminException e) {
        CarbonUIMessage uiMsg = new CarbonUIMessage(CarbonUIMessage.ERROR, e.getFaultMessage().getBrokerManagerAdminException().getErrorMessage(), e);
        session.setAttribute(CarbonUIMessage.ID, uiMsg);
    }
%>
<%=queueListString%>
{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.012926748425588332, 'mean_word_length': 3.9233278955954325, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '3146930', 'n_tokens_mistral': 1001, 'n_tokens_neox': 964, 'n_words': 142}