<commit_before>from __future__ import print_function
from six import text_type as unicode

import sys
import time
try:
    import exceptions
except ImportError: # Python 3
    import builtins as exceptions

from robot import utils

from objecttoreturn import ObjectToReturn


class ExampleLibrary:

    def print_(self, msg, stream='stdout'):
        """Print given message to selected stream (stdout or stderr)"""
        out_stream = getattr(sys, stream)
        out_stream.write(unicode(msg))

    def print_n_times(self, msg, count, delay=0):
        """Print given message n times"""
        for i in range(int(count)):
            print(msg)
            self._sleep(delay)

    def print_many(self, *msgs):
        """Print given messages"""
        for msg in msgs:<commit_msg>[python3] atest: ExampleLibrary.print_: write unic(msg)<commit_after>from __future__ import print_function
from six import PY2

import sys
import time
if PY2:
    import exceptions
else:
    import builtins as exceptions

from robot import utils

from objecttoreturn import ObjectToReturn


class ExampleLibrary:

    def print_(self, msg, stream='stdout'):
        """Print given message to selected stream (stdout or stderr)"""
        out_stream = getattr(sys, stream)
        out_stream.write(utils.unic(msg))

    def print_n_times(self, msg, count, delay=0):
        """Print given message n times"""
        for i in range(int(count)):
            print(msg)
            self._sleep(delay)

    def print_many(self, *msgs):
        """Print given messages"""
        for msg in msgs:
{'fraction_non_alphanumeric': 0.08958068614993647, 'fraction_numerical': 0.0038119440914866584, 'mean_word_length': 3.1447368421052633, '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': '3392155', 'n_tokens_mistral': 452, 'n_tokens_neox': 440, 'n_words': 155}