<commit_before>import sys

DEBUG = True
TEMPLATE_DEBUG = DEBUG
TASTYPIE_FULL_DEBUG = DEBUG

if 'celeryd' in sys.argv or 'worker' in sys.argv:
    # Avoid the infamous 'Using settings.DEBUG leads to a memory leak,
    # never use this setting in production environments!' message, cf.
    # http://stackoverflow.com/a/4806384/654755
    DEBUG = False

# Development installs exhibit all admin models.
FULL_ADMIN = True<commit_msg>Discover more celery names to avoid memory leaks.<commit_after>import sys

DEBUG = True
TEMPLATE_DEBUG = DEBUG
TASTYPIE_FULL_DEBUG = DEBUG

for celery_name in ('celery', 'celeryd', 'worker', 'flower'):
    if celery_name in sys.argv:
        # Avoid the infamous 'Using settings.DEBUG leads to a memory leak,
        # never use this setting in production environments!' message, cf.
        # http://stackoverflow.com/a/4806384/654755
        DEBUG = False
        break

# Development installs exhibit all admin models.
FULL_ADMIN = True
{'fraction_non_alphanumeric': 0.08057851239669421, 'fraction_numerical': 0.026859504132231406, 'mean_word_length': 3.6586538461538463, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2262738', 'n_tokens_mistral': 305, 'n_tokens_neox': 281, 'n_words': 102}