<commit_before># Dockerfile for DGraph

FROM golang:1.6
MAINTAINER <NAME> <<EMAIL>>

# Get the necessary packages.
RUN apt-get update && apt-get install -y --no-install-recommends \
	git \
	libbz2-dev \
	libgflags-dev \
	libsnappy-dev \
	zlib1g-dev \
	&& rm -rf /var/lib/apt/lists/*

# Install and set up RocksDB.
RUN mkdir /installs && cd /installs && \
	git clone --branch v4.2 https://github.com/facebook/rocksdb.git
RUN cd /installs/rocksdb && make shared_lib && make install
ENV LD_LIBRARY_PATH "/usr/local/lib"

# Install DGraph and update dependencies to right versions.
RUN go get -v github.com/robfig/glock && \
	go get -v github.com/dgraph-io/dgraph/... && \
	glock sync github.com/dgraph-io/dgraph && echo "v0.2.2"

# Run some tests, don't build an image if we're failing tests.
RUN go test github.com/dgraph-io/dgraph/...
<commit_msg>Updated Dockerfile to fix the corruption issue with the existing docker image<commit_after># Dockerfile for DGraph

FROM golang:1.6.2
MAINTAINER <NAME> <<EMAIL>>

# Get the necessary packages.
RUN apt-get update && apt-get install -y --no-install-recommends \
	git \
	libbz2-dev \
	libgflags-dev \
	libsnappy-dev \
	zlib1g-dev \
	&& rm -rf /var/lib/apt/lists/*

# Install and set up RocksDB.
RUN mkdir /installs && cd /installs && \
	git clone --branch v4.2 https://github.com/facebook/rocksdb.git
RUN cd /installs/rocksdb && make shared_lib && make install
ENV LD_LIBRARY_PATH "/usr/local/lib"

# Install DGraph and update dependencies to right versions.
RUN go get -v github.com/robfig/glock && \
	go get -v github.com/dgraph-io/dgraph/... && \
	glock sync github.com/dgraph-io/dgraph && echo "v0.2.3"

# Run some tests, don't build an image if we're failing tests.
# TODO(pawan): Please uncomment this once the tests run okay on Docker.
# https://trello.com/c/3lKdXE5f
# RUN go test github.com/dgraph-io/dgraph/...

{'fraction_non_alphanumeric': 0.13197424892703863, 'fraction_numerical': 0.011266094420600859, 'mean_word_length': 3.2972350230414746, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '39593', 'n_tokens_mistral': 702, 'n_tokens_neox': 674, 'n_words': 203}