<commit_before>from zope import interface, component

from gaphor.diagram import items
from gaphor.diagram.interfaces import IGroup

class AbstractGroup(object):
    """
    Base class for grouping UML objects.

    :Attributes:
     parent
        Parent item, which groups other items.
     item
        Item to be groupped.
    """
    interface.implements(IGroup)

    def __init__(self, parent, item):
        self.parent = parent
        self.item = item


    def pre_can_contain(self):
        raise NotImplemented, 'This is abstract method'


    def can_contain(self):
        raise NotImplemented, 'This is abstract method'


    def group(self):
        raise NotImplemented, 'This is abstract method'


    def ungroup(self):
        raise NotImplemented, 'This is abstract method'



from gaphor.diagram import DiagramItemMeta
class InteractionLifelineGroup(AbstractGroup):
    """
    Add lifeline to interaction.
    """<commit_msg>- code cleanup<commit_after>from zope import interface, component

from gaphor.diagram import items
from gaphor.diagram import DiagramItemMeta
from gaphor.diagram.interfaces import IGroup

class AbstractGroup(object):
    """
    Base class for grouping UML objects.

    :Attributes:
     parent
        Parent item, which groups other items.
     item
        Item to be groupped.
    """
    interface.implements(IGroup)

    def __init__(self, parent, item):
        self.parent = parent
        self.item = item


    def pre_can_contain(self):
        raise NotImplemented, 'This is abstract method'


    def can_contain(self):
        raise NotImplemented, 'This is abstract method'


    def group(self):
        raise NotImplemented, 'This is abstract method'


    def ungroup(self):
        raise NotImplemented, 'This is abstract method'



class InteractionLifelineGroup(AbstractGroup):
    """
    Add lifeline to interaction.
    """
{'fraction_non_alphanumeric': 0.07327358987875593, 'fraction_numerical': 0.0, 'mean_word_length': 2.889344262295082, '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': '4122065', 'n_tokens_mistral': 539, 'n_tokens_neox': 509, 'n_words': 172}