08233b4ed9bdc1fa2016de0d0e9856c00b28c282,pynets/fmri/estimation.py,,extract_ts_coords,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,390

Before Change


                print("Warning: NaN\"s detected in confound regressor file. Filling these with mean values, but the "
                      "regressor file should be checked manually.")
                confounds_nonan = confounds.apply(lambda x: x.fillna(x.mean()), axis=0)
                conf_corr = dir_path + "/confounds_mean_corrected_" + str(random.randint(1, 1000)) + ".tsv"
                confounds_nonan.to_csv(conf_corr, sep="\t")
                ts_within_nodes = spheres_masker.fit_transform(func_file, confounds=conf_corr)
            else:

After Change


            if confounds.isnull().values.any():
                import uuid
                from time import strftime
                run_uuid = "%s_%s" % (strftime("%Y%m%d-%H%M%S"), uuid.uuid4())
                print("Warning: NaN\"s detected in confound regressor file. Filling these with mean values, but the "
                      "regressor file should be checked manually.")
                confounds_nonan = confounds.apply(lambda x: x.fillna(x.mean()), axis=0)
                conf_corr = "/tmp/confounds_mean_corrected_" + str(run_uuid) + ".tsv"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: dPys/PyNets
Commit Name: 08233b4ed9bdc1fa2016de0d0e9856c00b28c282
Time: 2019-10-02
Author: dpisner@utexas.edu
File Name: pynets/fmri/estimation.py
Class Name:
Method Name: extract_ts_coords


Project Name: dPys/PyNets
Commit Name: 08233b4ed9bdc1fa2016de0d0e9856c00b28c282
Time: 2019-10-02
Author: dpisner@utexas.edu
File Name: pynets/fmri/clustools.py
Class Name:
Method Name: nil_parcellate


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 442efa40a52831655aa025cd60a5c6bc064c6ca2
Time: 2020-04-08
Author: tmatsuo@google.com
File Name: iam/api-client/access_test.py
Class Name:
Method Name: test_member