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

# Close any open System Preferences panes, to prevent them from overriding
# settings we’re about to change
print_action "Quit System Preferences"
try osascript -e 'tell application "System Preferences" to quit'

# Ask for the administrator password upfront
# sudo -v

# Keep-alive: update existing `sudo` time stamp until `macos.sh` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &

###############################################################################
# Open affected applications
###############################################################################

echo ""
echo "›››"
echo "››› Open affected applications"
echo "›››"

typeset -U macos_apps

macos_apps=(
	"Activity Monitor"
	"App Store"
	"Calendar"
	"Contacts"
	"Dock"
	"Finder"
	"Mail"
	"Messages"
	"Photos"
	"Safari"
	"SystemUIServer"
	"Terminal"
)

echo ""<commit_msg>Remove Terminal.app from macOS app list to avoid closing it during the script execution<commit_after>#!/usr/bin/env zsh

# Close any open System Preferences panes, to prevent them from overriding
# settings we’re about to change
print_action "Quit System Preferences"
try osascript -e 'tell application "System Preferences" to quit'

# Ask for the administrator password upfront
# sudo -v

# Keep-alive: update existing `sudo` time stamp until `macos.sh` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &

###############################################################################
# Open affected applications
###############################################################################

echo ""
echo "›››"
echo "››› Open affected applications"
echo "›››"

typeset -U macos_apps

macos_apps=(
	"Activity Monitor"
	"App Store"
	"Calendar"
	"Contacts"
	"Dock"
	"Finder"
	"Mail"
	"Messages"
	"Photos"
	"Safari"
	"SystemUIServer"
)

echo ""
{'fraction_non_alphanumeric': 0.2630753138075314, 'fraction_numerical': 0.0041841004184100415, 'mean_word_length': 5.573883161512027, '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': '5348552', 'n_tokens_mistral': 602, 'n_tokens_neox': 588, 'n_words': 200}