<commit_before>#!/bin/bash

### variables & functions
# resolve currentDirectory even if symlink
source="${BASH_SOURCE[0]}"
while [ -h "$source" ]; do # resolve $source until the file is no longer a symlink
  currentDirectory="$( cd -P "$( dirname "$source" )" && pwd )"
  source="$(readlink "$source")"
  [[ $source != /* ]] && source="$currentDirectory/$source" # if $source was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
workingDir="$( cd -P "$( dirname "$source" )" && pwd )"

#-------------------------------------------------------------
# Exporting paths
#-------------------------------------------------------------
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/sbin:$PATH

# dotfiles
export PATH=$workingDir/scripts:$PATH
export PATH=$workingDir/bin:$PATH
export PATH=$workingDir/bin/work:$PATH

if isMacOs ; then
  # to avoid locale warning over ssh<commit_msg>fix path to scripts<commit_after>#!/bin/bash

### variables & functions
# resolve currentDirectory even if symlink
source="${BASH_SOURCE[0]}"
while [ -h "$source" ]; do # resolve $source until the file is no longer a symlink
  currentDirectory="$( cd -P "$( dirname "$source" )" && pwd )"
  source="$(readlink "$source")"
  [[ $source != /* ]] && source="$currentDirectory/$source" # if $source was a relative symlink, we need to resolve it relative to the path where the symlink file was located
done
workingDir="$( cd -P "$( dirname "$source" )" && pwd )"

source $workingDir/fileSystem.sh
MAIN_DIR=`1dirUp $workingDir`
#-------------------------------------------------------------
# Exporting paths
#-------------------------------------------------------------
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/sbin:$PATH

# dotfiles
export PATH=$MAIN_DIR/scripts:$PATH
export PATH=$MAIN_DIR/bin:$PATH
export PATH=$MAIN_DIR/bin/work:$PATH

if isMacOs ; then
  # to avoid locale warning over ssh
{'fraction_non_alphanumeric': 0.2583461736004109, 'fraction_numerical': 0.0015408320493066256, 'mean_word_length': 2.6893939393939394, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2832473', 'n_tokens_mistral': 566, 'n_tokens_neox': 522, 'n_words': 172}