<commit_before>FROM sonatest/docker-uncrustify

LABEL io.whalebrew.name 'uncrustify'
LABEL io.whalebrew.config.working_dir '/workdir'
WORKDIR /workdir

ENTRYPOINT ["uncrustify"]
CMD ["--help"]<commit_msg>Build Uncrustify image into Unibeautify Dockerfile<commit_after>FROM alpine:latest

LABEL io.whalebrew.name 'uncrustify'
LABEL io.whalebrew.config.working_dir '/workdir'
WORKDIR /workdir

ENV UNCRUSTIFY_VERSION 0.65

RUN apk upgrade --update

RUN apk add --no-cache make bash curl tar build-base cmake python3

RUN curl -fSL "https://github.com/uncrustify/uncrustify/archive/uncrustify-$UNCRUSTIFY_VERSION.tar.gz" -o uncrustify.tar.gz  \
	&& readonly NPROC=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || echo 1) \
	&& echo "Using upto $NPROC threads" \
	&& mkdir -p /usr/src/uncrustify \
	&& tar -xf uncrustify.tar.gz -C /usr/src/uncrustify --strip-components=1 \
	&& rm uncrustify.tar.gz* \
	&& dir="$(mktemp -d)" \
	&& cd "$dir" \
	&& cmake /usr/src/uncrustify \
	&& make -j$NPROC \
	&& make install \
	&& rm -rf "$dir" \
	&& rm -rf /usr/src/uncrustify

ENTRYPOINT ["uncrustify"]
CMD ["--help"]
{'fraction_non_alphanumeric': 0.15321849501359927, 'fraction_numerical': 0.006346328195829556, 'mean_word_length': 3.8849557522123894, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 1, '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': '4294768', 'n_tokens_mistral': 440, 'n_tokens_neox': 430, 'n_words': 96}