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

import sys, easygui
import core
from daemon import Daemon

is_sam_interface = 1
name = "Easygui"

class Interface(Daemon):

    def log(content):
        easygui.msgbox(content)

    def run():
        while True:
            command=easygui.enterbox(title="W.I.L.L.", msg="Please enter a command")
            if command=="exit":
                sys.exit()
            elif command==None:
                sys.exit()
            else:
                core.get_answer(command)
                easygui.msgbox(answer)

def create(interfaces, pidfile):
    core.log(interfaces, name, "Starting up. " + pidfile)
    d = Interface(pidfile)
    d.start()
    return d<commit_msg>moar debugging<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

import sys, easygui
import core
from daemon import Daemon

is_sam_interface = 1
name = "Easygui"

class Interface(Daemon):

    def log(content):
        easygui.msgbox(content)

    def run():
        while True:
            command=easygui.enterbox(title="W.I.L.L.", msg="Please enter a command")
            if command=="exit":
                sys.exit()
            elif command==None:
                sys.exit()
            else:
                core.get_answer(command)
                easygui.msgbox(answer)

def create(interfaces, pidfile):
    core.log(interfaces, name, "Starting up. " + pidfile)
    d = Interface(pidfile)
    core.log(interfaces, name, "Created.")
    d.start()
    core.log(interfaces, name, "Started.")
    return d
{'fraction_non_alphanumeric': 0.12604501607717042, 'fraction_numerical': 0.002572347266881029, 'mean_word_length': 2.1244979919678717, 'pattern_counts': {'":': 2, '<': 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': '4698198', 'n_tokens_mistral': 501, 'n_tokens_neox': 473, 'n_words': 112}