<commit_before>nginx
=====

.. include:: ../_sso_note.rst

.. _deb-pkg:

1. Install Packages
-------------------

PostgreSQL and nginx are installed from their upstream repos to get
much more recent versions.

.. code-block:: shell

    echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list
    echo "deb http://nginx.org/packages/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ $(lsb_release -cs) nginx" > /etc/apt/sources.list.d/nginx.list
    wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
    wget --quiet -O - https://nginx.org/keys/nginx_signing.key | apt-key add -
    apt update
    apt install -y --install-recommends postgresql-9.6 libpq-dev nginx python-dev python-virtualenv libxslt1-dev libxml2-dev libffi-dev libpcre3-dev libyaml-dev build-essential redis-server uwsgi uwsgi-plugin-python


If you use Debian, run this command:

.. code-block:: shell

    apt install -y libjpeg62-turbo-dev


If you use Ubuntu, run this instead:

.. code-block:: shell<commit_msg>Installation docs: add lsb-release and wget deps<commit_after>nginx
=====

.. include:: ../_sso_note.rst

.. _deb-pkg:

1. Install Packages
-------------------

PostgreSQL and nginx are installed from their upstream repos to get
much more recent versions.

.. code-block:: shell

    apt install lsb-release wget
    echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list
    echo "deb http://nginx.org/packages/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ $(lsb_release -cs) nginx" > /etc/apt/sources.list.d/nginx.list
    wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
    wget --quiet -O - https://nginx.org/keys/nginx_signing.key | apt-key add -
    apt update
    apt install -y --install-recommends postgresql-9.6 libpq-dev nginx python-dev python-virtualenv libxslt1-dev libxml2-dev libffi-dev libpcre3-dev libyaml-dev build-essential redis-server uwsgi uwsgi-plugin-python


If you use Debian, run this command:

.. code-block:: shell

    apt install -y libjpeg62-turbo-dev


If you use Ubuntu, run this instead:

.. code-block:: shell
{'fraction_non_alphanumeric': 0.1566427289048474, 'fraction_numerical': 0.008976660682226212, 'mean_word_length': 3.0017953321364454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '4436013', 'n_tokens_mistral': 851, 'n_tokens_neox': 783, 'n_words': 201}