gensim/corpora/lowcorpus.py

Killed 1 out of 5 mutants

Survived

Survived mutation testing. These mutants show holes in your test suite.

Mutant 207

--- 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 208

--- 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 209

--- 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 211

--- 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)