<commit_before>import os

from paste.deploy import loadapp
from waitress import serve

if __name__ == "__main__":
    port = int(os.environ.get("PORT", 5000))
    app = loadapp('config:production.ini', relative_to='.')

    serve(app, host='0.0.0.0', port=port)<commit_msg>Force the use of https unless the settings says otherwise<commit_after>import os

from paste.deploy import loadapp
from waitress import serve

if __name__ == "__main__":
    port = int(os.environ.get("PORT", 5000))
    scheme = os.environ.get("SCHEME", "https")
    app = loadapp('config:production.ini', relative_to='.')

    serve(app, host='0.0.0.0', port=port, scheme=scheme)
{'fraction_non_alphanumeric': 0.147239263803681, 'fraction_numerical': 0.024539877300613498, 'mean_word_length': 4.678260869565217, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, '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': '6285070', 'n_tokens_mistral': 225, 'n_tokens_neox': 216, 'n_words': 56}