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

# InstallVLC.sh
# Install VLC 2.2.8 for Mac OS X

mkdir -p /Users/${USER}/Temporary
cd /Users/${USER}/Temporary
# Add user temporary folder, and change working directory to it.

curl --remote-name --location https://get.videolan.org/vlc/last/macosx/vlc-2.2.8.dmg
hdiutil mount -nobrowse vlc-2.2.8.dmg
cp -R /Volumes/vlc-2.2.8/VLC.app /Applications/
hdiutil unmount /Volumes/vlc-2.2.8
mv vlc-2.2.8.dmg /Users/${USER}/Downloads/
# Download VLC 2.2.8, and install it.

cd /Users/${USER}
rmdir Temporary
# Remove user temporary folder.
<commit_msg>[.files/lib/scpt/] InstallVLC.sh updated.<commit_after>#!/usr/bin/env bash

# InstallVLC.sh
# Install VLC Media Player for Mac OS X

mkdir -p /Users/${USER}/Temporary
cd /Users/${USER}/Temporary
# Add user temporary folder, and change working directory to it.

curl --remote-name --location http://download.videolan.org/pub/videolan/vlc/3.0.0/macosx/vlc-3.0.0.dmg
hdiutil mount -nobrowse vlc-3.0.0.dmg # (i) Before version 3, VLC's DMG volume name was the DMG file's. From version 3 onwards, it's 'VLC media player'. That broke the script. I shall rewrite all these scripts to watch for a new directory in /Volumes then use it in a variable.
cp -R /Volumes/VLC\ media\ player/VLC.app /Applications/
hdiutil unmount /Volumes/VLC\ media\ player
mv vlc-3.0.0.dmg /Users/${USER}/Downloads/
# Download VLC Media Player, and install it.

cd /Users/${USER}
rmdir Temporary
# Remove user temporary folder.

{'fraction_non_alphanumeric': 0.13599458728010824, 'fraction_numerical': 0.02368064952638701, 'mean_word_length': 3.5507692307692307, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '476432', 'n_tokens_mistral': 560, 'n_tokens_neox': 547, 'n_words': 166}