<commit_before>#!/bin/bash

set -e

#
# Tag & build master branch
#
git checkout master

if [ $# -ne 1 ]; then
  TAG=$(git describe --abbrev=0 --tags)
else
  TAG=$1
  git tag ${TAG}
fi

box build

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

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

cp migraine.phar downloads/migraine.phar
git add downloads/migraine.phar

git show master:installer.sh > installer
git add installer

SHA1=$(openssl sha1 migraine.phar)

JSON='name:"migraine.phar"'
JSON="${JSON},sha1:\"${SHA1}\""
JSON="${JSON},url:\"http://jiabin.github.io/migraine/downloads/migraine-${TAG}.phar\""
JSON="${JSON},version:\"${TAG}\""

if [ -f migraine.phar.pubkey ]; then
    cp migraine.phar.pubkey pubkeys/migraine-${TAG}.phar.pubkeys
    git add pubkeys/migraine-${TAG}.phar.pubkeys
    JSON="${JSON},publicKey:\"http://jiabin.github.io/migraine/pubkeys/migraine-${TAG}.phar.pubkey\""
fi<commit_msg>Bump version script openssl output bug resolved<commit_after>#!/bin/bash

set -e

#
# Tag & build master branch
#
git checkout master

if [ $# -ne 1 ]; then
  TAG=$(git describe --abbrev=0 --tags)
else
  TAG=$1
  git tag ${TAG}
fi

box build

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

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

cp migraine.phar downloads/migraine.phar
git add downloads/migraine.phar

git show master:installer.sh > installer
git add installer

SHA1=$(openssl sha1 migraine.phar | egrep -o '[0-9a-f]{40}\b')

JSON='name:"migraine.phar"'
JSON="${JSON},sha1:\"${SHA1}\""
JSON="${JSON},url:\"http://jiabin.github.io/migraine/downloads/migraine-${TAG}.phar\""
JSON="${JSON},version:\"${TAG}\""

if [ -f migraine.phar.pubkey ]; then
    cp migraine.phar.pubkey pubkeys/migraine-${TAG}.phar.pubkeys
    git add pubkeys/migraine-${TAG}.phar.pubkeys
    JSON="${JSON},publicKey:\"http://jiabin.github.io/migraine/pubkeys/migraine-${TAG}.phar.pubkey\""
fi
{'fraction_non_alphanumeric': 0.17767767767767767, 'fraction_numerical': 0.009009009009009009, 'mean_word_length': 4.388140161725067, 'pattern_counts': {'":': 0, '<': 3, '<?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': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1948067', 'n_tokens_mistral': 776, 'n_tokens_neox': 744, 'n_words': 154}