<commit_before>#!/opt/local/bin/bash

URL="$1"
if [ -e "$1" ]; then
	URL="file://$(realpath $1)"
fi

osascript <<EOD
    tell application "Firefox"
        reopen
        activate
    end tell
    delay 0.15
    tell application "System Events"
        keystroke "t" using { command down, shift down }
		keystroke "$URL"
		-- Press "Enter" to go to $URL.
		key code 36
    end tell
EOD

<commit_msg>Use the full path to Firefox.app in firefox.sh to workaround issue where latest firefox wouldn't activate with old code.<commit_after>#!/opt/local/bin/bash

URL="$1"
if [ -e "$1" ]; then
	URL="file://$(realpath $1)"
fi

osascript <<EOD
    tell application "/Applications/FirefoxCurrent/Firefox.app"
        reopen
        activate
    end tell
    delay 0.15
    tell application "System Events"
        keystroke "t" using { command down, shift down }
		keystroke "$URL"
		-- Press "Enter" to go to $URL.
		key code 36
    end tell
EOD


{'fraction_non_alphanumeric': 0.11727078891257996, 'fraction_numerical': 0.017057569296375266, 'mean_word_length': 2.66796875, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4706401', 'n_tokens_mistral': 332, 'n_tokens_neox': 304, 'n_words': 108}