(a: string, b: string)
| 2 | import { analyze } from './analyze' |
| 3 | |
| 4 | function hammingSimilarity(a: string, b: string): number { |
| 5 | if (!a || !b || a.length !== b.length) return 0 |
| 6 | let same = 0 |
| 7 | for (let i = 0; i < a.length; i++) { |
| 8 | if (a[i] === b[i]) same++ |
| 9 | } |
| 10 | return same / a.length |
| 11 | } |
| 12 | |
| 13 | export function predictCodeQuality( |
| 14 | code: string, |
no outgoing calls
no test coverage detected