<commit_before>import os
import multiprocessing as mp

from werkzeug.contrib.fixers import ProxyFix

import text_statistics as ts
import json
from flask import Flask, request, Response, render_template
import copy

encode = json.JSONEncoder().encode
app = Flask(__name__, static_url_path="")
ON_HEROKU = os.environ.get('ON_HEROKU')
if ON_HEROKU:
    # get the heroku port<commit_msg>heroku stuff<commit_after>import os
import multiprocessing as mp

from werkzeug.contrib.fixers import ProxyFix

import text_statistics as ts
import json
from flask import Flask, request, Response, render_template
import copy

encode = json.JSONEncoder().encode
app = Flask(__name__, static_url_path="")
ON_HEROKU = os.environ.get('PORT')
if ON_HEROKU:
    # get the heroku port
{'fraction_non_alphanumeric': 0.07631578947368421, 'fraction_numerical': 0.0, 'mean_word_length': 5.918181818181818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '3641976', 'n_tokens_mistral': 245, 'n_tokens_neox': 246, 'n_words': 76}