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

# MicrosoftFontInstaller.zsh
# The MIT License (MIT) [https://opensource.org/licenses/MIT]
# Copyright (c) 2016 <NAME>
#  
#  Created by <NAME> on 1/4/16.
#  

echo "Attempting to grab Microsoft fonts..."

if [ ! -f /usr/local/bin/cabextract || -f /usr/local/bin/mkfontsdir]; then
    echo "Dependencies missing! Please run \`\$PACKAGE_MANAGER install cabextract mkfontsdir curl\` and try again."
    exit
fi

set -e
set -x
mkdir temp
cd temp
curl -O http://download.microsoft.com/download/E/6/7/E675FFFC-2A6D-4AB0-B3EB-27C9F8C8F696/PowerPointViewer.exe
cabextract -L -F ppviewer.cab PowerPointViewer.exe
cabextract ppviewer.cab

if [ ! -d ~/fonts ]; then
    mkdir ~/.fonts
fi

mv *.TTF ~/.fonts/
cd ~/.fonts
mkfontsdir
xset fp+ ~/.fonts
xset fp rehash

echo "Successfully installed Microsoft Fonts"
<commit_msg>Fix mkfontdir typo in font installer<commit_after>#!/bin/sh

# MicrosoftFontInstaller.zsh
# The MIT License (MIT) [https://opensource.org/licenses/MIT]
# Copyright (c) 2016 <NAME>
#  
#  Created by <NAME> on 1/4/16.
#  

echo "Attempting to grab Microsoft fonts..."

if [ ! -f /usr/local/bin/cabextract || -f /usr/local/bin/mkfontsdir]; then
    echo "Dependencies missing! Please run \`\$PACKAGE_MANAGER install cabextract mkfontsdir curl\` and try again."
    exit
fi

set -e
set -x
mkdir temp
cd temp
curl -O http://download.microsoft.com/download/E/6/7/E675FFFC-2A6D-4AB0-B3EB-27C9F8C8F696/PowerPointViewer.exe
cabextract -L -F ppviewer.cab PowerPointViewer.exe
cabextract ppviewer.cab

if [ ! -d ~/fonts ]; then
    mkdir ~/.fonts
fi

mv *.TTF ~/.fonts/
cd ~/.fonts
mkfontscale
mkfontdir
xset fp+ ~/.fonts
xset fp rehash

echo "Successfully installed Microsoft Fonts"

{'fraction_non_alphanumeric': 0.1323273360417876, 'fraction_numerical': 0.030179918746372606, 'mean_word_length': 3.5729442970822283, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1346367', 'n_tokens_mistral': 714, 'n_tokens_neox': 651, 'n_words': 176}