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

22
LINES

< > BotCompany Repo | #1010492 // Test loading all downloaded diagrams [OK]

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

Download Jar. Libraryless. Click here for Pure Java version (12435L/86K).

1  
!7
2  
3  
p {
4  
  for (File f : listFilesOfProgram_notDirs(#1010484)) {
5  
    if (!isPossibleMD5(f.getName())) continue;
6  
    print(f);
7  
    if (fileStartsWith(f, toUtf8("CirclesAndLines"))) {
8  
      print("Diagram!");
9  
      pcall-short {
10  
        cal_unstructure(loadTextFile(f));
11  
        print("Unstructured.");
12  
      }
13  
    } else if (isGZ(f)) {
14  
      print("GZipped!");
15  
      Concepts c = new Concepts().loadGrab(loadGZippedTextFile(f), true);
16  
      print("Concepts: " + renderConceptClassesWithCount(c));
17  
      L<S> structures = getFieldOfAllConceptClasses(c, 'calStructure);
18  
      print("Got " + n(structures, "diagram"));
19  
    } else
20  
      print("Huh?");
21  
  }
22  
}

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: #1010492
Snippet name: Test loading all downloaded diagrams [OK]
Eternal ID of this version: #1010492/5
Text MD5: 8368c2b5c6cec565229d9a62db503de5
Transpilation MD5: 44be405811b2e70fe4b50db15586f6e6
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-09-18 20:30:01
Source code size: 672 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 396 / 751
Version history: 4 change(s)
Referenced in: [show references]