<commit_before>FROM ubuntu:14.04

# Accept the oracle java license
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections

# Install all of the prerequisites for folly, and install g++-5 to get c++14 features
RUN apt-get update && \
 apt-get -y install software-properties-common python-software-properties && \
 apt-add-repository ppa:ubuntu-toolchain-r/test && \
 add-apt-repository ppa:webupd8team/java && \
 apt-get update  && \
 apt-get -y install \ 
    automake \
    autoconf \
    autoconf-archive \
    libtool \
    libboost-all-dev \
    libevent-dev \
    libunwind8-dev \
    libdouble-conversion-dev \
    libgoogle-glog-dev \
    libgflags-dev \
    liblz4-dev \
    liblzma-dev \
    libsnappy-dev \
    make \
    zlib1g-dev \
    binutils-dev \
    libjemalloc-dev \
    libssl-dev \
    libgtest-dev \
    git \
    oracle-java8-installer \
  	ant \
	  curl \
    g++-5 && \
    unzip && \
    apt-get clean

# Download and install folly, build with default tools
#RUN git clone --depth 1 https://github.com/facebook/folly.git /usr/src/folly && \
# cd /usr/src/folly/folly && \
# autoreconf -ivf && \
# CXX=/usr/bin/g++-5 CC=/usr/bin/gcc-5 ./configure && \
# make && \
# make install && \
# make clean
## RUN make check

# Download and install proxygen, build with default tools
RUN git clone https://github.com/facebook/proxygen.git /usr/src/proxygen && \
  cd /usr/src/proxygen && \
  CXX=/usr/bin/g++-5 CC=/usr/bin/gcc-5 ./deps.sh && \
  make clean && \
  cd folly/folly && \
  make clean && \
  cd wangle/wangle && \
  make clean


# Download and install watchman, build with default tools
RUN git clone --depth 1 --branch v3.8.0 https://github.com/facebook/watchman.git /usr/src/watchman && \
 cd /usr/src/watchman && \
 ./autogen.sh && \
 CXX=/usr/bin/g++-5 CC=/usr/bin/gcc-5 ./configure && \
 make && \
 make install && \
 make clean

# Download and install buck. Run it once so that it does its own first-run build process
# Remove some extra files that end up being ~250M combined
RUN git clone --depth 1 https://github.com/facebook/buck.git /usr/src/buck && \<commit_msg>May not even work, trying latomic<commit_after>FROM ubuntu:14.04

# Accept the oracle java license
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections

# Install all of the prerequisites for folly, and install g++-5 to get c++14 features
RUN apt-get update && \
 apt-get -y install software-properties-common python-software-properties && \
 apt-add-repository ppa:ubuntu-toolchain-r/test && \
 add-apt-repository ppa:webupd8team/java && \
 apt-get update  && \
 apt-get -y install \ 
    automake \
    autoconf \
    autoconf-archive \
    libtool \
    libboost-all-dev \
    libevent-dev \
    libunwind8-dev \
    libdouble-conversion-dev \
    libgoogle-glog-dev \
    libgflags-dev \
    liblz4-dev \
    liblzma-dev \
    libsnappy-dev \
    make \
    zlib1g-dev \
    binutils-dev \
    libjemalloc-dev \
    libssl-dev \
    libgtest-dev \
    git \
    oracle-java8-installer \
    ant \
    curl \
    g++-5 \ 
    unzip && \
    apt-get clean

# Download and install folly, build with default tools
#RUN git clone --depth 1 https://github.com/facebook/folly.git /usr/src/folly && \
# cd /usr/src/folly/folly && \
# autoreconf -ivf && \
# CXX=/usr/bin/g++-5 CC=/usr/bin/gcc-5 ./configure && \
# make && \
# make install && \
# make clean
## RUN make check

# Download and install proxygen, build with default tools
RUN git clone https://github.com/facebook/proxygen.git /usr/src/proxygen && \
  cd /usr/src/proxygen/proxygen && \
  CMAKE_CXX_COMPILER=/usr/bin/g++-5 \
	CMAKE_C_COMPILER=/usr/bin/gcc-5 \
	CXX=/usr/bin/g++-5 \ 
	CC=/usr/bin/gcc-5 \
	CMAKE_CXX_FLAGS="-latomic" CMAKE_C_FLAGS="-latomic" CMAKE_EXE_LINKER_FLAGS="-latomic" \
	CFLAGS="-latomic" CXX_FLAGS="-latomic" ./deps.sh && \
  make clean && \
  cd folly/folly && \
  make clean && \
  cd wangle/wangle && \
  make clean


# Download and install watchman, build with default tools
RUN git clone --depth 1 --branch v3.8.0 https://github.com/facebook/watchman.git /usr/src/watchman && \
 cd /usr/src/watchman && \
 ./autogen.sh && \
 CXX=/usr/bin/g++-5 CC=/usr/bin/gcc-5 ./configure && \
 make && \
 make install && \
 make clean

# Download and install buck. Run it once so that it does its own first-run build process
# Remove some extra files that end up being ~250M combined
RUN git clone --depth 1 https://github.com/facebook/buck.git /usr/src/buck && \
{'fraction_non_alphanumeric': 0.14157155399473223, 'fraction_numerical': 0.014047410008779631, 'mean_word_length': 2.5518316445830087, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '698752', 'n_tokens_mistral': 1684, 'n_tokens_neox': 1595, 'n_words': 394}