<commit_before>def is_visible(self, log=True):
    """
    Return True if page object is visible, False otherwise.

    :param bool log: whether to log or not (default is True)
    :returns: whether page object is visible
    :rtype: bool
    """
    if log:
        self.logger.info('determining whether page object {} is visible'.format(self._log_id_short))
    self.logger.debug('determining whether page object is visible; {}'.format(self._log_id_long))
    visible = self.webelement.is_displayed()
    neg_str = '' if visible else ' not'
    if log:
        self.logger.info('page object {} is{} visible'.format(self._log_id_short, neg_str))
    self.logger.debug('page object is{} visible; {}'.format(neg_str, self._log_id_long))
    return visible
<commit_msg>renamed is_visible command to is_displayed<commit_after>def is_displayed(self, log=True):
    """
    Return True if page object is visible, False otherwise.

    :param bool log: whether to log or not (default is True)
    :returns: whether page object is visible
    :rtype: bool
    """
    if log:
        self.logger.info('determining whether page object {} is visible'.format(self._log_id_short))
    self.logger.debug('determining whether page object is visible; {}'.format(self._log_id_long))
    visible = self.webelement.is_displayed()
    neg_str = '' if visible else ' not'
    if log:
        self.logger.info('page object {} is{} visible'.format(self._log_id_short, neg_str))
    self.logger.debug('page object is{} visible; {}'.format(neg_str, self._log_id_long))
    return visible


is_visible = is_displayed

{'fraction_non_alphanumeric': 0.11613308223477715, 'fraction_numerical': 0.0, 'mean_word_length': 3.7159763313609466, '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': '505884', 'n_tokens_mistral': 487, 'n_tokens_neox': 479, 'n_words': 142}