<commit_before>#!/bin/bash

host_name_prefix="vagrant"
sw_build=$(sw_vers -buildVersion)
sw_vers_major=$(sw_vers -productVersion | awk -F. '{print $2}')

/usr/sbin/scutil --set LocalHostName ${host_name_prefix}-${sw_build}
/usr/sbin/scutil --set HostName ${host_name_prefix}-${sw_build}
/usr/sbin/scutil --set ComputerName ${host_name_prefix}-${sw_build}
/usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "${host_name_prefix}-${sw_build}"

if [[ ${sw_vers_major} -ge 10 ]]; then
    /usr/sbin/discoveryutil udnsflushcache
else
    /usr/bin/killall -HUP mDNSResponder
fi
<commit_msg>burn discoveryd to the ground<commit_after>#!/bin/bash

host_name_prefix="vagrant"
sw_build=$(sw_vers -buildVersion)
sw_vers_major=$(sw_vers -productVersion | awk -F. '{print $2}')

/usr/sbin/scutil --set LocalHostName ${host_name_prefix}-${sw_build}
/usr/sbin/scutil --set HostName ${host_name_prefix}-${sw_build}
/usr/sbin/scutil --set ComputerName ${host_name_prefix}-${sw_build}
/usr/bin/defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "${host_name_prefix}-${sw_build}"
/usr/bin/killall -HUP mDNSResponder

{'fraction_non_alphanumeric': 0.1570593149540518, 'fraction_numerical': 0.003341687552213868, 'mean_word_length': 5.768361581920904, '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': '4699816', 'n_tokens_mistral': 445, 'n_tokens_neox': 435, 'n_words': 75}