All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Slopo: An embedding-based CLI tool for detecting non-exact code duplication across modules

By

rkochanowski

2d ago· 5 min readenCode

Summary

Slopo is a lightweight CLI tool that detects non-exact code duplication using embedding models. Unlike traditional tools that catch exact copy-paste, Slopo focuses on the hardest-to-detect duplicates: semantically similar code snippets that are written differently and located far apart in the codebase, often across different modules. It supports 8 programming languages including Python, TypeScript, JavaScript, Java, Kotlin, C#, Go, and Rust.

Source

Hacker NewsSlopo: An embedding-based CLI tool for detecting non-exact code duplication across modulesgithub.com

Key quotes

· 3 pulled
It focuses on the similar code that is hardest to detect and most harmful: snippets written similarly, sitting far apart in the codebase, often spread across different modules or separated within a large file.
Exact copy-paste is easy to spot by other tools, and duplicates that are close together are easy to spot by humans or AI.
A lightweight CLI tool for detecting non-exact code duplication using embedding models.
Snippet from the RSS feed
Embedding-based code duplication detector. Contribute to rafal-qa/slopo development by creating an account on GitHub.

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.