<commit_before>#! /bin/sh
#*******************************************************************************
# ALMA - Atacama Large Millimiter Array
# (c) European Southern Observatory, 2007
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library 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 GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
#
# "@(#) $Id: maciTestLogConfig.sh,v 1.6 2010/03/30 20:25:05 javarias Exp $"
#
# who       when      what
# --------  --------  ----------------------------------------------
#
#echo "Test w/o ACS_LOG_STDOUT & ACS_LOG_REMOTE"
#unset ACS_LOG_STDOUT
#unset ACS_LOG_REMOTE
#maciTestLogConfigClient

#echo "Test with ACS_LOG_STDOUT=5 & ACS_LOG_REMOTE=5"
#export ACS_LOG_STDOUT=5
#export ACS_LOG_CENTRAL=5
#maciTestLogConfigClient

echo "Test ACS_LOG_STDOUT=1, ACS_LOG_CENTRAL unset and minLogLevel=9"
maciTestLogConfigClient

echo "Test with dynamic change of log"
maciContainerLogLevel ContainerTestLog set MACI_LOG_CONFIG 1 5 
maciTestLogConfigClient

echo "Test with dynamic change of log (2)"
maciContainerLogLevel ContainerTestLog set MACI_LOG_CONFIG 6 4 
maciTestLogConfigClient

sleep 5
echo "***************Remote***************"
grep "LogConfigTestClass\:\:test" tmp/all_logs.xml 
echo "*************************************"
<commit_msg>When did the modifications for COMP-4482 I introduced a small problem with some tests. Here I fix this for the maci/ws module.<commit_after>#! /bin/sh
#*******************************************************************************
# ALMA - Atacama Large Millimiter Array
# (c) European Southern Observatory, 2007
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library 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 GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
#
# "@(#) $Id: maciTestLogConfig.sh,v 1.7 2010/09/21 18:12:03 tstaig Exp $"
#
# who       when      what
# --------  --------  ----------------------------------------------
#
#echo "Test w/o ACS_LOG_STDOUT & ACS_LOG_REMOTE"
#unset ACS_LOG_STDOUT
#unset ACS_LOG_REMOTE
#maciTestLogConfigClient

#echo "Test with ACS_LOG_STDOUT=5 & ACS_LOG_REMOTE=5"
#export ACS_LOG_STDOUT=5
#export ACS_LOG_CENTRAL=5
#maciTestLogConfigClient

echo "Test ACS_LOG_STDOUT=1, ACS_LOG_CENTRAL unset and minLogLevel=9"
maciTestLogConfigClient

echo "Test with dynamic change of log"
maciContainerLogLevel ContainerTestLog set MACI_LOG_CONFIG 1 5 
maciTestLogConfigClient

echo "Test with dynamic change of log (2)"
maciContainerLogLevel ContainerTestLog set MACI_LOG_CONFIG 6 4 
maciTestLogConfigClient

sleep 5
echo "***************Remote***************"
grep "LogConfigTestClass\:\:test" tmp/ACS_INSTANCE.$ACS_INSTANCE/all_logs.xml 
echo "*************************************"

{'fraction_non_alphanumeric': 0.16848390446521289, 'fraction_numerical': 0.02596053997923157, 'mean_word_length': 4.457507082152975, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6266906', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1101, 'n_words': 427}