<commit_before>#!/usr/bin/env bash

apt-get update -y && apt-get install wget gnupg -y

# add postgres client latest
touch /etc/apt/sources.list.d/pgdg.list &&
	echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" >>/etc/apt/sources.list.d/pgdg.list &&
	wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -

# add gdal repo
echo "deb http://http.us.debian.org/debian buster main non-free contrib" >>/etc/apt/sources.list

# geonode required libraries
apt-get update -y && apt-get install -y \
	build-essential gcc git \
	libxml2-dev libxslt1-dev libxslt-dev python-dev \
	gettext sqlite3 \
	python-lxml \
	postgresql-client libpq-dev python-psycopg2 \
	python-pil \
	python-ldap \
	libmemcached-dev libsasl2-dev \
	python-pylibmc \
	gdal-bin libgdal-dev libgeos-dev \
	--no-install-recommends

# update python pip version
pip install --upgrade pip

# install python gdal stable
pip install GDAL==2.3.2

# install cartoview
cd /tmp
git clone https://github.com/cartologic/cartoview.git
cd cartoview
pip install .
cd /tmp
rm -rf cartoview

# Installing extra python packages required for CartoView Apps:
cd /cartoview_scripts
pip install -r extra_req.txt

# cleanup image
rm -rf ~/.cache/pip
rm -rf /root/.cache
apt-get purge --auto-remove -y gcc libgdal-dev libsasl2-dev \
	zlib1g-dev python-dev build-essential
apt autoremove --purge -y && apt autoclean -y && apt-get clean -y<commit_msg>specify cartoview version brance<commit_after>#!/usr/bin/env bash

apt-get update -y && apt-get install wget gnupg -y

# add postgres client latest
touch /etc/apt/sources.list.d/pgdg.list &&
	echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" >>/etc/apt/sources.list.d/pgdg.list &&
	wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -

# add gdal repo
echo "deb http://http.us.debian.org/debian buster main non-free contrib" >>/etc/apt/sources.list

# geonode required libraries
apt-get update -y && apt-get install -y \
	build-essential gcc git \
	libxml2-dev libxslt1-dev libxslt-dev python-dev \
	gettext sqlite3 \
	python-lxml \
	postgresql-client libpq-dev python-psycopg2 \
	python-pil \
	python-ldap \
	libmemcached-dev libsasl2-dev \
	python-pylibmc \
	gdal-bin libgdal-dev libgeos-dev \
	--no-install-recommends

# update python pip version
pip install --upgrade pip

# install python gdal stable
pip install GDAL==2.3.2

# install cartoview
cd /tmp
git clone https://github.com/cartologic/cartoview.git -b 1.10.x
cd cartoview
pip install .
cd /tmp
rm -rf cartoview

# Installing extra python packages required for CartoView Apps:
cd /cartoview_scripts
pip install -r extra_req.txt

# cleanup image
rm -rf ~/.cache/pip
rm -rf /root/.cache
apt-get purge --auto-remove -y gcc libgdal-dev libsasl2-dev \
	zlib1g-dev python-dev build-essential
apt autoremove --purge -y && apt autoclean -y && apt-get clean -y
{'fraction_non_alphanumeric': 0.12159834653806408, 'fraction_numerical': 0.009300723389596968, 'mean_word_length': 3.3669172932330826, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '2210554', 'n_tokens_mistral': 1133, 'n_tokens_neox': 1072, 'n_words': 290}