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).

1  
static ListWithFeedback ai_loadListWithFeedback(File f) {
2  
  new ListWithFeedback out;
3  
  out.file = f;
4  
  O o = safeUnstructFile(f);
5  
  copyAllDynFieldsExcept(o, out, 'data);
6  
  L data = cast getOpt(o, 'data);
7  
  out.data = new L;
8  
  fOr (virtual Entry entry : data)
9  
    out.data.add(WithFeedback(getString feedback(entry),
10  
      WithReasoning(getString item(entry), getString reasoning(entry))));
11  
  ret out;
12  
}

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: 159 / 233
Version history: 1 change(s)
Referenced in: [show references]