1a7af7ecc7d7196633219312c80d594d7eebb2d0,dino/db/manager/blacklist.py,BlackListManager,add_words,#BlackListManager#Any#,30

Before Change


    def add_words(self, words):
        if words is None or len(words.split()) == 0:
            return
        words = set(words.split("\n"))
        self.env.db.add_words_to_blacklist(words)

    def remove_word(self, word_id):
        self.env.db.remove_word_from_blacklist(word_id)

After Change


    def add_words(self, words):
        if words is None or len(words.split()) == 0:
            return
        words = {a.trim().lower().replace("\r", "") for a in words.split("\n")}
        self.env.db.add_words_to_blacklist(words)

    def remove_word(self, word_id):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: thenetcircle/dino
Commit Name: 1a7af7ecc7d7196633219312c80d594d7eebb2d0
Time: 2017-05-30
Author: oscar.eriks@gmail.com
File Name: dino/db/manager/blacklist.py
Class Name: BlackListManager
Method Name: add_words


Project Name: automl/auto-sklearn
Commit Name: f754f90ed94c7db58f2d6573471b8a7d63828d87
Time: 2020-03-18
Author: feurerm@informatik.uni-freiburg.de
File Name: test/test_automl/test_automl.py
Class Name: AutoMLTest
Method Name: test_delete_non_winning_models


Project Name: theislab/scanpy
Commit Name: 9a98f9c76af76716ca3364f324e17ad9fa650d8e
Time: 2018-03-20
Author: f.alex.wolf@gmx.de
File Name: scanpy/readwrite.py
Class Name:
Method Name: _read