1 | sbool gac3k_verbose; |
2 | |
3 | static cached TreeMap<S, Float> gac36k() { |
4 | new TreeMap<S, Float> map; |
5 | for (S s : tlft(loadSnippet(#2000592))) pcall { |
6 | int i = indexOfAny(s, 0, " \t"); |
7 | float f = parseFloat(takeFirst(i, s)); |
8 | Float previous = mapPutIfChange2(map, trim(substring(s, i)), f); |
9 | if (gac3k_verbose && previous != null) |
10 | print("Gac-36K: Duplicate question: " + s + " (was: " + previous + ")"); |
11 | } |
12 | print("GAC-36K: Have " + n(map, "question")); |
13 | ret map; |
14 | } |
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: | 498 / 514 |
Version history: | 2 change(s) |
Referenced in: | [show references] |