<commit_before>#!/usr/bin/env python

__author__ = '<NAME>'

from unittest import SkipTest

from pyon.agent.agent import ResourceAgent
from pyon.container.procs import ProcManager
from pyon.service.service import BaseService
from pyon.util.int_test import IonIntegrationTestCase
from nose.plugins.attrib import attr
from mock import patch

class FakeContainer(object):
    def __init__(self):
        self.id = "containerid"
        self.node = None

class SampleProcess(BaseService):
    name = 'sample'
    dependencies = []

class BadProcess(BaseService):
    name = 'bad'
    dependencies = []

    def on_quit(self):
        bad = 3 / 0     # boom
        return bad

class SampleAgent(ResourceAgent):
    pass

@attr('INT',group='p')
class TestProcManager(IonIntegrationTestCase):

    def test_procmanager_iso(self):<commit_msg>Missed this needed fix for dependency checking<commit_after>#!/usr/bin/env python

__author__ = '<NAME>'

from unittest import SkipTest

from pyon.agent.agent import ResourceAgent
from pyon.container.procs import ProcManager
from pyon.service.service import BaseService
from pyon.util.int_test import IonIntegrationTestCase
from nose.plugins.attrib import attr
from mock import patch

class FakeContainer(object):
    def __init__(self):
        self.id = "containerid"
        self.node = None

class SampleProcess(BaseService):
    name = 'sample'
    dependencies = []

class BadProcess(BaseService):
    name = 'bad'
    dependencies = []

    def on_quit(self):
        bad = 3 / 0     # boom
        return bad

class SampleAgent(ResourceAgent):
    dependencies = []

@attr('INT',group='p')
class TestProcManager(IonIntegrationTestCase):

    def test_procmanager_iso(self):
{'fraction_non_alphanumeric': 0.09149184149184149, 'fraction_numerical': 0.002331002331002331, 'mean_word_length': 3.8917378917378915, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7038119', 'n_tokens_mistral': 514, 'n_tokens_neox': 497, 'n_words': 137}