default: github.com/xfce-mirror/xfce4-terminal.rwkv.jsonl github.com/xfce-mirror/xfce4-terminal.rwkv.sorted.jsonl | |
extra: default sourceware.org/git/binutils-gdb.rwkv.jsonl sourceware.org/git/binutils-gdb.rwkv.sorted.jsonl github.com/git/git.rwkv.jsonl github.com/git/git.rwkv.sorted.jsonl | |
%.rwkv.jsonl: %.git/ | |
#{ git2jsonl/git2jsonl "$^"; git2jsonl/git2jsonl_base64 "$^"; } | sort --random-sort --random-source=/dev/zero > "$@" || { rm "$@"; false; } | |
git2jsonl/git2jsonl "$^" > "$@".unshuffed | |
sort --random-sort --random-source=/dev/zero "$@".unshuffed --output="$@.unshuffed" | |
mv -v "$@".unshuffed "$@" | |
rm -rf "$<" | |
%.sorted.jsonl: %.jsonl | |
cat "$<" | awk '{ print length, $$0 }' | sort -n -s | cut -d' ' -f2- > "$@" | |
%.git/: | |
mkdir -p "$$(dirname "$*")" | |
git clone --mirror https://"$*" "$@" | |