<commit_before># Module:   events
# Date:     3rd February 2009
# Author:   <NAME>, prologic at shortcircuit dot net dot au

"""Events

This module implements the necessary Events needed.
"""

from circuits import Event

class Request(Event):
    """Request(Event) -> Request Event

    args: request, response
    """

class Response(Event):
    """Response(Event) -> Response Event

    args: request, response
    """

class Stream(Event):
    """Stream(Event) -> Stream Event

    args: request, response
    """

class Write(Event):
    """Write(Event) -> Write Event

    args: sock
    """

class Close(Event):
    """Close(Event) -> Close Event
<commit_msg>web.events: Set target success/failure channels for Request event.<commit_after># Module:   events
# Date:     3rd February 2009
# Author:   <NAME>, prologic at shortcircuit dot net dot au

"""Events

This module implements the necessary Events needed.
"""

from circuits import Event

class Request(Event):
    """Request(Event) -> Request Event

    args: request, response
    """

    success = "request_success", "http"
    failure = "request_failure", "http"

class Response(Event):
    """Response(Event) -> Response Event

    args: request, response
    """

class Stream(Event):
    """Stream(Event) -> Stream Event

    args: request, response
    """

class Write(Event):
    """Write(Event) -> Write Event

    args: sock
    """

class Close(Event):
    """Close(Event) -> Close Event

{'fraction_non_alphanumeric': 0.13114754098360656, 'fraction_numerical': 0.006830601092896175, 'mean_word_length': 3.3601190476190474, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '4474292', 'n_tokens_mistral': 430, 'n_tokens_neox': 406, 'n_words': 141}