<commit_before>#!/usr/bin/env python

# We have two copies of this file to correspond with two process pools
# managed by apache. Apache requires a different target in order to
# start a second process pool (class).
#
# There are two process pools:
#
# * One handles general website traffic that is expected to complete
#   quickly
# * One handles all calls to the underlying C which could potentially
#   be slow to respond.


#this is supposed to work, if it doesn't remember this address:
# http://stackoverflow.com/questions/527237/unhandled-exception-in-flup
import os
import sys
import logging
import taskqueue

os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'  # or whatever


if __name__ == '__main__' :
    from optparse import OptionParser
    parser = OptionParser("""usage: %prog [options]

    """)

    parser.add_option("-v", "--verbose", action="store_true", dest="verbose",
                      help="Show more verbose log messages.")

    (options,args) = parser.parse_args()
    
    try:
        #import and read from settings to get it to configure logging
        from django.conf import settings
        settings.LOGGING 

            
    except Exception, e:
        sys.stderr.write('error configuring logging: ' + str(e))

    taskqueue.daemonize()
<commit_msg>removing incorrect comments at the top of django-tqdaemon.<commit_after>#!/usr/bin/env python

import os
import sys
import logging
import taskqueue

os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'  # or whatever


if __name__ == '__main__' :
    from optparse import OptionParser
    parser = OptionParser("""usage: %prog [options]

    """)

    parser.add_option("-v", "--verbose", action="store_true", dest="verbose",
                      help="Show more verbose log messages.")

    (options,args) = parser.parse_args()
    
    try:
        #import and read from settings to get it to configure logging
        from django.conf import settings
        settings.LOGGING 

            
    except Exception, e:
        sys.stderr.write('error configuring logging: ' + str(e))

    taskqueue.daemonize()

{'fraction_non_alphanumeric': 0.09766555502620296, 'fraction_numerical': 0.0028585040495474035, 'mean_word_length': 3.085603112840467, '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': '92949', 'n_tokens_mistral': 605, 'n_tokens_neox': 577, 'n_words': 202}