<commit_before>#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

if [ "$1" == "generate-cache" ]; then
	chromium-runner --generate-cache
elif [ "$1" == "programs" ]; then
	wofi --show=drun --width=400 --lines=5
elif [ "$1" == "browsers" ]; then
	echo > ~/.cache/wofi-browsers
	LINES=`chromium-runner-rofi | wc -l`
	ITEM=`chromium-runner-rofi | wofi --cache-file=~/.cache/wofi-browsers --dmenu --width=200 --lines=$LINES`
	if [ $? == 0 ]; then
		chromium-runner-rofi $ITEM
	fi
elif [ "$1" == "tasks" ]; then
	echo > ~/.cache/wofi-tasks
	LINES=`~/Documents/todo/track-rofi.sh | wc -l`
	ITEM=`~/Documents/todo/track-rofi.sh | wofi --cache-file=~/.cache/wofi-tasks --dmenu --width=200 --lines=$LINES`
	if [ $? == 0 ]; then
		~/Documents/todo/track-rofi.sh $ITEM
	fi
elif [ "$1" == "close" ]; then
	pkill wofi
fi<commit_msg>Fix problem with caching in wofi<commit_after>#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

if [ "$1" == "generate-cache" ]; then
	chromium-runner --generate-cache
elif [ "$1" == "programs" ]; then
	wofi --show=drun --width=400 --lines=5
elif [ "$1" == "browsers" ]; then
	rm -f ~/.cache/wofi-browsers
	LINES=`chromium-runner-rofi | wc -l`
	ITEM=`chromium-runner-rofi | wofi --cache-file=$HOME/.cache/wofi-browsers --dmenu --width=200 --lines=$LINES`
	if [ $? == 0 ]; then
		chromium-runner-rofi $ITEM
	fi
elif [ "$1" == "tasks" ]; then
	rm -f ~/.cache/wofi-tasks
	LINES=`~/Documents/todo/track-rofi.sh | wc -l`
	ITEM=`~/Documents/todo/track-rofi.sh | wofi --cache-file=$HOME/.cache/wofi-tasks --dmenu --width=200 --lines=$LINES`
	if [ $? == 0 ]; then
		~/Documents/todo/track-rofi.sh "$ITEM"
	fi
elif [ "$1" == "close" ]; then
	pkill wofi
fi
{'fraction_non_alphanumeric': 0.2315299592786504, 'fraction_numerical': 0.020942408376963352, 'mean_word_length': 3.41025641025641, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2586664', 'n_tokens_mistral': 768, 'n_tokens_neox': 706, 'n_words': 146}