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

21
LINES

< > BotCompany Repo | #1004736 // Debug Text Predict Algo, Print Differences

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Uses 5262K of libraries. Click here for Pure Java version (3787L/28K/70K).

!752

p {
  S text = getTextFromSucker("#1004698");
  S lua = callStrategy("#1004720", text);
  scoreTextPredictAlgo_buf = new StringBuilder;
  double score = scoreTextPredictAlgo(makeLuaTextPredictAlgo("L " + lua), text);
  print("Score: " + score);
  
  S s = str(scoreTextPredictAlgo_buf);
  print(unidiff(text, s));
  print("Length: " + l(text) + " vs " + l(s));
  
  if (l(text) == l(s)) {
    for i over text:
      if (text.charAt(i) != s.charAt(i))
        print(intToHex(text.charAt(i)) + " " + intToHex(s.charAt(i)));
  }
  
  print("Code MD5: " + md5(lua));
}

Author comment

Began life as a copy of #1004734

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

-
Snippet ID: #1004736
Snippet name: Debug Text Predict Algo, Print Differences
Eternal ID of this version: #1004736/1
Text MD5: fb715473c17874e230a36afc1382682f
Transpilation MD5: dd5b26a27c9d2f8c346ec431f509cf88
Author: stefan
Category: javax / a.i.
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-08-28 16:18:37
Source code size: 590 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 556 / 626
Referenced in: