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

12
LINES

< > BotCompany Repo | #1012501 // ai_triplesFileFromGithub

JavaX fragment (include)

1  
sS ai_triplesFileFromGithub_url = "https://github.com/stefan-reich/smartbot/releases/download/1/triples.gz";
2  
3  
static File ai_triplesFileFromGithub() {
4  
  S programID = #1012438;
5  
  File file = getProgramFile(programID, "triples-1.gz");
6  
  if (fileSize(file) == 0) {
7  
    print("Downloading triples (9 MB).");
8  
    loadBinaryPageToFile(ai_triplesFileFromGithub_url, file);
9  
  } else
10  
    print("Triples already downloaded.");
11  
  ret file;
12  
}

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: #1012501
Snippet name: ai_triplesFileFromGithub
Eternal ID of this version: #1012501/2
Text MD5: 6eb2a49d26856407ff7e3a788c5a1e10
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-05 14:03:32
Source code size: 442 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 435 / 449
Version history: 1 change(s)
Referenced in: [show references]