58452903d01a476c0fa3e688c1a9d7d82975f5be,textacy/corpus.py,Corpus,_add_valid_doc,#Corpus#Any#,305

Before Change


        self.n_docs += 1
        self.n_tokens += len(doc)
        if doc.is_sentenced:
            self.n_sents += sum(1 for _ in doc.sents)

    // get documents

    def get(self, match_func, limit=None):

After Change


        self.n_docs += 1
        self.n_tokens += len(doc)
        if doc.is_sentenced:
            self.n_sents += itertoolz.count(doc.sents)

    // get documents

    def get(self, match_func, limit=None):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: chartbeat-labs/textacy
Commit Name: 58452903d01a476c0fa3e688c1a9d7d82975f5be
Time: 2019-05-15
Author: burtdewilde@gmail.com
File Name: textacy/corpus.py
Class Name: Corpus
Method Name: _add_valid_doc


Project Name: chartbeat-labs/textacy
Commit Name: a9eb67fab3adcda37e117d2ae80f4ef38a9358d9
Time: 2019-05-18
Author: burtdewilde@gmail.com
File Name: textacy/text_stats.py
Class Name: TextStats
Method Name: __init__


Project Name: chartbeat-labs/textacy
Commit Name: 58452903d01a476c0fa3e688c1a9d7d82975f5be
Time: 2019-05-15
Author: burtdewilde@gmail.com
File Name: textacy/corpus.py
Class Name: Corpus
Method Name: _remove_one_doc_by_index