<commit_before>#!/bin/bash -e

# This script is used by .deploy.yaml

# This only works with PROJECT_ID defined
if [ -z "$PROJECT_ID" ]; then
  echo 'PROJECT_ID must be specified';
  exit 1;
fi

if [ "$PROJECT_ID" = 'dartlang-pub' ]; then
  # Use TAG_NAME as appengine version
  if [ -z "$TAG_NAME" ]; then
    echo 'TAG_NAME must be specified';
    exit 1;<commit_msg>Properly detect deployment failures (#5651)<commit_after>#!/bin/bash

# This script is used by .deploy.yaml

# Always exit on error
set -e
# Print an error message, if exiting non-zero
trap 'if [ $? -ne 0 ]; then echo "Deployment failed!"; fi' EXIT

# This only works with PROJECT_ID defined
if [ -z "$PROJECT_ID" ]; then
  echo 'PROJECT_ID must be specified';
  exit 1;
fi

if [ "$PROJECT_ID" = 'dartlang-pub' ]; then
  # Use TAG_NAME as appengine version
  if [ -z "$TAG_NAME" ]; then
    echo 'TAG_NAME must be specified';
    exit 1;
{'fraction_non_alphanumeric': 0.12030905077262694, 'fraction_numerical': 0.009933774834437087, 'mean_word_length': 3.557788944723618, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6462368', 'n_tokens_mistral': 334, 'n_tokens_neox': 314, 'n_words': 117}