<commit_before>FROM ubuntu
RUN /usr/sbin/useradd -d /home/playground -m playground

# Install various prereqs.
RUN apt-get update
RUN apt-get install -y curl git nodejs npm
# node -> nodejs needed for Ubuntu.
RUN ln -s "$(which nodejs)" "$(dirname $(which nodejs))/node"

# Install Go. Note, the apt-get "golang" target is too old.
RUN (cd /tmp; curl -O https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz)
RUN tar -C /usr/local -xzf /tmp/go1.4.2.linux-amd64.tar.gz
ENV PATH /usr/local/go/bin:$PATH

ENV HOME /root
ENV V23_ROOT /usr/local/vanadium
ENV GOPATH $V23_ROOT/release/projects/playground/go
ENV VDLPATH $GOPATH
ENV PATH $V23_ROOT/release/projects/playground/go/bin:$V23_ROOT/release/go/bin:$V23_ROOT/bin:$PATH

# Setup Vanadium.
# Note: This will be cached! If you want to re-build the docker image using
# fresh Vanadium code, you must pass "--no-cache" to the docker build command.
# See README.md.
ADD netrc /root/.netrc<commit_msg>TBR: playground: Fix Dockerfile for bin to devtools/bin move.<commit_after>FROM ubuntu
RUN /usr/sbin/useradd -d /home/playground -m playground

# Install various prereqs.
RUN apt-get update
RUN apt-get install -y curl git nodejs npm
# node -> nodejs needed for Ubuntu.
RUN ln -s "$(which nodejs)" "$(dirname $(which nodejs))/node"

# Install Go. Note, the apt-get "golang" target is too old.
RUN (cd /tmp; curl -O https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz)
RUN tar -C /usr/local -xzf /tmp/go1.4.2.linux-amd64.tar.gz
ENV PATH /usr/local/go/bin:$PATH

ENV HOME /root
ENV V23_ROOT /usr/local/vanadium
ENV GOPATH $V23_ROOT/release/projects/playground/go
ENV VDLPATH $GOPATH
ENV PATH $V23_ROOT/release/projects/playground/go/bin:$V23_ROOT/release/go/bin:$V23_ROOT/devtools/bin:$PATH

# Setup Vanadium.
# Note: This will be cached! If you want to re-build the docker image using
# fresh Vanadium code, you must pass "--no-cache" to the docker build command.
# See README.md.
ADD netrc /root/.netrc
{'fraction_non_alphanumeric': 0.12734652460679857, 'fraction_numerical': 0.020294266869609334, 'mean_word_length': 3.9054726368159205, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '747788', 'n_tokens_mistral': 767, 'n_tokens_neox': 690, 'n_words': 223}