<commit_before>#!/bin/bash

set -euo pipefail

git checkout -- src/chat/shared/checksum.cljc

set +e
if ! git diff-files --quiet --ignore-submodules ; then
  echo "Uncommited changes; stash or commit before deploying"
  exit 1
fi
if ! git diff-index --cached --quiet HEAD --ignore-submodules ; then
  echo "Staged but uncommited changes; commit before deploying"
  exit 2
fi
set -e

git fetch
git checkout origin/master

PROJECT_NAME="chat"
SERVER="chat"
DATE=$(date +"%Y-%m-%d_%H%M%S")
JAR_NAME=${PROJECT_NAME}-${DATE}.jar
VERSION="0.0.1"
lein with-profile +lp uberjar
scp target/${PROJECT_NAME}-${VERSION}-standalone.jar $SERVER:/www/deploys/${PROJECT_NAME}/${JAR_NAME}
ssh $SERVER "cd /www/deploys/${PROJECT_NAME} && ln -sf ${JAR_NAME} ${PROJECT_NAME}.jar"
git tag "${DATE}"
git push --tags
echo "Update supervisord on remote now"<commit_msg>oops, run generate.sh in deploy.sh<commit_after>#!/bin/bash

set -euo pipefail

git checkout -- src/chat/shared/checksum.cljc

set +e
if ! git diff-files --quiet --ignore-submodules ; then
  echo "Uncommited changes; stash or commit before deploying"
  exit 1
fi
if ! git diff-index --cached --quiet HEAD --ignore-submodules ; then
  echo "Staged but uncommited changes; commit before deploying"
  exit 2
fi
set -e

git fetch
git checkout origin/master
./generate_cljs_checksum.sh

PROJECT_NAME="chat"
SERVER="chat"
DATE=$(date +"%Y-%m-%d_%H%M%S")
JAR_NAME=${PROJECT_NAME}-${DATE}.jar
VERSION="0.0.1"
lein with-profile +lp uberjar
scp target/${PROJECT_NAME}-${VERSION}-standalone.jar $SERVER:/www/deploys/${PROJECT_NAME}/${JAR_NAME}
ssh $SERVER "cd /www/deploys/${PROJECT_NAME} && ln -sf ${JAR_NAME} ${PROJECT_NAME}.jar"
git tag "${DATE}"
git push --tags
echo "Update supervisord on remote now"
{'fraction_non_alphanumeric': 0.15066129959746982, 'fraction_numerical': 0.005750431282346176, 'mean_word_length': 4.594855305466238, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '1710751', 'n_tokens_mistral': 648, 'n_tokens_neox': 623, 'n_words': 174}