<commit_before>#!/bin/bash

PACKAGE=$1
VERSION=$2
PKG_DIR=${PKG_DIR:-.}

if [[ -z "$PACKAGE" || -z "$VERSION" ]]; then
  echo "usage: $0 <package> <version>" >&2
  exit 1
fi

if ! test -d $PACKAGE-$VERSION; then
  echo "ERROR: not found: $PACKAGE-$VERSION"
fi

# source packages
tar cz $PACKAGE-$VERSION > $PACKAGE-$VERSION.tgz

# binary packages
for triple in darwin_x86_64 linux_x86_64; do
  tar cz -C build/target/$PACKAGE-$VERSION-$triple/dist . \
      > $PACKAGE-$VERSION-$triple.tgz
done<commit_msg>output tarballs to PKGDIR<commit_after>#!/bin/bash

PACKAGE=$1
VERSION=$2
PKGDIR=${PKGDIR:-.}

if [[ -z "$PACKAGE" || -z "$VERSION" ]]; then
  echo "usage: $0 <package> <version>" >&2
  exit 1
fi

if ! test -d $PACKAGE-$VERSION; then
  echo "ERROR: not found: $PACKAGE-$VERSION"
fi

# source packages
tar cz $PACKAGE-$VERSION > $PKGDIR/$PACKAGE-$VERSION.tgz

# binary packages
for triple in darwin_x86_64 linux_x86_64; do
  tar cz -C build/target/$PACKAGE-$VERSION-$triple/dist . \
      > $PKGDIR/$PACKAGE-$VERSION-$triple.tgz
done
{'fraction_non_alphanumeric': 0.1676300578034682, 'fraction_numerical': 0.025048169556840076, 'mean_word_length': 3.9951923076923075, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '3809703', 'n_tokens_mistral': 412, 'n_tokens_neox': 392, 'n_words': 102}