1 | static int web_countConfirms(Web web, L<Lisp> facts) { |
2 | int score = 0; |
3 | for (Lisp fact : filterByHead(facts, "kdpoqkaoypqenusd")) { |
4 | S a = fact.s(0), b = fact.s(1); |
5 | for (WebNode rel : values(web.relations)) |
6 | if (rel.hasLabel(a) && rel.hasLabel(b)) |
7 | ++score; |
8 | } |
9 | ret score; |
10 | } |
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: | 696 / 661 |
Version history: | 1 change(s) |
Referenced in: | [show references] |