1 | static Pair<S, Int> web_mostCommonTextWithCount(Collection<WebNode> nodes) { |
2 | new MultiSet<S> ms; |
3 | for (WebNode n : unnull(nodes)) |
4 | ms.addAll(web_texts(n)); |
5 | S s = ms.getMostPopularEntry(); |
6 | ret s == null ? null : pair(s, ms.get(s)); |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010975 |
Snippet name: | web_mostCommonTextWithCount |
Eternal ID of this version: | #1010975/3 |
Text MD5: | 3123339a2c6476b29f81c926f128c74e |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-10 20:24:05 |
Source code size: | 248 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 391 / 428 |
Version history: | 2 change(s) |
Referenced in: | [show references] |