<commit_before>#!/bin/bash
#unset LANG

# $Id$

# Usage with profiler:
usage="run.sh [-a architecture-and-cpu] [-y yjp-home-path] class-to-run\n run.sh -a linux-x86-32 -y /home/ljo/bin/yjp-5.0.9 org.exist.xquery.XPathQueryTest\n"

index=0
while getopts "a:y:" option
do 
  case $option in
      y ) yjp_home=${OPTARG}; echo ${yjp_home};;
      a ) arch=${OPTARG}; echo ${arch};;
  esac
  index=${OPTIND}
done

if [ $index -gt 0 ]; then
    LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${yjp_home}/bin/${arch}/";
    export LD_LIBRARY_PATH

    shift $(($index - 1)) 
fi

if [ -z "$EXIST_HOME" ]; then
    EXIST_HOME_1=`dirname "$0"`
    EXIST_HOME=`dirname "$EXIST_HOME_1"`
fi

if [ ! -f "$EXIST_HOME/conf.xml" ]; then
    EXIST_HOME_1="$EXIST_HOME/.."
    EXIST_HOME=$EXIST_HOME_1
fi

if [ -z "$EXIST_BASE" ]; then
    EXIST_BASE=$EXIST_HOME<commit_msg>[ignore] need for yjp-8 notice in bin/run.sh<commit_after>#!/bin/bash
#unset LANG

# $Id$

# Usage with profiler:
usage="run.sh [-a architecture-and-cpu] [-y yjp-home-path] class-to-run\n run.sh -a linux-x86-32 -y /home/ljo/bin/yjp-8.0.13 org.exist.xquery.XPathQueryTest\n\nYou need yjp-8 now to profile since we are using java5+"

index=0
while getopts "a:y:" option
do 
  case $option in
      y ) yjp_home=${OPTARG}; echo ${yjp_home};;
      a ) arch=${OPTARG}; echo ${arch};;
  esac
  index=${OPTIND}
done

if [ $index -gt 0 ]; then
    LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${yjp_home}/bin/${arch}/";
    export LD_LIBRARY_PATH

    shift $(($index - 1)) 
fi

if [ -z "$EXIST_HOME" ]; then
    EXIST_HOME_1=`dirname "$0"`
    EXIST_HOME=`dirname "$EXIST_HOME_1"`
fi

if [ ! -f "$EXIST_HOME/conf.xml" ]; then
    EXIST_HOME_1="$EXIST_HOME/.."
    EXIST_HOME=$EXIST_HOME_1
fi

if [ -z "$EXIST_BASE" ]; then
    EXIST_BASE=$EXIST_HOME
{'fraction_non_alphanumeric': 0.17577464788732394, 'fraction_numerical': 0.01915492957746479, 'mean_word_length': 3.5076142131979697, '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': '5149445', 'n_tokens_mistral': 790, 'n_tokens_neox': 741, 'n_words': 159}