<commit_before># Copyright 2014 TWO SIGMA OPEN SOURCE, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# to build: sudo docker build -t ubuntu/beaker . # consider "build --no-cache" to sync network deps
# to run:   sudo docker run -p 8800:8800 -t ubuntu/beaker
# results hosted at: https://registry.hub.docker.com/u/scottdraves/beaker/

FROM ubuntu:14.04

MAINTAINER <NAME> <<EMAIL>>

RUN apt-get update && apt-get dist-upgrade -y

RUN apt-get install -y software-properties-common python-software-properties

RUN add-apt-repository -y ppa:webupd8team/java && \
    add-apt-repository -y ppa:chris-lea/zeromq && \
    add-apt-repository -y ppa:marutter/rrutter && \
    add-apt-repository -y ppa:staticfloat/juliareleases && \
    add-apt-repository -y ppa:staticfloat/julia-deps  && \
    add-apt-repository -y ppa:chris-lea/node.js && \
    add-apt-repository -y ppa:cwchien/gradle && \
    add-apt-repository -y ppa:nginx/stable

RUN apt-get update && apt-get install -y nginx gradle-1.12 python g++ make git

RUN useradd beaker --create-home

##########
#  Java  #
##########

RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
RUN apt-get install -y oracle-java7-installer

############
#  Python  #
############

RUN apt-get install -y libzmq3-dbg libzmq3-dev libzmq3 \
                       python-pip python-dev python-yaml \
                       python-matplotlib python-scipy

RUN pip install ipython==2.4.1 jinja2 tornado pyzmq pandas 

#############
#  Python3  #
#############

# https://bugs.launchpad.net/ubuntu/+source/python3.4/+bug/1290847
RUN apt-get install -y python-virtualenv python3-dev && \
    virtualenv /home/beaker/py3k -p python3 && \
    /home/beaker/py3k/bin/pip install ipython[notebook]==2.4.1

#######
#  R  #
#######

RUN apt-get install -y r-base r-base-dev libcurl4-gnutls-dev && \
    Rscript -e "install.packages('Rserve',,'http://cran.us.r-project.org')" && \
    Rscript -e "install.packages('ggplot2',,'http://cran.us.r-project.org')" && \
    Rscript -e "install.packages('devtools',,'http://cran.us.r-project.org')" && \
    Rscript -e "install.packages('RJSONIO',,'http://cran.us.r-project.org')" && \
    Rscript -e "install.packages('RCurl',,'http://cran.us.r-project.org')"

###########
#  Julia  #
###########

RUN apt-get install -y julia && \
    julia --eval 'Pkg.add("IJulia")' && \
    julia --eval 'Pkg.add("Gadfly")'

##########
#  Ruby  #
##########<commit_msg>Added python3 in the Docker container<commit_after># Copyright 2014 TWO SIGMA OPEN SOURCE, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# to build: sudo docker build -t ubuntu/beaker . # consider "build --no-cache" to sync network deps
# to run:   sudo docker run -p 8800:8800 -t ubuntu/beaker
# results hosted at: https://registry.hub.docker.com/u/scottdraves/beaker/

FROM ubuntu:14.04

MAINTAINER <NAME> <<EMAIL>>

RUN apt-get update && apt-get dist-upgrade -y

RUN apt-get install -y software-properties-common python-software-properties

RUN add-apt-repository -y ppa:webupd8team/java && \
    add-apt-repository -y ppa:chris-lea/zeromq && \
    add-apt-repository -y ppa:marutter/rrutter && \
    add-apt-repository -y ppa:staticfloat/juliareleases && \
    add-apt-repository -y ppa:staticfloat/julia-deps  && \
    add-apt-repository -y ppa:chris-lea/node.js && \
    add-apt-repository -y ppa:cwchien/gradle && \
    add-apt-repository -y ppa:nginx/stable

RUN apt-get update && apt-get install -y nginx gradle-1.12 python g++ make git

RUN useradd beaker --create-home

##########
#  Java  #
##########

RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
RUN apt-get install -y oracle-java7-installer

############
#  Python  #
############

RUN apt-get install -y libzmq3-dbg libzmq3-dev libzmq3 \
                       python-pip python-dev python-yaml \
                       python-matplotlib python-scipy

RUN pip install ipython==2.4.1 jinja2 tornado pyzmq pandas 

#############
#  Python3  #
#############

# https://bugs.launchpad.net/ubuntu/+source/python3.4/+bug/1290847
RUN apt-get install -y python-virtualenv python3-dev pkgconf libfreetype6-dev libfreetype6 libxft-dev libblas-dev liblapack-dev gfortran libyaml-dev && \
    virtualenv /home/beaker/py3k -p python3 && \
    /home/beaker/py3k/bin/pip install ipython[notebook]==2.4.1 && \
    /home/beaker/py3k/bin/pip install numpy matplotlib scipy jinja2 tornado pyzmq pandas pyaml

#######
#  R  #
#######

RUN apt-get install -y r-base r-base-dev libcurl4-gnutls-dev && \
    Rscript -e "install.packages('Rserve',,'http://cran.us.r-project.org')" && \
    Rscript -e "install.packages('ggplot2',,'http://cran.us.r-project.org')" && \
    Rscript -e "install.packages('devtools',,'http://cran.us.r-project.org')" && \
    Rscript -e "install.packages('RJSONIO',,'http://cran.us.r-project.org')" && \
    Rscript -e "install.packages('RCurl',,'http://cran.us.r-project.org')"

###########
#  Julia  #
###########

RUN apt-get install -y julia && \
    julia --eval 'Pkg.add("IJulia")' && \
    julia --eval 'Pkg.add("Gadfly")'

##########
#  Ruby  #
##########
{'fraction_non_alphanumeric': 0.16915827104322392, 'fraction_numerical': 0.018037049073773157, 'mean_word_length': 3.319298245614035, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '39803', 'n_tokens_mistral': 2212, 'n_tokens_neox': 2097, 'n_words': 535}