f5fc911e58ba9f1ecbaf70b1aa7e0702b8ba22eb,examples/language_model.py,,,#,15
Before Change
import random
random.seed(rseed)
import numpy as np
np.random.seed(rseed)
// We shall wrap all these modules
from texar.data import qMonoTextData
from texar.modules import ConstantConnector
After Change
data_hparams = {
"num_epochs": 10,
"seed": 123,
"dataset": {
"files": "data/sent.txt",
"vocab_file": "data/vocab.txt"
}
}
def main(_):
pass
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: asyml/texar
Commit Name: f5fc911e58ba9f1ecbaf70b1aa7e0702b8ba22eb
Time: 2018-03-21
Author: zhitinghu@gmail.com
File Name: examples/language_model.py
Class Name:
Method Name:
Project Name: Qiskit/qiskit-aqua
Commit Name: 81fee3c378ba7c252a72af16860e902f7fa7b06d
Time: 2019-04-04
Author: woodsp@us.ibm.com
File Name: test/test_hhl.py
Class Name: TestHHL
Method Name: setUp
Project Name: openai/baselines
Commit Name: b875fb7b5e4feb85b9f1f1bf4e78f64c75595664
Time: 2019-02-27
Author: peterzhokhoff@gmail.com
File Name: baselines/common/tests/envs/mnist_env.py
Class Name: MnistEnv
Method Name: __init__