<commit_before>#!/usr/bin/env bash
/usr/bin/curl --compressed -s "wttr.in/Gliwice?format=+%c+%t+%h+%p+%P+%w" > /var/log/scripts/weather.log
if grep -q Unknown /var/log/scripts/weather.log; then
  echo "" > /var/log/scripts/weather.log
fi<commit_msg>improving weather_log.sh script to avoid showing server errors in i3 status bar<commit_after>#!/usr/bin/env bash
/usr/bin/curl --compressed -s "wttr.in/Gliwice?format=+%c+%t+%h+%p+%P+%w" > /var/log/scripts/weather.log
if grep -q Unknown /var/log/scripts/weather.log; then
  echo "" > /var/log/scripts/weather.log
fi
if grep -q Sorry /var/log/scripts/weather.log; then
  echo "" > /var/log/scripts/weather.log
fi
{'fraction_non_alphanumeric': 0.18484848484848485, 'fraction_numerical': 0.0015151515151515152, 'mean_word_length': 4.0458015267175576, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '1644285', 'n_tokens_mistral': 285, 'n_tokens_neox': 264, 'n_words': 51}