<commit_before>FROM ubuntu:trusty
MAINTAINER brunoric <<EMAIL>>

ENV HHVM_VERSION 3.3
ENV CORE_NUMBER 4

# Installing packages
RUN apt-get update && apt-get upgrade -y
RUN apt-get -y install autoconf automake binutils-dev build-essential cmake g++ git \
	libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev \
	libboost-system-dev libboost-thread-dev libbz2-dev libc-client-dev libldap2-dev \
	libc-client2007e-dev libcap-dev libcurl4-openssl-dev libdwarf-dev libelf-dev \
	libexpat-dev libgd2-xpm-dev libgoogle-glog-dev libgoogle-perftools-dev libicu-dev \
	libjemalloc-dev libmcrypt-dev libmemcached-dev libmysqlclient-dev libncurses-dev \
	libonig-dev libpcre3-dev libreadline-dev libtbb-dev libtool libxml2-dev zlib1g-dev \
	libevent-dev libmagickwand-dev libinotifytools0-dev libiconv-hook-dev libedit-dev \
	libiberty-dev libxslt1-dev ocaml-native-compilers libsqlite3-dev libyaml-dev libgmp3-dev
RUN apt-get clean && apt-get autoremove -y

# Downloading HHVM from source-code
RUN git clone git://github.com/facebook/hhvm.git --depth=1 && cd hhvm && \
	git submodule update --init --recursive

# ONBUILD instructions: https://docs.docker.com/reference/builder/#onbuild

# Building HHVM
ONBUILD RUN cd hhvm && git checkout "HHVM-$HHVM_VERSION" && cmake . && make -j $CORE_NUMBER && make install

# Scripts
ONBUILD ADD ../supervisord-hhvm.conf /supervisord-hhvm.conf
ONBUILD ADD ../supervisord-hhvm.sh /supervisord-hhvme.sh
ONBUILD ADD ../start.sh /start.sh
ONBUILD RUN chmod 755 /start.sh

# Exposing HHVM-FastCGI port
ONBUILD EXPOSE 9000

# Default command
ONBUILD CMD ["/start.sh"]<commit_msg>Updating the prebuild Dockerfile to use the new HHVM_VERSION variable.<commit_after>FROM ubuntu:trusty
MAINTAINER brunoric <<EMAIL>>

ENV HHVM_VERSION HHVM-3.3
ENV CORE_NUMBER 4

# Installing packages
RUN apt-get update && apt-get upgrade -y
RUN apt-get -y install autoconf automake binutils-dev build-essential cmake g++ git \
	libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev \
	libboost-system-dev libboost-thread-dev libbz2-dev libc-client-dev libldap2-dev \
	libc-client2007e-dev libcap-dev libcurl4-openssl-dev libdwarf-dev libelf-dev \
	libexpat-dev libgd2-xpm-dev libgoogle-glog-dev libgoogle-perftools-dev libicu-dev \
	libjemalloc-dev libmcrypt-dev libmemcached-dev libmysqlclient-dev libncurses-dev \
	libonig-dev libpcre3-dev libreadline-dev libtbb-dev libtool libxml2-dev zlib1g-dev \
	libevent-dev libmagickwand-dev libinotifytools0-dev libiconv-hook-dev libedit-dev \
	libiberty-dev libxslt1-dev ocaml-native-compilers libsqlite3-dev libyaml-dev libgmp3-dev
RUN apt-get clean && apt-get autoremove -y

# Downloading HHVM from source-code
RUN git clone git://github.com/facebook/hhvm.git --depth=1 && cd hhvm && \
	git submodule update --init --recursive

# ONBUILD instructions: https://docs.docker.com/reference/builder/#onbuild

# Building HHVM
ONBUILD RUN cd hhvm && git checkout "$HHVM_VERSION" && cmake . && make -j $CORE_NUMBER && make install

# Scripts
ONBUILD ADD ../supervisord-hhvm.conf /supervisord-hhvm.conf
ONBUILD ADD ../supervisord-hhvm.sh /supervisord-hhvme.sh
ONBUILD ADD ../start.sh /start.sh
ONBUILD RUN chmod 755 /start.sh

# Exposing HHVM-FastCGI port
ONBUILD EXPOSE 9000

# Default command
ONBUILD CMD ["/start.sh"]
{'fraction_non_alphanumeric': 0.10328214393255043, 'fraction_numerical': 0.015657934357121348, 'mean_word_length': 4.3152, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3699375', 'n_tokens_mistral': 1244, 'n_tokens_neox': 1177, 'n_words': 290}