<commit_before># Settings and base image.
# For possible NODE_VERSION values,
# install nvm and run "nvm ls-remote"
FROM phusion/baseimage:0.9.17
ENV NODE_VERSION 5.1.0
# install git/maven
RUN add-apt-repository ppa:openjdk-r/ppa && \
    apt-get update && \
    apt-get install -y git openjdk-8-jdk maven && \
    apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /usr/src/yasp
RUN echo "" > /root/.bashrc && \
    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash && \
    . /root/.bashrc && \
    nvm install $NODE_VERSION && \
    nvm alias default $NODE_VERSION && \
    nvm use $NODE_VERSION && \
    npm install -g npm

#ENV JAVA_HOME /usr/lib/jvm/java-1.8.0-openjdk-amd64/bin

# Just add package.json to get the NPM install cached.
ADD package.json /usr/src/yasp/
RUN . /root/.bashrc && npm install

# Add and build the java parser
ADD java_parser /usr/src/yasp/java_parser<commit_msg>change java home<commit_after># Settings and base image.
# For possible NODE_VERSION values,
# install nvm and run "nvm ls-remote"
FROM phusion/baseimage:0.9.17
ENV NODE_VERSION 5.1.0
# install git/maven
RUN add-apt-repository ppa:openjdk-r/ppa && \
    apt-get update && \
    apt-get install -y git openjdk-8-jdk maven && \
    apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /usr/src/yasp
RUN echo "" > /root/.bashrc && \
    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash && \
    . /root/.bashrc && \
    nvm install $NODE_VERSION && \
    nvm alias default $NODE_VERSION && \
    nvm use $NODE_VERSION && \
    npm install -g npm

ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/bin

# Just add package.json to get the NPM install cached.
ADD package.json /usr/src/yasp/
RUN . /root/.bashrc && npm install

# Add and build the java parser
ADD java_parser /usr/src/yasp/java_parser
{'fraction_non_alphanumeric': 0.1409714889123548, 'fraction_numerical': 0.01689545934530095, 'mean_word_length': 2.8282828282828283, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '7072239', 'n_tokens_mistral': 728, 'n_tokens_neox': 695, 'n_words': 185}