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

12
LINES

< > BotCompany Repo | #1013651 // ai_forgetAllHttpRequests

JavaX fragment (include)

1  
static int ai_forgetAllHttpRequests() {
2  
  int n = 0;
3  
  new L<TripleWeb> toInvalidate;
4  
  for ping (TripleWeb w : cloneList(ai_triplesWithB("was for path"))) {
5  
    if (isCIPrefixPlusGlobalID_oneOf(w.a, "HTTP request ", "Bot HTTP request ")) {
6  
      toInvalidate.addAll(triplesWithA(w.a));
7  
      if (l(toInvalidate) >= 500000)
8  
        n += ai_removeTriplesInMemoryAndClear(toInvalidate);
9  
    }
10  
  }
11  
  ret n + ai_removeTriplesInMemory(toInvalidate);
12  
}

Author comment

Began life as a copy of #1013516

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: #1013651
Snippet name: ai_forgetAllHttpRequests
Eternal ID of this version: #1013651/9
Text MD5: 8c9b7015f305f6a25d61a9f64f556523
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-01-24 13:47:40
Source code size: 457 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 343 / 389
Version history: 8 change(s)
Referenced in: [show references]