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

25
LINES

< > BotCompany Repo | #1012407 // Process Logic Test Cases

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (7260L/50K).

!7

p-tt {
  centerHigherConsole();
  autoRestart(5);
  S data = loadSnippetWithAutoRestart(#1012404);
  
  new Scorer scorer;
  for (S testCase : splitAtDashLines(javaDropAllComments(data))) {
    L<S> lines = tlft(testCase);
    printAsciiHeading("CASE");
    printLines(lines);
    
    int startOfQuestions = l(lines)-1;
    for i over lines: {
      bool isQuestion = i >= startOfQuestions;
      S line = lines.get(i);
      T3<S> t = ai_tripelize(line);
      print("  " + (isQuestion ? "? " : "") + ai_renderTriple(t));
    }

  }
  //scorer.print();
  //setConsoleTitle(str(scorer) + " - Parse AI Test Questions");
}

Author comment

Began life as a copy of #1012393

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: #1012407
Snippet name: Process Logic Test Cases
Eternal ID of this version: #1012407/6
Text MD5: efa619e8ff6af778949c82c4c0a77777
Transpilation MD5: 98682420ffc52b5e37ee0aca9304ab51
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-02 11:29:39
Source code size: 649 bytes / 25 lines
Pitched / IR pitched: No / No
Views / Downloads: 531 / 2069
Version history: 5 change(s)
Referenced in: #3000512 - Smart Bot's answer to: !eval centralRestartLog_raw()