<commit_before>#!/usr/bin/env bash

CONFIG_VARS="${HEROKU_SHARE_CONFIGVARS} DATABASE_URL"

config_var_values=`curl --user $HEROKU_SHARE_API_EMAIL:$HEROKU_SHARE_API_TOKEN \
  -X GET https://api.heroku.com/apps/$HEROKU_SHARE_APPNAME/config-vars \
  -H "Accept: application/vnd.heroku+json; version=3"`

for CONFIG_VAR in $CONFIG_VARS
do
  export ${CONFIG_VAR}=`echo "$config_var_values" | grep $CONFIG_VAR | cut -d '"' -f 4`
done<commit_msg>Only set var if not null<commit_after>#!/usr/bin/env bash

CONFIG_VARS="${HEROKU_SHARE_CONFIGVARS} DATABASE_URL"

config_var_values=`curl --user $HEROKU_SHARE_API_EMAIL:$HEROKU_SHARE_API_TOKEN \
  -X GET https://api.heroku.com/apps/$HEROKU_SHARE_APPNAME/config-vars \
  -H "Accept: application/vnd.heroku+json; version=3"`

for CONFIG_VAR in $CONFIG_VARS
do
  config_var_value=`echo "$config_var_values" | grep $CONFIG_VAR | cut -d '"' -f 4`
  if [ -n "$config_var_value" ]
    export ${CONFIG_VAR}=$config_var_value
  fi
done
{'fraction_non_alphanumeric': 0.13678756476683937, 'fraction_numerical': 0.004145077720207254, 'mean_word_length': 5.527027027027027, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6138023', 'n_tokens_mistral': 403, 'n_tokens_neox': 385, 'n_words': 67}