<commit_before>#!/bin/bash

: ${FIREWALLA_HOME:=/home/pi/firewalla}
: ${FIREWALLA_HIDDEN:=/home/pi/.firewalla}

source ${FIREWALLA_HOME}/platform/platform.sh

date
cd /data/patch/deb/
[[ $? == 0 ]] && for FILE in $(ls); do
  # file name should be the package name without extension
  PKG_NAME=$(echo "$FILE" | cut -d'-' -f2-)
  VERSION=$(dpkg -I $PKG_NAME | grep Version: | cut -d':' -f2-)
  INSTALLED=$(apt-cache policy $PKG_NAME | grep Installed: | cut -d':' -f2-)
  if [[ "$VERSION" == "$INSTALLED" ]]; then<commit_msg>fix wrong variable being used<commit_after>#!/bin/bash

: ${FIREWALLA_HOME:=/home/pi/firewalla}
: ${FIREWALLA_HIDDEN:=/home/pi/.firewalla}

source ${FIREWALLA_HOME}/platform/platform.sh

date
cd /data/patch/deb/
[[ $? == 0 ]] && for FILE in $(ls); do
  # file name should be the package name without extension
  PKG_NAME=$(echo "$FILE" | cut -d'-' -f2-)
  VERSION=$(dpkg -I $FILE | grep Version: | cut -d':' -f2-)
  INSTALLED=$(apt-cache policy $PKG_NAME | grep Installed: | cut -d':' -f2-)
  if [[ "$VERSION" == "$INSTALLED" ]]; then
{'fraction_non_alphanumeric': 0.20454545454545456, 'fraction_numerical': 0.007575757575757576, 'mean_word_length': 3.9624413145539905, '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': '4191803', 'n_tokens_mistral': 440, 'n_tokens_neox': 407, 'n_words': 99}