static int web_countConfirms(Web web, L<Lisp> facts) { int score = 0; for (Lisp fact : filterByHead(facts, "kdpoqkaoypqenusd")) { S a = fact.s(0), b = fact.s(1); for (WebNode rel : values(web.relations)) if (rel.hasLabel(a) && rel.hasLabel(b)) ++score; } ret score; }
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: | #1007661 |
Snippet name: | web_countConfirms |
Eternal ID of this version: | #1007661/2 |
Text MD5: | 2d54e7fb316ca2042fb411efccf8e960 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-30 22:03:51 |
Source code size: | 308 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 692 / 657 |
Version history: | 1 change(s) |
Referenced in: | [show references] |