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

13
LINES

< > BotCompany Repo | #1014658 // Find possible double hearings (user-corrected mishearings) in Katze log

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

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (7730L/53K).

!7

p-experiment {
  for (Pair<S> p : katzeLog_pairsCloseInTime()) {
    S a = p.a, b = p.b;
    if (eq(a, b)) continue;
    S s = longestCommonSubstring(a, b);
    if (empty(s)) continue;
    int percent = ratioToIntPercent(l(s), max(l(a), l(b)));
    printToBuf(percent + "%: " + p.a + " -> " + p.b);
  }
  printLines(sortedByFirstInt(bufLines()));
}

Author comment

Began life as a copy of #1014582

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: #1014658
Snippet name: Find possible double hearings (user-corrected mishearings) in Katze log
Eternal ID of this version: #1014658/6
Text MD5: 4f78ebf95f493a6782c2bcfd636c5b2f
Transpilation MD5: e2c544069875c38fe1e5e99c99484841
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-29 00:14:11
Source code size: 364 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 313 / 3345
Version history: 5 change(s)
Referenced in: [show references]