781363ed1e4397645494d07ce45f3e2ad0d766d6,mozregression/network.py,,url_links,#Any#Any#Any#,64

Before Change



    // do not return a generator but an array, so we can store it for later use
    return [link.get("href")
            for link in soup.findAll("a")
            if match(link.get("href"))]

After Change


        href = link.get("href")
        // return "relative" part of the url only
        if href.startswith("/"):
            if href.endswith("/"):
                href = href.strip("/").rsplit("/", 1)[-1] + "/"
            else:
                href = href.rsplit("/", 1)[-1]
        if match(href):
            result.append(href)
    return result
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: mozilla/mozregression
Commit Name: 781363ed1e4397645494d07ce45f3e2ad0d766d6
Time: 2015-10-21
Author: j.parkouss@gmail.com
File Name: mozregression/network.py
Class Name:
Method Name: url_links


Project Name: RasaHQ/rasa
Commit Name: 1c0642d53f5733e544da770501ec0e1bbf2b5413
Time: 2020-10-28
Author: alwxndr@gmail.com
File Name: rasa/shared/nlu/training_data/formats/wit.py
Class Name: WitReader
Method Name: read_from_json


Project Name: vatlab/SoS
Commit Name: 4d21b9a86a78457261b73af6212486714e9f5194
Time: 2019-08-04
Author: ben.bog@gmail.com
File Name: src/sos/workers.py
Class Name: WorkerManager
Method Name: __init__