<commit_before>#!/bin/bash

set -e

TAG=$1  # Debug override of tag

GITUSER=terryburton
GITREPO=postscriptbarcode
RELEASEFILES=build/release/*

if [[ -z "$TAG" ]]; then
  if ! TAG=`git describe --exact-match 2>/dev/null`; then
    echo "This commit not a tag so not creating a release"
    exit 0
  fi
fi

echo "Creating GitHub release for $TAG"
<commit_msg>Travis deployment.<commit_after>#!/bin/bash

set -e

TAG=$1  # Debug override of tag

GITUSER=terryburton
GITREPO=postscriptbarcode
VERSIONFILE=src/VERSION
RELEASEFILES=build/release/*

if [[ -z "$TAG" ]]; then
  if ! TAG=`git describe --exact-match 2>/dev/null`; then
    echo "This commit not a tag so not creating a release"
    exit 0
  fi
  if [ "`head -1 $VERSIONFILE`" != "$TAG" ]; then
    echo "Error: The tag does not match the release in $VERSIONFILE"
    exit 1
  fi
fi

echo "Creating GitHub release for $TAG"

{'fraction_non_alphanumeric': 0.11904761904761904, 'fraction_numerical': 0.009070294784580499, 'mean_word_length': 3.6230366492146597, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1649050', 'n_tokens_mistral': 328, 'n_tokens_neox': 304, 'n_words': 106}