<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os

from celery import Celery

# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'genoome.settings.development')

from django.conf import settings

app = Celery('genoome')

# Using a string here means the worker will not have to
# pickle the object when using Windows.
app.config_from_object('django.conf:settings')
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)


@app.task(bind=True)
def debug_task(self):<commit_msg>WHOOPS env var wrong again<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os

from celery import Celery

# set the default Django settings module for the 'celery' program.
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'genoome.settings.production')

from django.conf import settings

app = Celery('genoome')

# Using a string here means the worker will not have to
# pickle the object when using Windows.
app.config_from_object('django.conf:settings')
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)


@app.task(bind=True)
def debug_task(self):
{'fraction_non_alphanumeric': 0.10758377425044091, 'fraction_numerical': 0.001763668430335097, 'mean_word_length': 5.5606936416184976, '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': '3679067', 'n_tokens_mistral': 371, 'n_tokens_neox': 359, 'n_words': 105}