<commit_before>#!/usr/bin/env python
import os
import sys

from plstackapi.planetstack.config import Config 

if __name__ == '__main__':

    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "plstackapi.planetstack.settings")
    from django.core.management import ManagementUtility
    config = Config()
    url = "%s:%s" % (config.api_host, config.api_port)
    args = [__file__, 'runserver', url] 
    server = ManagementUtility(args)
    server.execute()<commit_msg>start the sliver agent<commit_after>#!/usr/bin/env python
import os
import sys
import thread

from plstackapi.planetstack.config import Config 
from plstackapi.openstack.sliveragent import SliverAgent

if __name__ == '__main__':

    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "plstackapi.planetstack.settings")
    from django.core.management import ManagementUtility
    config = Config()
    url = "%s:%s" % (config.api_host, config.api_port)
    args = [__file__, 'runserver', url] 
    server = ManagementUtility(args)
    sliver_agent = SliverAgent()
    thread.start_new_thread(server.execute, ())
    thread.start_new_thread(sliver_agent.run, ())
    #server.execute()
{'fraction_non_alphanumeric': 0.11478260869565217, 'fraction_numerical': 0.0, 'mean_word_length': 4.669950738916256, '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': '3208233', 'n_tokens_mistral': 373, 'n_tokens_neox': 371, 'n_words': 76}