Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

        def urlize(text):
    for ini, end in ESCAPE_MARKS:
        for url in re.findall("%shttp(.*?)%s" % (ini, end), text):
            url = 'http' + url
            link = '%s%s%s' % (ini, url, url, end)
            url = ini + url + end
            text = text.replace(url, link)
    return text
        


src/c/o/confine-controller-0.10.5/controller/apps/state/admin.py   confine-controller(Download)
        wrap_admin_view, display_timesince, display_timeuntil)
from controller.models.utils import get_help_text
from controller.utils.html import urlize
from controller.utils.time import timesince
from nodes.admin import STATES_COLORS as NODE_STATES_COLORS
def display_metadata(instance):
    style = '<style>code,pre {font-size:1.13em;}</style><p></p>'
    metadata = break_headers(instance.metadata)
    metadata = highlight(metadata, JsonLexer(), HtmlFormatter())
    return mark_safe(style + urlize(metadata))
    data = break_lines(data)
    data = highlight(data, JsonLexer(), HtmlFormatter())
    return mark_safe(style + urlize(data))
display_data.short_description = 'data'