1 | static L<Pair<S>> downloadedDiagramStructures2() {
|
2 | ret downloadedDiagramStructures2(listFilesOfProgram_notDirs(#1010484)); |
3 | } |
4 | |
5 | static L<Pair<S>> downloadedDiagramStructures2(L<File> files) {
|
6 | new L<Pair<S>> diagrams; |
7 | for (File f : files) {
|
8 | if (!isPossibleMD5(f.getName()) || !f.isFile()) continue; |
9 | print(f); |
10 | if (fileStartsWith(f, toUtf8("CirclesAndLines"))) {
|
11 | print("Diagram!");
|
12 | diagrams.add(pair(loadTextFile(f), "")); |
13 | } else if (isGZ(f)) {
|
14 | //print("GZipped!");
|
15 | Concepts c = new Concepts().loadGrab(loadGZippedTextFile(f), true); |
16 | int n = 0; |
17 | for (Concept d : concepts.allConcepts()) {
|
18 | S s = getString(d, 'calStructure); |
19 | S id = getString(d, 'globalID); |
20 | if (s != null) {
|
21 | diagrams.add(pair(s, id)); |
22 | ++n; |
23 | } |
24 | } |
25 | print("Got " + n(n, "diagram"));
|
26 | } else |
27 | print("Huh?");
|
28 | } |
29 | ret diagrams; |
30 | } |
Began life as a copy of #1010500
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: | #1010812 |
| Snippet name: | downloadedDiagramStructures2 - with global IDs |
| Eternal ID of this version: | #1010812/2 |
| Text MD5: | d9f0d907dd538b60d3536b8b3e8f2c47 |
| 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:01 |
| Source code size: | 940 bytes / 30 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 580 / 629 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |