<commit_before>#!/bin/bash
@LICENSE_HEADER@

# Read configuration variable file if it is present
if [ -r /etc/default/crossdata ]; then
    . /etc/default/crossdata
fi

# resolve links - $0 may be a softlink
PRG="$0"

while [ -h "${PRG}" ]; do
  ls=`ls -ld "${PRG}"`
  link=`expr "${ls}" : '.*-> \(.*\)$'`
  if expr "${link}" : '/.*' > /dev/null; then
    PRG="${link}"
  else
    PRG=`dirname "${PRG}"`/"${link}"<commit_msg>fixing bug: 'crossdata-dist scripts were pointing to the .deb instalation directories'<commit_after>#!/bin/bash
@LICENSE_HEADER@


scriptdir=`pwd`"/"`basename $0`"/"`dirname $0`
dist=0
if [ -n "`echo $scriptdir | grep 'bin' | grep 'crossdata-dist' `" ]; then;dist=1;fi

# Read configuration variable file if it is present
if [ -r /etc/default/crossdata ]; then
 if [ $dist -lt 1 ]; then
    . /etc/default/crossdata
 fi
fi


# resolve links - $0 may be a softlink
PRG="$0"

while [ -h "${PRG}" ]; do
  ls=`ls -ld "${PRG}"`
  link=`expr "${ls}" : '.*-> \(.*\)$'`
  if expr "${link}" : '/.*' > /dev/null; then
    PRG="${link}"
  else
    PRG=`dirname "${PRG}"`/"${link}"
{'fraction_non_alphanumeric': 0.22943327239488118, 'fraction_numerical': 0.008226691042047532, 'mean_word_length': 3.362549800796813, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3740967', 'n_tokens_mistral': 434, 'n_tokens_neox': 410, 'n_words': 112}