<commit_before># Launch an interactive session
if [[ "$#" -gt "0" ]]; then
    cores="$1"
    ram_gb="$2"
    ram_mb="$(($ram_gb * 1024))"
else
    echo "Syntax: interactive CORES RAM_GB"
fi

# Pass commands to HPC scheduler
echo "Starting interactive session with $cores cores and $ram_gb GB RAM..."
if [[ ! -z $SLURM_CONF ]]; then
    # Slurm
    srun -p interactive --pty --mem "$ram_mb" -t 20 /bin/bash
elif [[ ! -z $LSF_ENVDIR ]]; then
    # LSF    
    bsub -Is -W 12:00 -q interactive -n "$cores" -R rusage[mem="$ram_mb"] bash
else
    echo "HPC required"
    exit 1
fi<commit_msg>Fix defaults<commit_after># Launch an interactive session that lasts for 1 hour

if [[ "$#" -gt "0" ]]; then
    cores="$1"
    ram_gb="$2"
    ram_mb="$(($ram_gb * 1024))"
else
    echo "Syntax: interactive CORES RAM_GB"
fi

echo "Starting interactive session with $cores cores and $ram_gb GB RAM..."

if [[ ! -z $SLURM_CONF ]]; then
    # Slurm
    srun -p interactive --pty --mem "$ram_mb" --time 1:00:00 /bin/bash
elif [[ ! -z $LSF_ENVDIR ]]; then
    # LSF    
    bsub -Is -W 1:00 -q interactive -n "$cores" -R rusage[mem="$ram_mb"] bash
else
    echo "HPC required"
    exit 1
fi
{'fraction_non_alphanumeric': 0.1567291311754685, 'fraction_numerical': 0.026405451448040886, 'mean_word_length': 2.890728476821192, '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': '5243727', 'n_tokens_mistral': 466, 'n_tokens_neox': 431, 'n_words': 146}