d69aa1862f77db07d8aee64303fa6576701850af,scanpy/preprocessing/_simple.py,,regress_out,#Any#Any#Any#Any#,572

Before Change


    if n_jobs > 1 and n_chunks > 1:
        import multiprocessing

        pool = multiprocessing.Pool(n_jobs)
        res = pool.map_async(_regress_out_chunk, tasks).get(9999999)
        pool.close()

    else:

After Change


    from joblib import Parallel, delayed

    // TODO: figure out how to test that this doesn"t oversubscribe resources
    res = Parallel(n_jobs=n_jobs)(delayed(_regress_out_chunk)(task) for task in tasks)

    // res is a list of vectors (each corresponding to a regressed gene column).
    // The transpose is needed to get the matrix in the shape needed
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: theislab/scanpy
Commit Name: d69aa1862f77db07d8aee64303fa6576701850af
Time: 2021-03-03
Author: ivirshup@gmail.com
File Name: scanpy/preprocessing/_simple.py
Class Name:
Method Name: regress_out


Project Name: aertslab/pySCENIC
Commit Name: 5b824f9124e8690ce35118cb2ab8ecfe61fad8cc
Time: 2018-02-06
Author: vandesande.bram@gmail.com
File Name: src/pyscenic/regulome.py
Class Name:
Method Name: derive_regulomes


Project Name: EpistasisLab/tpot
Commit Name: 831f5ce7aad0b8172f965c519d0835465ecc7a12
Time: 2017-03-31
Author: weixuanf@upenn.edu
File Name: tpot/base.py
Class Name: TPOTBase
Method Name: _evaluate_individuals