3492874d5e8b1922fa836e279ff10c6a6c732d5b,app/api/utils.py,ExcelParser,parse_excel_csv_reader,#Any#,345

Before Change


            // Text, labels and metadata columns
            elif len(row) == len(columns) and len(row) >= 2:
                text, label = row[:2]
                meta = json.dumps(dict(zip(columns[2:], row[2:])))
                j = {"text": text, "labels": [label], "meta": meta}
                data.append(j)
            else:

After Change


            // Text, labels and metadata columns
            elif len(row) == len(columns) and len(row) >= 2:
                datum = dict(zip(columns, row))
                text, label = datum.pop("text"), datum.pop("label")
                meta = json.dumps(datum)
                j = {"text": text, "labels": [label], "meta": meta}
                data.append(j)
            else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: chakki-works/doccano
Commit Name: 3492874d5e8b1922fa836e279ff10c6a6c732d5b
Time: 2020-01-13
Author: clewolff@microsoft.com
File Name: app/api/utils.py
Class Name: ExcelParser
Method Name: parse_excel_csv_reader


Project Name: DistrictDataLabs/yellowbrick
Commit Name: b3256666df69e645159c8ef91fb3e4bfd826b8de
Time: 2018-06-05
Author: lwgray@gmail.com
File Name: yellowbrick/classifier/classification_report.py
Class Name: ClassificationReport
Method Name: score


Project Name: metagenome-atlas/atlas
Commit Name: f7c6ffc65d04807ec4078bf6e491c488eb075b8b
Time: 2017-05-17
Author: joe.brown@pnnl.gov
File Name: atlas/blast.py
Class Name:
Method Name: parse_blast_results_with_tree