<commit_before>#!/bin/bash

#noisy
set -x

#log the path
echo $PATH

#log node version
node -v

# install fonts
cp ./src/data/fonts/*.ttf /usr/local/share/fonts

# install dependencies
npm install --production

# tweet

if
  [ -z "$2" ]
then 
  # tweet random headline
  echo "generating random headline"
  node --harmony mtgnews --tweet --toot --discord
else
  # tweet specified headline
  echo "generating headline with origin \"#$2#\""  
  node --harmony mtgnews --tweet --toot --discord -o "#$2#"
fi

#silent
set +x<commit_msg>copy otf fonts too<commit_after>#!/bin/bash

#noisy
set -x

#log the path
echo $PATH

#log node version
node -v

# install fonts
cp ./src/data/fonts/*.{ttf,otf} /usr/local/share/fonts

# install dependencies
npm install --production

# tweet

if
  [ -z "$2" ]
then 
  # tweet random headline
  echo "generating random headline"
  node --harmony mtgnews --tweet --toot --discord
else
  # tweet specified headline
  echo "generating headline with origin \"#$2#\""  
  node --harmony mtgnews --tweet --toot --discord -o "#$2#"
fi

#silent
set +x
{'fraction_non_alphanumeric': 0.1369990680335508, 'fraction_numerical': 0.005591798695246971, 'mean_word_length': 3.037593984962406, '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': '2414692', 'n_tokens_mistral': 417, 'n_tokens_neox': 387, 'n_words': 130}