<commit_before>FROM heroku/cedar:14

# install flex
RUN apt-get update
RUN apt-get -y --force-yes install flex
RUN rm -rf /var/cache/apt/archives/*.deb

# install golang
ENV GOLANG_VERSION 1.4.2
RUN mkdir -p /usr/src
RUN curl -sSL https://golang.org/dl/go$GOLANG_VERSION.src.tar.gz \
		| tar -v -C /usr/src -xz
RUN cd /usr/src/go/src && ./make.bash --no-clean 2>&1
ENV PATH /usr/src/go/bin:$PATH
RUN mkdir -p /go/src /go/bin && chmod -R 777 /go
ENV GOPATH /go
ENV PATH /go/bin:$PATH

RUN useradd -d /app -m app<commit_msg>:arrow_up: go@1.5.1<commit_after>FROM heroku/cedar:14

# install flex
RUN apt-get update
RUN apt-get -y --force-yes install flex
RUN rm -rf /var/cache/apt/archives/*.deb

# install golang
#  cf. https://github.com/docker-library/golang/blob/51d6eacd41fe80d41105142b9ad32f575082970f/1.5/Dockerfile
ENV GOLANG_VERSION 1.5.1
ENV GOLANG_DOWNLOAD_URL https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz
ENV GOLANG_DOWNLOAD_SHA1 46eecd290d8803887dec718c691cc243f2175fe0

RUN curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz \
	&& echo "$GOLANG_DOWNLOAD_SHA1  golang.tar.gz" | sha1sum -c - \
	&& tar -C /usr/local -xzf golang.tar.gz \
	&& rm golang.tar.gz

ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH

RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"

RUN useradd -d /app -m app
{'fraction_non_alphanumeric': 0.14520958083832336, 'fraction_numerical': 0.06062874251497006, 'mean_word_length': 3.4566666666666666, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 3, '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': '1810387', 'n_tokens_mistral': 633, 'n_tokens_neox': 567, 'n_words': 134}