<commit_before>
os_install(){

	# Update the system and use pacman to install all the packages
	# The two commands may be combined, but I leave it as is for now.
	os_upgrade

	if [[ -z $STATICALLY_DOCKER ]]; then

		if [[ $MACHINE == "rpi" ]]; then
			pacman -S docker git --noconfirm --needed
		else
			# for armv7
			# Install this manually, docker v1.7.1
			pacman -S bridge-utils iproute2 device-mapper sqlite git --noconfirm --needed
			curl -sSL https://s3.amazonaws.com/docker-armv7/docker-1:1.7.1-2-armv7h.pkg.tar.xz > /var/cache/pacman/pkg/docker-1:1.7.1-2-armv7h.pkg.tar.xz
			pacman -U  /var/cache/pacman/pkg/docker-1:1.7.1-2-armv7h.pkg.tar.xz --noconfirm
		fi
	else
		# Install git
		pacman -S git --noconfirm --needed

		# Download docker daemon
		curl -sSL $STATIC_DOCKER_DOWNLOAD > /usr/bin/docker

		# Enable the service files
		mv /usr/lib/systemd/system/docker.service{.backup,}
		mv /usr/lib/systemd/system/docker.socket{.backup,}

		systemctl daemon-reload
	fi
	# Add more commands here, archlinux specific
}


os_upgrade(){
	pacman -Syu --noconfirm
}

os_post_install(){
	# When on Arch Linux, we've just installed docker, so reboot before use.
	systemctl stop system-docker docker
}<commit_msg>Restrict updating the system via kube-config on Arch Linux ARMv7<commit_after>
os_install(){

	# Update the system and use pacman to install all the packages
	# The two commands may be combined, but I leave it as is for now.
	os_upgrade

	if [[ -z $STATICALLY_DOCKER ]]; then

		if [[ $MACHINE == "rpi" ]]; then
			pacman -S docker git --noconfirm --needed
		else
			# for armv7
			# Install this manually, docker v1.7.1
			pacman -S bridge-utils iproute2 device-mapper sqlite git --noconfirm --needed
			curl -sSL https://s3.amazonaws.com/docker-armv7/docker-1:1.7.1-2-armv7h.pkg.tar.xz > /var/cache/pacman/pkg/docker-1:1.7.1-2-armv7h.pkg.tar.xz
			pacman -U  /var/cache/pacman/pkg/docker-1:1.7.1-2-armv7h.pkg.tar.xz --noconfirm
		fi
	else
		# Install git
		pacman -S git --noconfirm --needed

		# Download docker daemon
		curl -sSL $STATIC_DOCKER_DOWNLOAD > /usr/bin/docker

		# Enable the service files
		mv /usr/lib/systemd/system/docker.service{.backup,}
		mv /usr/lib/systemd/system/docker.socket{.backup,}

		systemctl daemon-reload
	fi
	# Add more commands here, archlinux specific
}


os_upgrade(){

	if [[ $MACHINE == "rpi" ]]; then
		pacman -Syu --noconfirm
	else
		echo "Won't upgrade your system. It would result in a corrupt docker download from pacman."
		echo "If you want to do it anyway, run pacman -Syu"
	fi
}

os_post_install(){
	# When on Arch Linux, we've just installed docker, so reboot before use.
	systemctl stop system-docker docker
}
{'fraction_non_alphanumeric': 0.11878968995143818, 'fraction_numerical': 0.01905117669032499, 'mean_word_length': 3.210691823899371, 'pattern_counts': {'":': 0, '<': 3, '<?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': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2370127', 'n_tokens_mistral': 1124, 'n_tokens_neox': 968, 'n_words': 283}