<commit_before>FROM pesscara/grunt
MAINTAINER <NAME> <<EMAIL>>
USER root
#################################################################################################################
#			This builds a compute environment for developing medical image analysis applications	#
#################################################################################################################


#################################################################################################################
#						basic development tools						#
#################################################################################################################
RUN yum -y install git python-devel
RUN yum -y  install python-setuptools
RUN yum -y install gcc-gfortran libmpc-devel
RUN yum -y install wget
RUN yum -y install gcc-c++
RUN yum -y install Cython
RUN yum -y install epel-release
RUN yum -y install cmake
RUN yum -y install make
RUN yum install -y libjpeg-devel
RUN yum install -y zlib-dev openssl-devel sqlite-devel
RUN yum install -y glibmm24-devel gtkmm24-devel gsl-devel
# nifticlib dependencies
RUN yum install -y csh
# python dependencies for https, bzip2
RUN yum install -y bzip2-devel
# MITK dependencies
RUN yum install -y libtiff-devel tcp_wrappers-devel
RUN yum install -y telnet
RUN yum -y install python-pip
RUN pip install --upgrade pip
RUN mkdir ~/src && cd ~/src && \
  git clone https://github.com/xianyi/OpenBLAS && \
  cd ~/src/OpenBLAS && \
  make FC=gfortran && \
  make PREFIX=/opt/OpenBLAS install
# now update the library system:
RUN echo /opt/OpenBLAS/lib >  /etc/ld.so.conf.d/openblas.conf
RUN ldconfig
ENV LD_LIBRARY_PATH=/opt/OpenBLAS/lib:$LD_LIBRARY_PATH
RUN yum -y install freetype freetype-devel libpng-devel
RUN pip install matplotlib
# now install numpy source
RUN pwd 
RUN ls
RUN cd ~/src && \
  git clone  -b maintenance/1.11.x https://github.com/numpy/numpy && \
  cd numpy && \
  touch site.cfg
RUN echo [default]  >                           ~/src/numpy/site.cfg && \
  echo include_dirs = /opt/OpenBLAS/include >>  ~/src/numpy/site.cfg && \
  echo library_dirs = /opt/OpenBLAS/lib >>      ~/src/numpy/site.cfg && \
  echo [openblas] >>                            ~/src/numpy/site.cfg && \
  echo openblas_libs = openblas >>              ~/src/numpy/site.cfg && \
  echo library_dirs = /opt/OpenBLAS/lib >>      ~/src/numpy/site.cfg && \
  echo [lapack]  >>                             ~/src/numpy/site.cfg && \
  echo lapack_libs = openblas >>                ~/src/numpy/site.cfg && \
  echo library_dirs = /opt/OpenBLAS/lib >>      ~/src/numpy/site.cfg
RUN cd ~/src/numpy && \
  python setup.py config && \
  python setup.py build --fcompiler=gnu95 && \
  python setup.py install
RUN pip install ipython
RUN pip install cython --upgrade
RUN pip install scipy
RUN pip install scikit-learn
RUN pip install scikit-image
RUN pip install --trusted-host www.simpleitk.org -f http://www.simpleitk.org/SimpleITK/resources/software.html SimpleITK 
RUN pip install pandas
RUN pip install argparse
RUN pip install pydicom
RUN pip install networkx
RUN pip install seaborn
RUN pip install tornado
RUN pip install nibabel
# RUN pip install nipype
RUN pip install wget
ENV OPENBLAS_NUM_THREADS=4
RUN pip install chainer
RUN pip install openpyxl
RUN pip install theano
RUN pip install keras
USER grunt
WORKDIR /grunt
COPY docker/unsuper.gruntfile.yml /grunt/gruntfile.yml
COPY docker/_kmeansseg.py _kmeansseg.py
COPY docker/_classifierevaluation.py _classifierevaluation.py
COPY docker/_featureSelection.py _featureSelection.py
# What do we run on startup?
CMD ["/grunt/grunt", "gruntfile.yml"]
# We expose port 9901 by default
EXPOSE 9901:9901<commit_msg>correct to included analytics python function<commit_after>FROM pesscara/grunt
MAINTAINER <NAME> <<EMAIL>>
USER root
#################################################################################################################
#			This builds a compute environment for developing medical image analysis applications	#
#################################################################################################################


#################################################################################################################
#						basic development tools						#
#################################################################################################################
RUN yum -y install git python-devel
RUN yum -y  install python-setuptools
RUN yum -y install gcc-gfortran libmpc-devel
RUN yum -y install wget
RUN yum -y install gcc-c++
RUN yum -y install Cython
RUN yum -y install epel-release
RUN yum -y install cmake
RUN yum -y install make
RUN yum install -y libjpeg-devel
RUN yum install -y zlib-dev openssl-devel sqlite-devel
RUN yum install -y glibmm24-devel gtkmm24-devel gsl-devel
# nifticlib dependencies
RUN yum install -y csh
# python dependencies for https, bzip2
RUN yum install -y bzip2-devel
# MITK dependencies
RUN yum install -y libtiff-devel tcp_wrappers-devel
RUN yum install -y telnet
RUN yum -y install python-pip
RUN pip install --upgrade pip
RUN mkdir ~/src && cd ~/src && \
  git clone https://github.com/xianyi/OpenBLAS && \
  cd ~/src/OpenBLAS && \
  make FC=gfortran && \
  make PREFIX=/opt/OpenBLAS install
# now update the library system:
RUN echo /opt/OpenBLAS/lib >  /etc/ld.so.conf.d/openblas.conf
RUN ldconfig
ENV LD_LIBRARY_PATH=/opt/OpenBLAS/lib:$LD_LIBRARY_PATH
RUN yum -y install freetype freetype-devel libpng-devel
RUN pip install matplotlib
# now install numpy source
RUN pwd 
RUN ls
RUN cd ~/src && \
  git clone  -b maintenance/1.11.x https://github.com/numpy/numpy && \
  cd numpy && \
  touch site.cfg
RUN echo [default]  >                           ~/src/numpy/site.cfg && \
  echo include_dirs = /opt/OpenBLAS/include >>  ~/src/numpy/site.cfg && \
  echo library_dirs = /opt/OpenBLAS/lib >>      ~/src/numpy/site.cfg && \
  echo [openblas] >>                            ~/src/numpy/site.cfg && \
  echo openblas_libs = openblas >>              ~/src/numpy/site.cfg && \
  echo library_dirs = /opt/OpenBLAS/lib >>      ~/src/numpy/site.cfg && \
  echo [lapack]  >>                             ~/src/numpy/site.cfg && \
  echo lapack_libs = openblas >>                ~/src/numpy/site.cfg && \
  echo library_dirs = /opt/OpenBLAS/lib >>      ~/src/numpy/site.cfg
RUN cd ~/src/numpy && \
  python setup.py config && \
  python setup.py build --fcompiler=gnu95 && \
  python setup.py install
RUN pip install ipython
RUN pip install cython --upgrade
RUN pip install scipy
RUN pip install scikit-learn
RUN pip install scikit-image
RUN pip install --trusted-host www.simpleitk.org -f http://www.simpleitk.org/SimpleITK/resources/software.html SimpleITK 
RUN pip install pandas
RUN pip install argparse
RUN pip install pydicom
RUN pip install networkx
RUN pip install seaborn
RUN pip install tornado
RUN pip install nibabel
# RUN pip install nipype
RUN pip install wget
ENV OPENBLAS_NUM_THREADS=4
RUN pip install chainer
RUN pip install openpyxl
RUN pip install theano
RUN pip install keras
USER grunt
WORKDIR /grunt
COPY docker/unsuper.gruntfile.yml /grunt/gruntfile.yml
COPY docker/_kmeansseg.py _kmeansseg.py
COPY docker/_classifierevaluation.py _classifierevaluation.py
COPY docker/_featureSelection.py _featureSelection.py
COPY docker/_analyticscalc.py _analyticscalc.py

# What do we run on startup?
CMD ["/grunt/grunt", "gruntfile.yml"]
# We expose port 9901 by default
EXPOSE 9901:9901
{'fraction_non_alphanumeric': 0.20504224218854766, 'fraction_numerical': 0.006436904921550221, 'mean_word_length': 3.717267552182163, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 45, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2231720', 'n_tokens_mistral': 2426, 'n_tokens_neox': 2227, 'n_words': 705}