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

23
LINES

< > BotCompany Repo | #1006137 // Bit Analysis [do some basic stuff, WORKS]

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

Libraryless. Click here for Pure Java version (2079L/14K/47K).

!752

sS bla = [[
The images "9176714c9a935fc91e14595dbb3adddf 35731666e72dd0c9448f616ff3a7464a da9bc5a24bd503e898f69ad43bb9b92e" are the characters "yet".
  The images "412f9e0f8e177817a4fa285415c5a13f 386b289407599f31e3a7c57c3adb2587 6cd2a2284a5a6fda3a7cad3e3a048671 b0c47c014d665ec5b658f510c258dc47 b273ff598fe6afa04cfed9f9e8fb4109" are the grouped characters "[Ob]ject".
  The images "175116b749670b7b65707c10c935b42c ddaf2b9c198818c49628387ecc2910ed 3777597e39eb0de16c022293c8c91cc0 fad86bda3f716ef4e7fa9d199f6c4383 35731666e72dd0c9448f616ff3a7464a 03b96c30adaaed5b60cea4ab9bc37263" are the characters "images".
]];

p-typewriter {
  Bits bits = new Bits(bla);
  print(bits.n);
  printStruct(bits.toByteArray());
  print(quote(bits.getString()));
  L<Bits> chunks = bitsFullChunks(bits, 8);
  //psl(chunks);
  MultiSet<Bits> ms = new MultiSet(chunks);
  L<Bits> mostFrequent = ms.highestFirst();
  for (Bits b : mostFrequent) {
    print(ms.get(b) + ": " + quote(b.getString()) + " " + struct(b));
    L<L<Bits>> split = splitAtListElement_multi(chunks, b);
    print("  split => " + n(l(split), "parts"));
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006137
Snippet name: Bit Analysis [do some basic stuff, WORKS]
Eternal ID of this version: #1006137/1
Text MD5: 4a74f0e2c543ae021b1bc4db61830021
Transpilation MD5: 6c359adf6080b5f5a704e35802a05a01
Author: stefan
Category: javax / a.i.
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-12-21 16:44:41
Source code size: 1141 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 638 / 714
Referenced in: #1006146 - Bit Analysis 2 [evaluate expressions, works]