

def bodycopy(url):
    html = url
    if checkurl(url):
        html = gethtml(pattern)
        if (not html):
            return None
    pattern = '<\\s*body\\s*.*?>(?P<capture>.*)<\\s*/body\\s*>'
    pat = re.compile(pattern, (re.IGNORECASE | re.DOTALL))
    bodymat = pat.search(html)
    if bodymat:
        return bodymat.group('capture')
    else:
        return None

dataset/ETHPy150Open miklevin/pipulate/common.py bodycopy/VarMisuse@26/32 `url`->`pattern`