<commit_before>#!/bin/sh -eu

# Script to upload artifacts to Bintray

BINTRAY_USER_API_KEY=$1
BINTRAY_ORG=https://api.bintray.com/content/dfabric/apps-static
BINTRAY_REPO=builds/latest/

for package_path in build/*; do
  package_name=${package_path##*/}
  echo "delete $package_name"
  curl -u$BINTRAY_USER_API_KEY -X DELETE $BINTRAY_ORG/$package_name
  echo "\npost $package_name"
  curl -u$BINTRAY_USER_API_KEY -T $package_path $BINTRAY_ORG/$BINTRAY_REPO/$package_name
  echo "\n"
done

echo "publish to $BINTRAY_ORG/$BINTRAY_REPO"
curl -u$BINTRAY_USER_API_KEY -X POST $BINTRAY_ORG/$BINTRAY_REPO/publish<commit_msg>Change echo to printf<commit_after>#!/bin/sh -eu

# Script to upload artifacts to Bintray

BINTRAY_USER_API_KEY=$1
BINTRAY_ORG=https://api.bintray.com/content/dfabric/apps-static
BINTRAY_REPO=builds/latest/

for package_path in build/*; do
  package_name=${package_path##*/}
  printf "delete $package_name\n"
  curl -u$BINTRAY_USER_API_KEY -X DELETE $BINTRAY_ORG/$package_name
  printf "\npost $package_name\n"
  curl -u$BINTRAY_USER_API_KEY -T $package_path $BINTRAY_ORG/$BINTRAY_REPO/$package_name
  printf "\n\n"
done

printf "publish to $BINTRAY_ORG/$BINTRAY_REPO\n"
curl -u$BINTRAY_USER_API_KEY -X POST $BINTRAY_ORG/$BINTRAY_REPO/publish
{'fraction_non_alphanumeric': 0.11746031746031746, 'fraction_numerical': 0.0015873015873015873, 'mean_word_length': 5.707446808510638, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2090453', 'n_tokens_mistral': 528, 'n_tokens_neox': 519, 'n_words': 92}