<commit_before>#!/usr/local/bin/python
#! -*- coding: utf-8 -*-


from flask import Flask, render_template, request, g, session, flash, \
     redirect, url_for, abort


import datetime
import datetime
import md5, random
import os, sys
import flask
import statsd
import json
from functools import wraps
import uuid

from rhaptos2.common import conf
from rhaptos2.common import log
from rhaptos2.common import err


def set_logger(apptype, app_configd):
    lg = log.get_logger(apptype, app_configd)
    app.logger.addHandler(lg)
<commit_msg>minor clean up of import stmts<commit_after>#!/usr/local/bin/python
#! -*- coding: utf-8 -*-


from flask import Flask, render_template, request, g, session, flash, \
     redirect, url_for, abort


import datetime
import datetime
import md5, random
import os, sys
import flask
import statsd
import json
from functools import wraps
import uuid

from rhaptos2.common import conf, log, err


def set_logger(apptype, app_configd):
    lg = log.get_logger(apptype, app_configd)
    app.logger.addHandler(lg)

{'fraction_non_alphanumeric': 0.08803827751196172, 'fraction_numerical': 0.007655502392344498, 'mean_word_length': 4.447916666666667, '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': '4593896', 'n_tokens_mistral': 355, 'n_tokens_neox': 335, 'n_words': 111}