2ecd779928c61c674c1a65da115d038820eb480b,src/gensim/matutils.py,MmWriter,writeHeaders,#MmWriter#Any#Any#Any#,121

Before Change


        logging.info("saving sparse %sx%s matrix with %i non-zero entries to %s" %
                     (numDocs, numTerms, numNnz, self.fname))
        self.fout.write("%%matrixmarket matrix coordinate real general\n")
        self.fout.write("%i %i %i\n" % (numDocs, numTerms, numNnz))
        self.lastDocNo = -1
        self.headersWritten = True
    

After Change


    def writeHeaders(self, numDocs, numTerms, numNnz):
        self.fout.write(MmWriter.HEADER_LINE)
        
        if numNnz < 0:
            // we don"t know the matrix shape/density yet, so only log a general line
            logging.info("saving sparse matrix to %s" % self.fname)
            self.fout.write(" " * 50 + "\n") // 48 digits must be enough for everybody
        else:
            logging.info("saving sparse %sx%s matrix with %i non-zero entries to %s" %
                         (numDocs, numTerms, numNnz, self.fname))
            self.fout.write("%s %s %s\n" % (numDocs, numTerms, numNnz))
        self.lastDocNo = -1
        self.headersWritten = True
    
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: RaRe-Technologies/gensim
Commit Name: 2ecd779928c61c674c1a65da115d038820eb480b
Time: 2010-03-31
Author: piskvorky@92d0401f-a546-4972-9173-107b360ed7e5
File Name: src/gensim/matutils.py
Class Name: MmWriter
Method Name: writeHeaders


Project Name: RaRe-Technologies/gensim
Commit Name: 2ecd779928c61c674c1a65da115d038820eb480b
Time: 2010-03-31
Author: piskvorky@92d0401f-a546-4972-9173-107b360ed7e5
File Name: src/gensim/matutils.py
Class Name: MmWriter
Method Name: writeHeaders


Project Name: GRAAL-Research/pytoune
Commit Name: dc8136f5821d4840fb99d4d75027107fdf1e11cd
Time: 2018-06-22
Author: fredy_14@live.fr
File Name: pytoune/framework/callbacks/progress.py
Class Name: ProgressionCallback
Method Name: on_batch_end


Project Name: RaRe-Technologies/gensim
Commit Name: 24c95feb680ca77eedcb06f14fd59fe9112edd45
Time: 2010-03-31
Author: radimrehurek@seznam.cz
File Name: src/gensim/matutils.py
Class Name: MmWriter
Method Name: writeHeaders


Project Name: rasbt/mlxtend
Commit Name: c2abce56431e874d0968658bffd56d589036445c
Time: 2017-11-04
Author: mathew@mathewsavage.com
File Name: mlxtend/utils/counter.py
Class Name: Counter
Method Name: update