gensim/corpora/mmcorpus.py

Killed 0 out of 4 mutants

Survived

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

Mutant 192

--- gensim/corpora/mmcorpus.py
+++ gensim/corpora/mmcorpus.py
@@ -12,7 +12,7 @@
 from gensim.corpora import IndexedCorpus
 
 
-logger = logging.getLogger(__name__)
+logger = None
 
 
 class MmCorpus(matutils.MmReader, IndexedCorpus):

Mutant 193

--- gensim/corpora/mmcorpus.py
+++ gensim/corpora/mmcorpus.py
@@ -83,7 +83,6 @@
         for doc_id, doc in super(MmCorpus, self).__iter__():
             yield doc  # get rid of doc id, return the sparse vector only
 
-    @staticmethod
     def save_corpus(fname, corpus, id2word=None, progress_cnt=1000, metadata=False):
         """Save a corpus to disk in the sparse coordinate Matrix Market format.
 

Mutant 194

--- gensim/corpora/mmcorpus.py
+++ gensim/corpora/mmcorpus.py
@@ -84,7 +84,7 @@
             yield doc  # get rid of doc id, return the sparse vector only
 
     @staticmethod
-    def save_corpus(fname, corpus, id2word=None, progress_cnt=1000, metadata=False):
+    def save_corpus(fname, corpus, id2word=None, progress_cnt=1001, metadata=False):
         """Save a corpus to disk in the sparse coordinate Matrix Market format.
 
         Parameters

Mutant 195

--- gensim/corpora/mmcorpus.py
+++ gensim/corpora/mmcorpus.py
@@ -84,7 +84,7 @@
             yield doc  # get rid of doc id, return the sparse vector only
 
     @staticmethod
-    def save_corpus(fname, corpus, id2word=None, progress_cnt=1000, metadata=False):
+    def save_corpus(fname, corpus, id2word=None, progress_cnt=1000, metadata=True):
         """Save a corpus to disk in the sparse coordinate Matrix Market format.
 
         Parameters