<commit_before>#!/bin/bash


EXIT=0
HELP=false


if [ "$1" == "-h" ] || [ "$1" == "--help" ];
then
    HELP=true
elif [ $# -ne 2 ];
then
    echo "Requires exactly two parameters."
    HELP=true
    EXIT=64
fi

if [ $HELP = true ];
then
    echo "$(basename "$0") [-h] [DIR DIR]-- copy workflows between directories

where:
    -h   show this help text
    DIR  directory to get workflows from.
    DIR  directory to install workflows to."
    exit $EXIT
fi


for each_workflow in $(find "$1" -name "*.ipynb");
do
    mv -n "$each_workflow" "$2"
done
<commit_msg>Copy workflows instead of moving them<commit_after>#!/bin/bash


EXIT=0
HELP=false


if [ "$1" == "-h" ] || [ "$1" == "--help" ];
then
    HELP=true
elif [ $# -ne 2 ];
then
    echo "Requires exactly two parameters."
    HELP=true
    EXIT=64
fi

if [ $HELP = true ];
then
    echo "$(basename "$0") [-h] [DIR DIR]-- copy workflows between directories

where:
    -h   show this help text
    DIR  directory to get workflows from.
    DIR  directory to install workflows to."
    exit $EXIT
fi


for each_workflow in $(find "$1" -name "*.ipynb");
do
    cp -n "$each_workflow" "$2"
done

{'fraction_non_alphanumeric': 0.15478260869565216, 'fraction_numerical': 0.01565217391304348, 'mean_word_length': 2.737012987012987, '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': '73019', 'n_tokens_mistral': 451, 'n_tokens_neox': 418, 'n_words': 145}