be4ed4c8633b5f10e2b87402840472fc70052160,pynets/netstats.py,,modularity_louvain_dir,#Any#Any#Any#Any#,759

Before Change


            it += 1
            if it > 1000:
                print("Modularity Infinite Loop Style")
                sys.exit(0)
            flag = False

            // loop over nodes in random order
            for u in np.random.permutation(n):

After Change


        while flag:
            it += 1
            if it > 1000:
                raise ValueError("Modularity Infinite Loop Style")
            flag = False

            // loop over nodes in random order
            for u in np.random.permutation(n):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: dPys/PyNets
Commit Name: be4ed4c8633b5f10e2b87402840472fc70052160
Time: 2018-01-02
Author: dpisner@utexas.edu
File Name: pynets/netstats.py
Class Name:
Method Name: modularity_louvain_dir


Project Name: lingpy/lingpy
Commit Name: 1b9f1cf3d8d050cb0378b845da0e206960e3a444
Time: 2013-11-01
Author: bambooforest@gmail.com
File Name: lingpy/sequence/orthography.py
Class Name: OrthographyRulesParser
Method Name: __init__


Project Name: dPys/PyNets
Commit Name: be4ed4c8633b5f10e2b87402840472fc70052160
Time: 2018-01-02
Author: dpisner@utexas.edu
File Name: pynets/netstats.py
Class Name:
Method Name: core_periphery_dir