static Pair<S, Int> ai_findSpammyIP() { new MultiSet<S> badIPs; for ping (S s : ai_texts("$X", "was for path", "/")) { if (isCIPrefixPlusGlobalID(s, "HTTP request ")) { S ip = ai_text(s, "came from IP", "$X"); badIPs.add(ip); } } ret multiSetTopPair(badIPs); }
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: | #1013523 | 
| Snippet name: | ai_findSpammyIP | 
| Eternal ID of this version: | #1013523/3 | 
| Text MD5: | 6812b5ef87264b1b4e59b4ae5e1fbab4 | 
| Author: | stefan | 
| Category: | javax / a.i. | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2018-02-10 18:02:23 | 
| Source code size: | 297 bytes / 10 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 622 / 685 | 
| Version history: | 2 change(s) | 
| Referenced in: | [show references] |