<commit_before>#!/bin/sh

test $# -eq 2 || { echo "Usage: $(basename $0) <archive format> <tag>" >&2; exit 1; }

format=${1}
tag=${2}
version=${tag#v}

git archive --format=${format} --prefix=qbs-${version}/ -o qbs-${version}.src.${format} ${tag}<commit_msg>Change file names of release archives to a more common pattern.<commit_after>#!/bin/sh

test $# -eq 2 || { echo "Usage: $(basename $0) <archive format> <tag>" >&2; exit 1; }

format=${1}
tag=${2}
version=${tag#v}
dir_name=qbs-src-${version}

git archive --format=${format} --prefix=${dir_name}/ -o ${dir_name}.${format} ${tag}
{'fraction_non_alphanumeric': 0.24315068493150685, 'fraction_numerical': 0.02054794520547945, 'mean_word_length': 4.969387755102041, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '7185331', 'n_tokens_mistral': 226, 'n_tokens_neox': 217, 'n_words': 58}