42dcbde0e602cba7adb911a2072df3887afd61f4,hicexplorer/utilities.py,,exp_obs_matrix_lieberman,#Any#Any#Any#,215

Before Change


            else:
                pSubmatrix.data[i] = pSubmatrix.data[i] / expected_interactions_in_distance_[distance[i]]
        except Exception:
            log.debug("pSubmatrix.data[i]: {}".format(pSubmatrix.data[i]))
            log.debug("distance[i]: {}".format(distance[i]))
            log.debug("expected_interactions_in_distance_[distance[i]]: {} ".format(expected_interactions_in_distance_[distance[i]]))
            exit(1)

    return pSubmatrix

After Change


    // log.info("expected_interactions_in_distance_[distance[0]]: {}".format(type(expected_interactions_in_distance_[distance[0]])))
    
    if len(pSubmatrix.data) > 0:
        data_type = type(pSubmatrix.data[0])
        // from copy import deepcopy 
        // data = deepcopy(pSubmatrix.data)
        
        expected = expected_interactions_in_distance_[distance]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: deeptools/HiCExplorer
Commit Name: 42dcbde0e602cba7adb911a2072df3887afd61f4
Time: 2018-03-03
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/utilities.py
Class Name:
Method Name: exp_obs_matrix_lieberman


Project Name: deeptools/HiCExplorer
Commit Name: 42dcbde0e602cba7adb911a2072df3887afd61f4
Time: 2018-03-03
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/utilities.py
Class Name:
Method Name: exp_obs_matrix_lieberman


Project Name: brian-team/brian2
Commit Name: 46148755bbb68fb8d78769f6c3682e6cf4a21867
Time: 2016-01-28
Author: marcel.stimberg@inserm.fr
File Name: brian2/stateupdaters/base.py
Class Name: StateUpdateMethod
Method Name: apply_stateupdater


Project Name: OpenMined/PySyft
Commit Name: 5c66e3d20241bdcb2d885c683dc721ca884eaf37
Time: 2020-11-10
Author: me@madhavajay.com
File Name: src/syft/util.py
Class Name:
Method Name: obj2pointer_type