<commit_before>#!/bin/bash
#
# Made by l0b0:
# http://stackoverflow.com/questions/341310/list-all-files-changed-by-a-particular-user-in-subversion
# https://github.com/l0b0/tilde
#
# @param $1: Start revision
# @param $2: End revision
# @param $3: User
#
# Example: svn_my_stat.sh 1000:HEAD jdoe

svn_changed() {
    svn blame --revision $1:$2 -- $4 | grep -E "^ [0-9]* *${3} "
}

svn diff --revision $1:$2 --summarize | \
cut -c9- | \
while read path; do
    if [ -n "$(svn_changed $1 $2 $3 $path)" ]; then
        echo "$3 changed $path"
    else<commit_msg>svn_my_stat.sh: make arguments optional, add usage text<commit_after>#!/bin/bash
#
# Made by l0b0:
# http://stackoverflow.com/questions/341310/list-all-files-changed-by-a-particular-user-in-subversion
# https://github.com/l0b0/tilde
#
# @param $1: Start revision
# @param $2: End revision
# @param $3: User
#
# Example: svn_my_stat.sh 1000 HEAD jdoe

if [ -z "$1" ]; then
    echo "usage: $0  startrev  [endrev]  [username]" >&2
    echo "" >&2
    echo "example: $0 2012-10-01 HEAD" >&2
    echo "example: $0 2012-10-01 HEAD johndoe" >&2
    exit 1
fi

startrev=$1
endrev=${2:-HEAD}
user=${3:-`whoami`}

svn_changed() {
    svn blame --revision $1:$2 -- $4 | grep -E "^ [0-9]* *${3} "
}

svn diff --revision $startrev:$endrev --summarize | \
cut -c9- | \
while read path; do
    if [ -n "$(svn_changed $1 $endrev $user $path)" ]; then
        echo "$user changed $path"
    else
{'fraction_non_alphanumeric': 0.1883252258512856, 'fraction_numerical': 0.057678943710910355, 'mean_word_length': 3.1379310344827585, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '295662', 'n_tokens_mistral': 632, 'n_tokens_neox': 582, 'n_words': 148}