@staticmethod
    def strip_url(url):
        # TODO: remove protocol-stripping on next Bokeh release
        stripped_url = url.replace('https://', '').replace('http://', '').replace(':', '_').replace('-', '_')

        if len(stripped_url) <= URL_CHAR_WIDTH:
            return stripped_url
        else:
            return stripped_url[:int(URL_CHAR_WIDTH/2)] + '...' + stripped_url[-int(URL_CHAR_WIDTH/2)-3:]
Inverts a matrix stored as a list of lists.
dataset/ETHPy150Open memex-explorer/memex-explorer/source/apps/crawl_space/viz/stream.py/NutchUrlTrails.strip_url--crossover with--dataset/ETHPy150Open rlpy/rlpy/rlpy/Domains/PacmanPackage/util.py/arrayInvert