<commit_before>#!/bin/bash

# for ubuntu:wily or xenial

dch_dist=$(lsb_release -cs)

if [ "$dch_dist" == 'xenial' ]; then
    nginx_version=1.10.0
    ubuntu_version=${nginx_version}-0ubuntu0.16.04.1
    ppa_version=${ubuntu_version}ppa1
elif [ "$dch_dist" == 'wily' ]; then
    nginx_version=1.9.3
    ubuntu_version=${nginx_version}-3ubuntu3.3
    ppa_version=${ubuntu_version}ppa1
else
    echo "Use build-trusty.sh to build for trusty, or adapt script for newer distribution"
    exit 1
fi

pkg=nginx
dch_message="Restore the nginx-upload module from 2.2 branch in Github, compatible with nginx 1.9.x."
build_deps="git"

DEBFULLNAME="<NAME>"
DEBEMAIL="<EMAIL>"
export DEBFULLNAME DEBEMAIL

build=/host/build.$(hostname)
<commit_msg>Use /etc/os-release rather than lsb_release (which isn't installed in the default xenial image)<commit_after>#!/bin/bash

# for ubuntu:wily or xenial

. /etc/os-release

dch_dist="$UBUNTU_CODENAME"

if [ "$dch_dist" == 'xenial' ]; then
    nginx_version=1.10.0
    ubuntu_version=${nginx_version}-0ubuntu0.16.04.1
    ppa_version=${ubuntu_version}ppa1
elif [ "$dch_dist" == 'wily' ]; then
    nginx_version=1.9.3
    ubuntu_version=${nginx_version}-3ubuntu3.3
    ppa_version=${ubuntu_version}ppa1
else
    echo "Use build-trusty.sh to build for trusty, or adapt script for newer distribution"
    exit 1
fi

pkg=nginx
dch_message="Restore the nginx-upload module from 2.2 branch in Github, compatible with nginx 1.9.x."
build_deps="git"

DEBFULLNAME="<NAME>"
DEBEMAIL="<EMAIL>"
export DEBFULLNAME DEBEMAIL

build=/host/build.$(hostname)

{'fraction_non_alphanumeric': 0.1288888888888889, 'fraction_numerical': 0.030476190476190476, 'mean_word_length': 4.7309090909090905, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4642407', 'n_tokens_mistral': 654, 'n_tokens_neox': 588, 'n_words': 130}