<commit_before>#!/bin/bash

PHAR_NAME=dock-cli
MANIFEST_BASE_URL=http://mattketmo.github.io/dock-cli
set -e

if [ $# -ne 1 ]; then
  echo "Usage: `basename $0` <tag>"
  exit 65
fi

TAG=$1

#
# Tag & build master branch
#
git checkout master
git tag ${TAG}
vendor/kherge/box/bin/box build

#
# Copy executable file into GH pages
#
git checkout gh-pages

cp $PHAR_NAME.phar downloads/$PHAR_NAME-${TAG}.phar
git add downloads/$PHAR_NAME-${TAG}.phar

SHA1=$(openssl sha1 $PHAR_NAME.phar)

JSON='name:"'$PHAR_NAME'.phar"'
JSON="${JSON},sha1:\"${SHA1}\""
JSON="${JSON},url:\"${MANIFEST_BASE_URL}/downloads/${PHAR_NAME}-${TAG}.phar\""<commit_msg>Update the SHA1 compute issue<commit_after>#!/bin/bash

PHAR_NAME=dock-cli
MANIFEST_BASE_URL=http://sroze.github.io/dock-cli
set -e


if [ $# -ne 1 ]; then
  echo "Usage: `basename $0` <tag>"
  exit 65
fi

TAG=$1

#
# Tag & build master branch
#
git checkout master
git tag ${TAG}
vendor/kherge/box/bin/box build

#
# Copy executable file into GH pages
#
git checkout gh-pages

cp $PHAR_NAME.phar downloads/$PHAR_NAME-${TAG}.phar
git add downloads/$PHAR_NAME-${TAG}.phar

SHA1=$(openssl sha1 $PHAR_NAME.phar | awk '{print $2}')

JSON='name:"'$PHAR_NAME'.phar"'
JSON="${JSON},sha1:\"${SHA1}\""
JSON="${JSON},url:\"${MANIFEST_BASE_URL}/downloads/${PHAR_NAME}-${TAG}.phar\""
{'fraction_non_alphanumeric': 0.18931297709923664, 'fraction_numerical': 0.015267175572519083, 'mean_word_length': 4.959090909090909, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1584926', 'n_tokens_mistral': 559, 'n_tokens_neox': 527, 'n_words': 108}