<commit_before>FROM nvidia/cudagl:11.4.2-devel

MAINTAINER "<NAME>"

# To avoid console interaction with apt.
ARG DEBIAN_FRONTEND=noninteractive

# Install necessary packages to add APT repositories.
RUN apt-get update -y && apt-get install -y \
  apt-transport-https        \
  ca-certificates            \
  gnupg                      \
  software-properties-common \
  wget

# CMake APT repository.
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | \
  gpg --dearmor - | \
  tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
RUN apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main'

# Vulkan SDK APT repository.
RUN wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | apt-key add -
RUN wget -qO /etc/apt/sources.list.d/lunarg-vulkan-focal.list http://packages.lunarg.com/vulkan/lunarg-vulkan-focal.list

# CLBlast APT repository.
RUN add-apt-repository ppa:cnugteren/clblast

# C++ toolchain, libraries and tools.
RUN apt-get update -y && apt-get install -y \
  build-essential           \
  ccache                    \
  cmake                     \
  cppcheck                  \
  git                       \
  lcov                      \
  ninja-build               \
  python3-pip               \
  rubygems                  \
  doxygen                   \
  graphviz                  \
  gstreamer1.0-plugins-base \
  gstreamer1.0-plugins-good \
  gstreamer1.0-plugins-bad  \
  gstreamer1.0-plugins-ugly \
  gstreamer1.0-libav        \
  gstreamer1.0-doc          \
  gstreamer1.0-tools        \
  gstreamer1.0-x            \
  gstreamer1.0-alsa         \
  gstreamer1.0-gl           \
  gstreamer1.0-gtk3         \
  gstreamer1.0-qt5          \
  gstreamer1.0-pulseaudio   \
  libboost-all-dev          \
  libclblast-dev            \
  libgstreamer1.0-0         \
  libhdf5-dev               \
  libjpeg-dev               \
  libpng-dev                \
  libtiff5-dev              \
  libavcodec-dev            \
  libavformat-dev           \
  libavutil-dev             \
  libswscale-dev            \
  libglew-dev               \
  libglfw3-dev              \
  libceres-dev              \
  libpocl-dev               \
  libz3-4                   \
  ocl-icd-opencl-dev        \
  opencl-headers            \
  python3-dev               \
  qtbase5-dev               \
  vulkan-sdk

# Install Halide
RUN mkdir ${HOME}/opt
RUN wget https://github.com/halide/Halide/releases/download/v13.0.0/Halide-13.0.0-x86-64-linux-c3641b6850d156aff6bb01a9c01ef475bd069a31.tar.gz
RUN tar xvzf Halide-13.0.0-x86-64-linux-c3641b6850d156aff6bb01a9c01ef475bd069a31.tar.gz
RUN mv Halide-13.0.0-x86-64-linux ${HOME}/opt

# Please make my life easier
# TODO: install neovim, etc.
RUN apt-get install -y zsh

# Set up my development workspace.
ADD . /workspace/sara
WORKDIR /workspace/sara

# # RUN bash ./build.sh Debug<commit_msg>MAINT: fix path.<commit_after>FROM nvidia/cudagl:11.4.2-devel

MAINTAINER "<NAME>"

# To avoid console interaction with apt.
ARG DEBIAN_FRONTEND=noninteractive

# Install necessary packages to add APT repositories.
RUN apt-get update -y && apt-get install -y \
  apt-transport-https        \
  ca-certificates            \
  gnupg                      \
  software-properties-common \
  wget

# CMake APT repository.
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | \
  gpg --dearmor - | \
  tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
RUN apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main'

# Vulkan SDK APT repository.
RUN wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | apt-key add -
RUN wget -qO /etc/apt/sources.list.d/lunarg-vulkan-focal.list http://packages.lunarg.com/vulkan/lunarg-vulkan-focal.list

# CLBlast APT repository.
RUN add-apt-repository ppa:cnugteren/clblast

# C++ toolchain, libraries and tools.
RUN apt-get update -y && apt-get install -y \
  build-essential           \
  ccache                    \
  cmake                     \
  cppcheck                  \
  git                       \
  lcov                      \
  ninja-build               \
  python3-pip               \
  rubygems                  \
  doxygen                   \
  graphviz                  \
  gstreamer1.0-plugins-base \
  gstreamer1.0-plugins-good \
  gstreamer1.0-plugins-bad  \
  gstreamer1.0-plugins-ugly \
  gstreamer1.0-libav        \
  gstreamer1.0-doc          \
  gstreamer1.0-tools        \
  gstreamer1.0-x            \
  gstreamer1.0-alsa         \
  gstreamer1.0-gl           \
  gstreamer1.0-gtk3         \
  gstreamer1.0-qt5          \
  gstreamer1.0-pulseaudio   \
  libboost-all-dev          \
  libclblast-dev            \
  libgstreamer1.0-0         \
  libhdf5-dev               \
  libjpeg-dev               \
  libpng-dev                \
  libtiff5-dev              \
  libavcodec-dev            \
  libavformat-dev           \
  libavutil-dev             \
  libswscale-dev            \
  libglew-dev               \
  libglfw3-dev              \
  libceres-dev              \
  libpocl-dev               \
  libz3-4                   \
  ocl-icd-opencl-dev        \
  opencl-headers            \
  python3-dev               \
  qtbase5-dev               \
  vulkan-sdk

# Install Halide
RUN mkdir ${HOME}/opt
RUN wget https://github.com/halide/Halide/releases/download/v13.0.0/Halide-13.0.0-x86-64-linux-c3641b6850d156aff6bb01a9c01ef475bd069a31.tar.gz
RUN tar xvzf Halide-13.0.0-x86-64-linux-c3641b6850d156aff6bb01a9c01ef475bd069a31.tar.gz
RUN mv Halide-13.0.0-x86-64-linux ${HOME}/opt

# Please make my life easier
# TODO: install neovim, etc.
RUN apt-get install -y zsh

# Set up my development workspace.
ADD . /sara
WORKDIR /sara

# # RUN bash ./build.sh Debug
{'fraction_non_alphanumeric': 0.10387354524926176, 'fraction_numerical': 0.042383185686989754, 'mean_word_length': 1.490484429065744, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, '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': '6660531', 'n_tokens_mistral': 2219, 'n_tokens_neox': 2062, 'n_words': 343}