dj-on-github/djent ? reverse-engineered prompt
Reverse engineered prompt
Build me a command line tool that analyzes random data files and prints the same kinds of stats that ent does, but with a few nicer options.
It should accept one file or many files at once, and also be able to read a list of filenames from a text file. I want a normal help screen, CSV style output for easier plotting, and the filename included in the results. It should work with hex input by default, but also support binary mode, changing the symbol size up to 32 bits, reversing bits or 32 bit words, and reading from stdin.
Please also include the extra analysis this tool advertises, like symbol counts, longest run counts, serial correlation with an optional lag value, wrap around or non wrap around correlation, Shannon entropy plus min entropy, and a longest run probability for 1 bit symbols. If a filename contains test conditions like component ID, process, voltage, or temperature, parse those out and show them in the output too. Look up current docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit