<commit_before>from control import Control
from Tkinter import Text, END

class Memo(Control):
    def __init__(self, parent, **kwargs):
        Control.__init__(self, Text(master=parent._frame), **kwargs)
        if kwargs.get('text'):
            self._ctrl.insert(END, kwargs['text'])

    @property
    def text(self):
        return self._ctrl.get(1.0, END)

    @text.setter
    def text(self, value):
        self._ctrl.delete(1.0, END)
        self._ctrl.insert(END, value)
<commit_msg>Bugfix for text property in Memo class<commit_after>from control import Control
from Tkinter import Text, END

class Memo(Control):
    def __init__(self, parent, **kwargs):
        Control.__init__(self, Text(master=parent._frame), **kwargs)
        if kwargs.get('text'):
            self._ctrl.insert(END, kwargs['text'])

    @property
    def text(self):
        return self._ctrl.get(1.0, END)

    @text.setter
    def text(self, value):
        value = str(value)
        self._ctrl.delete(1.0, END)
        self._ctrl.insert(END, value)

{'fraction_non_alphanumeric': 0.13173076923076923, 'fraction_numerical': 0.007692307692307693, 'mean_word_length': 2.8843283582089554, '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': '2023488', 'n_tokens_mistral': 328, 'n_tokens_neox': 326, 'n_words': 80}