92ef803f985011888701f9893598fc087194af38,resources/WikiExtractor.py,,sharp_invoke,#Any#Any#Any#,1246

Before Change


                logging.warn("Template with empty title")
            pair = next((x for x in frame if x[0] == templateTitle), None)
            if pair:
                params = pair[1]
                // extract positional args
                params = [params.get(str(i+1)) for i in range(len(params))]
                return funct(*params)
            else:
                return funct()
    return ""

After Change


    if functions:
        funct = functions.get(function)
        if funct:
            return text_type(funct(args))
    return ""


parserFunctions = {
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: sobhe/hazm
Commit Name: 92ef803f985011888701f9893598fc087194af38
Time: 2017-08-15
Author: abolfazl.mahdizade@gmail.com
File Name: resources/WikiExtractor.py
Class Name:
Method Name: sharp_invoke


Project Name: pytorch/text
Commit Name: 3aa4d13e15bea9a6bca68a4261b50c433400eb6e
Time: 2017-09-07
Author: nelson-liu@users.noreply.github.com
File Name: torchtext/data/example.py
Class Name: Example
Method Name: fromCSV


Project Name: pytorch/text
Commit Name: 7c3b1d311bb6e1dcfb5e0929a9fc93b22af2acf4
Time: 2017-09-07
Author: nfliu@cs.washington.edu
File Name: torchtext/data/example.py
Class Name: Example
Method Name: fromCSV