sbool gac3k_verbose; static cached TreeMap<S, Float> gac36k() { new TreeMap<S, Float> map; for (S s : tlft(loadSnippet(#2000592))) pcall { int i = indexOfAny(s, 0, " \t"); float f = parseFloat(takeFirst(i, s)); Float previous = mapPutIfChange2(map, trim(substring(s, i)), f); if (gac3k_verbose && previous != null) print("Gac-36K: Duplicate question: " + s + " (was: " + previous + ")"); } print("GAC-36K: Have " + n(map, "question")); ret map; }
Began life as a copy of #1010779
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1010781 |
Snippet name: | gac36k - cached map of GAC-36K (question -> float truth value [0..1]) |
Eternal ID of this version: | #1010781/3 |
Text MD5: | ca2d5c2f92357ad0f44c59e1194359dc |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-16 17:05:22 |
Source code size: | 492 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 497 / 513 |
Version history: | 2 change(s) |
Referenced in: | [show references] |