(_, pulse)
| 116618 | return this._finish(pulse, as); // generate output tuples |
| 116619 | }, |
| 116620 | _parameterCheck (_, pulse) { |
| 116621 | let init2 = false; |
| 116622 | if (_.modified("stopwords") || !this._stop) { |
| 116623 | this._stop = new RegExp("^" + (_.stopwords || "") + "$", "i"); |
| 116624 | init2 = true; |
| 116625 | } |
| 116626 | if (_.modified("pattern") || !this._match) { |
| 116627 | this._match = new RegExp(_.pattern || "[\\w']+", "g"); |
| 116628 | init2 = true; |
| 116629 | } |
| 116630 | if (_.modified("field") || pulse.modified(_.field.fields)) init2 = true; |
| 116631 | if (init2) this._counts = {}; |
| 116632 | return init2; |
| 116633 | }, |
| 116634 | _finish (pulse, as) { |
| 116635 | const counts = this._counts, tuples = this._tuples || (this._tuples = {}), text = as[0], count = as[1], out = pulse.fork(pulse.NO_SOURCE | pulse.NO_FIELDS); |
| 116636 | let w, t, c; |
nothing calls this directly
no outgoing calls
no test coverage detected