<commit_before>#!/bin/sh
set -e

apk update
apk upgrade

edge_community_repo="http://dl-4.alpinelinux.org/alpine/edge/community"

echo "$edge_community_repo" >> /etc/apk/repositories
apk update
apk add git gcc make musl-dev bash unzip zip tar curl

echo '----- Installing Consul -----'
cd /tmp
curl -o consul.zip -L https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip
unzip consul.zip
chmod +x consul
mv consul /usr/bin
mkdir /consul

echo '----- Installing Consul UI -----'
cd /tmp
curl -o ui.zip -L https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_web_ui.zip
unzip ui.zip
mv static /consul-ui/static
mv index.html /consul-ui/index.html

echo '----- Installing dumb-init -----'
unzip /install/dumb-init-hacked.zip -d /tmp
cd /tmp/dumb-init-hacked
make
mv dumb-init-hacked /sbin/

echo '---- Installing runit ----'
unzip /install/runit-2.1.2-hacked.zip -d /tmp
cd /tmp/runit-2.1.2-hacked/src
make
cp chpst runit runit-init runsv runsvchdir runsvdir sv svlogd utmpset /sbin

echo '----- cleaning up apk packages -----'
apk del git gcc make musl-dev bash unzip zip tar curl
echo "$(grep -v "$edge_community_repo" /etc/apk/repositories)" > /etc/apk/repositories

# Install node.js syslog-ng zeromq initsh bashalias
apk add syslog-ng
cp /install/bash /bin/<commit_msg>and and slash<commit_after>#!/bin/sh
set -e

apk update
apk upgrade

edge_community_repo="http://dl-4.alpinelinux.org/alpine/edge/community"

echo "$edge_community_repo" >> /etc/apk/repositories
apk update
apk add git gcc make musl-dev bash unzip zip tar curl

echo '----- Installing Consul -----'
cd /tmp
curl -o consul.zip -L https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_linux_amd64.zip
unzip consul.zip
chmod +x consul
mv consul /usr/bin
mkdir /consul

echo '----- Installing Consul UI -----'
cd /tmp
curl -o ui.zip -L https://releases.hashicorp.com/consul/${CONSUL_VERSION}/consul_${CONSUL_VERSION}_web_ui.zip
unzip ui.zip  &&\
mv static /consul-ui/static
mv index.html /consul-ui/index.html

echo '----- Installing dumb-init -----'
unzip /install/dumb-init-hacked.zip -d /tmp
cd /tmp/dumb-init-hacked
make
mv dumb-init-hacked /sbin/

echo '---- Installing runit ----'
unzip /install/runit-2.1.2-hacked.zip -d /tmp
cd /tmp/runit-2.1.2-hacked/src
make
cp chpst runit runit-init runsv runsvchdir runsvdir sv svlogd utmpset /sbin

echo '----- cleaning up apk packages -----'
apk del git gcc make musl-dev bash unzip zip tar curl
echo "$(grep -v "$edge_community_repo" /etc/apk/repositories)" > /etc/apk/repositories

# Install node.js syslog-ng zeromq initsh bashalias
apk add syslog-ng
cp /install/bash /bin/
{'fraction_non_alphanumeric': 0.14849274283587643, 'fraction_numerical': 0.006698920729438035, 'mean_word_length': 3.4210526315789473, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '2294720', 'n_tokens_mistral': 1073, 'n_tokens_neox': 1010, 'n_words': 263}