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

13
LINES

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

JavaX fragment (include)

1  
static MultiSet<S> allChatLines() {
2  
  new MultiSet<S> set;
3  
  L<File> files = allDataFilesNamed("log.txt");
4  
  for (File f : files) pcall {
5  
    if (f.isFile()) {
6  
      L<S> lines = toLines(f);
7  
      if (isProbableChatLog(lines))
8  
        for (S s : lines)
9  
          set.add(onlyAfter(s, ']').trim());
10  
    }
11  
  }
12  
  ret set;
13  
}

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: 434 / 448
Version history: 1 change(s)
Referenced in: [show references]