<commit_before>FROM ubuntu:14.04
MAINTAINER <NAME> "<EMAIL>"

ENV LANG C.UTF-8
ENV SERVICE_NAME graojs
ENV SERVICE_VERSION 1

RUN echo "alias ls='ls --color'" >> /etc/profile
RUN apt-get update
RUN ln -s -f /bin/true /usr/bin/chfn
RUN DEBIAN_FRONTEND=noninteractive apt-get upgrade -yq
RUN DEBIAN_FRONTEND=noninteractive apt-get install --fix-missing -yq \
    wget \
    curl \
    git \
    git-core \
    vim \
    python-software-properties \
    software-properties-common \
    g++ \
    build-essential \
    make

RUN add-apt-repository -y ppa:chris-lea/node.js
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install --fix-missing -yq \
    nodejs \
    node-gyp \
#    npm \
    mongodb

RUN mkdir -p /opt/$SERVICE_NAME
ADD . /opt/$SERVICE_NAME
WORKDIR /opt

RUN npm update
RUN npm install -g node-pre-gyp
RUN npm install -g node-gyp 
RUN node-gyp configure || echo "error bypass"
RUN npm install -g bson-ext
RUN npm install -g bson <commit_msg>Add mongodb repo<commit_after>FROM ubuntu:14.04
MAINTAINER <NAME> "<EMAIL>"

ENV LANG C.UTF-8
ENV SERVICE_NAME graojs
ENV SERVICE_VERSION 1

RUN echo "alias ls='ls --color'" >> /etc/profile
RUN apt-get update
RUN ln -s -f /bin/true /usr/bin/chfn
RUN DEBIAN_FRONTEND=noninteractive apt-get upgrade -yq
RUN DEBIAN_FRONTEND=noninteractive apt-get install --fix-missing -yq \
    wget \
    curl \
    git \
    git-core \
    vim \
    python-software-properties \
    software-properties-common \
    g++ \
    build-essential \
    make

RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
RUN echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.0.list

RUN add-apt-repository -y ppa:chris-lea/node.js
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install --fix-missing -yq \
    nodejs \
    node-gyp \
#    npm \
    mongodb-org

RUN mkdir -p /opt/$SERVICE_NAME
ADD . /opt/$SERVICE_NAME
WORKDIR /opt

RUN npm update
#RUN npm install -g node-pre-gyp
#RUN npm install -g node-gyp 
#RUN node-gyp configure || echo "error bypass"
RUN npm install -g bson-ext
RUN npm install -g bson 
{'fraction_non_alphanumeric': 0.11372007366482505, 'fraction_numerical': 0.010128913443830571, 'mean_word_length': 2.880357142857143, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 0, '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': '6379008', 'n_tokens_mistral': 852, 'n_tokens_neox': 802, 'n_words': 226}