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

# Ask for the administrator password upfront.
sudo -v

# Disable the sound effects on boot.
sudo nvram SystemAudioVolume=" "

# Disable smart quotes and dashes as they’re annoying when typing code.
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false

# Enable tap to click for this user and for the login screen.
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1

# Enable full keyboard access for all controls.
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3

# Disable auto-correct.
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false

# Disable shadow in screenshots.
defaults write com.apple.screencapture disable-shadow -bool true

# Enable subpixel font rendering on non-Apple LCDs.
defaults write NSGlobalDomain AppleFontSmoothing -int 2

# Finder: Show hidden files by default.
defaults write com.apple.finder AppleShowAllFiles -bool true

# Finder: Show all filename extensions.
defaults write NSGlobalDomain AppleShowAllExtensions -bool true

# Finder: Show path bar.
defaults write com.apple.finder ShowPathbar -bool true

# Finder: Display full POSIX path as window title.
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true

# Finder: Disable the warning when changing a file extension.<commit_msg>mac-set-defaults: Always show hidden files<commit_after>#!/usr/bin/env bash

# Ask for the administrator password upfront.
sudo -v

# Disable the sound effects on boot.
sudo nvram SystemAudioVolume=" "

# Disable smart quotes and dashes as they’re annoying when typing code.
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false

# Enable tap to click for this user and for the login screen.
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
defaults -currentHost write NSGlobalDomain com.apple.mouse.tapBehavior -int 1
defaults write NSGlobalDomain com.apple.mouse.tapBehavior -int 1

# Enable full keyboard access for all controls.
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3

# Disable auto-correct.
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false

# Disable shadow in screenshots.
defaults write com.apple.screencapture disable-shadow -bool true

# Enable subpixel font rendering on non-Apple LCDs.
defaults write NSGlobalDomain AppleFontSmoothing -int 2

# Finder: Show hidden files by default.
defaults write com.apple.finder AppleShowAllFiles -bool true
defaults write -g AppleShowAllFiles -bool true

# Finder: Show all filename extensions.
defaults write NSGlobalDomain AppleShowAllExtensions -bool true

# Finder: Show path bar.
defaults write com.apple.finder ShowPathbar -bool true

# Finder: Display full POSIX path as window title.
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true

# Finder: Disable the warning when changing a file extension.
{'fraction_non_alphanumeric': 0.050370828182941904, 'fraction_numerical': 0.002472187886279357, 'mean_word_length': 5.261121856866538, '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': '4707626', 'n_tokens_mistral': 881, 'n_tokens_neox': 846, 'n_words': 355}