Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1010975 // web_mostCommonTextWithCount

JavaX fragment (include)

static Pair<S, Int> web_mostCommonTextWithCount(Collection<WebNode> nodes) {
  new MultiSet<S> ms;
  for (WebNode n : unnull(nodes))
    ms.addAll(web_texts(n));
  S s = ms.getMostPopularEntry();
  ret s == null ? null : pair(s, ms.get(s));
}

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: 323 / 355
Version history: 2 change(s)
Referenced in: [show references]