e8a8edec508fcf886d5c6329ff0729b1cff845e8,hicexplorer/utilities.py,,expected_interactions_norm,#Any#Any#Any#,239
 
Before Change
    count_times_i = np.arange(float(len(expected_interactions)))
    pChromosome_count = np.int(pChromosome_count)
    pLength_chromosome = np.int(pLength_chromosome)
    count_times_i *= pChromosome_count
    count_times_i -= pLength_chromosome
    count_times_i *= np.int(-1)
    count_times_i *= np.sqrt(count_times_i)
    expected_interactions /= count_times_i
    log.debug("exp_obs_matrix_lieberman {}".format(expected_interactions))
    return expected_interactions
After Change
    row, col = pSubmatrix.nonzero()
    distance = np.absolute(row - col)
    occurences = np.zeros(pSubmatrix.shape[0])
    for i, distance_ in enumerate(distance):
        expected_interactions[distance_] += pSubmatrix.data[i]
        occurences[distance_] += 1
    expected_interactions /= occurences
    return expected_interactions

In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
 Project Name: deeptools/HiCExplorer
 Commit Name: e8a8edec508fcf886d5c6329ff0729b1cff845e8
 Time: 2018-09-04
 Author: wolffj@informatik.uni-freiburg.de
 File Name: hicexplorer/utilities.py
 Class Name: 
 Method Name: expected_interactions_norm
 Project Name: scikit-image/scikit-image
 Commit Name: dd17b42f452bc156f55e3400f8ebc84d58761e65
 Time: 2019-12-30
 Author: gregory.lee@cchmc.org
 File Name: skimage/filters/_window.py
 Class Name: 
 Method Name: window
 Project Name: freelunchtheorem/Conditional_Density_Estimation
 Commit Name: da42c137d164ab56a1f1919c8f0ee21e6172f120
 Time: 2018-03-20
 Author: jonas.rothfuss@gmx.de
 File Name: cde/evaluation/GoodnessOfFit.py
 Class Name: GoodnessOfFit
 Method Name: hellinger_distance_monte_carlo