dbf697c8c23cbe8ec96220b219898855caea0fe8,kraken/repo.py,,get_description,#Any#,58

Before Change


        components = el["path"].split("/")
        if len(components) > 2 and components[1] == model_id and components[2] == "DESCRIPTION":
            logger.info("Retrieving description for {}".format(components[1]))
            raw = base64.b64decode(requests.get(el["url"]).json()["content"])
            return defaultdict(str, json.loads(raw))


def get_listing(callback):

After Change


        components = el["path"].split("/")
        if len(components) > 2 and components[1] == model_id and components[2] == "DESCRIPTION":
            logger.info("Retrieving description for {}".format(components[1]))
            raw = base64.b64decode(requests.get(el["url"]).json()["content"]).decode("utf-8")
            return defaultdict(str, json.loads(raw))


def get_listing(callback):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: mittagessen/kraken
Commit Name: dbf697c8c23cbe8ec96220b219898855caea0fe8
Time: 2015-09-22
Author: mittagessen@l.unchti.me
File Name: kraken/repo.py
Class Name:
Method Name: get_description


Project Name: mittagessen/kraken
Commit Name: dbf697c8c23cbe8ec96220b219898855caea0fe8
Time: 2015-09-22
Author: mittagessen@l.unchti.me
File Name: kraken/repo.py
Class Name:
Method Name: get_model


Project Name: mittagessen/kraken
Commit Name: dbf697c8c23cbe8ec96220b219898855caea0fe8
Time: 2015-09-22
Author: mittagessen@l.unchti.me
File Name: kraken/repo.py
Class Name:
Method Name: get_listing