<commit_before>def wait_for_exist(self, timeout=None):
    """
    Wait for page object to exist in the DOM.

    :param int timeout: number of seconds to wait, if not provided
        :py:obj:`PageObject.DEFAULT_WAIT_TIMEOUT` is used
    """
    if timeout is None:
        timeout = self.DEFAULT_WAIT_TIMEOUT
    self.logger.info('waiting until page contains {}'.format(self._log_id_short))
    self.logger.debug('waiting until page contains page object; {}'.format(self._log_id_long))
    error_msg = 'Element "{}" still not existing after {} seconds'.format(
        self._locator_value, timeout)
    self.wait_until(self.is_existing, func_kwargs=dict(log=False),
        timeout=timeout, error_msg=error_msg)
    self.logger.info('finished waiting until page contains {}'.format(self._log_id_short))
    self.logger.debug('finished waiting until page contains page object; {}'.format(self._log_id_long))
    return self
<commit_msg>wait_for_exist command logging<commit_after>def wait_for_exist(self, timeout=None):
    """
    Wait for page object to exist in the DOM.

    :param int timeout: number of seconds to wait, if not provided
        PageObject.DEFAULT_WAIT_TIMEOUT is used
    """
    if timeout is None:
        timeout = self.DEFAULT_WAIT_TIMEOUT
    self.logger.info('waiting until page contains page object {}'.format(self._log_id_short))
    self.logger.debug('waiting until page contains page object; {}'.format(self._log_id_long))
    error_msg = 'page object still not existing after {} seconds; {}'.format(
        timeout, self._log_id_long)
    self.wait_until(self.is_existing, func_kwargs=dict(log=False),
        timeout=timeout, error_msg=error_msg)
    self.logger.info('finished waiting until page contains page object {}'.format(self._log_id_short))
    self.logger.debug('finished waiting until page contains page object; {}'.format(self._log_id_long))
    return self

{'fraction_non_alphanumeric': 0.10598111227701994, 'fraction_numerical': 0.0, 'mean_word_length': 4.098930481283422, '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': '4108094', 'n_tokens_mistral': 550, 'n_tokens_neox': 550, 'n_words': 154}