<commit_before>import logging

from flask import Flask


app = Flask(__name__)


@app.route('/')
def hello():
    return 'Hello World!'


@app.errorhandler(500)
def server_error(e):
    # Log the error and stacktrace.
    logging.exception('An error occurred during a request.')
    return 'An internal error occurred.', 500
# [END app]<commit_msg>Works on Cloud 9<commit_after>import os
import logging

from flask import Flask

app = Flask(__name__)


@app.route('/')
def hello():
    return 'Hello World of Flask!'

app.run(host=os.getenv('IP', '0.0.0.0'), port=int(os.getenv('PORT', 8080)))

@app.errorhandler(500)
def server_error(e):
    # Log the error and stacktrace.
    logging.exception('An error occurred during a request.')
    return 'An internal error occurred.', 500
# [END app]
{'fraction_non_alphanumeric': 0.13493064312736444, 'fraction_numerical': 0.02648171500630517, 'mean_word_length': 4.189542483660131, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '3549739', 'n_tokens_mistral': 276, 'n_tokens_neox': 252, 'n_words': 82}