<commit_before>FROM golang:1.5.1

RUN \
    apt-get update && \
    apt-get install --no-install-recommends -y libtool-bin automake pkg-config && \
    git clone --branch 1.0.5 --depth 1 git://github.com/jedisct1/libsodium.git && \
    ( cd libsodium; ./autogen.sh; ./configure; make install; ldconfig ) && \
    rm -rf libsodium && \
    git clone --branch v4.1.3 --depth 1 git://github.com/zeromq/zeromq4-1.git && \
    ( cd zeromq4-1; ./autogen.sh; ./configure; make install; ldconfig ) && \
    rm -rf zeromq4-1 && \
    git clone --branch v3.0.2 --depth 1 git://github.com/zeromq/czmq.git && \
    ( cd czmq; ./autogen.sh; ./configure; make install; ldconfig ) && \
    rm -rf czmq && \
    apt-get install --no-install-recommends -y net-tools telnet && \
    rm -rf /var/lib/apt/lists/*

RUN mkdir -p /go/src/app
WORKDIR /go/src/app

# Copy a minimal set of files to restore Go dependencies to get advantage
# of Docker build cache
RUN go get github.com/tools/godep && \
    go get golang.org/x/tools/cmd/stringer
COPY Godeps /go/src/app/Godeps
RUN $GOPATH/bin/godep restore

COPY . /go/src/app

RUN go-wrapper download && \
    go-wrapper install && \
    go generate ./... && \
    go-wrapper install

VOLUME /go/src/app/data

EXPOSE 3000

CMD ["go-wrapper", "run"]<commit_msg>Include zmq in Docker build<commit_after>FROM golang:1.5.1

RUN \
    apt-get update && \
    apt-get install --no-install-recommends -y libtool-bin automake pkg-config && \
    git clone --branch 1.0.5 --depth 1 git://github.com/jedisct1/libsodium.git && \
    ( cd libsodium; ./autogen.sh; ./configure; make install; ldconfig ) && \
    rm -rf libsodium && \
    git clone --branch v4.1.3 --depth 1 git://github.com/zeromq/zeromq4-1.git && \
    ( cd zeromq4-1; ./autogen.sh; ./configure; make install; ldconfig ) && \
    rm -rf zeromq4-1 && \
    git clone --branch v3.0.2 --depth 1 git://github.com/zeromq/czmq.git && \
    ( cd czmq; ./autogen.sh; ./configure; make install; ldconfig ) && \
    rm -rf czmq && \
    apt-get install --no-install-recommends -y net-tools telnet && \
    rm -rf /var/lib/apt/lists/*

RUN mkdir -p /go/src/app
WORKDIR /go/src/app

# Copy a minimal set of files to restore Go dependencies to get advantage
# of Docker build cache
RUN go get github.com/tools/godep && \
    go get golang.org/x/tools/cmd/stringer
COPY Godeps /go/src/app/Godeps
RUN $GOPATH/bin/godep restore

COPY . /go/src/app

RUN go-wrapper download && \
    go-wrapper install && \
    go generate ./... && \
    go-wrapper install -tags zmq

VOLUME /go/src/app/data

EXPOSE 3000

CMD ["go-wrapper", "run"]
{'fraction_non_alphanumeric': 0.1576715497301465, 'fraction_numerical': 0.020046260601387818, 'mean_word_length': 2.37890625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2694399', 'n_tokens_mistral': 1001, 'n_tokens_neox': 953, 'n_words': 257}