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

7
LINES

< > BotCompany Repo | #1029074 // Word Index Histogram

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (3320L/17K).

cprint {
  start-thread {
    Map<S, Set<S>> data = cast rget data(get(dm_requireAndGet("#1028972/SnippetsWordIndex", 'wordIndex), 'index));
    print(nWords(data));
    pnl(mapValues(l -> takeRandom(5, l), multiMapToTreeMap(reverseMapToMultiMap(mapValues(data, set -> roundUpSizeToPowerOfTen(set)))));
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029074
Snippet name: Word Index Histogram
Eternal ID of this version: #1029074/1
Text MD5: badba8fa9079844ab267cefc1fb6159a
Transpilation MD5: 55eeacec5798cfecf8036124686ef858
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-19 00:55:04
Source code size: 314 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 133 / 247
Referenced in: [show references]