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

16
LINES

< > BotCompany Repo | #1011808 // ai_gc_unreachedWords

JavaX fragment (include)

static Collection<S> ai_gc_unreachedWords() {
  Set<S> unreached = caseInsensitiveSet();
  
  Map<S, Double> distances = ciMap();
  for (WebRelation r : indexedRelations("has GC distance")) pcall {
    distances.put(web_text(r.a), parseDouble(web_text(r.b)));
  }
  
  for (S text : allIndexedFullTerms()) {
    continue if unreached.contains(text);
    if (!distances.containsKey(text))
      unreached.add(text);
  }
    
  ret unreached;
}

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: #1011808
Snippet name: ai_gc_unreachedWords
Eternal ID of this version: #1011808/3
Text MD5: 912a48e3c81e92dc06b75e172a60ebc4
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-05 08:30:06
Source code size: 457 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 357 / 414
Version history: 2 change(s)
Referenced in: [show references]