static L<S> downloadedDiagramStructures() { ret downloadedDiagramStructures(listFilesOfProgram_notDirs(#1010484)); } static L<S> downloadedDiagramStructures(L<File> files) { new L<S> diagrams; for (File f : files) { if (!isPossibleMD5(f.getName()) || !f.isFile()) continue; print(f); if (fileStartsWith(f, toUtf8("CirclesAndLines"))) { print("Diagram!"); diagrams.add(loadTextFile(f)); } else if (isGZ(f)) { //print("GZipped!"); S text = loadGZippedTextFile(f); if (isQuoted(firstJavaToken(text))) diagrams.addAll(scanQuotedLogLines(text)); else { Concepts c = new Concepts().loadGrab(text, true); L<S> structures = getFieldOfAllConceptClasses(c, 'calStructure); print("Got " + n(structures, "diagram")); diagrams.addAll(structures); } } else print("Huh?"); } ret diagrams; }
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: | #1010500 |
Snippet name: | downloadedDiagramStructures |
Eternal ID of this version: | #1010500/7 |
Text MD5: | e518df712a58862ad8578f3424306d10 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-27 18:57:15 |
Source code size: | 921 bytes / 28 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 548 / 583 |
Version history: | 6 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1010536 - downloadedTypicalDiagramStructures #1010812 - downloadedDiagramStructures2 - with global IDs |