<commit_before>#!/usr/local/bin/tcsh
#################################################################
#								#
# Copyright (c) 2015-2016 Fidelity National Information		#
# Services, Inc. and/or its subsidiaries. All rights reserved.	#
#								#
#	This source code contains the intellectual property	#
#	of its copyright holder(s), and is made available	#
#	under a license.  If you do not know the terms of	#
#	the license, please stop and do not read further.	#
#								#
#################################################################

# Find all ICU libraries installed on this machine
set nonomatch = 1
set libraries = ({,/usr,/usr/local}/lib{,32,64}{,/x86_64-linux-gnu}/libicuio*)
set libvers   = ()

foreach lib ( $libraries )
	if ( -l $lib ) continue
	if ( ! -f $lib ) continue
	set ver = ${lib:t:s/libicuio//:s/.so.//:s/.sl.//:s/.so//:s/.a//}
	set -f libvers = ($libvers ${ver})
	set libdir${ver:as/./_/} = "${lib:h}"
end

# Switch to UTF-8 mode
$switch_chset UTF-8 >& switch_chset.out<commit_msg>Fix unicode/gtm6858 subtest failure as libicuio.so is in /usr/lib/arm-linux-gnueabihf on the ARM (instead of /usr/lib/x86_64-linux-gnu on x86_64 linux)<commit_after>#!/usr/local/bin/tcsh
#################################################################
#								#
# Copyright (c) 2015-2016 Fidelity National Information		#
# Services, Inc. and/or its subsidiaries. All rights reserved.	#
#								#
# Copyright (c) 2017 YottaDB LLC. and/or its subsidiaries.	#
# All rights reserved.						#
#								#
#	This source code contains the intellectual property	#
#	of its copyright holder(s), and is made available	#
#	under a license.  If you do not know the terms of	#
#	the license, please stop and do not read further.	#
#								#
#################################################################

# Find all ICU libraries installed on this machine
set nonomatch = 1
set libraries = ({,/usr,/usr/local}/lib{,32,64}{,/*linux-gnu*}/libicuio*)
set libvers   = ()

foreach lib ( $libraries )
	if ( -l $lib ) continue
	if ( ! -f $lib ) continue
	set ver = ${lib:t:s/libicuio//:s/.so.//:s/.sl.//:s/.so//:s/.a//}
	set -f libvers = ($libvers ${ver})
	set libdir${ver:as/./_/} = "${lib:h}"
end

# Switch to UTF-8 mode
$switch_chset UTF-8 >& switch_chset.out
{'fraction_non_alphanumeric': 0.2527667109340416, 'fraction_numerical': 0.02213368747233289, 'mean_word_length': 3.5934959349593494, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4864076', 'n_tokens_mistral': 856, 'n_tokens_neox': 762, 'n_words': 219}