Utility for making rough, euristic estimations of code similarity between implementations.
Find a file
2026-01-10 22:54:20 +01:00
assets init 2025-08-22 12:29:55 +02:00
mousquet init 2025-08-22 12:29:55 +02:00
mousquetaire init 2025-08-22 12:29:55 +02:00
.gitignore init 2025-08-22 12:29:55 +02:00
Cargo.lock init 2025-08-22 12:29:55 +02:00
Cargo.toml init 2025-08-22 12:29:55 +02:00
README.md fix typo 2026-01-10 22:54:20 +01:00
rustfmt.toml init 2025-08-22 12:29:55 +02:00

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 approach has many limitations but may fit some use cases.

Example

$ mousquetaire 'examples/primes_1.py' 'examples/primes_2.py'

screenshot

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

Building

cargo build --release

Find the binary at mousquetaire/target/release/mousquetaire.