4ce8b871ef249dfacc1b389108842a0c2c0805b7,intermediate_source/char_rnn_generation_tutorial.py,,,#,102

Before Change


category_lines = {}
all_categories = []
for filename in findFiles("data/names/*.txt"):
    category = filename.split("/")[-1].split(".")[0]
    all_categories.append(category)
    lines = readLines(filename)
    category_lines[category] = lines

After Change


category_lines = {}
all_categories = []
for filename in findFiles("data/names/*.txt"):
    category = os.path.splitext(os.path.basename(filename))[0]
    all_categories.append(category)
    lines = readLines(filename)
    category_lines[category] = lines
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: pytorch/tutorials
Commit Name: 4ce8b871ef249dfacc1b389108842a0c2c0805b7
Time: 2018-04-30
Author: jxcode.tw@gmail.com
File Name: intermediate_source/char_rnn_generation_tutorial.py
Class Name:
Method Name:


Project Name: scipy/scipy
Commit Name: 92e47b0d02d4d13f6ec2aa04cdbc2d2e9063a7b9
Time: 2018-05-31
Author: insertinterestingnamehere@gmail.com
File Name: scipy/linalg/_cython_signature_generator.py
Class Name:
Method Name: sigs_from_dir


Project Name: pytorch/tutorials
Commit Name: 4ce8b871ef249dfacc1b389108842a0c2c0805b7
Time: 2018-04-30
Author: jxcode.tw@gmail.com
File Name: intermediate_source/char_rnn_classification_tutorial.py
Class Name:
Method Name: