diff --git a/.pyscn.toml b/.pyscn.toml index 787db9b..875226d 100644 --- a/.pyscn.toml +++ b/.pyscn.toml @@ -76,7 +76,7 @@ k_core_k = 2 # K-core parameter # LSH acceleration settings lsh_enabled = "auto" # Enable LSH: true, false, auto (based on project size) lsh_auto_threshold = 500 # Auto-enable LSH for projects with >500 fragments -lsh_similarity_threshold = 0.78 # LSH similarity threshold +lsh_similarity_threshold = 0.50 # LSH similarity threshold lsh_bands = 32 # Number of LSH bands lsh_rows = 4 # Number of rows per band lsh_hashes = 128 # Number of hash functions diff --git a/domain/analyze.go b/domain/analyze.go index afdb14b..be66d53 100644 --- a/domain/analyze.go +++ b/domain/analyze.go @@ -17,9 +17,9 @@ const ( ComplexityPenaltyLow = 6 // Code duplication thresholds and penalties - DuplicationThresholdHigh = 40.0 - DuplicationThresholdMedium = 25.0 - DuplicationThresholdLow = 10.0 + DuplicationThresholdHigh = 20.0 + DuplicationThresholdMedium = 10.0 + DuplicationThresholdLow = 3.0 DuplicationPenaltyHigh = 20 DuplicationPenaltyMedium = 12 DuplicationPenaltyLow = 6