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

12
LINES

< > BotCompany Repo | #1026741 // ai_loadListWithFeedback

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4949L/31K).

static ListWithFeedback ai_loadListWithFeedback(File f) {
  new ListWithFeedback out;
  out.file = f;
  O o = safeUnstructFile(f);
  copyAllDynFieldsExcept(o, out, 'data);
  L data = cast getOpt(o, 'data);
  out.data = new L;
  fOr (virtual Entry entry : data)
    out.data.add(WithFeedback(getString feedback(entry),
      WithReasoning(getString item(entry), getString reasoning(entry))));
  ret out;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026741
Snippet name: ai_loadListWithFeedback
Eternal ID of this version: #1026741/2
Text MD5: 96f34178007c481a8407d9f7899f735e
Transpilation MD5: b91bf991370601340238861fc0ad9847
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-19 22:03:27
Source code size: 415 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 158 / 232
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)