<commit_before>import os
import sys
import hashlib

activate_this = os.path.join('/usr/lib/ckan/datapusher/bin/activate_this.py')
execfile(activate_this, dict(__file__=activate_this))

import ckanserviceprovider.web as web
import datapusher.jobs as jobs
os.environ['JOB_CONFIG'] = '/etc/ckan/datapusher_settings.py'

web.configure()
application = web.app

<commit_msg>Fix datapusher.wsgi to work with ckan-service-provider 0.0.2<commit_after>import os
import sys
import hashlib

activate_this = os.path.join('/usr/lib/ckan/datapusher/bin/activate_this.py')
execfile(activate_this, dict(__file__=activate_this))

import ckanserviceprovider.web as web
import datapusher.jobs as jobs
os.environ['JOB_CONFIG'] = '/etc/ckan/datapusher_settings.py'

web.init()
application = web.app


{'fraction_non_alphanumeric': 0.11439588688946016, 'fraction_numerical': 0.0038560411311053984, 'mean_word_length': 6.212962962962963, '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': '742796', 'n_tokens_mistral': 273, 'n_tokens_neox': 278, 'n_words': 52}