1dc9c755474e54e4998999c7b6a1d45bb38ca85f,tensorflow_datasets/text/lm1b.py,Lm1b,_generate_examples,#Lm1b#Any#,172
Before Change
logging.info("generating examples from = %s", filepath)
with tf.io.gfile.GFile(filepath) as f:
for line in f:
yield {
"text": line.strip(),
}
After Change
logging.info("generating examples from = %s", filepath)
with tf.io.gfile.GFile(filepath) as f:
for idx, line in enumerate(f):
records = {
"text": line.strip(),
}
yield idx, records
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 7
Instances
Project Name: tensorflow/datasets
Commit Name: 1dc9c755474e54e4998999c7b6a1d45bb38ca85f
Time: 2019-08-08
Author: rahmetsaritekin@gmail.com
File Name: tensorflow_datasets/text/lm1b.py
Class Name: Lm1b
Method Name: _generate_examples
Project Name: tensorflow/datasets
Commit Name: 1dc9c755474e54e4998999c7b6a1d45bb38ca85f
Time: 2019-08-08
Author: rahmetsaritekin@gmail.com
File Name: tensorflow_datasets/text/xnli.py
Class Name: Xnli
Method Name: _generate_examples
Project Name: tensorflow/datasets
Commit Name: 1dc9c755474e54e4998999c7b6a1d45bb38ca85f
Time: 2019-08-08
Author: rahmetsaritekin@gmail.com
File Name: tensorflow_datasets/text/snli.py
Class Name: Snli
Method Name: _generate_examples
Project Name: tensorflow/datasets
Commit Name: 1dc9c755474e54e4998999c7b6a1d45bb38ca85f
Time: 2019-08-08
Author: rahmetsaritekin@gmail.com
File Name: tensorflow_datasets/text/trivia_qa.py
Class Name: TriviaQA
Method Name: _generate_examples
Project Name: tensorflow/datasets
Commit Name: 71b5134a112f0d943fef5c7ffec5e030bb7168f3
Time: 2019-08-07
Author: rahmetsaritekin@gmail.com
File Name: tensorflow_datasets/translate/ted_multi.py
Class Name: TedMultiTranslate
Method Name: _generate_examples
Project Name: tensorflow/datasets
Commit Name: dde3dc3195209ac20ba7f104d8a36a052bb10dcb
Time: 2019-08-07
Author: 31502077+ChanchalKumarMaji@users.noreply.github.com
File Name: tensorflow_datasets/structured/titanic.py
Class Name: Titanic
Method Name: _generate_examples