<commit_before>def wait_for_interactive(self, timeout=None):
    """
    Wait for page object to be interactive.

    :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 object {} is interactive'
        ).format(self._log_id_short))
    self.logger.debug(('waiting until page object is interactive; {}'
        ).format(self._log_id_long))

    error_msg = ('page object still not interactive after {} seconds; {}'
        ).format(timeout, self._log_id_long)

    self.wait_until(self.is_interactive, func_kwargs=dict(log=False),
        timeout=timeout, error_msg=error_msg)

    self.logger.info(('finished waiting until page object {} is interactive'
        ).format(self._log_id_short))
    self.logger.info(('finished waiting until page object is interactive; {}'
        ).format(self._log_id_long))

    return self
<commit_msg>renamed wait_for_interactive command to wait_until_interactive<commit_after>def wait_until_interactive(self, timeout=None):
    """
    Wait until page object is interactive.

    :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 object {} is interactive'
        ).format(self._log_id_short))
    self.logger.debug(('waiting until page object is interactive; {}'
        ).format(self._log_id_long))

    error_msg = ('page object still not interactive after {} seconds; {}'
        ).format(timeout, self._log_id_long)

    self.wait_until(self.is_interactive, func_kwargs=dict(log=False),
        timeout=timeout, error_msg=error_msg)

    self.logger.info(('finished waiting until page object {} is interactive'
        ).format(self._log_id_short))
    self.logger.info(('finished waiting until page object is interactive; {}'
        ).format(self._log_id_long))

    return self


wait_for_interactive = wait_until_interactive

{'fraction_non_alphanumeric': 0.10187793427230046, 'fraction_numerical': 0.0, 'mean_word_length': 3.6025917926565874, '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': '5442046', 'n_tokens_mistral': 617, 'n_tokens_neox': 607, 'n_words': 157}