<commit_before>import sys
import psutil
sys.path.append("../")
from checks import AgentCheck
class ProcessCheck(AgentCheck):


    def __init__(self, name, init_config, agentConfig):
        AgentCheck.__init__(self, name, init_config, agentConfig)
#        self.log.info('ProcessCheck: Agent started')
        
    def process_finder(self, exact_match=True, search_string=None):
        """
        Create a set of pids of selected process.
        Search for search_string 
        """
        counter = 0
        print search_string
        found_process_list = []
        for proc in psutil.process_iter():
            found = False<commit_msg>removed debug code<commit_after>import sys
import psutil
# sys.path.append("../")
from checks import AgentCheck
class ProcessCheck(AgentCheck):


    def __init__(self, name, init_config, agentConfig):
        AgentCheck.__init__(self, name, init_config, agentConfig)
#        self.log.info('ProcessCheck: Agent started')
        
    def process_finder(self, exact_match=True, search_string=None):
        """
        Create a set of pids of selected process.
        Search for search_string 
        """
        counter = 0
        print search_string
        found_process_list = []
        for proc in psutil.process_iter():
            found = False
{'fraction_non_alphanumeric': 0.08979278587874137, 'fraction_numerical': 0.0015349194167306216, 'mean_word_length': 2.662921348314607, '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': '4780685', 'n_tokens_mistral': 356, 'n_tokens_neox': 348, 'n_words': 99}