58897b84bffe8df29c05229bcafe74618a12db19,torchtext/datasets/trec.py,TREC,__init__,#TREC#Any#Any#Any#Any#,15

Before Change



        for line in open(os.path.expanduser(path), "rb"):
            line = UnicodeDammit(line).unicode_markup.split()
            label, text = line[0], " ".join(line[1:])
            examples.append(data.Example.fromlist([text, label], fields))

        super(TREC, self).__init__(examples, fields, **kwargs)

After Change



        for line in open(os.path.expanduser(path), "rb"):
            // there is one non-ASCII byte: sisterBADBYTEcity; replaced with space
            label, _, text = line.replace(b"\xf0", b" ").decode().partition(" ")
            examples.append(data.Example.fromlist([text, label], fields))

        super(TREC, self).__init__(examples, fields, **kwargs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: pytorch/text
Commit Name: 58897b84bffe8df29c05229bcafe74618a12db19
Time: 2017-08-10
Author: Bryan.McCann.is@gmail.com
File Name: torchtext/datasets/trec.py
Class Name: TREC
Method Name: __init__


Project Name: PIQuIL/QuCumber
Commit Name: 268e3e3fb41907f439cf06d3ffb391d77f049078
Time: 2018-07-26
Author: gtorlai@uwaterloo.ca
File Name: qucumber/quantum_reconstruction.py
Class Name: QuantumReconstruction
Method Name: compute_batch_gradients


Project Name: ntucllab/libact
Commit Name: c9b56d6f5811d35bb72fb4928faf292a149a4318
Time: 2015-12-29
Author: yangarbiter@gmail.com
File Name: libact/query_strategies/uncertainty_sampling.py
Class Name: UncertaintySampling
Method Name: make_query


Project Name: sassoftware/python-dlpy
Commit Name: f7c67cc31ab44f6227a5856ad66a446adf07faa6
Time: 2017-07-07
Author: leo.liu@sas.com
File Name: dl_api/model.py
Class Name: Model
Method Name: load