aa50234c0e3854567214a3109188ee9bedc33551,cde/BaseConditionalDensity.py,ConditionalDensity,_conditional_value_at_risk_mc_pdf,#ConditionalDensity#Any#Any#Any#Any#,221
 Before Change 
      p = self.pdf(x_cond_tiled, y_samples).flatten()
      q = exp_f.flatten()
      importance_weights = p / q
      cvar = np.mean(y_samples * importance_weights, axis=0) / alpha 
      CVaRs[i] = cvar
    return CVaRs
After Change 
  def _conditional_value_at_risk_mc_pdf(self, VaRs, x_cond, alpha=0.01, n_samples=10 ** 6):
    assert VaRs.shape[0] == x_cond.shape[0], "same number of x_cond must match the number of values_at_risk provided"
    assert self.ndim_y == 1, "this function only supports only ndim_y = 1" 
    assert x_cond.ndim == 2
    n_samples_int, lower, _ = self._determine_integration_bounds()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances  Project Name: freelunchtheorem/Conditional_Density_Estimation
 Commit Name: aa50234c0e3854567214a3109188ee9bedc33551
 Time: 2019-01-18
 Author: jonas.rothfuss@gmx.de
 File Name: cde/BaseConditionalDensity.py
 Class Name: ConditionalDensity
 Method Name: _conditional_value_at_risk_mc_pdf
 Project Name: scikit-learn/scikit-learn
 Commit Name: 4f496868c6aa7f50db99229847285efbe50040c2
 Time: 2020-08-03
 Author: 34657725+jeremiedbb@users.noreply.github.com
 File Name: sklearn/cluster/tests/test_k_means.py
 Class Name: 
 Method Name: test_n_init
 Project Name: tensorflow/models
 Commit Name: 8da4857396fcedb1abd19a08cd4de40d16c7bc50
 Time: 2020-08-17
 Author: 30733558+plakal@users.noreply.github.com
 File Name: research/audioset/yamnet/yamnet_test.py
 Class Name: YAMNetTest
 Method Name: clip_test
 Project Name: HsinYingLee/DRIT
 Commit Name: 8a04fa2c91f52a9c551849812d450079e667b16a
 Time: 2018-07-28
 Author: hytseng0509@gmail.com
 File Name: src/networks.py
 Class Name: LayerNorm
 Method Name: forward