<commit_before>FROM phusion/baseimage

RUN rm /usr/sbin/policy-rc.d \
  && apt-get update \
  && apt-get install -y \
    ansible \
    curl \
    fabric \
    git-core \
    make \
    mysql-server \
    nodejs \
    npm \
    python-apt \
    python-dev \
    python-imaging \
    python-mysqldb \
    python-pip \
    python-pycurl \
    python-virtualenv \
    ruby \
    sqlite3 \
    unzip \
    vim \
    wget \
    zip \
  && ln -s /usr/bin/nodejs /usr/bin/node

COPY ./provision/docker/01_start_mysql.sh /etc/my_init.d/

RUN /etc/init.d/mysql start \
  && mysql -uroot -e "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('<PASSWORD>'); \
                      SET PASSWORD FOR 'root'@'127.0.0.1' = PASSWORD('<PASSWORD>')" \
  && /etc/init.d/mysql stop \
  && cd /var/lib \
  && mv mysql mysql-hd \
  && ln -s mysql-hd mysql \
  && chmod +x /etc/my_init.d/01_start_mysql.sh \
  && useradd -G sudo -u 1000 -m vagrant \
  && echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \
  && mkdir -p /vagrant-dev /vagrant/src /vagrant/bin

COPY ./provision/docker/vagrant.bashrc /home/vagrant/.bashrc

WORKDIR /vagrant

COPY ./package.json /vagrant-dev/
RUN cd /vagrant-dev \
  && npm install

RUN gem install sass -v 3.2.13 \
  && gem install compass -v 0.12.2

COPY ./Makefile ./bower.json ./.bowerrc /vagrant/
RUN make bower_components DEV_PREFIX=/vagrant-dev

COPY ./src/requirements.txt ./src/dev-requirements.txt /vagrant/src/
COPY ./Makefile /vagrant/
COPY ./bin/init_env ./bin/setup_linked_packages.py /vagrant/bin/
COPY ./extras /vagrant/extras
RUN make setup_dev DEV_PREFIX=/vagrant-dev \
  && make appengine DEV_PREFIX=/vagrant-dev

RUN chown -R vagrant:vagrant /vagrant /vagrant-dev<commit_msg>Remove unused packages from dockerfile<commit_after>FROM phusion/baseimage

RUN rm /usr/sbin/policy-rc.d \
  && apt-get update \
  && apt-get install -y \
    curl \
    fabric \
    git-core \
    make \
    mysql-server \
    nodejs \
    npm \
    python-imaging \
    python-mysqldb \
    python-pip \
    python-pycurl \
    python-virtualenv \
    ruby \
    sqlite3 \
    unzip \
    vim \
    wget \
    zip \
  && ln -s /usr/bin/nodejs /usr/bin/node

COPY ./provision/docker/01_start_mysql.sh /etc/my_init.d/

RUN /etc/init.d/mysql start \
  && mysql -uroot -e "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('<PASSWORD>'); \
                      SET PASSWORD FOR 'root'@'127.0.0.1' = PASSWORD('<PASSWORD>')" \
  && /etc/init.d/mysql stop \
  && cd /var/lib \
  && mv mysql mysql-hd \
  && ln -s mysql-hd mysql \
  && chmod +x /etc/my_init.d/01_start_mysql.sh \
  && useradd -G sudo -u 1000 -m vagrant \
  && echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \
  && mkdir -p /vagrant-dev /vagrant/src /vagrant/bin

COPY ./provision/docker/vagrant.bashrc /home/vagrant/.bashrc

WORKDIR /vagrant

COPY ./package.json /vagrant-dev/
RUN cd /vagrant-dev \
  && npm install

RUN gem install sass -v 3.2.13 \
  && gem install compass -v 0.12.2

COPY ./Makefile ./bower.json ./.bowerrc /vagrant/
RUN make bower_components DEV_PREFIX=/vagrant-dev

COPY ./src/requirements.txt ./src/dev-requirements.txt /vagrant/src/
COPY ./bin/init_env ./bin/setup_linked_packages.py /vagrant/bin/
COPY ./extras /vagrant/extras
RUN make setup_dev DEV_PREFIX=/vagrant-dev \
  && make appengine DEV_PREFIX=/vagrant-dev

RUN chown -R vagrant:vagrant /vagrant /vagrant-dev
{'fraction_non_alphanumeric': 0.14769687964338782, 'fraction_numerical': 0.013670133729569094, 'mean_word_length': 2.2775073028237585, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5465318', 'n_tokens_mistral': 1399, 'n_tokens_neox': 1314, 'n_words': 289}