f8346c9c9fa9d169925ea3b383dc697a9574a9ce,ants/registration/interface.py,,registration,#,16

Before Change


                if len(iwarpfns) == 0:
                    iwarpfns = ""

                alltx = glob.glob(outprefix+"*"+"[0-9]*")
                findinv = np.where([re.search("[0-9]InverseWarp.nii.gz",ff) for ff in alltx])[0]
                findfwd = np.where([re.search("[0-9]Warp.nii.gz", ff) for ff in alltx])[0]
                if len(findinv) > 0:
                    fwdtransforms = list(reversed([ff for idx,ff in enumerate(alltx) if idx !=findinv[0]]))
                    invtransforms = [ff for idx,ff in enumerate(alltx) if idx!=findfwd[0]]
                else:
                    fwdtransforms = list(reversed(alltx))

After Change


                if len(iwarpfns) == 0:
                    iwarpfns = ""

                alltx = sorted(glob.glob(outprefix+"*"+"[0-9]*"))
                findinv = np.where([re.search("[0-9]InverseWarp.nii.gz",ff) for ff in alltx])[0]
                findfwd = np.where([re.search("[0-9]Warp.nii.gz", ff) for ff in alltx])[0]
                if len(findinv) > 0:
                    fwdtransforms = list(reversed([ff for idx,ff in enumerate(alltx) if idx !=findinv[0]]))
                    invtransforms = [ff for idx,ff in enumerate(alltx) if idx!=findfwd[0]]
                else:
                    fwdtransforms = list(reversed(alltx))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: ANTsX/ANTsPy
Commit Name: f8346c9c9fa9d169925ea3b383dc697a9574a9ce
Time: 2018-06-03
Author: ncullen.th@dartmouth.edu
File Name: ants/registration/interface.py
Class Name:
Method Name: registration


Project Name: Esri/raster-functions
Commit Name: 9ea7dce9e05d16037e3bbb98f65c3f20c8de2abf
Time: 2015-03-14
Author: sean.gillies@gmail.com
File Name: scripts/ExtractRasterInfo.py
Class Name:
Method Name:


Project Name: jbms/beancount-import
Commit Name: bea4b479798a01f20169e99c7afd6342c753b4a0
Time: 2020-08-06
Author: dumbpyx@gmail.com
File Name: beancount_import/source/generic_importer_source.py
Class Name: ImporterSource
Method Name: __init__


Project Name: coala/coala-bears
Commit Name: 1748a39c3656db83a818842c9d2c74f019561253
Time: 2016-07-21
Author: zgadi_2007@yahoo.com
File Name: bears/generate_package.py
Class Name:
Method Name: main