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

8
LINES

< > BotCompany Repo | #1022051 // conceptsCountByDate

JavaX fragment (include)

static Map<S, Int> conceptsCountByDate(S dbID) {
  new TreeMap<S, Int> map;
  for (S dateAndHour, int count : conceptsCountByDateAndHour(dbID)) {
    S date = substring(dateAndHour, 0, 4) + "/" + substring(dateAndHour, 4, 6) + "/" + substring(dateAndHour, 6, 8);
    map.put(date, maxOfInts_possiblyNull(map.get(date), count));
  }
  ret map;
}

Author comment

Began life as a copy of #1022049

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1022051
Snippet name: conceptsCountByDate
Eternal ID of this version: #1022051/4
Text MD5: ad57fc06876b50cc0e4fa1ccb34e899c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-06 01:06:51
Source code size: 351 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 223 / 256
Version history: 3 change(s)
Referenced in: [show references]