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

13
LINES

< > BotCompany Repo | #1003916 // allChatLines [local]

JavaX fragment (include)

static MultiSet<S> allChatLines() {
  new MultiSet<S> set;
  L<File> files = allDataFilesNamed("log.txt");
  for (File f : files) pcall {
    if (f.isFile()) {
      L<S> lines = toLines(f);
      if (isProbableChatLog(lines))
        for (S s : lines)
          set.add(onlyAfter(s, ']').trim());
    }
  }
  ret set;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003916
Snippet name: allChatLines [local]
Eternal ID of this version: #1003916/2
Text MD5: 595bab9d92158f29ddcad798b11ffcba
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-20 16:41:29
Source code size: 332 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 497 / 513
Version history: 1 change(s)
Referenced in: [show references]