c0a5504ce6ff8a850eabd5a33488ccf535a55b4f,sumy/summarizers/edmundson_key.py,EdmundsonKeyMethod,_compute_significant_words,#EdmundsonKeyMethod#Any#,21

Before Change



        // return only words greater than weight
        max_word_frequency = max(word_frequencies)
        return tuple(word for word, frequency in word_counts.items()
            if frequency/max_word_frequency > weight)

    def _is_bonus_word(self, word):
        return word in self._bonus_words

After Change



    def _compute_significant_words(self, document, weight):
        // keep only stems contained in bonus words
        words = map(self.stem_word, document.words)
        words = filter(self._is_bonus_word, words)

        // compute frequencies of bonus words in document
        word_counts = Counter(words)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: miso-belica/sumy
Commit Name: c0a5504ce6ff8a850eabd5a33488ccf535a55b4f
Time: 2013-05-21
Author: miso.belica@gmail.com
File Name: sumy/summarizers/edmundson_key.py
Class Name: EdmundsonKeyMethod
Method Name: _compute_significant_words


Project Name: onnx/onnx-tensorflow
Commit Name: bab79f5264c139829c365b0e4924210c67088e43
Time: 2017-10-20
Author: tian.jin1@ibm.com
File Name: onnxtf/backend.py
Class Name: TensorflowBackend
Method Name: run_node


Project Name: pytorch/pytorch
Commit Name: 812339ca3d9b68b5f87f9c391aa918f068d5b004
Time: 2021-03-01
Author: benjamin.lefaudeux@gmail.com
File Name: torch/distributed/optim/zero_redundancy_optimizer.py
Class Name: ZeroRedundancyOptimizer
Method Name: __init__