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

11
LINES

< > BotCompany Repo | #1029278 // ai_compressWikipedia

JavaX fragment (include) [tags: use-pretranspiled]

Uses 11335K of libraries. Click here for Pure Java version (8997L/58K).

svoid ai_compressWikipedia(File articlesXMLFile, bool fullCompression default true) {
  long total = l(articlesXMLFile);
  int step = oneHundredMillion();
  long i = 0;
  while (i < total) {
    File out = appendToFileName(articlesXMLFile, "-" + i + (fullCompression ? ".fubc" : ".ubc"));
    if (!fileExists(out))
      lcCompressFilePart_upper(articlesXMLFile, out, i, step, +fullCompression);
    i += step;
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, iveijnkanddl, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1029278
Snippet name: ai_compressWikipedia
Eternal ID of this version: #1029278/6
Text MD5: 9d60e2d269f183757c95b6d47d02e02d
Transpilation MD5: c6b04f2492a2a2af90e96232c5a2b6b2
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-08-12 01:18:46
Source code size: 426 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 246 / 354
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1029475 - ai_compressWikipedia_v2 - no toUpper