3aa4d13e15bea9a6bca68a4261b50c433400eb6e,torchtext/data/example.py,Example,fromCSV,#Any#Any#Any#,34

Before Change



    @classmethod
    def fromCSV(cls, data, fields):
        if data[-1] == "\n":
            data = data[:-1]
        return cls.fromlist(list(csv.reader([data]))[0], fields)

    @classmethod
    def fromlist(cls, data, fields):

After Change


        // If Python 2, decode back to unicode (the original input format).
        if six.PY2:
            for line in parsed_csv_lines:
                parsed_csv_line = [six.text_type(col, "utf-8") for col in line]
                break
        else:
            parsed_csv_line = list(parsed_csv_lines)[0]
        return cls.fromlist(parsed_csv_line, fields)

    @classmethod
    def fromlist(cls, data, fields):
        ex = cls()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


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: hyperdashio/hyperdash-sdk-py
Commit Name: 7b66de477a8bce57f2ee138b4dd1b26a3f33474c
Time: 2017-07-02
Author: richardartoul@gmail.com
File Name: hyperdash/constants.py
Class Name:
Method Name: get_base_url


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