<commit_before>#!/usr/bin/env bash
OIFS="$IFS"
IFS=$'\n' 
for file in `find "$1" -iname "*conflicted copy*"`
do
    fixed=`echo "$file" | sed 's/ (.*conflicted copy.*)//'`
    echo "'$file' conflicts with $fixed'"
    echo "Use conflicted? [y/n]"
    read answer
    if [ "$answer" = "y" ]
    then
        echo "Fixing $file -> $fixed"
        mv "$file" "$fixed"
    else
        echo "Remove $file? [y/n]"
        read answer
        if [ "$answer" = "y" ]
        then
            echo "Removing $file.."
            rm "$file"
        fi
    fi
done
IFS="$OIFS"<commit_msg>Dropbox Conflict script is more sophisticated<commit_after>#!/usr/bin/env bash
OIFS="$IFS"
IFS=$'\n'
remove=false
askremove=true
force=false

if [[ "$1" = "-h" ]]; then
    echo "Remove dropbox conflicted copy files..."
    exit 0
fi

if [[ "$1" = "-f" ]]; then
    shift
    echo "Forcing remove!"
    force=true
fi

for file in `find "$1" -iname "*conflicted copy*"`
do
    fixed=`echo "$file" | sed 's/ (.*conflicted copy.*)//'`
    echo "'$file' conflicts with $fixed'"
    if [[ "$force" = true ]]; then
        echo "Removing $file.."
        rm "$file"
    else
        echo "Use conflicted? [y/n]"
        read answer
        if [[ "$answer" = "y" ]]; then
            echo "Fixing $file -> $fixed"
            mv "$file" "$fixed"
        else
            if [[ "$askremove" = true ]]; then
                echo 'Remove unused conflict files? [y/n]'
                read answer
                if [[ "$answer" = "y" ]]; then
                    remove=true
                fi
                askremove=false
            fi
            if [[ "$remove" = true ]]; then
                echo "Removing $file.."
                rm "$file"
            fi
        fi
    fi
done
IFS="$OIFS"
{'fraction_non_alphanumeric': 0.16280384397964953, 'fraction_numerical': 0.002826455624646693, 'mean_word_length': 1.6777609682299546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6778688', 'n_tokens_mistral': 599, 'n_tokens_neox': 573, 'n_words': 177}