def groupHeader(groupName):
    groupLen = len(groupName)
    numDashes = (longLineLen - groupLen)  / 2
    return '\n' + '-' * numDashes + ' ' + groupName + ' ' + '-' * numDashes
dataset/ETHPy150Open rackerlabs/python-cloudservers/com/rackspace/cloud/servers/api/client/tests/cloud_servers_console.py/groupHeader/original