<commit_before>from pyswf.workflow import Workflow, ActivityProxy
from pyswf.client import WorkflowClient


my_client = WorkflowClient.for_domain('SeversTest', 'prime_task_list')


@my_client('MyPrime', 2)
class PrimeTest(Workflow):
    """
    Checks if a number is prime.

    """
    div = ActivityProxy('NumberDivider', 2)

    def run(self, n=None):
        n = n if n is not None else 7 * 11
        for i in range(2, n/2 + 1):
            r = self.div(n, i)
            if r.result():
                return 'not prime'
        return 'prime'


my_client.start()<commit_msg>Garden.<commit_after>from pyswf.workflow import Workflow, ActivityProxy
from pyswf.client import WorkflowClient


my_client = WorkflowClient.for_domain('SeversTest', 'prime_task_list')


@my_client('MyPrime', 2)
class PrimeTest(Workflow):
    """
    Checks if a number is prime.

    """
    div = ActivityProxy('NumberDivider', 2)

    def run(self, n=77):
        for i in range(2, n/2 + 1):
            r = self.div(n, i)
            if r.result():
                return 'not prime'
        return 'prime'


my_client.start()
{'fraction_non_alphanumeric': 0.11791179117911792, 'fraction_numerical': 0.013501350135013501, 'mean_word_length': 2.633986928104575, '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': '3364930', 'n_tokens_mistral': 388, 'n_tokens_neox': 359, 'n_words': 99}