<commit_before>from platforms.desktop.DesktopService import DesktopService
from specializations.clingo.ClingoAnswerSets import ClingoAnswerSets


class ClingoDesktopService(DesktopService):
    
    def __init__(self, exe_path):
        super(ClingoDesktopService, self).__init__(exe_path)
        self._load_from_STDIN_option = ""
        
    def _getOutput(self, output, error):
        return ClingoAnswerSets(output, error)
    
    def startSync(self, programs, options):
        return super(ClingoDesktopService, self).startSync(programs, options)
    
    def startAsync(self, callback, programs, options):
        super(ClingoDesktopService, self).startAsync(callback, programs, options)<commit_msg>Fix stdin bug Clingo<commit_after>from platforms.desktop.DesktopService import DesktopService
from specializations.clingo.ClingoAnswerSets import ClingoAnswerSets


class ClingoDesktopService(DesktopService):
    
    def __init__(self, exe_path):
        super(ClingoDesktopService, self).__init__(exe_path)
        self._load_from_STDIN_option = "-"
        
    def _getOutput(self, output, error):
        return ClingoAnswerSets(output, error)
    
    def startSync(self, programs, options):
        return super(ClingoDesktopService, self).startSync(programs, options)
    
    def startAsync(self, callback, programs, options):
        super(ClingoDesktopService, self).startAsync(callback, programs, options)
{'fraction_non_alphanumeric': 0.0820476858345021, 'fraction_numerical': 0.0, 'mean_word_length': 4.344569288389513, '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': '132575', 'n_tokens_mistral': 415, 'n_tokens_neox': 393, 'n_words': 82}