gensim/corpora/lowcorpus.py
Killed 1 out of 5 mutantsSurvived
Survived mutation testing. These mutants show holes in your test suite.Mutant 37
--- gensim/corpora/lowcorpus.py
+++ gensim/corpora/lowcorpus.py
@@ -17,7 +17,7 @@
from six.moves import zip, range
-logger = logging.getLogger(__name__)
+logger = None
def split_on_space(s):
Mutant 38
--- gensim/corpora/lowcorpus.py
+++ gensim/corpora/lowcorpus.py
@@ -196,7 +196,6 @@
if lineno > 0: # ignore the first line = number of documents
yield self.line2doc(line)
- @staticmethod
def save_corpus(fname, corpus, id2word=None, metadata=False):
"""Save a corpus in the GibbsLda++ format.
Mutant 39
--- gensim/corpora/lowcorpus.py
+++ gensim/corpora/lowcorpus.py
@@ -197,7 +197,7 @@
yield self.line2doc(line)
@staticmethod
- def save_corpus(fname, corpus, id2word=None, metadata=False):
+ def save_corpus(fname, corpus, id2word=None, metadata=True):
"""Save a corpus in the GibbsLda++ format.
Warnings
Mutant 41
--- gensim/corpora/lowcorpus.py
+++ gensim/corpora/lowcorpus.py
@@ -286,7 +286,6 @@
"""Get mapping between words and their ids."""
return self._id2word
- @id2word.setter
def id2word(self, val):
self._id2word = val
self.word2id = utils.revdict(val)