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

1  
!7
2  
3  
p-tt {
4  
  centerHigherConsole();
5  
  autoRestart(5);
6  
  S data = loadSnippetWithAutoRestart(#1012404);
7  
  
8  
  new Scorer scorer;
9  
  for (S testCase : splitAtDashLines(javaDropAllComments(data))) {
10  
    L<S> lines = tlft(testCase);
11  
    printAsciiHeading("CASE");
12  
    printLines(lines);
13  
    
14  
    int startOfQuestions = l(lines)-1;
15  
    for i over lines: {
16  
      bool isQuestion = i >= startOfQuestions;
17  
      S line = lines.get(i);
18  
      T3<S> t = ai_tripelize(line);
19  
      print("  " + (isQuestion ? "? " : "") + ai_renderTriple(t));
20  
    }
21  
22  
  }
23  
  //scorer.print();
24  
  //setConsoleTitle(str(scorer) + " - Parse AI Test Questions");
25  
}

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: 530 / 2066
Version history: 5 change(s)
Referenced in: [show references]