facebookresearch / hiplot
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 1% duplication:
    • 5,555 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 64 duplicated lines
  • 5 duplicates
system1% (64 lines)
Duplication per Extension
tsx1% (52 lines)
ts1% (12 lines)
Duplication per Component (primary)
src<1% (18 lines)
src/tutorial7% (14 lines)
src/parallel1% (14 lines)
src/lib2% (12 lines)
src/distribution1% (6 lines)
hiplot0% (0 lines)
hiplot/templates0% (0 lines)
ROOT0% (0 lines)
src/streamlit0% (0 lines)
src/dataproviders0% (0 lines)
src/style0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
7 x 2 src/tutorial
src/tutorial
tutorial.tsx
tutorial.tsx
111:119 (4%)
131:139 (4%)
view
7 x 2 src/parallel
src/parallel
parallel.tsx
parallel.tsx
436:442 (1%)
448:454 (1%)
view
6 x 2 src/distribution
src
plugin.tsx
plotxy.tsx
71:76 (5%)
122:127 (1%)
view
6 x 2 src
src
controls.tsx
controls.tsx
31:37 (7%)
95:101 (7%)
view
6 x 2 src/lib
src/lib
d3_scales.ts
d3_scales.ts
275:281 (2%)
340:345 (2%)
view