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

Before Change


// the time.
flist_name = op.join(op.dirname(os.getcwd()), "examples",
                     "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
// also to be added in the following file (valid_examples.txt). This helps
// with debugging the examples and the documentation only a few examples at
// the time.
flist_name = op.join(op.dirname(os.getcwd()), "examples",
                     "valid_examples.txt")

with io.open(flist_name, "r", encoding="utf8") as flist:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

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: home-assistant/home-assistant
Commit Name: 8bba0b88fd9329b44a53fcf43413e78ff2a55a30
Time: 2015-09-14
Author: jon@jonmaddox.com
File Name: homeassistant/__main__.py
Class Name:
Method Name: install_osx


Project Name: prody/ProDy
Commit Name: 7ce77f195f86744f06b9544c2b124c86d13df608
Time: 2018-04-18
Author: jamesmkrieger@gmail.com
File Name: prody/database/pfam.py
Class Name:
Method Name: parsePfamPDBs