Task: Calculate File Entropy
Task: Calculate File Entropy: a task in Terminal-Lego-15k (Harbor dataset). Implement a program that calculates the Shannon entropy of a file (or any sequence of bytes). The entropy value should help make assumptions about the file's contents - whether it's plaintext, markup, compressed, or binary…
The task
Implement a program that calculates the Shannon entropy of a file (or any sequence of bytes). The entropy value should help make assumptions about the file's contents - whether it's plaintext, markup, compressed, or binary data.
Part of PrimeIntellect/Terminal-Lego-15k.