1 | static L<Web> ai_filterBadWebs(L<Web> _webs) { |
2 | L<Web> webs = emptyListWithCapacity(_webs); |
3 | int dropped = 0, dropped2 = 0; |
4 | for (Web web : _webs) |
5 | if (web_nodesTooLong(web)) |
6 | dropped++; |
7 | else if (!web_tripelizable(web)) |
8 | dropped2++; |
9 | else |
10 | webs.add(web); |
11 | if (dropped != 0) |
12 | print("Dropped " + nWeb(dropped) + " with too long nodes"); |
13 | if (dropped2 != 0) |
14 | print("Dropped " + n(dropped2, "non-triple")); |
15 | ret webs; |
16 | } |
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: | #1012337 |
Snippet name: | ai_filterBadWebs |
Eternal ID of this version: | #1012337/1 |
Text MD5: | 5a0b4efdfd2586a83a44a2fcb77461b5 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-28 15:00:11 |
Source code size: | 467 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 477 / 477 |
Referenced in: | [show references] |