<commit_before>
os_install(){

	# Update the system and use pacman to install all the packages
	pacman -Syu --noconfirm

	# If we should install docker as usual
	if [[ -z $STATICALLY_DOCKER ]]; then

		# If we're on ARMv6 use the normal docker from pacman
		if [[ $BOARD == "rpi" ]]; then

			# Install docker and git
			pacman -S docker git --noconfirm --needed
		else
			# Install docker v1.7.1 manually
			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
		chmod +x /usr/bin/docker

		# Add the docker group, so the daemon starts
		groupadd 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 [[ $BOARD == "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
}

os_addon_dns(){
	# Write the DNS options to the file
	updateline /etc/systemd/network/dns.network "Domains" "Domains=default.svc.$DNS_DOMAIN svc.$DNS_DOMAIN $DNS_DOMAIN"
	updateline /etc/systemd/network/dns.network "DNS" "DNS=$DNS_IP;"

	systemctl restart systemd-networkd
}<commit_msg>Fix a bug in archlinux<commit_after>
os_install(){

	# Update the system and use pacman to install all the packages
	pacman -Syu --noconfirm

	# If we should install docker as usual
	if [[ -z $STATICALLY_DOCKER ]]; then

		# If we're on ARMv6 use the normal docker from pacman
		if [[ $BOARD == "rpi" ]]; then

			# Install docker and git
			pacman -S docker git --noconfirm --needed
		else
			# Install docker v1.7.1 manually
			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
		chmod +x /usr/bin/docker

		# Add the docker group, so the daemon starts
		groupadd 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 [[ $BOARD == "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
}

os_addon_dns(){
	# Write the DNS options to the file
	updateline /etc/systemd/network/dns.network "Domains" "Domains=default.svc.$DNS_DOMAIN svc.$DNS_DOMAIN $DNS_DOMAIN"
	updateline /etc/systemd/network/dns.network "DNS" "DNS=$DNS_IP"

	systemctl restart systemd-networkd
}
{'fraction_non_alphanumeric': 0.11454346637506835, 'fraction_numerical': 0.01366867140513942, 'mean_word_length': 3.3820359281437127, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6961928', 'n_tokens_mistral': 1520, 'n_tokens_neox': 1326, 'n_words': 390}