<commit_before>Linux
=====

PIP Package
-----------

If you use Bohrium through Python, we strongly recommend to install Bohrium through PIP, which will include BLAS, LAPACK, OpenCV, and OpenCL support::

    pip install --user bohrium

.. note:: Bohrium requires `gcc` in `$PATH`.

Ubuntu
------

On Ubuntu you can use apt-get::

    sudo add-apt-repository ppa:bohrium/nightly
    sudo apt-get update
    sudo apt-get install bohrium
    # Optionals
    sudo apt-get install bohrium-opencl # GPU support
    sudo apt-get install bohrium-visualizer # data visualizing
    sudo apt-get install bohrium3 # Python3 support

Anaconda
--------

On other 64-bit Linux systems use `Anaconda <https://www.continuum.io/downloads>`_ (currently, no GPU support)::

    # Create a new environment 'bh' with the 'bohrium' package from the 'bohrium' channel:
    conda create -n bh -c bohrium bohrium
    # And source the new environment:
    source activate bh

Install From Source Package
---------------------------

Visit Bohrium on github.com and download the latest release: https://github.com/bh107/bohrium/releases/latest. Then build and install Bohrium as described in the following subsections.

You need to install all packages required to build NumPy::

  sudo apt-get build-dep python-numpy

And some additional packages::

  sudo apt-get install python-numpy python-dev swig cmake unzip cython libhwloc-dev libboost-filesystem-dev libboost-serialization-dev libboost-regex-dev zlib1g-dev

And for python v3 support::

  sudo apt-get install python3-dev python3-numpy python3-dev cython3

Packages for visualization::

  sudo apt-get install freeglut3 freeglut3-dev libxmu-dev libxi-dev

Build and install::

  wget https://github.com/bh107/bohrium/archive/master.zip
  unzip master.zip
  cd bohrium-master<commit_msg>Update linux.rst<commit_after>Linux
=====

PIP Package
-----------

If you use Bohrium through Python, we strongly recommend to install Bohrium through PIP, which will include BLAS, LAPACK, OpenCV, and OpenCL support::

    pip install --user bohrium

.. note:: Bohrium requires ``gcc`` in ``$PATH``. E.g. on Ubuntu install the build-essential package: ``sudo apt install build-essential``.

Ubuntu
------

On Ubuntu you can use apt-get::

    sudo add-apt-repository ppa:bohrium/nightly
    sudo apt-get update
    sudo apt-get install bohrium
    # Optionals
    sudo apt-get install bohrium-opencl # GPU support
    sudo apt-get install bohrium-visualizer # data visualizing
    sudo apt-get install bohrium3 # Python3 support

Anaconda
--------

To use Anaconda, simply install the Bohrium PIP package in an enviroment::

    # Activate the environment where you want to install Bohrium:
    source activate my_env
    # Install Bohrium using pip
    pip install bohrium
    
.. note:: Bohrium requires ``gcc`` in ``$PATH``. E.g. on Ubuntu install the build-essential package: ``sudo apt install build-essential``.

Install From Source Package
---------------------------

Visit Bohrium on github.com and download the latest release: https://github.com/bh107/bohrium/releases/latest. Then build and install Bohrium as described in the following subsections.

You need to install all packages required to build NumPy::

  sudo apt-get build-dep python-numpy

And some additional packages::

  sudo apt-get install python-numpy python-dev swig cmake unzip cython libhwloc-dev libboost-filesystem-dev libboost-serialization-dev libboost-regex-dev zlib1g-dev

And for python v3 support::

  sudo apt-get install python3-dev python3-numpy python3-dev cython3

Packages for visualization::

  sudo apt-get install freeglut3 freeglut3-dev libxmu-dev libxi-dev

Build and install::

  wget https://github.com/bh107/bohrium/archive/master.zip
  unzip master.zip
  cd bohrium-master
{'fraction_non_alphanumeric': 0.09936742224565102, 'fraction_numerical': 0.008961518186610437, 'mean_word_length': 3.407665505226481, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 5, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3201957', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1094, 'n_words': 421}