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

from webdriver_testing.pages.site_pages import UnisubsPage


class UserMessagesPage(UnisubsPage):
    """
     Search page is the main search page stub.  Watch Page and Search Results page
    """

    _URL = "messages/"
    _MESSAGE = 'li.message p:nth-child(3)'
    _MESSAGE_SUBJECT = 'li.message h3'
    _MESSAGE_FROM = 'li.message p:nth-child(2) a'
    _NO_MESSAGES = 'p.empty'

    #SENT MESSAGES


    def open_messages(self):
        self.open_page(self._url)

    def open_sent_messages(self):
        self.open_page(self._URL+'sent/')

    def message_text(self):
        return self.get_text_by_css(self._MESSAGE)

    def message_subject(self):
        return self.get_text_by_css(self._MESSAGE_SUBJECT)

    def message_from(self):
        return self.get_text_by_css(self._MESSAGE_FROM)

    def no_messages(self):
        return self.get_text_by_css(self._NO_MESSAGES)

<commit_msg>fix typo in test page<commit_after>#!/usr/bin/env python

from webdriver_testing.pages.site_pages import UnisubsPage


class UserMessagesPage(UnisubsPage):
    """
     Search page is the main search page stub.  Watch Page and Search Results page
    """

    _URL = "messages/"
    _MESSAGE = 'li.message p:nth-child(3)'
    _MESSAGE_SUBJECT = 'li.message h3'
    _MESSAGE_FROM = 'li.message p:nth-child(2) a'
    _NO_MESSAGES = 'p.empty'

    #SENT MESSAGES


    def open_messages(self):
        self.open_page(self._URL)

    def open_sent_messages(self):
        self.open_page(self._URL+'sent/')

    def message_text(self):
        return self.get_text_by_css(self._MESSAGE)

    def message_subject(self):
        return self.get_text_by_css(self._MESSAGE_SUBJECT)

    def message_from(self):
        return self.get_text_by_css(self._MESSAGE_FROM)

    def no_messages(self):
        return self.get_text_by_css(self._NO_MESSAGES)


{'fraction_non_alphanumeric': 0.10127931769722814, 'fraction_numerical': 0.0031982942430703624, 'mean_word_length': 3.2951945080091534, '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': '3138268', 'n_tokens_mistral': 666, 'n_tokens_neox': 636, 'n_words': 124}