Utility for making rough, euristic estimations of code similarity between implementations.
assets | ||
mousquet | ||
mousquetaire | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
README.md | ||
rustfmt.toml |
Mousquet
Based on a true story.
Utility for making rough, euristic estimations of code similarity between implementations.
The similarity algorithm is based on token sequence matching, like some other software serving the same purpose. This aproach has many limitations but may fit some use cases.
Example
$ mousquetaire 'examples/primes_1.py' 'examples/primes_2.py'
Build
Dependencies
- cargo
- Install cargo through rustup
pacman -S rustup
curl --proto '=https' --tlsv1.2 -sSf 'https://sh.rustup.rs' | sh
- Use any toolchain
rustup default stable
- Install cargo through rustup
Building
cargo build --release
Find the binary at mousquetaire/target/release/mousquetaire
.