<commit_before>#!/bin/bash
# This scripts is used to find Matlab on a remote host.
# it prints out three information, each info is printed on one line
# 1) path to the root directory of matlab
# 2) path to matlab libraries (relative from matlab root)
# 3) matlab version (major.minor i.e. 7.1 7.2 7.3 etc...)
 
matlabs=(matlab matlab2007b matlab2007a matlab2006b matlab2006a matlab71 matlab7 matlab65)
i=0
cmd_line=
while [[ $i -lt 8 && "$cmd_line" == "" ]]; do
    m1=`which ${matlabs[i]} 2>/dev/null|grep -v alias`
    if [ "$m1" != "" ]; then
		# finding matlab home
		cmd_line=`readlink -f $m1`
		matlab_home=$(readlink -f $(dirname $cmd_line)/..)
		# finding matlab version
		matlab_version=$($cmd_line -nodisplay -nosplash -nojvm -r 'disp(version()); quit;'|tail -n 2|cut -s -d '.' -f 1-2)
		
		#finding matlab architecture directory
		case "`uname -s`" in
			Linux)
				case "`uname -i`" in
					i386*)
						matlab_lib_dir=bin/glnx86
						;;
					x86_64*)
						# doesn't work properly yet with 64 bits binaries
						# matlab_lib_dir=bin/glnxa64
						matlab_lib_dir=bin/glnx86
						;;
					*)
						matlab_lib_dir=bin/glnx86
						;;
				esac
				;;	<commit_msg>added matlab native libs for version 7.5 on linux<commit_after>#!/bin/bash
# This scripts is used to find Matlab on a remote host.
# it prints out three information, each info is printed on one line
# 1) path to the root directory of matlab
# 2) path to matlab libraries (relative from matlab root)
# 3) matlab version (major.minor i.e. 7.1 7.2 7.3 etc...)
 
matlabs=(matlab matlab2007b matlab2007a matlab2006b matlab2006a matlab71 matlab7 matlab65)
i=0
cmd_line=
while [[ $i -lt 8 && "$cmd_line" == "" ]]; do
    m1=`which ${matlabs[i]} 2>/dev/null|grep -v alias`
    if [ "$m1" != "" ]; then
		# finding matlab home
		cmd_line=`readlink -f $m1`
		matlab_home=$(readlink -f $(dirname $cmd_line)/..)
		# finding matlab version
		matlab_version=$($cmd_line -nodisplay -nosplash -nojvm -r 'disp(version()); quit;'|tail -n 2|cut -s -d '.' -f 1-2)
		
		#finding matlab architecture directory
		case "`uname -s`" in
			Linux)
				case "`uname -i`" in
					i386*)
						matlab_lib_dir=bin/glnx86
						;;
					x86_64*)
						# doesn't work properly yet with 64 bits binaries
						matlab_lib_dir=bin/glnxa64
						#matlab_lib_dir=bin/glnx86
						;;
					*)
						matlab_lib_dir=bin/glnx86
						;;
				esac
				;;	
{'fraction_non_alphanumeric': 0.13218631976500209, 'fraction_numerical': 0.047838858581619806, 'mean_word_length': 2.993299832495812, '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': '5222516', 'n_tokens_mistral': 1117, 'n_tokens_neox': 876, 'n_words': 264}