<commit_before>"""
Library for the robot based system test tool of the OpenDaylight project.
Authors: <NAME>@<EMAIL>, <NAME>ang@IBM
Updated: 2013-11-14
"""
import collections

# Global variables
DEFAULT_CONTROLLER_IP = '127.0.0.1'
#DEFAULT_CONTROLLER_IP = '172.16.31.10' #just for temp test
DEFAULT_PORT = '8080'
DEFAULT_PREFIX = 'http://' + DEFAULT_CONTROLLER_IP + ':' + DEFAULT_PORT
DEFAULT_CONTAINER = 'default'
DEFAULT_USER = 'admin'
DEFAULT_PWD = '<PASSWORD>'
MODULES_DIR = 'modules'
TIMEOUTS = 2

'''
Common constants and functions for the robot framework.
'''

def collection_should_contain(collection, *members):
    """
    Fail if not every members is in the collection.
    """
    if not isinstance(collection, collections.Iterable):
        return False
    for m in members:
        if m not in collection:
            return False
    else:
        return True

def combine_strings(strings):
    """
    Combines the given `strings` together and returns the result.
    The given strings are not altered by this keyword.
    """
    result = ''
    for s in strings:
        if isinstance(s,str):
            result += s
    if result == '':
        return None
    else:
        return result

if __name__ == '__main__':
    pass<commit_msg>fix input parameter '*' missing, and compatible with unicode string.<commit_after>"""
Library for the robot based system test tool of the OpenDaylight project.
Authors: <NAME> <EMAIL>, Denghui Huang@<EMAIL>
Updated: 2013-11-14
"""
import collections

# Global variables
DEFAULT_CONTROLLER_IP = '127.0.0.1'
#DEFAULT_CONTROLLER_IP = '172.16.31.10' #just for temp test
DEFAULT_PORT = '8080'
DEFAULT_PREFIX = 'http://' + DEFAULT_CONTROLLER_IP + ':' + DEFAULT_PORT
DEFAULT_CONTAINER = 'default'
DEFAULT_USER = 'admin'
DEFAULT_PWD = '<PASSWORD>'
MODULES_DIR = 'modules'
TIMEOUTS = 2

'''
Common constants and functions for the robot framework.
'''

def collection_should_contain(collection, *members):
    """
    Fail if not every members is in the collection.
    """
    if not isinstance(collection, collections.Iterable):
        return False
    for m in members:
        if m not in collection:
            return False
    else:
        return True

def combine_strings(*strings):
    """
    Combines the given `strings` together and returns the result.
    The given strings are not altered by this keyword.
    """
    result = ''
    for s in strings:
        if isinstance(s,str) or isinstance(s,unicode):
            result += s
    if result == '':
        return None
    else:
        return result

if __name__ == '__main__':
    pass
{'fraction_non_alphanumeric': 0.10218978102189781, 'fraction_numerical': 0.021513638109873223, 'mean_word_length': 3.1664, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '6158150', 'n_tokens_mistral': 809, 'n_tokens_neox': 770, 'n_words': 263}