Skip to main content
Glama

detect_clones

Identify duplicate code segments in Python files using APTED tree edit distance and LSH acceleration to maintain code quality and reduce redundancy.

Instructions

Detect code clones using APTED tree edit distance and LSH acceleration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
group_clonesNoGroup related clones together (default: true)
min_linesNoMinimum lines to consider as clone (default: 5)
pathYesPath to Python code to analyze
similarity_thresholdNoMinimum similarity threshold 0.0-1.0 (default: 0.8)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lesleslie/session-buddy'

If you have feedback or need assistance with the MCP directory API, please join our Discord server