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

16
LINES

< > BotCompany Repo | #1012337 // ai_filterBadWebs

JavaX fragment (include)

static L<Web> ai_filterBadWebs(L<Web> _webs) {
  L<Web> webs = emptyListWithCapacity(_webs);
  int dropped = 0, dropped2 = 0;
  for (Web web : _webs)
    if (web_nodesTooLong(web))
      dropped++;
    else if (!web_tripelizable(web))
      dropped2++;
    else
      webs.add(web);
  if (dropped != 0)
    print("Dropped " + nWeb(dropped) + " with too long nodes");
  if (dropped2 != 0)
    print("Dropped " + n(dropped2, "non-triple"));
  ret webs;
}

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: 397 / 402
Referenced in: [show references]