c585a9779e5d8ae0b0b148792f8a7f8cecf73532,tools/make_examples.py,,,#,50

Before Change


                     "valid_examples.txt")
flist = open(flist_name, "r")
validated_examples = flist.readlines()
flist.close()

// Parse "//" in lines
validated_examples = [line.split("//", 1)[0] for line in validated_examples]
// Remove leading and trailing white space from example names

After Change


    raise OSError("This must be run from the doc directory")

// Copy the py files; check they are in the examples list and warn if not
with io.open(EG_INDEX_FNAME, "rt", encoding="utf8") as f:
    eg_index_contents = f.read()

// Here I am adding an extra step. The list of examples to be executed need
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: nipy/dipy
Commit Name: c585a9779e5d8ae0b0b148792f8a7f8cecf73532
Time: 2019-02-12
Author: skab12@gmail.com
File Name: tools/make_examples.py
Class Name:
Method Name:


Project Name: google/uis-rnn
Commit Name: 2a072e4e13979a0c99bc34e2ac913fd527047dff
Time: 2018-10-22
Author: zyzhu@zyzhu.svl.corp.google.com
File Name: model/utils.py
Class Name:
Method Name: output_result


Project Name: THUNLP-MT/THUMT
Commit Name: 6880ee0c2c46573cfc77444e2970aa8695140076
Time: 2019-02-14
Author: playinf@stu.xmu.edu.cn
File Name: thumt/scripts/shuffle_corpus.py
Class Name:
Method Name: main